From 4c60ed749f34e2b0c98830418e685e4ecabcbf5a Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Thu, 10 Dec 2020 00:18:59 -0800 Subject: [PATCH 01/53] Forget defaults if using global style --- includes/generate-css.php | 24 ++++++++++++++++++------ src/components/dimensions/index.js | 10 ++++++---- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/includes/generate-css.php b/includes/generate-css.php index e815fd73e..119c4cec1 100644 --- a/includes/generate-css.php +++ b/includes/generate-css.php @@ -242,6 +242,14 @@ function generateblocks_get_dynamic_css( $content = '' ) { $settings['bgOptions']['selector'] = 'element'; } + $containerWidth = $settings['containerWidth']; + + if ( isset( $settings['useGlobalStyle'] ) && $settings['useGlobalStyle'] ) { + if ( (string) $containerWidth === (string) $defaults['container']['containerWidth'] ) { + $containerWidth = ''; + } + } + $backgroundImageValue = generateblocks_get_background_image_css( 'image', $settings ); $gradientValue = generateblocks_get_background_image_css( 'gradient', $settings ); $hasBgImage = $settings['bgImage']; @@ -254,9 +262,11 @@ function generateblocks_get_dynamic_css( $content = '' ) { $css->add_property( 'margin', generateblocks_get_shorthand_css( $settings['marginTop'], $settings['marginRight'], $settings['marginBottom'], $settings['marginLeft'], $settings['marginUnit'] ) ); if ( 'contained' === $settings['outerContainer'] && ! $settings['isGrid'] ) { - $css->add_property( 'max-width', absint( $settings['containerWidth'] ), 'px' ); - $css->add_property( 'margin-left', 'auto' ); - $css->add_property( 'margin-right', 'auto' ); + if ( ! empty( $containerWidth ) ) { + $css->add_property( 'max-width', absint( $containerWidth ), 'px' ); + $css->add_property( 'margin-left', 'auto' ); + $css->add_property( 'margin-right', 'auto' ); + } } $css->add_property( 'background-color', generateblocks_hex2rgba( $settings['backgroundColor'], $settings['backgroundColorOpacity'] ) ); @@ -359,9 +369,11 @@ function generateblocks_get_dynamic_css( $content = '' ) { $css->add_property( 'padding', generateblocks_get_shorthand_css( $settings['paddingTop'], $settings['paddingRight'], $settings['paddingBottom'], $settings['paddingLeft'], $settings['paddingUnit'] ) ); if ( 'contained' === $settings['innerContainer'] && ! $settings['isGrid'] ) { - $css->add_property( 'max-width', absint( $settings['containerWidth'] ), 'px' ); - $css->add_property( 'margin-left', 'auto' ); - $css->add_property( 'margin-right', 'auto' ); + if ( ! empty( $containerWidth ) ) { + $css->add_property( 'max-width', absint( $containerWidth ), 'px' ); + $css->add_property( 'margin-left', 'auto' ); + $css->add_property( 'margin-right', 'auto' ); + } } if ( $usingMinHeightFlex ) { diff --git a/src/components/dimensions/index.js b/src/components/dimensions/index.js index 39eb87e7e..245269b0c 100644 --- a/src/components/dimensions/index.js +++ b/src/components/dimensions/index.js @@ -249,6 +249,8 @@ class DimensionsControl extends Component { } } + const usingGlobalStyle = 'undefined' !== typeof attributes.useGlobalStyle && attributes.useGlobalStyle; + return (
@@ -272,7 +274,7 @@ class DimensionsControl extends Component { type="number" onChange={ onChangeTopValue } onBlur={ () => { - if ( '' === attributes[ attrTop ] && '' !== defaults[ attrTop ] ) { + if ( ! usingGlobalStyle && '' === attributes[ attrTop ] && '' !== defaults[ attrTop ] ) { // If we have no value and a default exists, set to 0 to prevent default from coming back. if ( this.props.attributes[ this.props.attrSyncUnits ] ) { this.onChangeAll( '0' ); @@ -297,7 +299,7 @@ class DimensionsControl extends Component { type="number" onChange={ onChangeRightValue } onBlur={ () => { - if ( '' === attributes[ attrRight ] && '' !== defaults[ attrRight ] ) { + if ( ! usingGlobalStyle && '' === attributes[ attrRight ] && '' !== defaults[ attrRight ] ) { // If we have no value and a default exists, set to 0 to prevent default from coming back. if ( this.props.attributes[ this.props.attrSyncUnits ] ) { this.onChangeAll( '0' ); @@ -322,7 +324,7 @@ class DimensionsControl extends Component { type="number" onChange={ onChangeBottomValue } onBlur={ () => { - if ( '' === attributes[ attrBottom ] && '' !== defaults[ attrBottom ] ) { + if ( ! usingGlobalStyle && '' === attributes[ attrBottom ] && '' !== defaults[ attrBottom ] ) { // If we have no value and a default exists, set to 0 to prevent default from coming back. if ( this.props.attributes[ this.props.attrSyncUnits ] ) { this.onChangeAll( '0' ); @@ -347,7 +349,7 @@ class DimensionsControl extends Component { type="number" onChange={ onChangeLeftValue } onBlur={ () => { - if ( '' === attributes[ attrLeft ] && '' !== defaults[ attrLeft ] ) { + if ( ! usingGlobalStyle && '' === attributes[ attrLeft ] && '' !== defaults[ attrLeft ] ) { // If we have no value and a default exists, set to 0 to prevent default from coming back. if ( this.props.attributes[ this.props.attrSyncUnits ] ) { this.onChangeAll( '0' ); From 39c645efd0b3821ec422d0bb7f148d6a10cd6371 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Thu, 10 Dec 2020 00:20:13 -0800 Subject: [PATCH 02/53] Add generateblocks.editor.cssAttrs filter --- src/blocks/button-container/css/main.js | 4 +--- src/blocks/button-container/css/mobile.js | 4 +--- src/blocks/button-container/css/tablet.js | 4 +--- src/blocks/button/css/main.js | 4 +--- src/blocks/button/css/mobile.js | 4 +--- src/blocks/button/css/tablet.js | 4 +--- src/blocks/container/css/desktop.js | 3 ++- src/blocks/container/css/main.js | 3 ++- src/blocks/container/css/mobile.js | 3 ++- src/blocks/container/css/tablet-only.js | 3 ++- src/blocks/container/css/tablet.js | 3 ++- src/blocks/grid/css/main.js | 4 +--- src/blocks/grid/css/mobile.js | 4 +--- src/blocks/grid/css/tablet.js | 4 +--- src/blocks/headline/css/main.js | 3 ++- src/blocks/headline/css/mobile.js | 3 ++- src/blocks/headline/css/tablet.js | 3 ++- 17 files changed, 25 insertions(+), 35 deletions(-) diff --git a/src/blocks/button-container/css/main.js b/src/blocks/button-container/css/main.js index cc3302e4c..0adc8f32a 100644 --- a/src/blocks/button-container/css/main.js +++ b/src/blocks/button-container/css/main.js @@ -7,9 +7,7 @@ const { applyFilters } = wp.hooks; export default class MainCSS extends Component { render() { - const { - attributes, - } = this.props; + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); const { uniqueId, diff --git a/src/blocks/button-container/css/mobile.js b/src/blocks/button-container/css/mobile.js index c09c73da7..e4197f7c7 100644 --- a/src/blocks/button-container/css/mobile.js +++ b/src/blocks/button-container/css/mobile.js @@ -7,9 +7,7 @@ const { applyFilters } = wp.hooks; export default class MobileCSS extends Component { render() { - const { - attributes, - } = this.props; + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); const { uniqueId, diff --git a/src/blocks/button-container/css/tablet.js b/src/blocks/button-container/css/tablet.js index 2576f4fc7..6b3ad08eb 100644 --- a/src/blocks/button-container/css/tablet.js +++ b/src/blocks/button-container/css/tablet.js @@ -7,9 +7,7 @@ const { applyFilters } = wp.hooks; export default class TabletCSS extends Component { render() { - const { - attributes, - } = this.props; + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); const { uniqueId, diff --git a/src/blocks/button/css/main.js b/src/blocks/button/css/main.js index 8a55cc606..530253633 100644 --- a/src/blocks/button/css/main.js +++ b/src/blocks/button/css/main.js @@ -9,9 +9,7 @@ const { applyFilters } = wp.hooks; export default class MainCSS extends Component { render() { - const { - attributes, - } = this.props; + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); const { url, diff --git a/src/blocks/button/css/mobile.js b/src/blocks/button/css/mobile.js index 0efe49a6f..57f5ab0d6 100644 --- a/src/blocks/button/css/mobile.js +++ b/src/blocks/button/css/mobile.js @@ -7,9 +7,7 @@ const { applyFilters } = wp.hooks; export default class MobileCSS extends Component { render() { - const { - attributes, - } = this.props; + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); const { url, diff --git a/src/blocks/button/css/tablet.js b/src/blocks/button/css/tablet.js index 1fb8ecee8..3aab985b4 100644 --- a/src/blocks/button/css/tablet.js +++ b/src/blocks/button/css/tablet.js @@ -7,9 +7,7 @@ const { applyFilters } = wp.hooks; export default class TabletCSS extends Component { render() { - const { - attributes, - } = this.props; + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); const { url, diff --git a/src/blocks/container/css/desktop.js b/src/blocks/container/css/desktop.js index 377806107..6679f3f2c 100644 --- a/src/blocks/container/css/desktop.js +++ b/src/blocks/container/css/desktop.js @@ -6,8 +6,9 @@ const { applyFilters } = wp.hooks; export default class DesktopCSS extends Component { render() { + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); + const { - attributes, clientId, } = this.props; diff --git a/src/blocks/container/css/main.js b/src/blocks/container/css/main.js index 6eae48fd0..ac117e8db 100644 --- a/src/blocks/container/css/main.js +++ b/src/blocks/container/css/main.js @@ -10,8 +10,9 @@ const { applyFilters } = wp.hooks; export default class MainCSS extends Component { render() { + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); + const { - attributes, clientId, } = this.props; diff --git a/src/blocks/container/css/mobile.js b/src/blocks/container/css/mobile.js index 06d8bd880..3247e6944 100644 --- a/src/blocks/container/css/mobile.js +++ b/src/blocks/container/css/mobile.js @@ -7,8 +7,9 @@ const { applyFilters } = wp.hooks; export default class MobileCSS extends Component { render() { + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); + const { - attributes, clientId, } = this.props; diff --git a/src/blocks/container/css/tablet-only.js b/src/blocks/container/css/tablet-only.js index a8465d432..57c181216 100644 --- a/src/blocks/container/css/tablet-only.js +++ b/src/blocks/container/css/tablet-only.js @@ -6,8 +6,9 @@ const { applyFilters } = wp.hooks; export default class TabletOnlyCSS extends Component { render() { + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); + const { - attributes, clientId, } = this.props; diff --git a/src/blocks/container/css/tablet.js b/src/blocks/container/css/tablet.js index f7b504f49..292469220 100644 --- a/src/blocks/container/css/tablet.js +++ b/src/blocks/container/css/tablet.js @@ -7,8 +7,9 @@ const { applyFilters } = wp.hooks; export default class TabletCSS extends Component { render() { + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); + const { - attributes, clientId, } = this.props; diff --git a/src/blocks/grid/css/main.js b/src/blocks/grid/css/main.js index bd4c19bf6..442faa1a0 100644 --- a/src/blocks/grid/css/main.js +++ b/src/blocks/grid/css/main.js @@ -6,9 +6,7 @@ const { applyFilters } = wp.hooks; export default class MainCSS extends Component { render() { - const { - attributes, - } = this.props; + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); const { uniqueId, diff --git a/src/blocks/grid/css/mobile.js b/src/blocks/grid/css/mobile.js index 3c34a5864..e56a23bf4 100644 --- a/src/blocks/grid/css/mobile.js +++ b/src/blocks/grid/css/mobile.js @@ -6,9 +6,7 @@ const { applyFilters } = wp.hooks; export default class MobileCSS extends Component { render() { - const { - attributes, - } = this.props; + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); const { uniqueId, diff --git a/src/blocks/grid/css/tablet.js b/src/blocks/grid/css/tablet.js index 5dd66bb9d..935593b21 100644 --- a/src/blocks/grid/css/tablet.js +++ b/src/blocks/grid/css/tablet.js @@ -6,9 +6,7 @@ const { applyFilters } = wp.hooks; export default class TabletCSS extends Component { render() { - const { - attributes, - } = this.props; + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); const { uniqueId, diff --git a/src/blocks/headline/css/main.js b/src/blocks/headline/css/main.js index 6af1b883a..67c34433c 100644 --- a/src/blocks/headline/css/main.js +++ b/src/blocks/headline/css/main.js @@ -9,8 +9,9 @@ const { applyFilters } = wp.hooks; export default class MainCSS extends Component { render() { + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); + const { - attributes, clientId, } = this.props; diff --git a/src/blocks/headline/css/mobile.js b/src/blocks/headline/css/mobile.js index ed0504620..0242092f1 100644 --- a/src/blocks/headline/css/mobile.js +++ b/src/blocks/headline/css/mobile.js @@ -7,8 +7,9 @@ const { applyFilters } = wp.hooks; export default class MobileCSS extends Component { render() { + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); + const { - attributes, clientId, } = this.props; diff --git a/src/blocks/headline/css/tablet.js b/src/blocks/headline/css/tablet.js index 9de7aa39e..d8f739dee 100644 --- a/src/blocks/headline/css/tablet.js +++ b/src/blocks/headline/css/tablet.js @@ -7,8 +7,9 @@ const { applyFilters } = wp.hooks; export default class TabletCSS extends Component { render() { + const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props ); + const { - attributes, clientId, } = this.props; From f87f0e4605016c2a4e1e9be1ebad0a27b9a01a81 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Thu, 10 Dec 2020 00:20:34 -0800 Subject: [PATCH 03/53] Fix gradient when no stop value is found --- src/components/gradient/index.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/gradient/index.js b/src/components/gradient/index.js index 1e50dffd6..a84964775 100644 --- a/src/components/gradient/index.js +++ b/src/components/gradient/index.js @@ -129,9 +129,11 @@ class GradientControl extends Component { } ); } } onBlur={ () => { - setAttributes( { - [ attrGradientColorStopOne ]: parseFloat( attributes[ attrGradientColorStopOne ] ), - } ); + if ( attributes[ attrGradientColorStopOne ] || 0 === attributes[ attrGradientColorStopOne ] ) { + setAttributes( { + [ attrGradientColorStopOne ]: parseFloat( attributes[ attrGradientColorStopOne ] ), + } ); + } } } onClick={ ( e ) => { // Make sure onBlur fires in Firefox. @@ -177,9 +179,11 @@ class GradientControl extends Component { } ); } } onBlur={ () => { - setAttributes( { - [ attrGradientColorStopTwo ]: parseFloat( attributes[ attrGradientColorStopTwo ] ), - } ); + if ( attributes[ attrGradientColorStopTwo ] || 0 === attributes[ attrGradientColorStopTwo ] ) { + setAttributes( { + [ attrGradientColorStopTwo ]: parseFloat( attributes[ attrGradientColorStopTwo ] ), + } ); + } } } onClick={ ( e ) => { // Make sure onBlur fires in Firefox. From b599a0c1c12675568962f90d324bf85a37f41802 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Thu, 10 Dec 2020 00:20:49 -0800 Subject: [PATCH 04/53] Update blocks.js --- dist/blocks.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/blocks.js b/dist/blocks.js index db16cffad..3c1b59e9d 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -1,12 +1,12 @@ !function(e){var t={};function a(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(l,i,function(t){return e[t]}.bind(null,i));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=39)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var a=0,l=new Array(t);a1?a-1:0),i=1;i/gm),L=i(/^data-[\-\w.\u00B7-\uFFFF]/),P=i(/^aria-[\-\w]+$/),A=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=i(/^(?:\w+script|data):/i),H=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function F(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:_(),a=function(t){return e(t)};if(a.version="2.2.2",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var i=t.document,r=t.document,n=t.DocumentFragment,o=t.HTMLTemplateElement,c=t.Node,s=t.NodeFilter,w=t.NamedNodeMap,G=void 0===w?t.NamedNodeMap||t.MozNamedAttrMap:w,V=t.Text,q=t.Comment,W=t.DOMParser,Z=t.trustedTypes;if("function"==typeof o){var K=r.createElement("template");K.content&&K.content.ownerDocument&&(r=K.content.ownerDocument)}var J=I(Z,i),Y=J&&Ee?J.createHTML(""):"",Q=r,X=Q.implementation,$=Q.createNodeIterator,ee=Q.getElementsByTagName,te=Q.createDocumentFragment,ae=i.importNode,le={};try{le=T(r).documentMode?r.documentMode:{}}catch(e){}var ie={};a.isSupported=X&&void 0!==X.createHTMLDocument&&9!==le;var re=z,ne=x,oe=L,ce=P,se=U,ge=H,ue=A,be=null,de=v({},[].concat(F(O),F(C),F(S),F(B),F(D))),pe=null,fe=v({},[].concat(F(E),F(j),F(R),F(M))),he=null,me=null,ke=!0,ye=!0,we=!1,ve=!1,Te=!1,Oe=!1,Ce=!1,Se=!1,Be=!1,De=!0,Ee=!1,je=!0,Re=!0,Me=!1,ze={},xe=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),Le=null,Pe=v({},["audio","video","img","source","image","track"]),Ae=null,Ue=v({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),He=null,Ne=r.createElement("form"),Fe=function(e){He&&He===e||(e&&"object"===(void 0===e?"undefined":N(e))||(e={}),e=T(e),be="ALLOWED_TAGS"in e?v({},e.ALLOWED_TAGS):de,pe="ALLOWED_ATTR"in e?v({},e.ALLOWED_ATTR):fe,Ae="ADD_URI_SAFE_ATTR"in e?v(T(Ue),e.ADD_URI_SAFE_ATTR):Ue,Le="ADD_DATA_URI_TAGS"in e?v(T(Pe),e.ADD_DATA_URI_TAGS):Pe,he="FORBID_TAGS"in e?v({},e.FORBID_TAGS):{},me="FORBID_ATTR"in e?v({},e.FORBID_ATTR):{},ze="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ye=!1!==e.ALLOW_DATA_ATTR,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=e.SAFE_FOR_TEMPLATES||!1,Te=e.WHOLE_DOCUMENT||!1,Se=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,De=!1!==e.RETURN_DOM_IMPORT,Ee=e.RETURN_TRUSTED_TYPE||!1,Ce=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Re=!1!==e.KEEP_CONTENT,Me=e.IN_PLACE||!1,ue=e.ALLOWED_URI_REGEXP||ue,ve&&(ye=!1),Be&&(Se=!0),ze&&(be=v({},[].concat(F(D))),pe=[],!0===ze.html&&(v(be,O),v(pe,E)),!0===ze.svg&&(v(be,C),v(pe,j),v(pe,M)),!0===ze.svgFilters&&(v(be,S),v(pe,j),v(pe,M)),!0===ze.mathMl&&(v(be,B),v(pe,R),v(pe,M))),e.ADD_TAGS&&(be===de&&(be=T(be)),v(be,e.ADD_TAGS)),e.ADD_ATTR&&(pe===fe&&(pe=T(pe)),v(pe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&v(Ae,e.ADD_URI_SAFE_ATTR),Re&&(be["#text"]=!0),Te&&v(be,["html","head","body"]),be.table&&(v(be,["tbody"]),delete he.tbody),l&&l(e),He=e)},_e=function(e){b(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=Y}},Ie=function(e,t){try{b(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(a.removed,{attribute:null,from:t})}t.removeAttribute(e)},Ge=function(e){var t=void 0,a=void 0;if(Ce)e=""+e;else{var l=p(e,/^[\r\n\t ]+/);a=l&&l[0]}var i=J?J.createHTML(e):e;try{t=(new W).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var n=(t=X.createHTMLDocument("")).body;n.parentNode.removeChild(n.parentNode.firstElementChild),n.outerHTML=i}return e&&a&&t.body.insertBefore(r.createTextNode(a),t.body.childNodes[0]||null),ee.call(t,Te?"html":"body")[0]},Ve=function(e){return $.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,(function(){return s.FILTER_ACCEPT}),!1)},qe=function(e){return!(e instanceof V||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof G&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},We=function(e){return"object"===(void 0===c?"undefined":N(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":N(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ze=function(e,t,l){ie[e]&&g(ie[e],(function(e){e.call(a,t,l,He)}))},Ke=function(e){var t=void 0;if(Ze("beforeSanitizeElements",e,null),qe(e))return _e(e),!0;if(p(e.nodeName,/[\u0080-\uFFFF]/))return _e(e),!0;var l=d(e.nodeName);if(Ze("uponSanitizeElement",e,{tagName:l,allowedTags:be}),("svg"===l||"math"===l)&&0!==e.querySelectorAll("p, br, form, table").length)return _e(e),!0;if(!We(e.firstElementChild)&&(!We(e.content)||!We(e.content.firstElementChild))&&k(/<[!/\w]/g,e.innerHTML)&&k(/<[!/\w]/g,e.textContent))return _e(e),!0;if(!be[l]||he[l]){if(Re&&!xe[l]&&"function"==typeof e.insertAdjacentHTML)try{var i=e.innerHTML;e.insertAdjacentHTML("AfterEnd",J?J.createHTML(i):i)}catch(e){}return _e(e),!0}return"noscript"!==l&&"noembed"!==l||!k(/<\/no(script|embed)/i,e.innerHTML)?(ve&&3===e.nodeType&&(t=e.textContent,t=f(t,re," "),t=f(t,ne," "),e.textContent!==t&&(b(a.removed,{element:e.cloneNode()}),e.textContent=t)),Ze("afterSanitizeElements",e,null),!1):(_e(e),!0)},Je=function(e,t,a){if(je&&("id"===t||"name"===t)&&(a in r||a in Ne))return!1;if(ye&&k(oe,t));else if(ke&&k(ce,t));else{if(!pe[t]||me[t])return!1;if(Ae[t]);else if(k(ue,f(a,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==h(a,"data:")||!Le[e])if(we&&!k(se,f(a,ge,"")));else if(a)return!1}return!0},Ye=function(e){var t=void 0,l=void 0,i=void 0,r=void 0;Ze("beforeSanitizeAttributes",e,null);var n=e.attributes;if(n){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(r=n.length;r--;){var c=t=n[r],s=c.name,g=c.namespaceURI;if(l=m(t.value),i=d(s),o.attrName=i,o.attrValue=l,o.keepAttr=!0,o.forceKeepAttr=void 0,Ze("uponSanitizeAttribute",e,o),l=o.attrValue,!o.forceKeepAttr&&(Ie(s,e),o.keepAttr))if(k(/\/>/i,l))Ie(s,e);else{ve&&(l=f(l,re," "),l=f(l,ne," "));var b=e.nodeName.toLowerCase();if(Je(b,i,l))try{g?e.setAttributeNS(g,s,l):e.setAttribute(s,l),u(a.removed)}catch(e){}}}Ze("afterSanitizeAttributes",e,null)}},Qe=function e(t){var a=void 0,l=Ve(t);for(Ze("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)Ze("uponSanitizeShadowNode",a,null),Ke(a)||(a.content instanceof n&&e(a.content),Ye(a));Ze("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e,l){var r=void 0,o=void 0,s=void 0,g=void 0,u=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!We(e)){if("function"!=typeof e.toString)throw y("toString is not a function");if("string"!=typeof(e=e.toString()))throw y("dirty is not a string, aborting")}if(!a.isSupported){if("object"===N(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(We(e))return t.toStaticHTML(e.outerHTML)}return e}if(Oe||Fe(l),a.removed=[],"string"==typeof e&&(Me=!1),Me);else if(e instanceof c)1===(o=(r=Ge("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Se&&!ve&&!Te&&-1===e.indexOf("<"))return J&&Ee?J.createHTML(e):e;if(!(r=Ge(e)))return Se?null:Y}r&&Ce&&_e(r.firstChild);for(var b=Ve(Me?e:r);s=b.nextNode();)3===s.nodeType&&s===g||Ke(s)||(s.content instanceof n&&Qe(s.content),Ye(s),g=s);if(g=null,Me)return e;if(Se){if(Be)for(u=te.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return De&&(u=ae.call(i,u,!0)),u}var d=Te?r.outerHTML:r.innerHTML;return ve&&(d=f(d,re," "),d=f(d,ne," ")),J&&Ee?J.createHTML(d):d},a.setConfig=function(e){Fe(e),Oe=!0},a.clearConfig=function(){He=null,Oe=!1},a.isValidAttribute=function(e,t,a){He||Fe({});var l=d(e),i=d(t);return Je(l,i,a)},a.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],b(ie[e],t))},a.removeHook=function(e){ie[e]&&u(ie[e])},a.removeHooks=function(e){ie[e]&&(ie[e]=[])},a.removeAllHooks=function(){ie={}},a}()}()},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var a=[],l=!0,i=!1,r=void 0;try{for(var n,o=e[Symbol.iterator]();!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){var l=a(15);e.exports=function(e){if(Array.isArray(e))return l(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,function(e,t,a){"use strict";a.r(t);var l=a(0),i=(a(17),a(3)),r=a.n(i),n=a(2),o=a.n(n),c=a(4),s=a.n(c),g=a(5),u=a.n(g),b=a(9),d=a.n(b),p=a(6),f=a.n(p),h=a(7),m=a.n(h),k=a(1),y=a.n(k),w=a(8),v=a.n(w),T=wp.element.createElement;function O(e){return"tabs-desktop"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},T("path",{d:"M18.95 4H4.55C3.55589 4 2.75 4.76751 2.75 5.71429V14.2857C2.75 15.2325 3.55589 16 4.55 16H18.95C19.9441 16 20.75 15.2325 20.75 14.2857V5.71429C20.75 4.76751 19.9441 4 18.95 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),T("path",{d:"M1.75 18C1.19772 18 0.75 18.4477 0.75 19C0.75 19.5523 1.19772 20 1.75 20H21.75C22.3023 20 22.75 19.5523 22.75 19C22.75 18.4477 22.3023 18 21.75 18H1.75ZM9 18.8C8.86193 18.8 8.75 18.9119 8.75 19.05C8.75 19.1881 8.86193 19.3 9 19.3H14.5C14.6381 19.3 14.75 19.1881 14.75 19.05C14.75 18.9119 14.6381 18.8 14.5 18.8H9Z",stroke:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):"tabs-tablet"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"M16.6429 4H7.35714C6.33147 4 5.5 4.71634 5.5 5.6V18.4C5.5 19.2837 6.33147 20 7.35714 20H16.6429C17.6685 20 18.5 19.2837 18.5 18.4V5.6C18.5 4.71634 17.6685 4 16.6429 4Z"}),T("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"M15.5714 4H8.42857C7.63959 4 7 4.71634 7 5.6V18.4C7 19.2837 7.63959 20 8.42857 20H15.5714C16.3604 20 17 19.2837 17 18.4V5.6C17 4.71634 16.3604 4 15.5714 4Z"}),T("path",{d:"M12 17.5H12.01"})):"sync"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"m7.34133533 6.23855964v-1.98499625c-2.17404351.03150788-4.03300825 1.38634659-4.85221305 3.27681921-.31507877.72468117-.44111028 1.51237809-.4096024 2.33158289.06301575 1.13428361.47261815 2.20555141 1.16579145 3.05626411.37809452.4411102.28357089 1.1027757-.18904726 1.4493623-.44111028.3150788-1.07126782.2205551-1.41785447-.1890473-.85071268-1.0397599-1.38634658-2.3315829-1.54388597-3.7179294-.12603151-1.00825211-.03150788-2.01650417.25206302-2.9302326.88222055-3.02475619 3.6864216-5.26181546 6.99474868-5.29332334v-1.98499624c0-.09452363.12603151-.15753939.22055514-.09452363l4.09602403 2.99324831c.0630157.06301575.0630157.15753938 0 .18904726l-4.09602403 2.99324831c-.09452363.06301575-.22055514 0-.22055514-.09452363zm.22055514 13.17029256c.09452363.0630158.22055514 0 .22055514-.0945236v-1.9849963c3.30832709-.0315078 6.11252809-2.2685671 6.99474869-5.2933233.252063-.9137284.3780945-1.8904726.252063-2.93023256-.1575394-1.38634658-.7246812-2.67816954-1.543886-3.71792948-.3465866-.44111028-.9767441-.53563391-1.4178544-.18904726-.4726182.34658665-.5671418 1.00825206-.1890473 1.44936234.6931733.85071268 1.1027757 1.89047262 1.1657915 3.05626407.0315078.81920479-.1260315 1.63840959-.4096024 2.33158289-.787697 1.8904726-2.6466617 3.2453113-4.85221309 3.2768192v-1.9849962c0-.0945237-.12603151-.1575394-.22055514-.0945237l-4.096024 2.9932483c-.06301576.0630158-.06301576.1575394 0 .1890473z",transform:"translate(4 2)"})):"headline"===e?T("svg",{width:24,height:24,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4",fill:"#1e72bd"})):"grid"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M20 .6c0-.3-.2-.6-.5-.6H.5C.2 0 0 .3 0 .6v4.6c0 .3.2.6.5.6h19c.3 0 .5-.3.5-.6V.6zM6.7 7.7c0-.3-.2-.6-.5-.6H.5c-.3 0-.5.3-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.3.5-.6l.1-4.6zM19.9 7.7c0-.3-.2-.6-.6-.6H8.6c-.4 0-.6.3-.6.6v4.5c0 .3.2.6.6.6h10.8c.3 0 .6-.3.6-.6l-.1-4.5z",fill:"#1d72ba"}),T("path",{d:"M20 14.8c0-.3-.2-.6-.5-.6h-5.6c-.3 0-.5.2-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.2.5-.6v-4.6zM12 14.8c0-.3-.2-.5-.5-.5H.5c-.3 0-.5.2-.5.5v4.6c0 .4.2.6.5.6h11c.3 0 .5-.2.5-.5v-4.7z",fill:"#1d72ba"})):"container"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M2.8 3.4c0-.4.3-.7.7-.7h1.2V0H3.4C1.5 0 0 1.5 0 3.4v1.2h2.8V3.4zM0 7.4h2.8v5.3H0zM17.2 7.4H20v5.3h-2.8zM17.2 16.6c0 .4-.3.7-.7.7h-1.2V20h1.2c1.9 0 3.4-1.5 3.4-3.4v-1.2h-2.8v1.2h.1zM7.4 0h5.3v2.8H7.4zM3.4 17.2c-.4 0-.7-.3-.7-.7v-1.2H0v1.2c0 2 1.5 3.5 3.4 3.5h1.2v-2.8H3.4zM7.4 17.2h5.3V20H7.4zM16.6 2.8c.4 0 .7.3.7.7v1.2H20V3.4C20 1.5 18.5 0 16.6 0h-1.2v2.8h1.2z",fill:"#1e72bd"})):"button"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M19.2 0H.8C.4 0 0 .4 0 .8v6.4c0 .4.4.8.8.8h18.4c.4 0 .8-.4.8-.8V.8c0-.4-.4-.8-.8-.8zM18.4 12H1.6c-.9 0-1.6.7-1.6 1.6v4.8c0 .9.7 1.6 1.6 1.6h16.8c.9 0 1.6-.7 1.6-1.6v-4.8c0-.9-.7-1.6-1.6-1.6zm.4 6.4c0 .2-.2.4-.4.4H1.6c-.2 0-.4-.2-.4-.4v-4.8c0-.2.2-.4.4-.4h16.8c.2 0 .4.2.4.4v4.8z",fill:"#1e72bd"})):"paragraph"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20"},T("path",{d:"M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71A.984.984 0 0 0 15 2z"})):"spacing"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),T("path",{d:"M40.452,77.705c7.802,1.393 23.794,1.393 31.596,0l13.635,13.635c-12.215,3.213 -46.652,3.213 -58.866,0l13.635,-13.635Zm50.888,-50.888c3.213,12.215 3.213,46.653 0,58.866l-13.635,-13.635c1.393,-7.801 1.393,-23.794 0,-31.596l13.635,-13.635Zm-70.18,0l13.635,13.635c-1.393,7.802 -1.393,23.794 0,31.596l-13.635,13.635c-3.213,-12.213 -3.213,-46.651 0,-58.866Zm5.657,-5.657c12.214,-3.213 46.652,-3.213 58.866,0l-13.635,13.635c-7.801,-1.393 -23.795,-1.393 -31.596,0l-13.635,-13.635Z"})):"advanced"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,37.215c6.632,2.124 6.632,23.512 0,25.636c-6.632,2.124 -73.42,2.124 -80.052,0c-6.632,-2.124 -6.632,-23.512 0,-25.636c6.632,-2.124 73.42,-2.124 80.052,0Z"}),T("path",{d:"M48.61,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"}),T("path",{d:"M90.955,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"})):"backgrounds"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M1.491,87.777l37.79,-37.79l31.352,31.352c2.412,2.171 5.656,0 5.656,0l17.248,-17.247l13.186,13.186l4.796,4.797c-0.971,12.199 -2.726,21.685 -5.249,24.208c-8.29,8.289 -91.776,8.289 -100.066,0c-2.113,-2.113 -3.687,-9.113 -4.713,-18.506Z"}),T("path",{d:"M0.631,77.323c-1.742,-27.728 0.125,-65.658 5.573,-71.106c8.29,-8.289 91.776,-8.289 100.066,0c5.07,5.07 7.039,38.265 5.89,65.185l-15.795,-15.795c-2.412,-2.172 -5.657,0 -5.657,0l-17.247,17.246l-31.351,-31.351c-0.731,-0.658 -1.036,-1 -2.619,-1.166c-0.263,0 -0.477,-0.075 -1.245,0.131c-0.912,0.244 -1.793,1.035 -1.793,1.035l-35.822,35.821Zm76.434,-59.584c7.115,0 12.891,5.776 12.891,12.89c0,7.114 -5.776,12.89 -12.891,12.89c-7.114,0 -12.89,-5.776 -12.89,-12.89c0,-7.114 5.776,-12.89 12.89,-12.89Z"})):"colors"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradients"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M112.426,48.746c0.503,25.204 -1.545,52.939 -6.143,57.537c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.289,-8.288 91.748,-8.289 100.061,-0.004c0,0 0.005,0.004 0.005,0.004c3.691,3.692 5.739,22.295 6.143,42.529Zm-16.154,-32.526c-6.656,-6.628 -73.418,-6.627 -80.048,0.004c-6.631,6.63 -6.632,73.392 -0.004,80.048l80.052,-80.052Z"})):"icons"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),T("path",{d:"M89.605,22.895c5.527,5.526 5.527,61.184 0,66.71c-5.526,5.527 -61.184,5.527 -66.71,0c-5.527,-5.526 -5.527,-61.184 0,-66.71c5.526,-5.527 61.184,-5.527 66.71,0Zm-21.066,62.31l0,-2.731c-0.648,-0.074 -1.272,-0.199 -1.87,-0.374c-0.599,-0.174 -1.148,-0.374 -1.646,-0.598c-0.699,-0.299 -1.235,-0.755 -1.609,-1.366c-0.374,-0.611 -0.561,-1.353 -0.561,-2.226l0,-29.703l-0.561,-0.561l-18.331,0.972l0,2.731c0.748,0.075 1.577,0.25 2.488,0.524c0.91,0.274 1.589,0.561 2.038,0.86c0.599,0.399 1.098,0.929 1.497,1.59c0.399,0.661 0.598,1.428 0.598,2.301l0,21.773c0,0.923 -0.162,1.665 -0.486,2.226c-0.324,0.561 -0.885,0.991 -1.683,1.29c-0.449,0.175 -0.986,0.3 -1.609,0.374c-0.624,0.075 -1.26,0.138 -1.908,0.187l0,2.731l23.643,0Zm-12.978,-59.459c4.76,0 8.625,3.864 8.625,8.625c0,4.76 -3.865,8.625 -8.625,8.625c-4.76,0 -8.625,-3.865 -8.625,-8.625c0,-4.761 3.865,-8.625 8.625,-8.625Z"})):"typography"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-8.783,78.583l0,-2.817c-0.661,-0.026 -1.481,-0.165 -2.46,-0.417c-0.979,-0.251 -1.773,-0.562 -2.381,-0.932c-0.9,-0.609 -1.601,-1.23 -2.103,-1.865c-0.503,-0.635 -0.953,-1.468 -1.349,-2.5l-18.769,-48.569l-3.175,0c-2.672,6.878 -5.714,14.721 -9.126,23.53c-3.266,8.43 -6.265,16.06 -8.998,22.891l-11.672,-28.684l-2.304,0c-1.939,4.742 -4.148,10.149 -6.625,16.222c-2.477,6.072 -4.743,11.543 -6.798,16.412c-0.403,0.949 -0.816,1.692 -1.238,2.23c-0.423,0.538 -1.018,1.053 -1.786,1.545c-0.48,0.292 -1.095,0.524 -1.844,0.698c-0.749,0.173 -1.373,0.278 -1.872,0.314l0,1.942l15.382,0l0,-1.942c-1.518,-0.073 -2.881,-0.31 -4.091,-0.711c-1.209,-0.401 -1.814,-0.966 -1.814,-1.696c0,-0.31 0.048,-0.711 0.144,-1.204c0.096,-0.492 0.268,-1.13 0.518,-1.914c0.269,-0.803 0.571,-1.678 0.907,-2.626c0.336,-0.948 0.773,-2.061 1.311,-3.338l14.316,0l3.399,8.699c0.012,0.03 0.024,0.06 0.036,0.092c-0.161,0.119 -0.329,0.237 -0.503,0.355c-0.661,0.423 -1.508,0.76 -2.539,1.012c-1.032,0.251 -1.892,0.403 -2.58,0.456l0,2.817l21.19,0l0,-2.817c-2.09,-0.106 -3.968,-0.45 -5.635,-1.032c-1.666,-0.582 -2.499,-1.402 -2.499,-2.46c0,-0.45 0.066,-1.032 0.198,-1.746c0.132,-0.714 0.37,-1.64 0.714,-2.777c0.371,-1.164 0.787,-2.434 1.25,-3.81c0.463,-1.375 1.065,-2.989 1.806,-4.841l19.721,0l4.682,12.619c0.106,0.264 0.186,0.568 0.238,0.912c0.053,0.344 0.08,0.635 0.08,0.873c0,0.582 -0.681,1.072 -2.044,1.468c-1.362,0.397 -3.075,0.662 -5.138,0.794l0,2.817l23.451,0Zm-56.864,-15.865l-6.193,-15.045l-6.078,15.045l12.271,0Zm34.167,-7.15l-8.532,-21.824l-8.373,21.824l16.905,0Z"})):"addContainer"===e?T("svg",{width:20,height:20,viewBox:"0 0 64 64",fillRule:"evenodd"},T("path",{d:"M41.454,57.126l0,6.409c-6.088,0.286 -12.82,0.286 -18.908,0l0,-6.409c5.957,0.366 12.951,0.366 18.908,0Zm-33.93,-8.899c0.458,3.226 1.086,5.568 1.883,6.366c0.798,0.797 3.14,1.425 6.366,1.883l0,6.592c-6.084,-0.578 -10.706,-1.519 -12.015,-2.826c-1.307,-1.309 -2.248,-5.931 -2.826,-12.015l6.592,0Zm55.544,0c-0.578,6.084 -1.519,10.706 -2.826,12.015c-1.309,1.307 -5.931,2.248 -12.015,2.826l0,-6.592c3.226,-0.458 5.568,-1.086 6.366,-1.883c0.797,-0.798 1.425,-3.14 1.883,-6.366l6.592,0Zm0.467,-25.681c0.286,6.088 0.286,12.82 0,18.908l-6.409,0c0.366,-5.957 0.366,-12.951 0,-18.908l6.409,0Zm-56.661,0c-0.366,5.957 -0.366,12.951 0,18.908l-6.409,0c-0.286,-6.088 -0.286,-12.82 0,-18.908l6.409,0Zm41.353,-21.614c6.084,0.578 10.706,1.519 12.015,2.826c1.307,1.309 2.248,5.931 2.826,12.015l-6.592,0c-0.458,-3.226 -1.086,-5.568 -1.883,-6.366c-0.798,-0.797 -3.14,-1.425 -6.366,-1.883l0,-6.592Zm-32.454,0l0,6.592c-3.226,0.458 -5.568,1.086 -6.366,1.883c-0.797,0.798 -1.425,3.14 -1.883,6.366l-6.592,0c0.578,-6.084 1.519,-10.706 2.826,-12.015c1.309,-1.307 5.931,-2.248 12.015,-2.826Zm6.773,-0.467c6.088,-0.286 12.82,-0.286 18.908,0l0,6.409c-5.957,-0.366 -12.951,-0.366 -18.908,0l0,-6.409Z"}),T("path",{d:"M18.03,29.037l11.007,0l0,-11.007l6.773,0l0,11.007l11.007,0l0,6.773l-11.007,0l0,11.007l-6.773,0l0,-11.007l-11.007,0l0,-6.773Z"})):"gradient"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},T("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"documentation"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.755 6.245c8.327 8.326 8.327 92.184 0 100.51-8.326 8.327-92.184 8.327-100.51 0-8.327-8.326-8.327-92.184 0-100.51 8.326-8.327 92.184-8.327 100.51 0zm-92.661 93.896C9.279 84 9.781 23.714 15.834 17.661c2.491-2.491 19.588-4.132 26.354-4.712 4.748-.408 10.115.671 14.243 1.23 4.128-.559 9.495-1.638 14.243-1.23 6.766.58 23.863 2.221 26.354 4.712 6.053 6.053 6.791 66.339 1.976 82.48-4.729-1.977-19.708-3.436-26.784-3.853-5.234-.308-11.129.739-15.671 1.354-4.543-.615-10.437-1.662-15.672-1.354-7.075.417-22.054 1.876-26.783 3.853z"}),T("path",{d:"M50.188 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM50.277 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 73.799c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0z"}),T("path",{d:"M89.909 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM89.998 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM89.998 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0z"})):"layout"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.719 6.238c8.362 8.362 8.362 92.208 0 100.57-8.362 8.287-92.208 8.287-100.495 0-8.362-8.362-8.362-92.208 0-100.57 8.287-8.286 92.133-8.286 100.495 0zm-9.417 9.417c6.78 6.78 6.78 74.957 0 81.737-6.78 6.78-74.956 6.78-81.661 0-6.78-6.78-6.78-74.957 0-81.737 6.705-6.78 74.881-6.78 81.661 0z"}),T("path",{d:"M93.988 48.877c.602 17.477-.754 37.893-3.993 41.132-3.164 3.164-22.75 4.52-40.002 4.068v-45.2h43.995zm-75.108 0h23.58v44.899c-9.718-.603-17.553-1.808-19.512-3.767-3.24-3.24-4.595-23.655-4.068-41.132zm.377-7.533c.678-9.19 1.883-16.498 3.691-18.306 5.575-5.575 61.472-5.575 67.047 0 1.808 1.808 3.013 9.115 3.691 18.306h-74.43z"})):"shapes"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.756,6.244C115.081,14.571 115.081,98.429 106.756,106.756C98.429,115.081 14.571,115.081 6.244,106.756C-2.081,98.429 -2.081,14.571 6.244,6.244C14.571,-2.081 98.429,-2.081 106.756,6.244ZM67.875,88.052C67.875,86.977 67.003,86.105 65.928,86.105L47.072,86.105C45.997,86.105 45.125,86.977 45.125,88.052L45.125,91.948C45.125,93.023 45.997,93.896 47.072,93.896L65.928,93.896C67.003,93.896 67.875,93.023 67.875,91.948L67.875,88.052ZM57.899,31.409L59.305,31.409C60.853,31.409 62.11,30.152 62.11,28.604L62.11,28.089L73.263,57.543C73.757,58.333 73.731,59.161 73.731,59.403C73.729,62.659 65.231,69.414 65.375,83.611L47.625,83.611C47.769,69.414 39.271,62.659 39.269,59.403C39.269,59.161 39.243,58.333 39.737,57.543L50.89,28.089L50.89,28.604C50.89,30.152 52.147,31.409 53.695,31.409L55.101,31.409C55.111,35.738 55.142,50.367 55.098,54.109C55.093,54.494 54.907,54.988 54.68,55.45C52.915,56.169 51.669,57.903 51.669,59.925C51.669,62.592 53.834,64.756 56.5,64.756C59.166,64.756 61.331,62.592 61.331,59.925C61.331,57.903 60.085,56.169 58.32,55.45C58.093,54.988 57.907,54.494 57.902,54.109C57.858,50.367 57.889,35.738 57.899,31.409ZM52.227,19.451L52.227,18.881C52.227,17.702 53.185,16.745 54.364,16.745L58.636,16.745C59.815,16.745 60.773,17.702 60.773,18.881L60.773,19.451L88.831,19.451C89.457,17.867 91.002,16.745 92.807,16.745C95.165,16.745 97.08,18.66 97.08,21.018C97.08,23.376 95.165,25.29 92.807,25.29C91.03,25.29 89.505,24.203 88.861,22.658L71.798,22.658C83.83,28.003 92.531,39.501 93.898,53.148L94.93,53.148C96.109,53.148 97.067,54.105 97.067,55.284L97.067,59.557C97.067,60.736 96.109,61.693 94.93,61.693L90.657,61.693C89.478,61.693 88.521,60.736 88.521,59.557L88.521,55.284C88.521,54.105 89.478,53.148 90.657,53.148L90.922,53.148C89.19,37.24 76.627,24.564 60.773,22.659L60.773,23.154C60.773,24.333 59.815,25.29 58.636,25.29L54.364,25.29C53.185,25.29 52.227,24.333 52.227,23.154L52.227,22.688C36.484,24.689 24.036,37.318 22.312,53.148L22.329,53.148C23.508,53.148 24.466,54.105 24.466,55.284L24.466,59.557C24.466,60.736 23.508,61.693 22.329,61.693L18.056,61.693C16.877,61.693 15.92,60.736 15.92,59.557L15.92,55.284C15.92,54.105 16.877,53.148 18.056,53.148L19.336,53.148C20.703,39.501 29.405,28.003 41.437,22.658L24.139,22.658C23.495,24.203 21.97,25.29 20.193,25.29C17.835,25.29 15.92,23.376 15.92,21.018C15.92,18.66 17.835,16.745 20.193,16.745C21.998,16.745 23.543,17.867 24.169,19.451L52.227,19.451Z"})):void 0}a(18);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var S=wp.element,B=S.Component,D=S.Fragment,E=wp.i18n.__,j=wp.components,R=j.Tooltip,M=j.Button,z=wp.hooks.applyFilters,x=function(e){f()(a,e);var t=C(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.onClick,a=e.selectedDevice;return Object(l.createElement)(D,null,Object(l.createElement)("div",{className:"gb-responsive-tabs"},Object(l.createElement)(R,{text:E("Show options for all devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Desktop"===a,onClick:function(){t("Desktop")}},E("Desktop","generateblocks"))),Object(l.createElement)(R,{text:E("Show options for tablet devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Tablet"===a,onClick:function(){t("Tablet")}},E("Tablet","generateblocks"))),Object(l.createElement)(R,{text:E("Show options for mobile devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Mobile"===a,onClick:function(){t("Mobile")}},E("Mobile","generateblocks")))),z("generateblocks.editor.controls","","afterResponsiveTabs",this.props,this.state))}}]),a}(B);a(19);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var P=wp.element.Component,A=wp.i18n,U=A.__,H=A.sprintf,N=A._x,F=wp.components,_=F.ButtonGroup,I=F.Button,G=F.Tooltip,V=function(e){f()(a,e);var t=L(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.label,a=e.value,i=e.onClick,r=e.units;return Object(l.createElement)("div",{className:"components-gblocks-units-control-header__units"},Object(l.createElement)("div",{className:"components-gblocks-units-control-label__units"},t),Object(l.createElement)("div",{className:"components-gblocks-control__units"},Object(l.createElement)(_,{className:"components-gblocks-control-buttons__units","aria-label":U("Select Units","generateblocks")},r.map((function(e){var t=e;return"px"===e&&(t=N("Pixel","A size unit for CSS markup","generateblocks")),"em"===e&&(t=N("Em","A size unit for CSS markup","generateblocks")),"%"===e&&(t=N("Percentage","A size unit for CSS markup","generateblocks")),"deg"===e&&(t=N("Degree","A size unit for CSS markup","generateblocks")),Object(l.createElement)(G /* translators: Unit type (px, em, %) */,{text:H(U("%s Units","generateblocks"),t),key:e},Object(l.createElement)(I,{key:e,className:"components-gblocks-control-button__units--"+e,isSmall:!0,isPrimary:a===e,"aria-pressed":a===e -/* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":H(U("%s Units","generateblocks"),t),onClick:function(){return i(e)}},e))})))))}}]),a}(P),q=a(12),W=a.n(q);function Z(e){for(var t="",a=0,l=Object.entries(e);a0&&(t+=o)}}return t}function K(e,t){return!(!e&&0!==e)&&e+t}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Y=wp.element.Component,Q=wp.hooks.applyFilters,X=function(e){f()(a,e);var t=J(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.horizontalGap,i=e.verticalGap,r=e.verticalAlignment,n=e.horizontalAlignment,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":r,"justify-content":n,"margin-left":"-"+a/2+"px","margin-right":"-"+a/2+"px"}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a/2+"px","padding-right":a/2+"px","margin-bottom":K(i,"px")}],o=Q("generateblocks.editor.mainCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(Y);function $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ee=wp.element.Component,te=wp.hooks.applyFilters,ae=function(e){f()(a,e);var t=$(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=te("generateblocks.editor.desktopCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ee);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ie=wp.element.Component,re=wp.hooks.applyFilters,ne=function(e){f()(a,e);var t=le(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.horizontalGapTablet,i=e.verticalGapTablet,r=e.verticalAlignmentTablet,n=e.horizontalAlignmentTablet,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=re("generateblocks.editor.tabletCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(ie);function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ce=wp.element.Component,se=wp.hooks.applyFilters,ge=function(e){f()(a,e);var t=oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=se("generateblocks.editor.tabletOnlyCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ce);function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var be=wp.element.Component,de=wp.hooks.applyFilters,pe=function(e){f()(a,e);var t=ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.horizontalGapMobile,i=e.verticalGapMobile,r=e.verticalAlignmentMobile,n=e.horizontalAlignmentMobile,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=de("generateblocks.editor.mobileCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(be),fe=a(11),he=a.n(fe);function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ke=wp.hooks.applyFilters,ye=function(e){f()(a,e);var t=me(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.children;return ke(t,a||"",this.props)}}]),a}(wp.element.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ve=wp.components.PanelBody,Te=wp.element.Component,Oe=wp.hooks.applyFilters,Ce=function(e){f()(a,e);var t=we(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=void 0!==t&&t,i=e.initialOpen,r=void 0!==i&&i,n=e.icon,o=e.className,c=e.id,s=e.state,g=e.showPanel,u=void 0===g||g,b=e.children;if(!Oe("generateblocks.editor.showPanel",u,c,this.props))return null;var d=!0;return""===b&&(d=!1),"object"===he()(b)&&(d=Object.values(b).some((function(e){return null!==e&&!1!==e&&""!==e}))),d?Object(l.createElement)(ye,{name:"generateblocks.panel."+c,props:this.props,state:s},a?Object(l.createElement)(ve,{title:a,initialOpen:r,icon:n,className:o},b):Object(l.createElement)(ve,null,b)):null}}]),a}(Te);function Se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Be=wp.i18n.__,De=wp.components,Ee=De.TextControl,je=De.SelectControl,Re=De.Placeholder,Me=De.Button,ze=De.ToolbarGroup,xe=De.ToolbarButton,Le=wp.element,Pe=Le.Fragment,Ae=Le.Component,Ue=wp.blockEditor,He=Ue.InspectorControls,Ne=Ue.InnerBlocks,Fe=Ue.BlockControls,_e=Ue.InspectorAdvancedControls,Ie=wp.blocks.createBlock,Ge=wp.hooks.applyFilters,Ve=wp.data,qe=Ve.withSelect,We=Ve.withDispatch,Ze=wp.compose.compose,Ke=/[\s#]/g,Je=[],Ye=function(e){f()(a,e);var t=Se(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedLayout:!1,selectedDevice:"Desktop"},e.onLayoutSelect=e.onLayoutSelect.bind(d()(e)),e.getColumnsFromLayout=e.getColumnsFromLayout.bind(d()(e)),e.getLayoutsSelector=e.getLayoutsSelector.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Je.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Je.push(e)):Je.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Je.push(e)),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId;t.columns;if(this.state.selectedLayout){var i=this.getColumnsFromLayout(this.state.selectedLayout);i.forEach((function(e){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",e),void 0,l,!1)})),a({columns:i.length}),this.setState({selectedLayout:!1})}else{var r=wp.data.select("core/block-editor").getBlocksByClientId(l)[0];if(r)a({columns:r.innerBlocks.length})}}},{key:"getColumnsFromLayout",value:function(e){var t=this,a=[],l=e.split("-"),i=0;return l.forEach((function(){var e={isGrid:!0,gridId:t.props.attributes.uniqueId,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"};e.width=Number(l[i]),i++,a.push(e)})),a}},{key:"getLayoutsSelector",value:function(){var e=this;return Object(l.createElement)(Re,{label:Be("Grid","generateblocks"),instructions:Be("Select one layout to get started.","generateblocks"),className:"gb-select-layout"},Object(l.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16.66-16.66-16.66-16.66-16.66-16.66"].map((function(t){var a=e.getColumnsFromLayout(t);return Object(l.createElement)("button",{key:"layout-".concat(t),className:"gb-grid-wrapper-layout-preview-btn",onClick:function(){return e.onLayoutSelect(t)}},a.map((function(e,a){return Object(l.createElement)("div",{key:"layout-".concat(t,"-col-").concat(a),className:v()("gb-col","gb-col-".concat(e.width))})})))}))))}},{key:"onLayoutSelect",value:function(e){this.setState({selectedLayout:e})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.columns,d=i.horizontalGap,p=i.verticalGap,f=i.verticalAlignment,h=i.horizontalGapTablet,m=i.verticalGapTablet,k=i.verticalAlignmentTablet,y=i.horizontalGapMobile,w=i.verticalGapMobile,T=i.verticalAlignmentMobile,C=i.horizontalAlignment,S=i.horizontalAlignmentTablet,B=i.horizontalAlignmentMobile,D=d||0===d?d:"",E=p||0===p?p:"",j=d||0===d?d:"",R=p||0===p?p:"";h&&(j=h),m&&(R=m);var M={className:v()((e={"gb-grid-wrapper":!0},o()(e,"gb-grid-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return M=Ge("generateblocks.frontend.htmlAttributes",M,"generateblocks/grid",i),Object(l.createElement)(Pe,null,Object(l.createElement)(Fe,null,Object(l.createElement)(ze,null,Object(l.createElement)(xe,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:O("addContainer"),label:Be("Add Grid Item","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",{isGrid:!0,gridId:s,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"}),void 0,c)},showTooltip:!0}))),Object(l.createElement)(He,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{id:"gridLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:d||0===d?d:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGap:e})},onBlur:function(){!d&&generateBlocksDefaults.gridContainer.horizontalGap?n({horizontalGap:0}):n({horizontalGap:parseFloat(d)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGap:generateBlocksDefaults.gridContainer.horizontalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:p||0===p?p:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGap:e})},onBlur:function(){!p&&generateBlocksDefaults.gridContainer.verticalGap?n({verticalGap:0}):n({verticalGap:parseFloat(p)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGap:generateBlocksDefaults.gridContainer.verticalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),value:f,help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:C,options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignment:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:h||0===h?h:"",min:"0",placeholder:D,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapTablet:e})},onBlur:function(){!h&&generateBlocksDefaults.gridContainer.horizontalGapTablet?n({horizontalGapTablet:0}):n({horizontalGapTablet:parseFloat(h)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapTablet:generateBlocksDefaults.gridContainer.horizontalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:m||0===m?m:"",min:"0",placeholder:E,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapTablet:e})},onBlur:function(){!m&&generateBlocksDefaults.gridContainer.verticalGapTablet?n({verticalGapTablet:0}):n({verticalGapTablet:parseFloat(m)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapTablet:generateBlocksDefaults.gridContainer.verticalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:k,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:S,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:y||0===y?y:"",min:"0",placeholder:j,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapMobile:e})},onBlur:function(){!y&&generateBlocksDefaults.gridContainer.horizontalGapMobile?n({horizontalGapMobile:0}):n({horizontalGapMobile:parseFloat(y)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapMobile:generateBlocksDefaults.gridContainer.horizontalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:w||0===w?w:"",min:"0",placeholder:R,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapMobile:e})},onBlur:function(){!w&&generateBlocksDefaults.gridContainer.verticalGapMobile?n({verticalGapMobile:0}):n({verticalGapMobile:parseFloat(w)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapMobile:generateBlocksDefaults.gridContainer.verticalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:T,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:B,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentMobile:e})}})),Ge("generateblocks.editor.controls","","gridLayout",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Be("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"gridDocumentation",state:this.state}),Object(l.createElement)("p",null,Be("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/grid/",target:"_blank",rel:"noreferrer noopener"},Be("Visit our documentation","generateblocks")),Ge("generateblocks.editor.controls","","gridDocumentation",this.props,this.state))),Object(l.createElement)(_e,null,Object(l.createElement)(Ee,{label:Be("HTML Anchor"),help:Be("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(Ke,"-"),n({anchor:e})}})),Object(l.createElement)(X,this.props),this.props.deviceType&&Object(l.createElement)(Pe,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(ae,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(ne,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ge,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(pe,this.props)),Object(l.createElement)("div",M,b>0||this.state.selectedLayout?Object(l.createElement)(Pe,null,Object(l.createElement)(Ne,{allowedBlocks:["generateblocks/container"],renderAppender:!1})):this.getLayoutsSelector()))}}]),a}(Ae),Qe=Ze([We((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),qe((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Ye),Xe={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function $e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function et(e){for(var t=1;t #block-"+a]=[{height:"100%"}]),le&&"pseudo-element"===_.selector&&(oe[".gb-container-"+i+":before"]=[{content:'""',"background-image":ie,"background-repeat":_.repeat,"background-position":_.position,"background-size":_.size,"background-attachment":_.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}],void 0!==_.opacity&&1!==_.opacity&&oe[".gb-container-"+i+":before"].push({opacity:_.opacity})),P&&"pseudo-element"===A&&(oe[".gb-container-"+i+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+i+" a, .gb-container-"+i+" a:visited"]=[{color:H}],oe[".gb-container-"+i+" a:hover"]=[{color:N}],oe[".gb-container-"+i+" > .gb-inside-container"]=[{padding:Ta(b,d,p,f,h),width:!(!g||r)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+i+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==c||r||oe[".gb-container-"+i+" > .gb-inside-container"].push({"max-width":K(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+a]=[{width:K(n,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+a]=[{"max-width":"contained"===o&&!r&&K(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+a+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+a+' > .block-editor-block-list__block-edit > [data-block="'+a+'"]']=[{height:"100%"}],oe["#block-"+a+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+a+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+i].push({position:"relative"}),oe[".gb-container-"+i+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var a=[],l=t+1;"top"===ee[t].location&&a.push("scaleY(-1)"),ee[t].flipHorizontally&&(a.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+l+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l]=[{color:Ct(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l].push({top:"-1px"}),a.length&&oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l].push({transform:a.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l+" svg"]=[{height:K(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Da("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,Z(oe))}}]),a}(Ba);function ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ra=wp.element.Component,Ma=wp.hooks.applyFilters,za=function(e){f()(a,e);var t=ja(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.removeVerticalGap,r=[];return r[".block-editor-block-list__layout > #block-"+a]=[{"margin-bottom":!!i&&"0px !important"}],r=Ma("generateblocks.editor.desktopCSS",r,this.props,"container"),Object(l.createElement)("style",null,Z(r))}}]),a}(Ra);function xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var La=wp.element.Component,Pa=wp.hooks.applyFilters,Aa=function(e){f()(a,e);var t=xa(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.uniqueId,r=t.isGrid,n=t.widthTablet,o=t.minHeightTablet,c=t.minHeightUnitTablet,s=t.paddingTopTablet,g=t.paddingRightTablet,u=t.paddingBottomTablet,b=t.paddingLeftTablet,d=t.paddingUnit,p=t.marginTopTablet,f=t.marginRightTablet,h=t.marginBottomTablet,m=t.marginLeftTablet,k=t.marginUnit,y=t.borderSizeTopTablet,w=t.borderSizeRightTablet,v=t.borderSizeBottomTablet,T=t.borderSizeLeftTablet,O=t.borderRadiusTopRightTablet,C=t.borderRadiusBottomRightTablet,S=t.borderRadiusBottomLeftTablet,B=t.borderRadiusTopLeftTablet,D=t.borderRadiusUnit,E=t.verticalAlignmentTablet,j=t.alignmentTablet,R=t.fontSizeTablet,M=t.fontSizeUnit,z=t.shapeDividers,x=[];return x[".gb-container-"+i]=[{"border-top-left-radius":K(B,D),"border-top-right-radius":K(O,D),"border-bottom-right-radius":K(C,D),"border-bottom-left-radius":K(S,D),"margin-top":K(p,k),"margin-right":K(f,k),"margin-bottom":K(h,k),"margin-left":K(m,k),"text-align":j,"font-size":K(R,M),"min-height":K(o,c)}],(y||w||v||T)&&x[".gb-container-"+i].push({"border-top-width":K(y,"px"),"border-right-width":K(w,"px"),"border-bottom-width":K(v,"px"),"border-left-width":K(T,"px"),"border-style":"solid"}),o&&!r&&x[".gb-container-"+i].push({display:"flex","flex-direction":"row","align-items":"inherit"!==E?E:null}),r&&"inherit"!==E&&x[".gb-container-"+i].push({display:"flex","flex-direction":"column",height:"100%","justify-content":E}),x[".gb-container-"+i+" > .gb-inside-container"]=[{"padding-top":K(s,d),"padding-right":K(g,d),"padding-bottom":K(u,d),"padding-left":K(b,d),width:!(!o||r)&&"100%"}],x[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+a]=[{width:K(n,"%")}],z.length&&z.forEach((function(e,t){x[".gb-container-"+i+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:K(z[t].heightTablet,"px"),width:K(z[t].widthTablet,"%")}]})),x=Pa("generateblocks.editor.tabletCSS",x,this.props,"container"),Object(l.createElement)("style",null,Z(x))}}]),a}(La);function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ha=wp.element.Component,Na=wp.hooks.applyFilters,Fa=function(e){f()(a,e);var t=Ua(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=[];return t.removeVerticalGapTablet&&(i[".block-editor-block-list__layout > #block-"+a]=[{"margin-bottom":"0px !important"}]),i=Na("generateblocks.editor.tabletOnlyCSS",i,this.props,"container"),Object(l.createElement)("style",null,Z(i))}}]),a}(Ha);function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ia=wp.element.Component,Ga=wp.hooks.applyFilters,Va=function(e){f()(a,e);var t=_a(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.uniqueId,r=t.isGrid,n=t.widthMobile,o=t.minHeightMobile,c=t.minHeightUnitMobile,s=t.paddingTopMobile,g=t.paddingRightMobile,u=t.paddingBottomMobile,b=t.paddingLeftMobile,d=t.paddingUnit,p=t.marginTopMobile,f=t.marginRightMobile,h=t.marginBottomMobile,m=t.marginLeftMobile,k=t.marginUnit,y=t.borderSizeTopMobile,w=t.borderSizeRightMobile,v=t.borderSizeBottomMobile,T=t.borderSizeLeftMobile,O=t.borderRadiusTopRightMobile,C=t.borderRadiusBottomRightMobile,S=t.borderRadiusBottomLeftMobile,B=t.borderRadiusTopLeftMobile,D=t.borderRadiusUnit,E=t.verticalAlignmentMobile,j=t.removeVerticalGapMobile,R=t.alignmentMobile,M=t.fontSizeMobile,z=t.fontSizeUnit,x=t.orderMobile,L=t.shapeDividers,P=t.bgImage,A=t.bgOptions,U=[];return U[".gb-container-"+i]=[{"border-top-left-radius":K(B,D),"border-top-right-radius":K(O,D),"border-bottom-right-radius":K(C,D),"border-bottom-left-radius":K(S,D),"margin-top":K(p,k),"margin-right":K(f,k),"margin-bottom":K(h,k),"margin-left":K(m,k),"text-align":R,"font-size":K(M,z),"min-height":K(o,c)}],(y||w||v||T)&&U[".gb-container-"+i].push({"border-top-width":K(y,"px"),"border-right-width":K(w,"px"),"border-bottom-width":K(v,"px"),"border-left-width":K(T,"px"),"border-style":"solid"}),"inherit"!==E&&o&&!r&&U[".gb-container-"+i].push({display:"flex","flex-direction":"row","align-items":E}),r&&"inherit"!==E&&U[".gb-container-"+i].push({display:"flex","flex-direction":"column",height:"100%","justify-content":E}),U[".gb-container-"+i+" > .gb-inside-container"]=[{"padding-top":K(s,d),"padding-right":K(g,d),"padding-bottom":K(u,d),"padding-left":K(b,d),width:!(!o||r)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+a]=[{width:K(n,"%"),order:x}],j&&(U[".block-editor-block-list__layout > #block-"+a]=[{"margin-bottom":"0px !important"}]),L.length&&L.forEach((function(e,t){U[".gb-container-"+i+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:K(L[t].heightMobile,"px"),width:K(L[t].widthMobile,"%")}]})),P&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+i].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+i+":before"]=[{"background-attachment":"initial"}])),U=Ga("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,Z(U))}}]),a}(Ia);function qa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Wa(e){for(var t=1;t0&&(t+=o)}}return t}function K(e,t){return!(!e&&0!==e)&&e+t}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Y=wp.element.Component,Q=wp.hooks.applyFilters,X=function(e){f()(a,e);var t=J(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Q("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGap,i=e.verticalGap,r=e.verticalAlignment,n=e.horizontalAlignment,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":r,"justify-content":n,"margin-left":"-"+a/2+"px","margin-right":"-"+a/2+"px"}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a/2+"px","padding-right":a/2+"px","margin-bottom":K(i,"px")}],o=Q("generateblocks.editor.mainCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(Y);function $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ee=wp.element.Component,te=wp.hooks.applyFilters,ae=function(e){f()(a,e);var t=$(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=te("generateblocks.editor.desktopCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ee);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ie=wp.element.Component,re=wp.hooks.applyFilters,ne=function(e){f()(a,e);var t=le(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=re("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapTablet,i=e.verticalGapTablet,r=e.verticalAlignmentTablet,n=e.horizontalAlignmentTablet,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=re("generateblocks.editor.tabletCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(ie);function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ce=wp.element.Component,se=wp.hooks.applyFilters,ge=function(e){f()(a,e);var t=oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=se("generateblocks.editor.tabletOnlyCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ce);function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var be=wp.element.Component,de=wp.hooks.applyFilters,pe=function(e){f()(a,e);var t=ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=de("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapMobile,i=e.verticalGapMobile,r=e.verticalAlignmentMobile,n=e.horizontalAlignmentMobile,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=de("generateblocks.editor.mobileCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(be),fe=a(11),he=a.n(fe);function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ke=wp.hooks.applyFilters,ye=function(e){f()(a,e);var t=me(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.children;return ke(t,a||"",this.props)}}]),a}(wp.element.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ve=wp.components.PanelBody,Te=wp.element.Component,Oe=wp.hooks.applyFilters,Ce=function(e){f()(a,e);var t=we(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=void 0!==t&&t,i=e.initialOpen,r=void 0!==i&&i,n=e.icon,o=e.className,c=e.id,s=e.state,g=e.showPanel,u=void 0===g||g,b=e.children;if(!Oe("generateblocks.editor.showPanel",u,c,this.props))return null;var d=!0;return""===b&&(d=!1),"object"===he()(b)&&(d=Object.values(b).some((function(e){return null!==e&&!1!==e&&""!==e}))),d?Object(l.createElement)(ye,{name:"generateblocks.panel."+c,props:this.props,state:s},a?Object(l.createElement)(ve,{title:a,initialOpen:r,icon:n,className:o},b):Object(l.createElement)(ve,null,b)):null}}]),a}(Te);function Se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Be=wp.i18n.__,De=wp.components,Ee=De.TextControl,je=De.SelectControl,Re=De.Placeholder,Me=De.Button,ze=De.ToolbarGroup,xe=De.ToolbarButton,Le=wp.element,Pe=Le.Fragment,Ae=Le.Component,Ue=wp.blockEditor,He=Ue.InspectorControls,Ne=Ue.InnerBlocks,Fe=Ue.BlockControls,_e=Ue.InspectorAdvancedControls,Ie=wp.blocks.createBlock,Ge=wp.hooks.applyFilters,Ve=wp.data,qe=Ve.withSelect,We=Ve.withDispatch,Ze=wp.compose.compose,Ke=/[\s#]/g,Je=[],Ye=function(e){f()(a,e);var t=Se(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedLayout:!1,selectedDevice:"Desktop"},e.onLayoutSelect=e.onLayoutSelect.bind(d()(e)),e.getColumnsFromLayout=e.getColumnsFromLayout.bind(d()(e)),e.getLayoutsSelector=e.getLayoutsSelector.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Je.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Je.push(e)):Je.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Je.push(e)),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId;t.columns;if(this.state.selectedLayout){var i=this.getColumnsFromLayout(this.state.selectedLayout);i.forEach((function(e){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",e),void 0,l,!1)})),a({columns:i.length}),this.setState({selectedLayout:!1})}else{var r=wp.data.select("core/block-editor").getBlocksByClientId(l)[0];if(r)a({columns:r.innerBlocks.length})}}},{key:"getColumnsFromLayout",value:function(e){var t=this,a=[],l=e.split("-"),i=0;return l.forEach((function(){var e={isGrid:!0,gridId:t.props.attributes.uniqueId,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"};e.width=Number(l[i]),i++,a.push(e)})),a}},{key:"getLayoutsSelector",value:function(){var e=this;return Object(l.createElement)(Re,{label:Be("Grid","generateblocks"),instructions:Be("Select one layout to get started.","generateblocks"),className:"gb-select-layout"},Object(l.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16.66-16.66-16.66-16.66-16.66-16.66"].map((function(t){var a=e.getColumnsFromLayout(t);return Object(l.createElement)("button",{key:"layout-".concat(t),className:"gb-grid-wrapper-layout-preview-btn",onClick:function(){return e.onLayoutSelect(t)}},a.map((function(e,a){return Object(l.createElement)("div",{key:"layout-".concat(t,"-col-").concat(a),className:v()("gb-col","gb-col-".concat(e.width))})})))}))))}},{key:"onLayoutSelect",value:function(e){this.setState({selectedLayout:e})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.columns,d=i.horizontalGap,p=i.verticalGap,f=i.verticalAlignment,h=i.horizontalGapTablet,m=i.verticalGapTablet,k=i.verticalAlignmentTablet,y=i.horizontalGapMobile,w=i.verticalGapMobile,T=i.verticalAlignmentMobile,C=i.horizontalAlignment,S=i.horizontalAlignmentTablet,B=i.horizontalAlignmentMobile,D=d||0===d?d:"",E=p||0===p?p:"",j=d||0===d?d:"",R=p||0===p?p:"";h&&(j=h),m&&(R=m);var M={className:v()((e={"gb-grid-wrapper":!0},o()(e,"gb-grid-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return M=Ge("generateblocks.frontend.htmlAttributes",M,"generateblocks/grid",i),Object(l.createElement)(Pe,null,Object(l.createElement)(Fe,null,Object(l.createElement)(ze,null,Object(l.createElement)(xe,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:O("addContainer"),label:Be("Add Grid Item","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",{isGrid:!0,gridId:s,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"}),void 0,c)},showTooltip:!0}))),Object(l.createElement)(He,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{id:"gridLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:d||0===d?d:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGap:e})},onBlur:function(){!d&&generateBlocksDefaults.gridContainer.horizontalGap?n({horizontalGap:0}):n({horizontalGap:parseFloat(d)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGap:generateBlocksDefaults.gridContainer.horizontalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:p||0===p?p:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGap:e})},onBlur:function(){!p&&generateBlocksDefaults.gridContainer.verticalGap?n({verticalGap:0}):n({verticalGap:parseFloat(p)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGap:generateBlocksDefaults.gridContainer.verticalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),value:f,help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:C,options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignment:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:h||0===h?h:"",min:"0",placeholder:D,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapTablet:e})},onBlur:function(){!h&&generateBlocksDefaults.gridContainer.horizontalGapTablet?n({horizontalGapTablet:0}):n({horizontalGapTablet:parseFloat(h)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapTablet:generateBlocksDefaults.gridContainer.horizontalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:m||0===m?m:"",min:"0",placeholder:E,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapTablet:e})},onBlur:function(){!m&&generateBlocksDefaults.gridContainer.verticalGapTablet?n({verticalGapTablet:0}):n({verticalGapTablet:parseFloat(m)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapTablet:generateBlocksDefaults.gridContainer.verticalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:k,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:S,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:y||0===y?y:"",min:"0",placeholder:j,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapMobile:e})},onBlur:function(){!y&&generateBlocksDefaults.gridContainer.horizontalGapMobile?n({horizontalGapMobile:0}):n({horizontalGapMobile:parseFloat(y)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapMobile:generateBlocksDefaults.gridContainer.horizontalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:w||0===w?w:"",min:"0",placeholder:R,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapMobile:e})},onBlur:function(){!w&&generateBlocksDefaults.gridContainer.verticalGapMobile?n({verticalGapMobile:0}):n({verticalGapMobile:parseFloat(w)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapMobile:generateBlocksDefaults.gridContainer.verticalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:T,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:B,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentMobile:e})}})),Ge("generateblocks.editor.controls","","gridLayout",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Be("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"gridDocumentation",state:this.state}),Object(l.createElement)("p",null,Be("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/grid/",target:"_blank",rel:"noreferrer noopener"},Be("Visit our documentation","generateblocks")),Ge("generateblocks.editor.controls","","gridDocumentation",this.props,this.state))),Object(l.createElement)(_e,null,Object(l.createElement)(Ee,{label:Be("HTML Anchor"),help:Be("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(Ke,"-"),n({anchor:e})}})),Object(l.createElement)(X,this.props),this.props.deviceType&&Object(l.createElement)(Pe,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(ae,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(ne,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ge,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(pe,this.props)),Object(l.createElement)("div",M,b>0||this.state.selectedLayout?Object(l.createElement)(Pe,null,Object(l.createElement)(Ne,{allowedBlocks:["generateblocks/container"],renderAppender:!1})):this.getLayoutsSelector()))}}]),a}(Ae),Qe=Ze([We((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),qe((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Ye),Xe={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function $e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function et(e){for(var t=1;t #block-"+t]=[{height:"100%"}]),ae&&"pseudo-element"===F.selector&&(ne[".gb-container-"+a+":before"]=[{content:'""',"background-image":le,"background-repeat":F.repeat,"background-position":F.position,"background-size":F.size,"background-attachment":F.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}],void 0!==F.opacity&&1!==F.opacity&&ne[".gb-container-"+a+":before"].push({opacity:F.opacity})),L&&"pseudo-element"===P&&(ne[".gb-container-"+a+":after"]=[{content:'""',"background-image":ie,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),ne[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:U}],ne[".gb-container-"+a+" a:hover"]=[{color:H}],ne[".gb-container-"+a+" > .gb-inside-container"]=[{padding:Ta(u,b,d,p,f),width:!(!s||i)&&"100%"}],(re||0===re)&&ne[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":re,position:"relative"}),"contained"!==o||i||ne[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":K(ee,"px"),"margin-left":"auto","margin-right":"auto"}),ne[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:K(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],ne[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&K(ee,"px")}],ne[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],ne["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],$.length&&(ne[".gb-container-"+a].push({position:"relative"}),ne[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],$.forEach((function(e,t){var l=[],i=t+1;"top"===$[t].location&&l.push("scaleY(-1)"),$[t].flipHorizontally&&(l.push("scaleX(-1)"),ne[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:Ct($[t].color,$[t].colorOpacity),"z-index":$[t].zindex}],"top"!==$[t].location&&"bottom"!==$[t].location||ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===$[t].location&&ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===$[t].location&&ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=$[t].width+"%";100===$[t].width&&(r="calc("+r+" + 1.3px)"),ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:K($[t].height,"px"),width:r}],"top"!==$[t].location&&"bottom"!==$[t].location||ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),ne=Da("generateblocks.editor.mainCSS",ne,this.props,"container"),Object(l.createElement)("style",null,Z(ne))}}]),a}(Ba);function ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ra=wp.element.Component,Ma=wp.hooks.applyFilters,za=function(e){f()(a,e);var t=ja(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Ma("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Ma("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,Z(i))}}]),a}(Ra);function xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var La=wp.element.Component,Pa=wp.hooks.applyFilters,Aa=function(e){f()(a,e);var t=xa(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Pa("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,u=e.paddingLeftTablet,b=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,w=e.borderSizeBottomTablet,v=e.borderSizeLeftTablet,T=e.borderRadiusTopRightTablet,O=e.borderRadiusBottomRightTablet,C=e.borderRadiusBottomLeftTablet,S=e.borderRadiusTopLeftTablet,B=e.borderRadiusUnit,D=e.verticalAlignmentTablet,E=e.alignmentTablet,j=e.fontSizeTablet,R=e.fontSizeUnit,M=e.shapeDividers,z=[];return z[".gb-container-"+a]=[{"border-top-left-radius":K(S,B),"border-top-right-radius":K(T,B),"border-bottom-right-radius":K(O,B),"border-bottom-left-radius":K(C,B),"margin-top":K(d,m),"margin-right":K(p,m),"margin-bottom":K(f,m),"margin-left":K(h,m),"text-align":E,"font-size":K(j,R),"min-height":K(n,o)}],(k||y||w||v)&&z[".gb-container-"+a].push({"border-top-width":K(k,"px"),"border-right-width":K(y,"px"),"border-bottom-width":K(w,"px"),"border-left-width":K(v,"px"),"border-style":"solid"}),n&&!i&&z[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==D?D:null}),i&&"inherit"!==D&&z[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":D}),z[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":K(c,b),"padding-right":K(s,b),"padding-bottom":K(g,b),"padding-left":K(u,b),width:!(!n||i)&&"100%"}],z[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:K(r,"%")}],M.length&&M.forEach((function(e,t){z[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:K(M[t].heightTablet,"px"),width:K(M[t].widthTablet,"%")}]})),z=Pa("generateblocks.editor.tabletCSS",z,this.props,"container"),Object(l.createElement)("style",null,Z(z))}}]),a}(La);function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ha=wp.element.Component,Na=wp.hooks.applyFilters,Fa=function(e){f()(a,e);var t=Ua(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Na("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Na("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,Z(a))}}]),a}(Ha);function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ia=wp.element.Component,Ga=wp.hooks.applyFilters,Va=function(e){f()(a,e);var t=_a(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Ga("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,u=e.paddingLeftMobile,b=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,w=e.borderSizeBottomMobile,v=e.borderSizeLeftMobile,T=e.borderRadiusTopRightMobile,O=e.borderRadiusBottomRightMobile,C=e.borderRadiusBottomLeftMobile,S=e.borderRadiusTopLeftMobile,B=e.borderRadiusUnit,D=e.verticalAlignmentMobile,E=e.removeVerticalGapMobile,j=e.alignmentMobile,R=e.fontSizeMobile,M=e.fontSizeUnit,z=e.orderMobile,x=e.shapeDividers,L=e.bgImage,P=e.bgOptions,A=[];return A[".gb-container-"+a]=[{"border-top-left-radius":K(S,B),"border-top-right-radius":K(T,B),"border-bottom-right-radius":K(O,B),"border-bottom-left-radius":K(C,B),"margin-top":K(d,m),"margin-right":K(p,m),"margin-bottom":K(f,m),"margin-left":K(h,m),"text-align":j,"font-size":K(R,M),"min-height":K(n,o)}],(k||y||w||v)&&A[".gb-container-"+a].push({"border-top-width":K(k,"px"),"border-right-width":K(y,"px"),"border-bottom-width":K(w,"px"),"border-left-width":K(v,"px"),"border-style":"solid"}),"inherit"!==D&&n&&!i&&A[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":D}),i&&"inherit"!==D&&A[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":D}),A[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":K(c,b),"padding-right":K(s,b),"padding-bottom":K(g,b),"padding-left":K(u,b),width:!(!n||i)&&"100%"}],A[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:K(r,"%"),order:z}],E&&(A[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),x.length&&x.forEach((function(e,t){A[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:K(x[t].heightMobile,"px"),width:K(x[t].widthMobile,"%")}]})),L&&"fixed"===P.attachment&&("element"===P.selector&&A[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===P.selector&&(A[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),A=Ga("generateblocks.editor.mobileCSS",A,this.props,"container"),Object(l.createElement)("style",null,Z(A))}}]),a}(Ia);function qa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Wa(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=Il("generateblocks.editor.mainCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(_l);function Vl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ql=wp.element.Component,Wl=wp.hooks.applyFilters,Zl=function(e){f()(a,e);var t=Vl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Wl("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,Z(e))}}]),a}(ql);function Kl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Jl=wp.element.Component,Yl=wp.hooks.applyFilters,Ql=function(e){f()(a,e);var t=Kl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":K(i,c),"margin-right":K(r,c),"margin-bottom":K(n,c),"margin-left":K(o,c),"justify-content":Nl(a),"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=Yl("generateblocks.editor.tabletCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(Jl);function Xl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var $l=wp.element.Component,ei=wp.hooks.applyFilters,ti=function(e){f()(a,e);var t=Xl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=ei("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,Z(e))}}]),a}($l);function ai(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var li=wp.element.Component,ii=wp.hooks.applyFilters,ri=function(e){f()(a,e);var t=ai(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":K(i,c),"margin-right":K(r,c),"margin-bottom":K(n,c),"margin-left":K(o,c),"justify-content":Nl(a),"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=ii("generateblocks.editor.mobileCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(li);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var oi=wp.i18n.__,ci=wp.components,si=ci.Tooltip,gi=ci.Button,ui=ci.ToggleControl,bi=ci.ToolbarGroup,di=ci.ToolbarButton,pi=ci.TextControl,fi=wp.element,hi=fi.Fragment,mi=fi.Component,ki=wp.blockEditor,yi=ki.InspectorControls,wi=ki.InnerBlocks,vi=ki.AlignmentToolbar,Ti=ki.BlockControls,Oi=ki.InspectorAdvancedControls,Ci=wp.blocks,Si=Ci.createBlock,Bi=Ci.cloneBlock,Di=wp.hooks.applyFilters,Ei=wp.data,ji=Ei.withSelect,Ri=Ei.withDispatch,Mi=wp.compose.compose,zi=/[\s#]/g,xi=[],Li=[{icon:"editor-alignleft",title:oi("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:oi("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:oi("Align Buttons Right","generateblocks"),align:"right"}],Pi=function(e){f()(a,e);var t=ni(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?xi.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),xi.push(e)):xi.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),xi.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Si("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,w=i.fillHorizontalSpaceMobile,T={className:v()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return T=Di("generateblocks.frontend.htmlAttributes",T,"generateblocks/button-container",i),Object(l.createElement)(hi,null,Object(l.createElement)(Ti,null,Object(l.createElement)(bi,null,Object(l.createElement)(di,{className:"gblocks-add-new-button",icon:"insert",label:oi("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Bi(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Si("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(vi,{value:b,alignmentControls:Li,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(vi,{value:d,alignmentControls:Li,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(vi,{value:p,alignmentControls:Li,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(yi,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{title:oi("Spacing","generateblocks"),initialOpen:!0,icon:O("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(hi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:oi("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(ui,{label:oi("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(ui,{label:oi("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(hi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:oi("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(ui,{label:oi("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(ui,{label:oi("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(hi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:oi("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(ui,{label:oi("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(ui,{label:oi("Fill Horizontal Space","generateblocks"),checked:!!w,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Di("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:oi("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,oi("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},oi("Visit our documentation","generateblocks")),Di("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Oi,null,Object(l.createElement)(pi,{label:oi("HTML Anchor"),help:oi("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(zi,"-"),n({anchor:e})}})),Object(l.createElement)(Gl,this.props),this.props.deviceType&&Object(l.createElement)(hi,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Zl,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Ql,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ti,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(ri,this.props)),Object(l.createElement)("div",T,Object(l.createElement)(wi,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(si,{text:oi("Add Button","generateblocks")},Object(l.createElement)(gi,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Si("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(mi),Ai=Mi([Ri((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),ji((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Pi),Ui={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Hi(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ni(e){for(var t=1;t0?Z.join(" "):null,"aria-label":C||null,id:d||null};return J=on("generateblocks.frontend.htmlAttributes",J,"generateblocks/button",i),Object(l.createElement)(Xr,null,Object(l.createElement)(rn,null,Object(l.createElement)(Kr,null,Object(l.createElement)(Jr,{className:"gblocks-add-new-button",icon:"insert",label:Vr("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=nn(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(tn,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Typography","generateblocks"),initialOpen:!1,icon:O("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!T||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(na,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(na,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(na,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),on("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Spacing","generateblocks"),initialOpen:!1,icon:O("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Vr("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Vr("T-Left","generateblocks"),labelRight:Vr("T-Right","generateblocks"),labelBottom:Vr("B-Right","generateblocks"),labelLeft:Vr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Vr("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Vr("T-Left","generateblocks"),labelRight:Vr("T-Right","generateblocks"),labelBottom:Vr("B-Right","generateblocks"),labelLeft:Vr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Vr("T-Left","generateblocks"),labelRight:Vr("T-Right","generateblocks"),labelBottom:Vr("B-Right","generateblocks"),labelLeft:Vr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),on("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Colors","generateblocks"),initialOpen:!1,icon:O("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Wr,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Vr("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Vr("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(Xr,null,Object(l.createElement)(At,{label:Vr("Background Color","generateblocks"),value:S,alpha:!0,valueOpacity:B,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(At,{label:Vr("Text Color","generateblocks"),value:D,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(At,{label:Vr("Border Color","generateblocks"),value:P,alpha:!0,valueOpacity:A,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),on("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(Xr,null,Object(l.createElement)(At,{label:Vr("Background Color","generateblocks"),value:E,alpha:!0,valueOpacity:j,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(At,{label:Vr("Text Color","generateblocks"),value:R,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(At,{label:Vr("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),on("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),on("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Background Gradient","generateblocks"),initialOpen:!1,icon:O("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ka,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),on("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Icon","generateblocks"),initialOpen:!1,icon:O("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(br,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Vr("Left","generateblocks"),value:"left"},{label:Vr("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(Xr,null,!T&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:Vr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Zr,{type:"number",value:N||"",step:"em"===I?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(N)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Yr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Vr("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(Xr,null,!T&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:Vr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Zr,{type:"number",value:F||"",step:"em"===I?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(F)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Yr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Vr("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(Xr,null,!T&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:Vr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Zr,{type:"number",value:_||"",step:"em"===I?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(_)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Yr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Vr("Reset","generateblocks")))),on("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Vr("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Vr("Visit our documentation","generateblocks")),on("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(an,null,Object(l.createElement)(Zr,{label:Vr("HTML Anchor"),help:Vr("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(bn,"-"),n({anchor:e})}}),Object(l.createElement)(Zr,{label:Vr("ARIA Label","generateblocks"),help:Vr("Helpful to people using screen readers.","generateblocks"),value:C,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Br,this.props),this.props.deviceType&&Object(l.createElement)(Xr,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rr,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Lr,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Hr,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ir,this.props)),M&&z&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+M.replace(/ /g,"+")+K}),Object(l.createElement)(Ot,{tagName:f?"a":"span",htmlAttrs:J},!!y&&Object(l.createElement)(Xr,null,"left"===w&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(y)}}),!T&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(ln,{placeholder:Vr("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===w&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(y)}})),!y&&!T&&Object(l.createElement)(ln,{placeholder:Vr("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(Tr,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}($r),fn=un([gn((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),sn((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pn),hn=wp.blockEditor.RichText,mn=wp.hooks.applyFilters,kn={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function yn(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function wn(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=vn("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(d)}}),!f&&Object(l.createElement)(Tn.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(d)}}))}}],Cn=wp.i18n.__;(0,wp.blocks.registerBlockType)("generateblocks/button",{title:Cn("Button","generateblocks"),description:Cn("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:O("button"),category:"generateblocks",keywords:[Cn("button"),Cn("buttons"),Cn("generate")],attributes:kn,supports:{className:!1,inserter:!1,reusable:!1},edit:fn,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,u=a.relSponsored,b=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),u&&m.push("sponsored");var k={className:v()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!b),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=mn("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(Ot,{tagName:c?"a":"span",htmlAttrs:k},!!b&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(b)}}),!p&&Object(l.createElement)(hn.Content,{value:n,tagName:b?"span":null,className:b?"gb-button-text":null}),!!b&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(b)}}))},deprecated:On});a(35);function Sn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Bn=wp.element.Component,Dn=wp.hooks.applyFilters,En=function(e){f()(a,e);var t=Sn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.uniqueId,r=t.element,n=t.alignment,o=t.backgroundColor,c=t.backgroundColorOpacity,s=t.textColor,g=t.linkColor,u=t.borderColor,b=t.borderColorOpacity,d=t.highlightTextColor,p=t.fontFamily,f=t.fontFamilyFallback,h=t.fontWeight,m=t.fontSize,k=t.fontSizeUnit,y=t.textTransform,w=t.lineHeight,v=t.lineHeightUnit,T=t.letterSpacing,O=t.marginTop,C=t.marginRight,S=t.marginBottom,B=t.marginLeft,D=t.marginUnit,E=t.paddingTop,j=t.paddingRight,R=t.paddingBottom,M=t.paddingLeft,z=t.paddingUnit,x=t.borderSizeTop,L=t.borderSizeRight,P=t.borderSizeBottom,A=t.borderSizeLeft,U=t.borderRadiusTopRight,H=t.borderRadiusBottomRight,N=t.borderRadiusBottomLeft,F=t.borderRadiusTopLeft,_=t.borderRadiusUnit,I=t.icon,G=t.iconColor,V=t.iconColorOpacity,q=t.iconLocation,W=t.iconVerticalAlignment,J=t.iconPaddingTop,Y=t.iconPaddingRight,Q=t.iconPaddingBottom,X=t.iconPaddingLeft,$=t.iconPaddingUnit,ee=t.iconSize,te=t.iconSizeUnit,ae=t.inlineWidth,le=t.removeText,ie="",re="inline-block";p&&f&&(ie=", "+f);var ne=r+".gb-headline-"+i,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:s,"font-family":p+ie,"font-weight":h,"text-transform":y,"text-align":n,"font-size":K(m,k),"line-height":K(w,v),"letter-spacing":K(T,"em"),display:!!I&&"flex","align-items":Nl("inline"===q?W:n),"justify-content":Nl(n),"flex-direction":!(!I||"above"!==q)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:s}],I&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":Ct(o,c),color:s,display:!!ae&&re,"margin-top":K(O,D),"margin-right":K(C,D),"margin-bottom":K(S,D),"margin-left":K(B,D),padding:Ta(E,j,R,M,z),"border-radius":Ta(F,U,H,N,_)}),(x||L||P||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":Ta(x,L,P,A,"px"),"border-style":"solid","border-color":Ct(u,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:g}],oe[ne+" .gb-icon"]=[{padding:!le&&Ta(J,Y,Q,X,$),"align-self":!(!I||"above"!==q)&&Nl(n),color:Ct(G,V),display:!(!I||"above"!==q)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:K(ee,te),height:K(ee,te)}],oe[ne+" .gb-highlight"]=[{color:d}],oe["#block-"+a]=[{display:!!ae&&"inline-flex"}],oe=Dn("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,Z(oe))}}]),a}(Bn);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Rn=wp.element.Component,Mn=wp.hooks.applyFilters,zn=function(e){f()(a,e);var t=jn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Mn("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,Z(e))}}]),a}(Rn);function xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ln=wp.element.Component,Pn=wp.hooks.applyFilters,An=function(e){f()(a,e);var t=xn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.uniqueId,r=t.element,n=t.alignmentTablet,o=t.fontSizeTablet,c=t.fontSizeUnit,s=t.lineHeightTablet,g=t.lineHeightUnit,u=t.letterSpacingTablet,b=t.marginTopTablet,d=t.marginRightTablet,p=t.marginBottomTablet,f=t.marginLeftTablet,h=t.marginUnit,m=t.paddingTopTablet,k=t.paddingRightTablet,y=t.paddingBottomTablet,w=t.paddingLeftTablet,v=t.paddingUnit,T=t.borderSizeTopTablet,O=t.borderSizeRightTablet,C=t.borderSizeBottomTablet,S=t.borderSizeLeftTablet,B=t.borderRadiusTopRightTablet,D=t.borderRadiusBottomRightTablet,E=t.borderRadiusBottomLeftTablet,j=t.borderRadiusTopLeftTablet,R=t.borderRadiusUnit,M=t.icon,z=t.iconLocationTablet,x=t.iconVerticalAlignmentTablet,L=t.iconPaddingTopTablet,P=t.iconPaddingRightTablet,A=t.iconPaddingBottomTablet,U=t.iconPaddingLeftTablet,H=t.iconPaddingUnit,N=t.iconSizeTablet,F=t.iconSizeUnit,_=t.inlineWidthTablet,I=t.removeText,G=r+".gb-headline-"+i,V="inline-block",q=[];return q[".editor-styles-wrapper "+G]=[{"text-align":n,"font-size":K(o,c),"line-height":K(s,g),"letter-spacing":K(u,"em"),display:!!M&&"flex","align-items":Nl("inline"===z?x:n),"justify-content":Nl(n),"flex-direction":!(!M||"above"!==z)&&"column","margin-top":K(b,h)+" !important","margin-right":K(d,h)+" !important","margin-bottom":K(p,h)+" !important","margin-left":K(f,h)+" !important","padding-top":K(m,v),"padding-right":K(k,v),"padding-bottom":K(y,v),"padding-left":K(w,v),"border-top-left-radius":K(j,R),"border-top-right-radius":K(B,R),"border-bottom-right-radius":K(D,R),"border-bottom-left-radius":K(E,R)}],M&&(V="inline-flex",q[".editor-styles-wrapper "+G].push({display:!!_&&V})),(T||O||C||S)&&q[".editor-styles-wrapper "+G].push({"border-top-width":K(T,"px"),"border-right-width":K(O,"px"),"border-bottom-width":K(C,"px"),"border-left-width":K(S,"px"),"border-style":"solid"}),q[G+" .gb-icon"]=[{"padding-top":!I&&K(L,H),"padding-right":!I&&K(P,H),"padding-bottom":!I&&K(A,H),"padding-left":!I&&K(U,H),"align-self":!(!M||"above"!==z)&&Nl(n),display:!(!M||"above"!==z)&&"inline"}],q[G+" .gb-icon svg"]=[{width:K(N,F),height:K(N,F)}],q["#block-"+a]=[{display:!!_&&"inline-flex"}],q=Pn("generateblocks.editor.tabletCSS",q,this.props,"text"),Object(l.createElement)("style",null,Z(q))}}]),a}(Ln);function Un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Hn=wp.element.Component,Nn=wp.hooks.applyFilters,Fn=function(e){f()(a,e);var t=Un(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Nn("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,Z(e))}}]),a}(Hn);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var In=wp.element.Component,Gn=wp.hooks.applyFilters,Vn=function(e){f()(a,e);var t=_n(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.uniqueId,r=t.element,n=t.alignmentMobile,o=t.fontSizeMobile,c=t.fontSizeUnit,s=t.lineHeightMobile,g=t.lineHeightUnit,u=t.letterSpacingMobile,b=t.marginTopMobile,d=t.marginRightMobile,p=t.marginBottomMobile,f=t.marginLeftMobile,h=t.marginUnit,m=t.paddingTopMobile,k=t.paddingRightMobile,y=t.paddingBottomMobile,w=t.paddingLeftMobile,v=t.paddingUnit,T=t.borderSizeTopMobile,O=t.borderSizeRightMobile,C=t.borderSizeBottomMobile,S=t.borderSizeLeftMobile,B=t.borderRadiusTopRightMobile,D=t.borderRadiusBottomRightMobile,E=t.borderRadiusBottomLeftMobile,j=t.borderRadiusTopLeftMobile,R=t.borderRadiusUnit,M=t.icon,z=t.iconLocationMobile,x=t.iconVerticalAlignmentMobile,L=t.iconPaddingTopMobile,P=t.iconPaddingRightMobile,A=t.iconPaddingBottomMobile,U=t.iconPaddingLeftMobile,H=t.iconPaddingUnit,N=t.iconSizeMobile,F=t.iconSizeUnit,_=t.inlineWidthMobile,I=t.removeText,G=r+".gb-headline-"+i,V="inline-block",q=[];return q[".editor-styles-wrapper "+G]=[{"text-align":n,"font-size":K(o,c),"line-height":K(s,g),"letter-spacing":K(u,"em"),display:!!M&&"flex","align-items":Nl("inline"===z?x:n),"justify-content":Nl(n),"flex-direction":!(!M||"above"!==z)&&"column","margin-top":K(b,h)+" !important","margin-right":K(d,h)+" !important","margin-bottom":K(p,h)+" !important","margin-left":K(f,h)+" !important","padding-top":K(m,v),"padding-right":K(k,v),"padding-bottom":K(y,v),"padding-left":K(w,v),"border-top-left-radius":K(j,R),"border-top-right-radius":K(B,R),"border-bottom-right-radius":K(D,R),"border-bottom-left-radius":K(E,R)}],M&&(V="inline-flex",q[".editor-styles-wrapper "+G].push({display:!!_&&V})),(T||O||C||S)&&q[".editor-styles-wrapper "+G].push({"border-top-width":K(T,"px"),"border-right-width":K(O,"px"),"border-bottom-width":K(C,"px"),"border-left-width":K(S,"px"),"border-style":"solid"}),q[G+" .gb-icon"]=[{"padding-top":!I&&K(L,H),"padding-right":!I&&K(P,H),"padding-bottom":!I&&K(A,H),"padding-left":!I&&K(U,H),"align-self":!(!M||"above"!==z)&&Nl(n),display:!(!M||"above"!==z)&&"inline"}],q[G+" .gb-icon svg"]=[{width:K(N,F),height:K(N,F)}],q["#block-"+a]=[{display:!!_&&"inline-flex"}],q=Gn("generateblocks.editor.mobileCSS",q,this.props,"headline"),Object(l.createElement)("style",null,Z(q))}}]),a}(In),qn=wp.i18n.__,Wn=wp.element.Fragment,Zn=wp.richText,Kn=Zn.toggleFormat,Jn=Zn.registerFormatType,Yn=wp.blockEditor,Qn=Yn.RichTextToolbarButton,Xn=Yn.RichTextShortcut,$n=wp.data.withSelect,eo=wp.compose.ifCondition,to=wp.compose.compose,ao=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),lo=to($n((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),eo((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Kn(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(Wn,null,Object(l.createElement)(Xn,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Qn,{icon:ao,title:qn("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))}));Jn("generateblocks/mark",{title:qn("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:lo});var io=wp.components,ro=io.Path,no=io.SVG;function oo(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(no,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(ro,{d:a[t]}))}function co(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var so=wp.i18n,go=so.__,uo=so.sprintf,bo=wp.components,po=bo.TextControl,fo=bo.ToolbarGroup,ho=bo.SelectControl,mo=bo.ToggleControl,ko=bo.Button,yo=wp.element,wo=yo.Fragment,vo=yo.Component,To=wp.blockEditor,Oo=To.InspectorControls,Co=To.RichText,So=To.BlockControls,Bo=To.AlignmentToolbar,Do=To.InspectorAdvancedControls,Eo=wp.hooks.applyFilters,jo=wp.data,Ro=jo.withSelect,Mo=jo.withDispatch,zo=wp.compose.compose,xo=/[\s#]/g,Lo=[],Po=function(e){f()(a,e);var t=co(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Lo.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Lo.push(e)):Lo.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Lo.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,u=i.className,b=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,w=i.linkColor,T=i.linkColorHover,C=i.borderColor,S=i.borderColorOpacity,B=i.highlightTextColor,D=i.fontFamily,E=i.googleFont,j=i.googleFontVariants,R=i.marginTop,M=i.marginRight,z=i.marginBottom,L=i.marginLeft,P=i.icon,A=i.hasIcon,U=i.iconColor,H=i.iconColorOpacity,N=i.iconLocation,F=i.iconLocationTablet,_=i.iconLocationMobile,I=i.iconVerticalAlignment,G=i.iconVerticalAlignmentTablet,q=i.iconVerticalAlignmentMobile,W=i.iconSize,Z=i.iconSizeTablet,K=i.iconSizeMobile,J=i.iconSizeUnit,Y=i.inlineWidth,Q=i.inlineWidthTablet,X=i.inlineWidthMobile,$=i.removeText,ee=i.ariaLabel,te="";j&&(te=":"+j);var ae="";ae=Z||0===Z?Z:W||0===W?W:"";var le={className:v()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!A),o()(e,u,void 0!==u),e)),id:g||null};return le=Eo("generateblocks.frontend.htmlAttributes",le,"generateblocks/headline",i),Object(l.createElement)(wo,null,Object(l.createElement)(So,null,Object(l.createElement)(fo,{isCollapsed:!0,icon:Object(l.createElement)(oo,{level:d}),label:go("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oo,{level:"h1"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3" +Ya(Ja("Shape %s","generateblocks"),i),Object(l.createElement)(ul,null,Object(l.createElement)(sl,{renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return Object(l.createElement)(cl,{text:Ja("Edit Shape","generateblocks")},Object(l.createElement)($a,{className:"gblocks-shape-dropdown",isSecondary:!t||void 0,isPrimary:!!t||void 0,icon:"admin-tools",onClick:a,"aria-expanded":t}))},renderContent:function(){return Object(l.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===t.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(il,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map((function(e,t){var i=generateBlocksInfo.svgShapes[e].svgs;return Object(l.createElement)(nl,{title:generateBlocksInfo.svgShapes[e].group,initialOpen:i.hasOwnProperty(re[a].shape),key:t},Object(l.createElement)(ol,null,Object(l.createElement)(il,null,Object(l.createElement)("ul",{className:"gblocks-icon-chooser gblocks-shape-chooser"},Object.keys(i).map((function(e,t){return Object(l.createElement)("li",{key:"editor-pblock-types-list-item-".concat(t)},Object(l.createElement)(cl,{text:i[e].label},Object(l.createElement)($a,{className:v()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":re[a].shape===e}),onClick:function(){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{shape:e}),n({shapeDividers:t})}},"string"==typeof i[e].icon?Object(l.createElement)(ul,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:va(i[e].icon)}})):Object(l.createElement)(ul,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},i[e].icon)))))}))))))}))),Object(l.createElement)(At,{label:Ja("Color","generateblocks"),value:re[a].color,alpha:!0,valueOpacity:re[a].colorOpacity,onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{color:e}),n({shapeDividers:t})},onOpacityChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{colorOpacity:e}),n({shapeDividers:t})}}),Object(l.createElement)(al,{label:Ja("Location","generateblocks"),value:re[a].location,options:[{label:Ja("Top","generateblocks"),value:"top"},{label:Ja("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{location:e}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].height?re[a].height:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{height:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].width?re[a].width:"",min:"100",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{width:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(tl,{label:Ja("Flip Horizontally","generateblocks"),checked:!!re[a].flipHorizontally,onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{flipHorizontally:e}),n({shapeDividers:t})}}),Object(l.createElement)(ll,{label:Ja("z-index","generateblocks"),type:"number",min:"0",value:re[a].zindex||0===re[a].zindex?re[a].zindex:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{zindex:e}),n({shapeDividers:t})},onBlur:function(){var e=vt()(re);e[a]=Wa(Wa({},e[a]),{},{zindex:parseFloat(re[a].zindex)}),n({shapeDividers:e})},onClick:function(e){e.currentTarget.focus()}})),"Tablet"===t.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].heightTablet?re[a].heightTablet:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{heightTablet:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].widthTablet?re[a].widthTablet:"",min:"100",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{widthTablet:parseFloat(e)}),n({shapeDividers:t})}})),"Mobile"===t.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].heightMobile?re[a].heightMobile:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{heightMobile:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].widthMobile?re[a].widthMobile:"",min:"100",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{widthMobile:parseFloat(e)}),n({shapeDividers:t})}})))}})),"Desktop"===t.getDeviceType()&&Object(l.createElement)(cl,{text:Ja("Delete Shape","generateblocks")},Object(l.createElement)($a,{className:"gblocks-remove-shape",onClick:function(){window.confirm(Ja("This will permanently delete this shape.","generateblocks"))&&function(e){var t=vt()(re);t.splice(e,1),n({shapeDividers:t})}(a)},icon:"no-alt"}))))})),Object(l.createElement)("div",{className:"gblocks-add-new-shape"},Object(l.createElement)($a,{isSecondary:!0,onClick:function(){var e=vt()(re);e.push({shape:generateBlocksStyling.container.shapeDividers.shape,color:generateBlocksStyling.container.shapeDividers.color,colorOpacity:generateBlocksStyling.container.shapeDividers.colorOpacity,location:generateBlocksStyling.container.shapeDividers.location,height:generateBlocksStyling.container.shapeDividers.height,heightTablet:generateBlocksStyling.container.shapeDividers.heightTablet,heightMobile:generateBlocksStyling.container.shapeDividers.heightMobile,width:generateBlocksStyling.container.shapeDividers.width,widthTablet:generateBlocksStyling.container.shapeDividers.widthTablet,widthMobile:generateBlocksStyling.container.shapeDividers.widthMobile,flipHorizontally:generateBlocksStyling.container.shapeDividers.flipHorizontally,zindex:generateBlocksStyling.container.shapeDividers.zindex}),n({shapeDividers:e})}.bind(this)},Ja("Add Shape","generateblocks")))),wl("generateblocks.editor.controls","","containerShapeDivider",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Documentation","generateblocks"),initialOpen:!1,icon:O("documentation"),className:"gblocks-panel-label",id:"containerDocumentation",state:this.state}),Object(l.createElement)("p",null,Ja("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/container/",target:"_blank",rel:"noreferrer noopener"},Ja("Visit our documentation","generateblocks")),wl("generateblocks.editor.controls","","containerDocumentation",this.props,this.state))),Object(l.createElement)(kl,null,Object(l.createElement)(ll,{label:Ja("HTML Anchor"),help:Ja("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(Sl,"-"),n({anchor:e})}})),Object(l.createElement)(Ea,this.props),this.props.deviceType&&Object(l.createElement)(ul,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(za,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Aa,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Fa,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Va,this.props)),ee&&te&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+ee.replace(/ /g,"+")+ge}),Object(l.createElement)(Ot,{tagName:d,htmlAttrs:me},wl("generateblocks.frontend.afterContainerOpen","",i),Object(l.createElement)("div",{className:v()({"gb-inside-container":!0})},wl("generateblocks.frontend.insideContainer","",i),Object(l.createElement)(fl,{templateLock:!1,renderAppender:c?void 0:function(){return Object(l.createElement)(fl.ButtonBlockAppender,null)}})),Object(l.createElement)(ul,null,!!i.shapeDividers.length&&Object(l.createElement)("div",{className:"gb-shapes"},i.shapeDividers.map((function(e,t){var a=t+1;return Object(l.createElement)(ul,{key:t},void 0!==fe[re[t].shape]&&Object(l.createElement)("div",{className:v()(o()({"gb-shape":!0},"gb-shape-".concat(a),!0)),dangerouslySetInnerHTML:{__html:va(fe[re[t].shape].icon)}}))})))),wl("generateblocks.frontend.beforeContainerClose","",i)))}}]),a}(bl),El=Cl([Ol((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Tl((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType,a=e("core").getMedia,l=(0,e("core/editor").getEditedPostAttribute)("featured_media");return t?{media:l?a(l):null,deviceType:t()}:{media:l?a(l):null,deviceType:null}}))])(Dl),jl={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isGrid:{type:"boolean",default:!1},gridId:{type:"string",default:""},tagName:{type:"string",default:generateBlocksDefaults.container.tagName},width:{type:"number",default:generateBlocksDefaults.container.width},widthTablet:{type:"number",default:generateBlocksDefaults.container.widthTablet},widthMobile:{type:"number",default:generateBlocksDefaults.container.widthMobile},orderTablet:{type:"number",default:generateBlocksDefaults.container.orderTablet},orderMobile:{type:"number",default:generateBlocksDefaults.container.orderMobile},outerContainer:{type:"string",default:generateBlocksDefaults.container.outerContainer},innerContainer:{type:"string",default:generateBlocksDefaults.container.innerContainer},containerWidth:{type:"number",default:generateBlocksDefaults.container.containerWidth},minHeight:{type:"number",default:generateBlocksDefaults.container.minHeight},minHeightUnit:{type:"string",default:generateBlocksDefaults.container.minHeightUnit},minHeightTablet:{type:"number",default:generateBlocksDefaults.container.minHeightTablet},minHeightUnitTablet:{type:"string",default:generateBlocksDefaults.container.minHeightUnitTablet},minHeightMobile:{type:"number",default:generateBlocksDefaults.container.minHeightMobile},minHeightUnitMobile:{type:"string",default:generateBlocksDefaults.container.minHeightUnitMobile},paddingTop:{type:"string",default:generateBlocksDefaults.container.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.container.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.container.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.container.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.container.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},paddingTopTablet:{type:"string",default:generateBlocksDefaults.container.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.container.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.container.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.container.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.container.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.container.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.container.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.container.paddingLeftMobile},marginTop:{type:"string",default:generateBlocksDefaults.container.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.container.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.container.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.container.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.container.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.container.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.container.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.container.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.container.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.container.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.container.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.container.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.container.marginLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.container.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.container.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.container.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.container.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.container.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftMobile},borderColor:{type:"string",default:generateBlocksDefaults.container.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.container.borderColorOpacity},backgroundColor:{type:"string",default:generateBlocksDefaults.container.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.container.backgroundColorOpacity},gradient:{type:"boolean",default:generateBlocksDefaults.container.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.container.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.container.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.container.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.container.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.container.gradientColorStopTwo},gradientSelector:{type:"string",default:"element"},textColor:{type:"string",default:generateBlocksDefaults.container.textColor},linkColor:{type:"string",default:generateBlocksDefaults.container.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.container.linkColorHover},bgImage:{type:"object",default:generateBlocksDefaults.container.bgImage},bgOptions:{type:"object",default:{selector:generateBlocksDefaults.container.bgOptions.selector,opacity:generateBlocksDefaults.container.bgOptions.opacity,overlay:generateBlocksDefaults.container.bgOptions.overlay,position:generateBlocksDefaults.container.bgOptions.position,size:generateBlocksDefaults.container.bgOptions.size,repeat:generateBlocksDefaults.container.bgOptions.repeat,attachment:generateBlocksDefaults.container.bgOptions.attachment}},bgImageSize:{type:"string",default:generateBlocksDefaults.container.bgImageSize},verticalAlignment:{type:"string",default:generateBlocksDefaults.container.verticalAlignment},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentTablet},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentMobile},zindex:{type:"number",default:generateBlocksDefaults.container.zindex},innerZindex:{type:"number",default:generateBlocksDefaults.container.innerZindex},removeVerticalGap:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGap},removeVerticalGapTablet:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapTablet},removeVerticalGapMobile:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapMobile},alignment:{type:"string",default:generateBlocksDefaults.container.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.container.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.container.alignmentMobile},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.container.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.container.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.container.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.container.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.container.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.container.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.container.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.container.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.container.fontSizeUnit},textTransform:{type:"string",default:""},align:{type:"string",default:""},shapeDividers:{type:"array",default:[]},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};generateBlocksInfo.hasCustomFields&&Object.assign(jl,{fullWidthContent:{type:"string",source:"meta",meta:"_generate-full-width-content"}});var Rl=jl;function Ml(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function zl(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=Il("generateblocks.editor.mainCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(_l);function Vl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ql=wp.element.Component,Wl=wp.hooks.applyFilters,Zl=function(e){f()(a,e);var t=Vl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Wl("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,Z(e))}}]),a}(ql);function Kl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Jl=wp.element.Component,Yl=wp.hooks.applyFilters,Ql=function(e){f()(a,e);var t=Kl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Yl("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":K(i,c),"margin-right":K(r,c),"margin-bottom":K(n,c),"margin-left":K(o,c),"justify-content":Nl(a),"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=Yl("generateblocks.editor.tabletCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(Jl);function Xl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var $l=wp.element.Component,ei=wp.hooks.applyFilters,ti=function(e){f()(a,e);var t=Xl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=ei("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,Z(e))}}]),a}($l);function ai(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var li=wp.element.Component,ii=wp.hooks.applyFilters,ri=function(e){f()(a,e);var t=ai(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=ii("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":K(i,c),"margin-right":K(r,c),"margin-bottom":K(n,c),"margin-left":K(o,c),"justify-content":Nl(a),"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=ii("generateblocks.editor.mobileCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(li);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var oi=wp.i18n.__,ci=wp.components,si=ci.Tooltip,gi=ci.Button,ui=ci.ToggleControl,bi=ci.ToolbarGroup,di=ci.ToolbarButton,pi=ci.TextControl,fi=wp.element,hi=fi.Fragment,mi=fi.Component,ki=wp.blockEditor,yi=ki.InspectorControls,wi=ki.InnerBlocks,vi=ki.AlignmentToolbar,Ti=ki.BlockControls,Oi=ki.InspectorAdvancedControls,Ci=wp.blocks,Si=Ci.createBlock,Bi=Ci.cloneBlock,Di=wp.hooks.applyFilters,Ei=wp.data,ji=Ei.withSelect,Ri=Ei.withDispatch,Mi=wp.compose.compose,zi=/[\s#]/g,xi=[],Li=[{icon:"editor-alignleft",title:oi("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:oi("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:oi("Align Buttons Right","generateblocks"),align:"right"}],Pi=function(e){f()(a,e);var t=ni(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?xi.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),xi.push(e)):xi.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),xi.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Si("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,w=i.fillHorizontalSpaceMobile,T={className:v()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return T=Di("generateblocks.frontend.htmlAttributes",T,"generateblocks/button-container",i),Object(l.createElement)(hi,null,Object(l.createElement)(Ti,null,Object(l.createElement)(bi,null,Object(l.createElement)(di,{className:"gblocks-add-new-button",icon:"insert",label:oi("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Bi(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Si("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(vi,{value:b,alignmentControls:Li,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(vi,{value:d,alignmentControls:Li,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(vi,{value:p,alignmentControls:Li,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(yi,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{title:oi("Spacing","generateblocks"),initialOpen:!0,icon:O("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(hi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:oi("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(ui,{label:oi("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(ui,{label:oi("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(hi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:oi("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(ui,{label:oi("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(ui,{label:oi("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(hi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:oi("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(ui,{label:oi("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(ui,{label:oi("Fill Horizontal Space","generateblocks"),checked:!!w,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Di("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:oi("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,oi("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},oi("Visit our documentation","generateblocks")),Di("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Oi,null,Object(l.createElement)(pi,{label:oi("HTML Anchor"),help:oi("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(zi,"-"),n({anchor:e})}})),Object(l.createElement)(Gl,this.props),this.props.deviceType&&Object(l.createElement)(hi,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Zl,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Ql,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ti,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(ri,this.props)),Object(l.createElement)("div",T,Object(l.createElement)(wi,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(si,{text:oi("Add Button","generateblocks")},Object(l.createElement)(gi,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Si("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(mi),Ai=Mi([Ri((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),ji((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Pi),Ui={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Hi(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ni(e){for(var t=1;t0?Z.join(" "):null,"aria-label":C||null,id:d||null};return J=on("generateblocks.frontend.htmlAttributes",J,"generateblocks/button",i),Object(l.createElement)(Xr,null,Object(l.createElement)(rn,null,Object(l.createElement)(Kr,null,Object(l.createElement)(Jr,{className:"gblocks-add-new-button",icon:"insert",label:Vr("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=nn(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(tn,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Typography","generateblocks"),initialOpen:!1,icon:O("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!T||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(na,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(na,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(na,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),on("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Spacing","generateblocks"),initialOpen:!1,icon:O("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Vr("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Vr("T-Left","generateblocks"),labelRight:Vr("T-Right","generateblocks"),labelBottom:Vr("B-Right","generateblocks"),labelLeft:Vr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Vr("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Vr("T-Left","generateblocks"),labelRight:Vr("T-Right","generateblocks"),labelBottom:Vr("B-Right","generateblocks"),labelLeft:Vr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Vr("T-Left","generateblocks"),labelRight:Vr("T-Right","generateblocks"),labelBottom:Vr("B-Right","generateblocks"),labelLeft:Vr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),on("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Colors","generateblocks"),initialOpen:!1,icon:O("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Wr,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Vr("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Vr("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(Xr,null,Object(l.createElement)(At,{label:Vr("Background Color","generateblocks"),value:S,alpha:!0,valueOpacity:B,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(At,{label:Vr("Text Color","generateblocks"),value:D,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(At,{label:Vr("Border Color","generateblocks"),value:P,alpha:!0,valueOpacity:A,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),on("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(Xr,null,Object(l.createElement)(At,{label:Vr("Background Color","generateblocks"),value:E,alpha:!0,valueOpacity:j,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(At,{label:Vr("Text Color","generateblocks"),value:R,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(At,{label:Vr("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),on("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),on("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Background Gradient","generateblocks"),initialOpen:!1,icon:O("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ka,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),on("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Icon","generateblocks"),initialOpen:!1,icon:O("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(br,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Vr("Left","generateblocks"),value:"left"},{label:Vr("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(Xr,null,!T&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:Vr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Zr,{type:"number",value:N||"",step:"em"===I?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(N)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Yr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Vr("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(Xr,null,!T&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:Vr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Zr,{type:"number",value:F||"",step:"em"===I?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(F)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Yr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Vr("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(Xr,null,!T&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:Vr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Zr,{type:"number",value:_||"",step:"em"===I?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(_)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Yr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Vr("Reset","generateblocks")))),on("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Vr("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Vr("Visit our documentation","generateblocks")),on("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(an,null,Object(l.createElement)(Zr,{label:Vr("HTML Anchor"),help:Vr("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(bn,"-"),n({anchor:e})}}),Object(l.createElement)(Zr,{label:Vr("ARIA Label","generateblocks"),help:Vr("Helpful to people using screen readers.","generateblocks"),value:C,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Br,this.props),this.props.deviceType&&Object(l.createElement)(Xr,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rr,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Lr,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Hr,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ir,this.props)),M&&z&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+M.replace(/ /g,"+")+K}),Object(l.createElement)(Ot,{tagName:f?"a":"span",htmlAttrs:J},!!y&&Object(l.createElement)(Xr,null,"left"===w&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(y)}}),!T&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(ln,{placeholder:Vr("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===w&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(y)}})),!y&&!T&&Object(l.createElement)(ln,{placeholder:Vr("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(Tr,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}($r),fn=un([gn((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),sn((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pn),hn=wp.blockEditor.RichText,mn=wp.hooks.applyFilters,kn={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function yn(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function wn(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=vn("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(d)}}),!f&&Object(l.createElement)(Tn.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(d)}}))}}],Cn=wp.i18n.__;(0,wp.blocks.registerBlockType)("generateblocks/button",{title:Cn("Button","generateblocks"),description:Cn("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:O("button"),category:"generateblocks",keywords:[Cn("button"),Cn("buttons"),Cn("generate")],attributes:kn,supports:{className:!1,inserter:!1,reusable:!1},edit:fn,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,u=a.relSponsored,b=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),u&&m.push("sponsored");var k={className:v()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!b),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=mn("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(Ot,{tagName:c?"a":"span",htmlAttrs:k},!!b&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(b)}}),!p&&Object(l.createElement)(hn.Content,{value:n,tagName:b?"span":null,className:b?"gb-button-text":null}),!!b&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(b)}}))},deprecated:On});a(35);function Sn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Bn=wp.element.Component,Dn=wp.hooks.applyFilters,En=function(e){f()(a,e);var t=Sn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Dn("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,u=e.borderColorOpacity,b=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,w=e.lineHeightUnit,v=e.letterSpacing,T=e.marginTop,O=e.marginRight,C=e.marginBottom,S=e.marginLeft,B=e.marginUnit,D=e.paddingTop,E=e.paddingRight,j=e.paddingBottom,R=e.paddingLeft,M=e.paddingUnit,z=e.borderSizeTop,x=e.borderSizeRight,L=e.borderSizeBottom,P=e.borderSizeLeft,A=e.borderRadiusTopRight,U=e.borderRadiusBottomRight,H=e.borderRadiusBottomLeft,N=e.borderRadiusTopLeft,F=e.borderRadiusUnit,_=e.icon,I=e.iconColor,G=e.iconColorOpacity,V=e.iconLocation,q=e.iconVerticalAlignment,W=e.iconPaddingTop,J=e.iconPaddingRight,Y=e.iconPaddingBottom,Q=e.iconPaddingLeft,X=e.iconPaddingUnit,$=e.iconSize,ee=e.iconSizeUnit,te=e.inlineWidth,ae=e.removeText,le="",ie="inline-block";d&&p&&(le=", "+p);var re=i+".gb-headline-"+a,ne=[];return ne[".editor-styles-wrapper "+re]=[{color:c,"font-family":d+le,"font-weight":f,"text-transform":k,"text-align":r,"font-size":K(h,m),"line-height":K(y,w),"letter-spacing":K(v,"em"),display:!!_&&"flex","align-items":Nl("inline"===V?q:r),"justify-content":Nl(r),"flex-direction":!(!_||"above"!==V)&&"column"}],ne[".editor-styles-wrapper .gb-container "+re]=[{color:c}],_&&(ie="inline-flex"),ne[".editor-styles-wrapper "+re].push({"background-color":Ct(n,o),color:c,display:!!te&&ie,"margin-top":K(T,B),"margin-right":K(O,B),"margin-bottom":K(C,B),"margin-left":K(S,B),padding:Ta(D,E,j,R,M),"border-radius":Ta(N,A,U,H,F)}),(z||x||L||P)&&ne[".editor-styles-wrapper "+re].push({"border-width":Ta(z,x,L,P,"px"),"border-style":"solid","border-color":Ct(g,u)}),ne[".editor-styles-wrapper "+re+" a"]=[{color:s}],ne[re+" .gb-icon"]=[{padding:!ae&&Ta(W,J,Y,Q,X),"align-self":!(!_||"above"!==V)&&Nl(r),color:Ct(I,G),display:!(!_||"above"!==V)&&"inline"}],ne[re+" .gb-icon svg"]=[{width:K($,ee),height:K($,ee)}],ne[re+" .gb-highlight"]=[{color:b}],ne["#block-"+t]=[{display:!!te&&"inline-flex"}],ne=Dn("generateblocks.editor.mainCSS",ne,this.props,"headline"),Object(l.createElement)("style",null,Z(ne))}}]),a}(Bn);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Rn=wp.element.Component,Mn=wp.hooks.applyFilters,zn=function(e){f()(a,e);var t=jn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Mn("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,Z(e))}}]),a}(Rn);function xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ln=wp.element.Component,Pn=wp.hooks.applyFilters,An=function(e){f()(a,e);var t=xn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Pn("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,u=e.marginTopTablet,b=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,w=e.paddingUnit,v=e.borderSizeTopTablet,T=e.borderSizeRightTablet,O=e.borderSizeBottomTablet,C=e.borderSizeLeftTablet,S=e.borderRadiusTopRightTablet,B=e.borderRadiusBottomRightTablet,D=e.borderRadiusBottomLeftTablet,E=e.borderRadiusTopLeftTablet,j=e.borderRadiusUnit,R=e.icon,M=e.iconLocationTablet,z=e.iconVerticalAlignmentTablet,x=e.iconPaddingTopTablet,L=e.iconPaddingRightTablet,P=e.iconPaddingBottomTablet,A=e.iconPaddingLeftTablet,U=e.iconPaddingUnit,H=e.iconSizeTablet,N=e.iconSizeUnit,F=e.inlineWidthTablet,_=e.removeText,I=i+".gb-headline-"+a,G="inline-block",V=[];return V[".editor-styles-wrapper "+I]=[{"text-align":r,"font-size":K(n,o),"line-height":K(c,s),"letter-spacing":K(g,"em"),display:!!R&&"flex","align-items":Nl("inline"===M?z:r),"justify-content":Nl(r),"flex-direction":!(!R||"above"!==M)&&"column","margin-top":K(u,f)+" !important","margin-right":K(b,f)+" !important","margin-bottom":K(d,f)+" !important","margin-left":K(p,f)+" !important","padding-top":K(h,w),"padding-right":K(m,w),"padding-bottom":K(k,w),"padding-left":K(y,w),"border-top-left-radius":K(E,j),"border-top-right-radius":K(S,j),"border-bottom-right-radius":K(B,j),"border-bottom-left-radius":K(D,j)}],R&&(G="inline-flex",V[".editor-styles-wrapper "+I].push({display:!!F&&G})),(v||T||O||C)&&V[".editor-styles-wrapper "+I].push({"border-top-width":K(v,"px"),"border-right-width":K(T,"px"),"border-bottom-width":K(O,"px"),"border-left-width":K(C,"px"),"border-style":"solid"}),V[I+" .gb-icon"]=[{"padding-top":!_&&K(x,U),"padding-right":!_&&K(L,U),"padding-bottom":!_&&K(P,U),"padding-left":!_&&K(A,U),"align-self":!(!R||"above"!==M)&&Nl(r),display:!(!R||"above"!==M)&&"inline"}],V[I+" .gb-icon svg"]=[{width:K(H,N),height:K(H,N)}],V["#block-"+t]=[{display:!!F&&"inline-flex"}],V=Pn("generateblocks.editor.tabletCSS",V,this.props,"text"),Object(l.createElement)("style",null,Z(V))}}]),a}(Ln);function Un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Hn=wp.element.Component,Nn=wp.hooks.applyFilters,Fn=function(e){f()(a,e);var t=Un(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Nn("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,Z(e))}}]),a}(Hn);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var In=wp.element.Component,Gn=wp.hooks.applyFilters,Vn=function(e){f()(a,e);var t=_n(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Gn("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,u=e.marginTopMobile,b=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,w=e.paddingUnit,v=e.borderSizeTopMobile,T=e.borderSizeRightMobile,O=e.borderSizeBottomMobile,C=e.borderSizeLeftMobile,S=e.borderRadiusTopRightMobile,B=e.borderRadiusBottomRightMobile,D=e.borderRadiusBottomLeftMobile,E=e.borderRadiusTopLeftMobile,j=e.borderRadiusUnit,R=e.icon,M=e.iconLocationMobile,z=e.iconVerticalAlignmentMobile,x=e.iconPaddingTopMobile,L=e.iconPaddingRightMobile,P=e.iconPaddingBottomMobile,A=e.iconPaddingLeftMobile,U=e.iconPaddingUnit,H=e.iconSizeMobile,N=e.iconSizeUnit,F=e.inlineWidthMobile,_=e.removeText,I=i+".gb-headline-"+a,G="inline-block",V=[];return V[".editor-styles-wrapper "+I]=[{"text-align":r,"font-size":K(n,o),"line-height":K(c,s),"letter-spacing":K(g,"em"),display:!!R&&"flex","align-items":Nl("inline"===M?z:r),"justify-content":Nl(r),"flex-direction":!(!R||"above"!==M)&&"column","margin-top":K(u,f)+" !important","margin-right":K(b,f)+" !important","margin-bottom":K(d,f)+" !important","margin-left":K(p,f)+" !important","padding-top":K(h,w),"padding-right":K(m,w),"padding-bottom":K(k,w),"padding-left":K(y,w),"border-top-left-radius":K(E,j),"border-top-right-radius":K(S,j),"border-bottom-right-radius":K(B,j),"border-bottom-left-radius":K(D,j)}],R&&(G="inline-flex",V[".editor-styles-wrapper "+I].push({display:!!F&&G})),(v||T||O||C)&&V[".editor-styles-wrapper "+I].push({"border-top-width":K(v,"px"),"border-right-width":K(T,"px"),"border-bottom-width":K(O,"px"),"border-left-width":K(C,"px"),"border-style":"solid"}),V[I+" .gb-icon"]=[{"padding-top":!_&&K(x,U),"padding-right":!_&&K(L,U),"padding-bottom":!_&&K(P,U),"padding-left":!_&&K(A,U),"align-self":!(!R||"above"!==M)&&Nl(r),display:!(!R||"above"!==M)&&"inline"}],V[I+" .gb-icon svg"]=[{width:K(H,N),height:K(H,N)}],V["#block-"+t]=[{display:!!F&&"inline-flex"}],V=Gn("generateblocks.editor.mobileCSS",V,this.props,"headline"),Object(l.createElement)("style",null,Z(V))}}]),a}(In),qn=wp.i18n.__,Wn=wp.element.Fragment,Zn=wp.richText,Kn=Zn.toggleFormat,Jn=Zn.registerFormatType,Yn=wp.blockEditor,Qn=Yn.RichTextToolbarButton,Xn=Yn.RichTextShortcut,$n=wp.data.withSelect,eo=wp.compose.ifCondition,to=wp.compose.compose,ao=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),lo=to($n((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),eo((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Kn(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(Wn,null,Object(l.createElement)(Xn,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Qn,{icon:ao,title:qn("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))}));Jn("generateblocks/mark",{title:qn("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:lo});var io=wp.components,ro=io.Path,no=io.SVG;function oo(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(no,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(ro,{d:a[t]}))}function co(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var so=wp.i18n,go=so.__,uo=so.sprintf,bo=wp.components,po=bo.TextControl,fo=bo.ToolbarGroup,ho=bo.SelectControl,mo=bo.ToggleControl,ko=bo.Button,yo=wp.element,wo=yo.Fragment,vo=yo.Component,To=wp.blockEditor,Oo=To.InspectorControls,Co=To.RichText,So=To.BlockControls,Bo=To.AlignmentToolbar,Do=To.InspectorAdvancedControls,Eo=wp.hooks.applyFilters,jo=wp.data,Ro=jo.withSelect,Mo=jo.withDispatch,zo=wp.compose.compose,xo=/[\s#]/g,Lo=[],Po=function(e){f()(a,e);var t=co(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Lo.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Lo.push(e)):Lo.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Lo.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,u=i.className,b=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,w=i.linkColor,T=i.linkColorHover,C=i.borderColor,S=i.borderColorOpacity,B=i.highlightTextColor,D=i.fontFamily,E=i.googleFont,j=i.googleFontVariants,R=i.marginTop,M=i.marginRight,z=i.marginBottom,L=i.marginLeft,P=i.icon,A=i.hasIcon,U=i.iconColor,H=i.iconColorOpacity,N=i.iconLocation,F=i.iconLocationTablet,_=i.iconLocationMobile,I=i.iconVerticalAlignment,G=i.iconVerticalAlignmentTablet,q=i.iconVerticalAlignmentMobile,W=i.iconSize,Z=i.iconSizeTablet,K=i.iconSizeMobile,J=i.iconSizeUnit,Y=i.inlineWidth,Q=i.inlineWidthTablet,X=i.inlineWidthMobile,$=i.removeText,ee=i.ariaLabel,te="";j&&(te=":"+j);var ae="";ae=Z||0===Z?Z:W||0===W?W:"";var le={className:v()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!A),o()(e,u,void 0!==u),e)),id:g||null};return le=Eo("generateblocks.frontend.htmlAttributes",le,"generateblocks/headline",i),Object(l.createElement)(wo,null,Object(l.createElement)(So,null,Object(l.createElement)(fo,{isCollapsed:!0,icon:Object(l.createElement)(oo,{level:d}),label:go("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oo,{level:"h1"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3" go("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(oo,{level:"h2"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3" go("Heading %s","generateblocks"),"2"),onClick:function(){n({element:"h2"})}},{isActive:"h3"===d,icon:Object(l.createElement)(oo,{level:"h3"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3" go("Heading %s","generateblocks"),"3"),onClick:function(){n({element:"h3"})}},{isActive:"h4"===d,icon:Object(l.createElement)(oo,{level:"h4"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3" From ddf181c4f9a7466e28e63a9b1578c71619d6361d Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Thu, 10 Dec 2020 00:20:52 -0800 Subject: [PATCH 05/53] Update blocks.asset.php --- dist/blocks.asset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index 90b82f426..93946a9b8 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-element', 'wp-polyfill'), 'version' => '1b23ceac6c833a59d95adc4151f9f245'); \ No newline at end of file + array('wp-element', 'wp-polyfill'), 'version' => '47690c24a325be707b4e52046bf01a94'); \ No newline at end of file From 06f73a1d146070296d7decad534cf3b0fccf1d3f Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Thu, 10 Dec 2020 20:10:18 -0800 Subject: [PATCH 06/53] Simplify .gb-container css selector --- includes/generate-css.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/includes/generate-css.php b/includes/generate-css.php index 119c4cec1..2b0e869ea 100644 --- a/includes/generate-css.php +++ b/includes/generate-css.php @@ -254,7 +254,7 @@ function generateblocks_get_dynamic_css( $content = '' ) { $gradientValue = generateblocks_get_background_image_css( 'gradient', $settings ); $hasBgImage = $settings['bgImage']; - $css->set_selector( '.gb-container.gb-container-' . $id ); + $css->set_selector( '.gb-container-' . $id ); $css->add_property( 'font-family', $fontFamily ); $css->add_property( 'font-size', $settings['fontSize'], $settings['fontSizeUnit'] ); $css->add_property( 'font-weight', $settings['fontWeight'] ); @@ -325,7 +325,7 @@ function generateblocks_get_dynamic_css( $content = '' ) { $css->add_property( 'text-align', $settings['alignment'] ); - $css->set_selector( '.gb-container.gb-container-' . $id . ':before' ); + $css->set_selector( '.gb-container-' . $id . ':before' ); if ( $hasBgImage && 'pseudo-element' === $settings['bgOptions']['selector'] ) { $css->add_property( 'content', '""' ); @@ -348,7 +348,7 @@ function generateblocks_get_dynamic_css( $content = '' ) { } if ( $settings['gradient'] && 'pseudo-element' === $settings['gradientSelector'] ) { - $css->set_selector( '.gb-container.gb-container-' . $id . ':after' ); + $css->set_selector( '.gb-container-' . $id . ':after' ); $css->add_property( 'content', '""' ); $css->add_property( 'background-image', $gradientValue ); $css->add_property( 'z-index', '0' ); @@ -365,7 +365,7 @@ function generateblocks_get_dynamic_css( $content = '' ) { $innerZIndex = 1; } - $css->set_selector( '.gb-container.gb-container-' . $id . ' > .gb-inside-container' ); + $css->set_selector( '.gb-container-' . $id . ' > .gb-inside-container' ); $css->add_property( 'padding', generateblocks_get_shorthand_css( $settings['paddingTop'], $settings['paddingRight'], $settings['paddingBottom'], $settings['paddingLeft'], $settings['paddingUnit'] ) ); if ( 'contained' === $settings['innerContainer'] && ! $settings['isGrid'] ) { @@ -387,10 +387,10 @@ function generateblocks_get_dynamic_css( $content = '' ) { $css->add_property( 'position', 'relative' ); } - $css->set_selector( '.gb-container.gb-container-' . $id . ' a, .gb-container.gb-container-' . $id . ' a:visited' ); + $css->set_selector( '.gb-container-' . $id . ' a, .gb-container-' . $id . ' a:visited' ); $css->add_property( 'color', $settings['linkColor'] ); - $css->set_selector( '.gb-container.gb-container-' . $id . ' a:hover' ); + $css->set_selector( '.gb-container-' . $id . ' a:hover' ); $css->add_property( 'color', $settings['linkColorHover'] ); if ( $settings['isGrid'] ) { @@ -470,7 +470,7 @@ function generateblocks_get_dynamic_css( $content = '' ) { } } - $tablet_css->set_selector( '.gb-container.gb-container-' . $id ); + $tablet_css->set_selector( '.gb-container-' . $id ); $tablet_css->add_property( 'font-size', $settings['fontSizeTablet'], $settings['fontSizeUnit'] ); $tablet_css->add_property( 'margin', array( $settings['marginTopTablet'], $settings['marginRightTablet'], $settings['marginBottomTablet'], $settings['marginLeftTablet'] ), $settings['marginUnit'] ); $tablet_css->add_property( 'border-radius', array( $settings['borderRadiusTopLeftTablet'], $settings['borderRadiusTopRightTablet'], $settings['borderRadiusBottomRightTablet'], $settings['borderRadiusBottomLeftTablet'] ), $settings['borderRadiusUnit'] ); @@ -497,7 +497,7 @@ function generateblocks_get_dynamic_css( $content = '' ) { $tablet_css->add_property( 'text-align', $settings['alignmentTablet'] ); - $tablet_css->set_selector( '.gb-container.gb-container-' . $id . ' > .gb-inside-container' ); + $tablet_css->set_selector( '.gb-container-' . $id . ' > .gb-inside-container' ); $tablet_css->add_property( 'padding', array( $settings['paddingTopTablet'], $settings['paddingRightTablet'], $settings['paddingBottomTablet'], $settings['paddingLeftTablet'] ), $settings['paddingUnit'] ); $usingMinHeightInnerWidthBoxSizing = false; @@ -552,7 +552,7 @@ function generateblocks_get_dynamic_css( $content = '' ) { } } - $mobile_css->set_selector( '.gb-container.gb-container-' . $id ); + $mobile_css->set_selector( '.gb-container-' . $id ); $mobile_css->add_property( 'font-size', $settings['fontSizeMobile'], $settings['fontSizeUnit'] ); $mobile_css->add_property( 'margin', array( $settings['marginTopMobile'], $settings['marginRightMobile'], $settings['marginBottomMobile'], $settings['marginLeftMobile'] ), $settings['marginUnit'] ); $mobile_css->add_property( 'border-radius', array( $settings['borderRadiusTopLeftMobile'], $settings['borderRadiusTopRightMobile'], $settings['borderRadiusBottomRightMobile'], $settings['borderRadiusBottomLeftMobile'] ), $settings['borderRadiusUnit'] ); @@ -579,7 +579,7 @@ function generateblocks_get_dynamic_css( $content = '' ) { $mobile_css->add_property( 'text-align', $settings['alignmentMobile'] ); - $mobile_css->set_selector( '.gb-container.gb-container-' . $id . ' > .gb-inside-container' ); + $mobile_css->set_selector( '.gb-container-' . $id . ' > .gb-inside-container' ); $mobile_css->add_property( 'padding', array( $settings['paddingTopMobile'], $settings['paddingRightMobile'], $settings['paddingBottomMobile'], $settings['paddingLeftMobile'] ), $settings['paddingUnit'] ); if ( ! $settings['isGrid'] ) { @@ -633,11 +633,11 @@ function generateblocks_get_dynamic_css( $content = '' ) { if ( $hasBgImage && 'fixed' === $settings['bgOptions']['attachment'] ) { if ( 'element' === $settings['bgOptions']['selector'] ) { - $mobile_css->set_selector( '.gb-container.gb-container-' . $id ); + $mobile_css->set_selector( '.gb-container-' . $id ); } if ( 'pseudo-element' === $settings['bgOptions']['selector'] ) { - $mobile_css->set_selector( '.gb-container.gb-container-' . $id . ':before' ); + $mobile_css->set_selector( '.gb-container-' . $id . ':before' ); } $mobile_css->add_property( 'background-attachment', 'initial' ); From 8f5e3f3b4cd17790820e2d0bdd4cb94d40c76636 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Thu, 10 Dec 2020 21:35:31 -0800 Subject: [PATCH 07/53] Add generateblocks_headline_selector_tagname filter --- includes/generate-css.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/generate-css.php b/includes/generate-css.php index 2b0e869ea..45afbc4c3 100644 --- a/includes/generate-css.php +++ b/includes/generate-css.php @@ -1090,7 +1090,11 @@ function generateblocks_get_dynamic_css( $content = '' ) { $id = $atts['uniqueId']; - $selector = $settings['element'] . '.gb-headline-' . $id; + $selector = '.gb-headline-' . $id; + + if ( apply_filters( 'generateblocks_headline_selector_tagname', true, $atts ) ) { + $selector = $settings['element'] . $selector; + } // Back-compatibility for when icon held a value. if ( $settings['icon'] ) { From a586fecd3292fc355a9c24537a0aef8b09e5e415 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Tue, 15 Dec 2020 13:21:11 -0800 Subject: [PATCH 08/53] Add script translations file for settings JS --- includes/class-settings.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/class-settings.php b/includes/class-settings.php index 42470af9f..b37eaba87 100644 --- a/includes/class-settings.php +++ b/includes/class-settings.php @@ -71,6 +71,10 @@ public function enqueue_scripts() { true ); + if ( function_exists( 'wp_set_script_translations' ) ) { + wp_set_script_translations( 'generateblocks-settings', 'generateblocks' ); + } + wp_localize_script( 'generateblocks-settings', 'generateBlocksSettings', From 9bca6a4b56fe31c040f46700cb0bdcba480e471e Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Tue, 15 Dec 2020 13:23:04 -0800 Subject: [PATCH 09/53] Add generateblocks.editor.panelContents filter --- src/components/panel-area/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/panel-area/index.js b/src/components/panel-area/index.js index 21a963cc9..a0b5bcdd8 100644 --- a/src/components/panel-area/index.js +++ b/src/components/panel-area/index.js @@ -58,11 +58,15 @@ export default class PanelArea extends Component { icon={ icon } className={ className } > - { children } + { + applyFilters( 'generateblocks.editor.panelContents', children, id, this.props ) + } ) : ( - { children } + { + applyFilters( 'generateblocks.editor.panelContents', children, id, this.props ) + } ) } From d294c257bb4d37e84f4306aa8b5944206e108a71 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Tue, 15 Dec 2020 13:23:15 -0800 Subject: [PATCH 10/53] Hide color picker label element if no label --- src/components/color-picker/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/color-picker/index.js b/src/components/color-picker/index.js index 287c508de..833a31d9c 100644 --- a/src/components/color-picker/index.js +++ b/src/components/color-picker/index.js @@ -59,9 +59,11 @@ export default class GenerateBlocksColorPicker extends Component { -
- { label } -
+ { !! label && +
+ { label } +
+ }
{ ! this.state.isVisible && From ca2442da53c17c0055a6b56dfc3346881d2685de Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Tue, 15 Dec 2020 13:23:17 -0800 Subject: [PATCH 11/53] Update blocks.js --- dist/blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/blocks.js b/dist/blocks.js index 3c1b59e9d..cbf7edd3e 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -1,6 +1,6 @@ !function(e){var t={};function a(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(l,i,function(t){return e[t]}.bind(null,i));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=39)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var a=0,l=new Array(t);a1?a-1:0),i=1;i/gm),L=i(/^data-[\-\w.\u00B7-\uFFFF]/),P=i(/^aria-[\-\w]+$/),A=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=i(/^(?:\w+script|data):/i),H=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function F(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:_(),a=function(t){return e(t)};if(a.version="2.2.2",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var i=t.document,r=t.document,n=t.DocumentFragment,o=t.HTMLTemplateElement,c=t.Node,s=t.NodeFilter,w=t.NamedNodeMap,G=void 0===w?t.NamedNodeMap||t.MozNamedAttrMap:w,V=t.Text,q=t.Comment,W=t.DOMParser,Z=t.trustedTypes;if("function"==typeof o){var K=r.createElement("template");K.content&&K.content.ownerDocument&&(r=K.content.ownerDocument)}var J=I(Z,i),Y=J&&Ee?J.createHTML(""):"",Q=r,X=Q.implementation,$=Q.createNodeIterator,ee=Q.getElementsByTagName,te=Q.createDocumentFragment,ae=i.importNode,le={};try{le=T(r).documentMode?r.documentMode:{}}catch(e){}var ie={};a.isSupported=X&&void 0!==X.createHTMLDocument&&9!==le;var re=z,ne=x,oe=L,ce=P,se=U,ge=H,ue=A,be=null,de=v({},[].concat(F(O),F(C),F(S),F(B),F(D))),pe=null,fe=v({},[].concat(F(E),F(j),F(R),F(M))),he=null,me=null,ke=!0,ye=!0,we=!1,ve=!1,Te=!1,Oe=!1,Ce=!1,Se=!1,Be=!1,De=!0,Ee=!1,je=!0,Re=!0,Me=!1,ze={},xe=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),Le=null,Pe=v({},["audio","video","img","source","image","track"]),Ae=null,Ue=v({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),He=null,Ne=r.createElement("form"),Fe=function(e){He&&He===e||(e&&"object"===(void 0===e?"undefined":N(e))||(e={}),e=T(e),be="ALLOWED_TAGS"in e?v({},e.ALLOWED_TAGS):de,pe="ALLOWED_ATTR"in e?v({},e.ALLOWED_ATTR):fe,Ae="ADD_URI_SAFE_ATTR"in e?v(T(Ue),e.ADD_URI_SAFE_ATTR):Ue,Le="ADD_DATA_URI_TAGS"in e?v(T(Pe),e.ADD_DATA_URI_TAGS):Pe,he="FORBID_TAGS"in e?v({},e.FORBID_TAGS):{},me="FORBID_ATTR"in e?v({},e.FORBID_ATTR):{},ze="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ye=!1!==e.ALLOW_DATA_ATTR,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=e.SAFE_FOR_TEMPLATES||!1,Te=e.WHOLE_DOCUMENT||!1,Se=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,De=!1!==e.RETURN_DOM_IMPORT,Ee=e.RETURN_TRUSTED_TYPE||!1,Ce=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Re=!1!==e.KEEP_CONTENT,Me=e.IN_PLACE||!1,ue=e.ALLOWED_URI_REGEXP||ue,ve&&(ye=!1),Be&&(Se=!0),ze&&(be=v({},[].concat(F(D))),pe=[],!0===ze.html&&(v(be,O),v(pe,E)),!0===ze.svg&&(v(be,C),v(pe,j),v(pe,M)),!0===ze.svgFilters&&(v(be,S),v(pe,j),v(pe,M)),!0===ze.mathMl&&(v(be,B),v(pe,R),v(pe,M))),e.ADD_TAGS&&(be===de&&(be=T(be)),v(be,e.ADD_TAGS)),e.ADD_ATTR&&(pe===fe&&(pe=T(pe)),v(pe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&v(Ae,e.ADD_URI_SAFE_ATTR),Re&&(be["#text"]=!0),Te&&v(be,["html","head","body"]),be.table&&(v(be,["tbody"]),delete he.tbody),l&&l(e),He=e)},_e=function(e){b(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=Y}},Ie=function(e,t){try{b(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(a.removed,{attribute:null,from:t})}t.removeAttribute(e)},Ge=function(e){var t=void 0,a=void 0;if(Ce)e=""+e;else{var l=p(e,/^[\r\n\t ]+/);a=l&&l[0]}var i=J?J.createHTML(e):e;try{t=(new W).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var n=(t=X.createHTMLDocument("")).body;n.parentNode.removeChild(n.parentNode.firstElementChild),n.outerHTML=i}return e&&a&&t.body.insertBefore(r.createTextNode(a),t.body.childNodes[0]||null),ee.call(t,Te?"html":"body")[0]},Ve=function(e){return $.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,(function(){return s.FILTER_ACCEPT}),!1)},qe=function(e){return!(e instanceof V||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof G&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},We=function(e){return"object"===(void 0===c?"undefined":N(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":N(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ze=function(e,t,l){ie[e]&&g(ie[e],(function(e){e.call(a,t,l,He)}))},Ke=function(e){var t=void 0;if(Ze("beforeSanitizeElements",e,null),qe(e))return _e(e),!0;if(p(e.nodeName,/[\u0080-\uFFFF]/))return _e(e),!0;var l=d(e.nodeName);if(Ze("uponSanitizeElement",e,{tagName:l,allowedTags:be}),("svg"===l||"math"===l)&&0!==e.querySelectorAll("p, br, form, table").length)return _e(e),!0;if(!We(e.firstElementChild)&&(!We(e.content)||!We(e.content.firstElementChild))&&k(/<[!/\w]/g,e.innerHTML)&&k(/<[!/\w]/g,e.textContent))return _e(e),!0;if(!be[l]||he[l]){if(Re&&!xe[l]&&"function"==typeof e.insertAdjacentHTML)try{var i=e.innerHTML;e.insertAdjacentHTML("AfterEnd",J?J.createHTML(i):i)}catch(e){}return _e(e),!0}return"noscript"!==l&&"noembed"!==l||!k(/<\/no(script|embed)/i,e.innerHTML)?(ve&&3===e.nodeType&&(t=e.textContent,t=f(t,re," "),t=f(t,ne," "),e.textContent!==t&&(b(a.removed,{element:e.cloneNode()}),e.textContent=t)),Ze("afterSanitizeElements",e,null),!1):(_e(e),!0)},Je=function(e,t,a){if(je&&("id"===t||"name"===t)&&(a in r||a in Ne))return!1;if(ye&&k(oe,t));else if(ke&&k(ce,t));else{if(!pe[t]||me[t])return!1;if(Ae[t]);else if(k(ue,f(a,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==h(a,"data:")||!Le[e])if(we&&!k(se,f(a,ge,"")));else if(a)return!1}return!0},Ye=function(e){var t=void 0,l=void 0,i=void 0,r=void 0;Ze("beforeSanitizeAttributes",e,null);var n=e.attributes;if(n){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(r=n.length;r--;){var c=t=n[r],s=c.name,g=c.namespaceURI;if(l=m(t.value),i=d(s),o.attrName=i,o.attrValue=l,o.keepAttr=!0,o.forceKeepAttr=void 0,Ze("uponSanitizeAttribute",e,o),l=o.attrValue,!o.forceKeepAttr&&(Ie(s,e),o.keepAttr))if(k(/\/>/i,l))Ie(s,e);else{ve&&(l=f(l,re," "),l=f(l,ne," "));var b=e.nodeName.toLowerCase();if(Je(b,i,l))try{g?e.setAttributeNS(g,s,l):e.setAttribute(s,l),u(a.removed)}catch(e){}}}Ze("afterSanitizeAttributes",e,null)}},Qe=function e(t){var a=void 0,l=Ve(t);for(Ze("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)Ze("uponSanitizeShadowNode",a,null),Ke(a)||(a.content instanceof n&&e(a.content),Ye(a));Ze("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e,l){var r=void 0,o=void 0,s=void 0,g=void 0,u=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!We(e)){if("function"!=typeof e.toString)throw y("toString is not a function");if("string"!=typeof(e=e.toString()))throw y("dirty is not a string, aborting")}if(!a.isSupported){if("object"===N(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(We(e))return t.toStaticHTML(e.outerHTML)}return e}if(Oe||Fe(l),a.removed=[],"string"==typeof e&&(Me=!1),Me);else if(e instanceof c)1===(o=(r=Ge("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Se&&!ve&&!Te&&-1===e.indexOf("<"))return J&&Ee?J.createHTML(e):e;if(!(r=Ge(e)))return Se?null:Y}r&&Ce&&_e(r.firstChild);for(var b=Ve(Me?e:r);s=b.nextNode();)3===s.nodeType&&s===g||Ke(s)||(s.content instanceof n&&Qe(s.content),Ye(s),g=s);if(g=null,Me)return e;if(Se){if(Be)for(u=te.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return De&&(u=ae.call(i,u,!0)),u}var d=Te?r.outerHTML:r.innerHTML;return ve&&(d=f(d,re," "),d=f(d,ne," ")),J&&Ee?J.createHTML(d):d},a.setConfig=function(e){Fe(e),Oe=!0},a.clearConfig=function(){He=null,Oe=!1},a.isValidAttribute=function(e,t,a){He||Fe({});var l=d(e),i=d(t);return Je(l,i,a)},a.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],b(ie[e],t))},a.removeHook=function(e){ie[e]&&u(ie[e])},a.removeHooks=function(e){ie[e]&&(ie[e]=[])},a.removeAllHooks=function(){ie={}},a}()}()},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var a=[],l=!0,i=!1,r=void 0;try{for(var n,o=e[Symbol.iterator]();!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){var l=a(15);e.exports=function(e){if(Array.isArray(e))return l(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,function(e,t,a){"use strict";a.r(t);var l=a(0),i=(a(17),a(3)),r=a.n(i),n=a(2),o=a.n(n),c=a(4),s=a.n(c),g=a(5),u=a.n(g),b=a(9),d=a.n(b),p=a(6),f=a.n(p),h=a(7),m=a.n(h),k=a(1),y=a.n(k),w=a(8),v=a.n(w),T=wp.element.createElement;function O(e){return"tabs-desktop"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},T("path",{d:"M18.95 4H4.55C3.55589 4 2.75 4.76751 2.75 5.71429V14.2857C2.75 15.2325 3.55589 16 4.55 16H18.95C19.9441 16 20.75 15.2325 20.75 14.2857V5.71429C20.75 4.76751 19.9441 4 18.95 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),T("path",{d:"M1.75 18C1.19772 18 0.75 18.4477 0.75 19C0.75 19.5523 1.19772 20 1.75 20H21.75C22.3023 20 22.75 19.5523 22.75 19C22.75 18.4477 22.3023 18 21.75 18H1.75ZM9 18.8C8.86193 18.8 8.75 18.9119 8.75 19.05C8.75 19.1881 8.86193 19.3 9 19.3H14.5C14.6381 19.3 14.75 19.1881 14.75 19.05C14.75 18.9119 14.6381 18.8 14.5 18.8H9Z",stroke:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):"tabs-tablet"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"M16.6429 4H7.35714C6.33147 4 5.5 4.71634 5.5 5.6V18.4C5.5 19.2837 6.33147 20 7.35714 20H16.6429C17.6685 20 18.5 19.2837 18.5 18.4V5.6C18.5 4.71634 17.6685 4 16.6429 4Z"}),T("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"M15.5714 4H8.42857C7.63959 4 7 4.71634 7 5.6V18.4C7 19.2837 7.63959 20 8.42857 20H15.5714C16.3604 20 17 19.2837 17 18.4V5.6C17 4.71634 16.3604 4 15.5714 4Z"}),T("path",{d:"M12 17.5H12.01"})):"sync"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"m7.34133533 6.23855964v-1.98499625c-2.17404351.03150788-4.03300825 1.38634659-4.85221305 3.27681921-.31507877.72468117-.44111028 1.51237809-.4096024 2.33158289.06301575 1.13428361.47261815 2.20555141 1.16579145 3.05626411.37809452.4411102.28357089 1.1027757-.18904726 1.4493623-.44111028.3150788-1.07126782.2205551-1.41785447-.1890473-.85071268-1.0397599-1.38634658-2.3315829-1.54388597-3.7179294-.12603151-1.00825211-.03150788-2.01650417.25206302-2.9302326.88222055-3.02475619 3.6864216-5.26181546 6.99474868-5.29332334v-1.98499624c0-.09452363.12603151-.15753939.22055514-.09452363l4.09602403 2.99324831c.0630157.06301575.0630157.15753938 0 .18904726l-4.09602403 2.99324831c-.09452363.06301575-.22055514 0-.22055514-.09452363zm.22055514 13.17029256c.09452363.0630158.22055514 0 .22055514-.0945236v-1.9849963c3.30832709-.0315078 6.11252809-2.2685671 6.99474869-5.2933233.252063-.9137284.3780945-1.8904726.252063-2.93023256-.1575394-1.38634658-.7246812-2.67816954-1.543886-3.71792948-.3465866-.44111028-.9767441-.53563391-1.4178544-.18904726-.4726182.34658665-.5671418 1.00825206-.1890473 1.44936234.6931733.85071268 1.1027757 1.89047262 1.1657915 3.05626407.0315078.81920479-.1260315 1.63840959-.4096024 2.33158289-.787697 1.8904726-2.6466617 3.2453113-4.85221309 3.2768192v-1.9849962c0-.0945237-.12603151-.1575394-.22055514-.0945237l-4.096024 2.9932483c-.06301576.0630158-.06301576.1575394 0 .1890473z",transform:"translate(4 2)"})):"headline"===e?T("svg",{width:24,height:24,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4",fill:"#1e72bd"})):"grid"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M20 .6c0-.3-.2-.6-.5-.6H.5C.2 0 0 .3 0 .6v4.6c0 .3.2.6.5.6h19c.3 0 .5-.3.5-.6V.6zM6.7 7.7c0-.3-.2-.6-.5-.6H.5c-.3 0-.5.3-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.3.5-.6l.1-4.6zM19.9 7.7c0-.3-.2-.6-.6-.6H8.6c-.4 0-.6.3-.6.6v4.5c0 .3.2.6.6.6h10.8c.3 0 .6-.3.6-.6l-.1-4.5z",fill:"#1d72ba"}),T("path",{d:"M20 14.8c0-.3-.2-.6-.5-.6h-5.6c-.3 0-.5.2-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.2.5-.6v-4.6zM12 14.8c0-.3-.2-.5-.5-.5H.5c-.3 0-.5.2-.5.5v4.6c0 .4.2.6.5.6h11c.3 0 .5-.2.5-.5v-4.7z",fill:"#1d72ba"})):"container"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M2.8 3.4c0-.4.3-.7.7-.7h1.2V0H3.4C1.5 0 0 1.5 0 3.4v1.2h2.8V3.4zM0 7.4h2.8v5.3H0zM17.2 7.4H20v5.3h-2.8zM17.2 16.6c0 .4-.3.7-.7.7h-1.2V20h1.2c1.9 0 3.4-1.5 3.4-3.4v-1.2h-2.8v1.2h.1zM7.4 0h5.3v2.8H7.4zM3.4 17.2c-.4 0-.7-.3-.7-.7v-1.2H0v1.2c0 2 1.5 3.5 3.4 3.5h1.2v-2.8H3.4zM7.4 17.2h5.3V20H7.4zM16.6 2.8c.4 0 .7.3.7.7v1.2H20V3.4C20 1.5 18.5 0 16.6 0h-1.2v2.8h1.2z",fill:"#1e72bd"})):"button"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M19.2 0H.8C.4 0 0 .4 0 .8v6.4c0 .4.4.8.8.8h18.4c.4 0 .8-.4.8-.8V.8c0-.4-.4-.8-.8-.8zM18.4 12H1.6c-.9 0-1.6.7-1.6 1.6v4.8c0 .9.7 1.6 1.6 1.6h16.8c.9 0 1.6-.7 1.6-1.6v-4.8c0-.9-.7-1.6-1.6-1.6zm.4 6.4c0 .2-.2.4-.4.4H1.6c-.2 0-.4-.2-.4-.4v-4.8c0-.2.2-.4.4-.4h16.8c.2 0 .4.2.4.4v4.8z",fill:"#1e72bd"})):"paragraph"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20"},T("path",{d:"M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71A.984.984 0 0 0 15 2z"})):"spacing"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),T("path",{d:"M40.452,77.705c7.802,1.393 23.794,1.393 31.596,0l13.635,13.635c-12.215,3.213 -46.652,3.213 -58.866,0l13.635,-13.635Zm50.888,-50.888c3.213,12.215 3.213,46.653 0,58.866l-13.635,-13.635c1.393,-7.801 1.393,-23.794 0,-31.596l13.635,-13.635Zm-70.18,0l13.635,13.635c-1.393,7.802 -1.393,23.794 0,31.596l-13.635,13.635c-3.213,-12.213 -3.213,-46.651 0,-58.866Zm5.657,-5.657c12.214,-3.213 46.652,-3.213 58.866,0l-13.635,13.635c-7.801,-1.393 -23.795,-1.393 -31.596,0l-13.635,-13.635Z"})):"advanced"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,37.215c6.632,2.124 6.632,23.512 0,25.636c-6.632,2.124 -73.42,2.124 -80.052,0c-6.632,-2.124 -6.632,-23.512 0,-25.636c6.632,-2.124 73.42,-2.124 80.052,0Z"}),T("path",{d:"M48.61,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"}),T("path",{d:"M90.955,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"})):"backgrounds"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M1.491,87.777l37.79,-37.79l31.352,31.352c2.412,2.171 5.656,0 5.656,0l17.248,-17.247l13.186,13.186l4.796,4.797c-0.971,12.199 -2.726,21.685 -5.249,24.208c-8.29,8.289 -91.776,8.289 -100.066,0c-2.113,-2.113 -3.687,-9.113 -4.713,-18.506Z"}),T("path",{d:"M0.631,77.323c-1.742,-27.728 0.125,-65.658 5.573,-71.106c8.29,-8.289 91.776,-8.289 100.066,0c5.07,5.07 7.039,38.265 5.89,65.185l-15.795,-15.795c-2.412,-2.172 -5.657,0 -5.657,0l-17.247,17.246l-31.351,-31.351c-0.731,-0.658 -1.036,-1 -2.619,-1.166c-0.263,0 -0.477,-0.075 -1.245,0.131c-0.912,0.244 -1.793,1.035 -1.793,1.035l-35.822,35.821Zm76.434,-59.584c7.115,0 12.891,5.776 12.891,12.89c0,7.114 -5.776,12.89 -12.891,12.89c-7.114,0 -12.89,-5.776 -12.89,-12.89c0,-7.114 5.776,-12.89 12.89,-12.89Z"})):"colors"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradients"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M112.426,48.746c0.503,25.204 -1.545,52.939 -6.143,57.537c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.289,-8.288 91.748,-8.289 100.061,-0.004c0,0 0.005,0.004 0.005,0.004c3.691,3.692 5.739,22.295 6.143,42.529Zm-16.154,-32.526c-6.656,-6.628 -73.418,-6.627 -80.048,0.004c-6.631,6.63 -6.632,73.392 -0.004,80.048l80.052,-80.052Z"})):"icons"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),T("path",{d:"M89.605,22.895c5.527,5.526 5.527,61.184 0,66.71c-5.526,5.527 -61.184,5.527 -66.71,0c-5.527,-5.526 -5.527,-61.184 0,-66.71c5.526,-5.527 61.184,-5.527 66.71,0Zm-21.066,62.31l0,-2.731c-0.648,-0.074 -1.272,-0.199 -1.87,-0.374c-0.599,-0.174 -1.148,-0.374 -1.646,-0.598c-0.699,-0.299 -1.235,-0.755 -1.609,-1.366c-0.374,-0.611 -0.561,-1.353 -0.561,-2.226l0,-29.703l-0.561,-0.561l-18.331,0.972l0,2.731c0.748,0.075 1.577,0.25 2.488,0.524c0.91,0.274 1.589,0.561 2.038,0.86c0.599,0.399 1.098,0.929 1.497,1.59c0.399,0.661 0.598,1.428 0.598,2.301l0,21.773c0,0.923 -0.162,1.665 -0.486,2.226c-0.324,0.561 -0.885,0.991 -1.683,1.29c-0.449,0.175 -0.986,0.3 -1.609,0.374c-0.624,0.075 -1.26,0.138 -1.908,0.187l0,2.731l23.643,0Zm-12.978,-59.459c4.76,0 8.625,3.864 8.625,8.625c0,4.76 -3.865,8.625 -8.625,8.625c-4.76,0 -8.625,-3.865 -8.625,-8.625c0,-4.761 3.865,-8.625 8.625,-8.625Z"})):"typography"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-8.783,78.583l0,-2.817c-0.661,-0.026 -1.481,-0.165 -2.46,-0.417c-0.979,-0.251 -1.773,-0.562 -2.381,-0.932c-0.9,-0.609 -1.601,-1.23 -2.103,-1.865c-0.503,-0.635 -0.953,-1.468 -1.349,-2.5l-18.769,-48.569l-3.175,0c-2.672,6.878 -5.714,14.721 -9.126,23.53c-3.266,8.43 -6.265,16.06 -8.998,22.891l-11.672,-28.684l-2.304,0c-1.939,4.742 -4.148,10.149 -6.625,16.222c-2.477,6.072 -4.743,11.543 -6.798,16.412c-0.403,0.949 -0.816,1.692 -1.238,2.23c-0.423,0.538 -1.018,1.053 -1.786,1.545c-0.48,0.292 -1.095,0.524 -1.844,0.698c-0.749,0.173 -1.373,0.278 -1.872,0.314l0,1.942l15.382,0l0,-1.942c-1.518,-0.073 -2.881,-0.31 -4.091,-0.711c-1.209,-0.401 -1.814,-0.966 -1.814,-1.696c0,-0.31 0.048,-0.711 0.144,-1.204c0.096,-0.492 0.268,-1.13 0.518,-1.914c0.269,-0.803 0.571,-1.678 0.907,-2.626c0.336,-0.948 0.773,-2.061 1.311,-3.338l14.316,0l3.399,8.699c0.012,0.03 0.024,0.06 0.036,0.092c-0.161,0.119 -0.329,0.237 -0.503,0.355c-0.661,0.423 -1.508,0.76 -2.539,1.012c-1.032,0.251 -1.892,0.403 -2.58,0.456l0,2.817l21.19,0l0,-2.817c-2.09,-0.106 -3.968,-0.45 -5.635,-1.032c-1.666,-0.582 -2.499,-1.402 -2.499,-2.46c0,-0.45 0.066,-1.032 0.198,-1.746c0.132,-0.714 0.37,-1.64 0.714,-2.777c0.371,-1.164 0.787,-2.434 1.25,-3.81c0.463,-1.375 1.065,-2.989 1.806,-4.841l19.721,0l4.682,12.619c0.106,0.264 0.186,0.568 0.238,0.912c0.053,0.344 0.08,0.635 0.08,0.873c0,0.582 -0.681,1.072 -2.044,1.468c-1.362,0.397 -3.075,0.662 -5.138,0.794l0,2.817l23.451,0Zm-56.864,-15.865l-6.193,-15.045l-6.078,15.045l12.271,0Zm34.167,-7.15l-8.532,-21.824l-8.373,21.824l16.905,0Z"})):"addContainer"===e?T("svg",{width:20,height:20,viewBox:"0 0 64 64",fillRule:"evenodd"},T("path",{d:"M41.454,57.126l0,6.409c-6.088,0.286 -12.82,0.286 -18.908,0l0,-6.409c5.957,0.366 12.951,0.366 18.908,0Zm-33.93,-8.899c0.458,3.226 1.086,5.568 1.883,6.366c0.798,0.797 3.14,1.425 6.366,1.883l0,6.592c-6.084,-0.578 -10.706,-1.519 -12.015,-2.826c-1.307,-1.309 -2.248,-5.931 -2.826,-12.015l6.592,0Zm55.544,0c-0.578,6.084 -1.519,10.706 -2.826,12.015c-1.309,1.307 -5.931,2.248 -12.015,2.826l0,-6.592c3.226,-0.458 5.568,-1.086 6.366,-1.883c0.797,-0.798 1.425,-3.14 1.883,-6.366l6.592,0Zm0.467,-25.681c0.286,6.088 0.286,12.82 0,18.908l-6.409,0c0.366,-5.957 0.366,-12.951 0,-18.908l6.409,0Zm-56.661,0c-0.366,5.957 -0.366,12.951 0,18.908l-6.409,0c-0.286,-6.088 -0.286,-12.82 0,-18.908l6.409,0Zm41.353,-21.614c6.084,0.578 10.706,1.519 12.015,2.826c1.307,1.309 2.248,5.931 2.826,12.015l-6.592,0c-0.458,-3.226 -1.086,-5.568 -1.883,-6.366c-0.798,-0.797 -3.14,-1.425 -6.366,-1.883l0,-6.592Zm-32.454,0l0,6.592c-3.226,0.458 -5.568,1.086 -6.366,1.883c-0.797,0.798 -1.425,3.14 -1.883,6.366l-6.592,0c0.578,-6.084 1.519,-10.706 2.826,-12.015c1.309,-1.307 5.931,-2.248 12.015,-2.826Zm6.773,-0.467c6.088,-0.286 12.82,-0.286 18.908,0l0,6.409c-5.957,-0.366 -12.951,-0.366 -18.908,0l0,-6.409Z"}),T("path",{d:"M18.03,29.037l11.007,0l0,-11.007l6.773,0l0,11.007l11.007,0l0,6.773l-11.007,0l0,11.007l-6.773,0l0,-11.007l-11.007,0l0,-6.773Z"})):"gradient"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},T("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"documentation"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.755 6.245c8.327 8.326 8.327 92.184 0 100.51-8.326 8.327-92.184 8.327-100.51 0-8.327-8.326-8.327-92.184 0-100.51 8.326-8.327 92.184-8.327 100.51 0zm-92.661 93.896C9.279 84 9.781 23.714 15.834 17.661c2.491-2.491 19.588-4.132 26.354-4.712 4.748-.408 10.115.671 14.243 1.23 4.128-.559 9.495-1.638 14.243-1.23 6.766.58 23.863 2.221 26.354 4.712 6.053 6.053 6.791 66.339 1.976 82.48-4.729-1.977-19.708-3.436-26.784-3.853-5.234-.308-11.129.739-15.671 1.354-4.543-.615-10.437-1.662-15.672-1.354-7.075.417-22.054 1.876-26.783 3.853z"}),T("path",{d:"M50.188 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM50.277 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 73.799c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0z"}),T("path",{d:"M89.909 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM89.998 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM89.998 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0z"})):"layout"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.719 6.238c8.362 8.362 8.362 92.208 0 100.57-8.362 8.287-92.208 8.287-100.495 0-8.362-8.362-8.362-92.208 0-100.57 8.287-8.286 92.133-8.286 100.495 0zm-9.417 9.417c6.78 6.78 6.78 74.957 0 81.737-6.78 6.78-74.956 6.78-81.661 0-6.78-6.78-6.78-74.957 0-81.737 6.705-6.78 74.881-6.78 81.661 0z"}),T("path",{d:"M93.988 48.877c.602 17.477-.754 37.893-3.993 41.132-3.164 3.164-22.75 4.52-40.002 4.068v-45.2h43.995zm-75.108 0h23.58v44.899c-9.718-.603-17.553-1.808-19.512-3.767-3.24-3.24-4.595-23.655-4.068-41.132zm.377-7.533c.678-9.19 1.883-16.498 3.691-18.306 5.575-5.575 61.472-5.575 67.047 0 1.808 1.808 3.013 9.115 3.691 18.306h-74.43z"})):"shapes"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.756,6.244C115.081,14.571 115.081,98.429 106.756,106.756C98.429,115.081 14.571,115.081 6.244,106.756C-2.081,98.429 -2.081,14.571 6.244,6.244C14.571,-2.081 98.429,-2.081 106.756,6.244ZM67.875,88.052C67.875,86.977 67.003,86.105 65.928,86.105L47.072,86.105C45.997,86.105 45.125,86.977 45.125,88.052L45.125,91.948C45.125,93.023 45.997,93.896 47.072,93.896L65.928,93.896C67.003,93.896 67.875,93.023 67.875,91.948L67.875,88.052ZM57.899,31.409L59.305,31.409C60.853,31.409 62.11,30.152 62.11,28.604L62.11,28.089L73.263,57.543C73.757,58.333 73.731,59.161 73.731,59.403C73.729,62.659 65.231,69.414 65.375,83.611L47.625,83.611C47.769,69.414 39.271,62.659 39.269,59.403C39.269,59.161 39.243,58.333 39.737,57.543L50.89,28.089L50.89,28.604C50.89,30.152 52.147,31.409 53.695,31.409L55.101,31.409C55.111,35.738 55.142,50.367 55.098,54.109C55.093,54.494 54.907,54.988 54.68,55.45C52.915,56.169 51.669,57.903 51.669,59.925C51.669,62.592 53.834,64.756 56.5,64.756C59.166,64.756 61.331,62.592 61.331,59.925C61.331,57.903 60.085,56.169 58.32,55.45C58.093,54.988 57.907,54.494 57.902,54.109C57.858,50.367 57.889,35.738 57.899,31.409ZM52.227,19.451L52.227,18.881C52.227,17.702 53.185,16.745 54.364,16.745L58.636,16.745C59.815,16.745 60.773,17.702 60.773,18.881L60.773,19.451L88.831,19.451C89.457,17.867 91.002,16.745 92.807,16.745C95.165,16.745 97.08,18.66 97.08,21.018C97.08,23.376 95.165,25.29 92.807,25.29C91.03,25.29 89.505,24.203 88.861,22.658L71.798,22.658C83.83,28.003 92.531,39.501 93.898,53.148L94.93,53.148C96.109,53.148 97.067,54.105 97.067,55.284L97.067,59.557C97.067,60.736 96.109,61.693 94.93,61.693L90.657,61.693C89.478,61.693 88.521,60.736 88.521,59.557L88.521,55.284C88.521,54.105 89.478,53.148 90.657,53.148L90.922,53.148C89.19,37.24 76.627,24.564 60.773,22.659L60.773,23.154C60.773,24.333 59.815,25.29 58.636,25.29L54.364,25.29C53.185,25.29 52.227,24.333 52.227,23.154L52.227,22.688C36.484,24.689 24.036,37.318 22.312,53.148L22.329,53.148C23.508,53.148 24.466,54.105 24.466,55.284L24.466,59.557C24.466,60.736 23.508,61.693 22.329,61.693L18.056,61.693C16.877,61.693 15.92,60.736 15.92,59.557L15.92,55.284C15.92,54.105 16.877,53.148 18.056,53.148L19.336,53.148C20.703,39.501 29.405,28.003 41.437,22.658L24.139,22.658C23.495,24.203 21.97,25.29 20.193,25.29C17.835,25.29 15.92,23.376 15.92,21.018C15.92,18.66 17.835,16.745 20.193,16.745C21.998,16.745 23.543,17.867 24.169,19.451L52.227,19.451Z"})):void 0}a(18);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var S=wp.element,B=S.Component,D=S.Fragment,E=wp.i18n.__,j=wp.components,R=j.Tooltip,M=j.Button,z=wp.hooks.applyFilters,x=function(e){f()(a,e);var t=C(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.onClick,a=e.selectedDevice;return Object(l.createElement)(D,null,Object(l.createElement)("div",{className:"gb-responsive-tabs"},Object(l.createElement)(R,{text:E("Show options for all devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Desktop"===a,onClick:function(){t("Desktop")}},E("Desktop","generateblocks"))),Object(l.createElement)(R,{text:E("Show options for tablet devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Tablet"===a,onClick:function(){t("Tablet")}},E("Tablet","generateblocks"))),Object(l.createElement)(R,{text:E("Show options for mobile devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Mobile"===a,onClick:function(){t("Mobile")}},E("Mobile","generateblocks")))),z("generateblocks.editor.controls","","afterResponsiveTabs",this.props,this.state))}}]),a}(B);a(19);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var P=wp.element.Component,A=wp.i18n,U=A.__,H=A.sprintf,N=A._x,F=wp.components,_=F.ButtonGroup,I=F.Button,G=F.Tooltip,V=function(e){f()(a,e);var t=L(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.label,a=e.value,i=e.onClick,r=e.units;return Object(l.createElement)("div",{className:"components-gblocks-units-control-header__units"},Object(l.createElement)("div",{className:"components-gblocks-units-control-label__units"},t),Object(l.createElement)("div",{className:"components-gblocks-control__units"},Object(l.createElement)(_,{className:"components-gblocks-control-buttons__units","aria-label":U("Select Units","generateblocks")},r.map((function(e){var t=e;return"px"===e&&(t=N("Pixel","A size unit for CSS markup","generateblocks")),"em"===e&&(t=N("Em","A size unit for CSS markup","generateblocks")),"%"===e&&(t=N("Percentage","A size unit for CSS markup","generateblocks")),"deg"===e&&(t=N("Degree","A size unit for CSS markup","generateblocks")),Object(l.createElement)(G /* translators: Unit type (px, em, %) */,{text:H(U("%s Units","generateblocks"),t),key:e},Object(l.createElement)(I,{key:e,className:"components-gblocks-control-button__units--"+e,isSmall:!0,isPrimary:a===e,"aria-pressed":a===e -/* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":H(U("%s Units","generateblocks"),t),onClick:function(){return i(e)}},e))})))))}}]),a}(P),q=a(12),W=a.n(q);function Z(e){for(var t="",a=0,l=Object.entries(e);a0&&(t+=o)}}return t}function K(e,t){return!(!e&&0!==e)&&e+t}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Y=wp.element.Component,Q=wp.hooks.applyFilters,X=function(e){f()(a,e);var t=J(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Q("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGap,i=e.verticalGap,r=e.verticalAlignment,n=e.horizontalAlignment,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":r,"justify-content":n,"margin-left":"-"+a/2+"px","margin-right":"-"+a/2+"px"}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a/2+"px","padding-right":a/2+"px","margin-bottom":K(i,"px")}],o=Q("generateblocks.editor.mainCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(Y);function $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ee=wp.element.Component,te=wp.hooks.applyFilters,ae=function(e){f()(a,e);var t=$(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=te("generateblocks.editor.desktopCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ee);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ie=wp.element.Component,re=wp.hooks.applyFilters,ne=function(e){f()(a,e);var t=le(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=re("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapTablet,i=e.verticalGapTablet,r=e.verticalAlignmentTablet,n=e.horizontalAlignmentTablet,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=re("generateblocks.editor.tabletCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(ie);function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ce=wp.element.Component,se=wp.hooks.applyFilters,ge=function(e){f()(a,e);var t=oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=se("generateblocks.editor.tabletOnlyCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ce);function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var be=wp.element.Component,de=wp.hooks.applyFilters,pe=function(e){f()(a,e);var t=ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=de("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapMobile,i=e.verticalGapMobile,r=e.verticalAlignmentMobile,n=e.horizontalAlignmentMobile,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=de("generateblocks.editor.mobileCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(be),fe=a(11),he=a.n(fe);function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ke=wp.hooks.applyFilters,ye=function(e){f()(a,e);var t=me(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.children;return ke(t,a||"",this.props)}}]),a}(wp.element.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ve=wp.components.PanelBody,Te=wp.element.Component,Oe=wp.hooks.applyFilters,Ce=function(e){f()(a,e);var t=we(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=void 0!==t&&t,i=e.initialOpen,r=void 0!==i&&i,n=e.icon,o=e.className,c=e.id,s=e.state,g=e.showPanel,u=void 0===g||g,b=e.children;if(!Oe("generateblocks.editor.showPanel",u,c,this.props))return null;var d=!0;return""===b&&(d=!1),"object"===he()(b)&&(d=Object.values(b).some((function(e){return null!==e&&!1!==e&&""!==e}))),d?Object(l.createElement)(ye,{name:"generateblocks.panel."+c,props:this.props,state:s},a?Object(l.createElement)(ve,{title:a,initialOpen:r,icon:n,className:o},b):Object(l.createElement)(ve,null,b)):null}}]),a}(Te);function Se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Be=wp.i18n.__,De=wp.components,Ee=De.TextControl,je=De.SelectControl,Re=De.Placeholder,Me=De.Button,ze=De.ToolbarGroup,xe=De.ToolbarButton,Le=wp.element,Pe=Le.Fragment,Ae=Le.Component,Ue=wp.blockEditor,He=Ue.InspectorControls,Ne=Ue.InnerBlocks,Fe=Ue.BlockControls,_e=Ue.InspectorAdvancedControls,Ie=wp.blocks.createBlock,Ge=wp.hooks.applyFilters,Ve=wp.data,qe=Ve.withSelect,We=Ve.withDispatch,Ze=wp.compose.compose,Ke=/[\s#]/g,Je=[],Ye=function(e){f()(a,e);var t=Se(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedLayout:!1,selectedDevice:"Desktop"},e.onLayoutSelect=e.onLayoutSelect.bind(d()(e)),e.getColumnsFromLayout=e.getColumnsFromLayout.bind(d()(e)),e.getLayoutsSelector=e.getLayoutsSelector.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Je.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Je.push(e)):Je.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Je.push(e)),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId;t.columns;if(this.state.selectedLayout){var i=this.getColumnsFromLayout(this.state.selectedLayout);i.forEach((function(e){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",e),void 0,l,!1)})),a({columns:i.length}),this.setState({selectedLayout:!1})}else{var r=wp.data.select("core/block-editor").getBlocksByClientId(l)[0];if(r)a({columns:r.innerBlocks.length})}}},{key:"getColumnsFromLayout",value:function(e){var t=this,a=[],l=e.split("-"),i=0;return l.forEach((function(){var e={isGrid:!0,gridId:t.props.attributes.uniqueId,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"};e.width=Number(l[i]),i++,a.push(e)})),a}},{key:"getLayoutsSelector",value:function(){var e=this;return Object(l.createElement)(Re,{label:Be("Grid","generateblocks"),instructions:Be("Select one layout to get started.","generateblocks"),className:"gb-select-layout"},Object(l.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16.66-16.66-16.66-16.66-16.66-16.66"].map((function(t){var a=e.getColumnsFromLayout(t);return Object(l.createElement)("button",{key:"layout-".concat(t),className:"gb-grid-wrapper-layout-preview-btn",onClick:function(){return e.onLayoutSelect(t)}},a.map((function(e,a){return Object(l.createElement)("div",{key:"layout-".concat(t,"-col-").concat(a),className:v()("gb-col","gb-col-".concat(e.width))})})))}))))}},{key:"onLayoutSelect",value:function(e){this.setState({selectedLayout:e})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.columns,d=i.horizontalGap,p=i.verticalGap,f=i.verticalAlignment,h=i.horizontalGapTablet,m=i.verticalGapTablet,k=i.verticalAlignmentTablet,y=i.horizontalGapMobile,w=i.verticalGapMobile,T=i.verticalAlignmentMobile,C=i.horizontalAlignment,S=i.horizontalAlignmentTablet,B=i.horizontalAlignmentMobile,D=d||0===d?d:"",E=p||0===p?p:"",j=d||0===d?d:"",R=p||0===p?p:"";h&&(j=h),m&&(R=m);var M={className:v()((e={"gb-grid-wrapper":!0},o()(e,"gb-grid-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return M=Ge("generateblocks.frontend.htmlAttributes",M,"generateblocks/grid",i),Object(l.createElement)(Pe,null,Object(l.createElement)(Fe,null,Object(l.createElement)(ze,null,Object(l.createElement)(xe,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:O("addContainer"),label:Be("Add Grid Item","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",{isGrid:!0,gridId:s,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"}),void 0,c)},showTooltip:!0}))),Object(l.createElement)(He,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{id:"gridLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:d||0===d?d:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGap:e})},onBlur:function(){!d&&generateBlocksDefaults.gridContainer.horizontalGap?n({horizontalGap:0}):n({horizontalGap:parseFloat(d)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGap:generateBlocksDefaults.gridContainer.horizontalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:p||0===p?p:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGap:e})},onBlur:function(){!p&&generateBlocksDefaults.gridContainer.verticalGap?n({verticalGap:0}):n({verticalGap:parseFloat(p)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGap:generateBlocksDefaults.gridContainer.verticalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),value:f,help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:C,options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignment:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:h||0===h?h:"",min:"0",placeholder:D,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapTablet:e})},onBlur:function(){!h&&generateBlocksDefaults.gridContainer.horizontalGapTablet?n({horizontalGapTablet:0}):n({horizontalGapTablet:parseFloat(h)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapTablet:generateBlocksDefaults.gridContainer.horizontalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:m||0===m?m:"",min:"0",placeholder:E,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapTablet:e})},onBlur:function(){!m&&generateBlocksDefaults.gridContainer.verticalGapTablet?n({verticalGapTablet:0}):n({verticalGapTablet:parseFloat(m)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapTablet:generateBlocksDefaults.gridContainer.verticalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:k,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:S,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:y||0===y?y:"",min:"0",placeholder:j,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapMobile:e})},onBlur:function(){!y&&generateBlocksDefaults.gridContainer.horizontalGapMobile?n({horizontalGapMobile:0}):n({horizontalGapMobile:parseFloat(y)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapMobile:generateBlocksDefaults.gridContainer.horizontalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:w||0===w?w:"",min:"0",placeholder:R,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapMobile:e})},onBlur:function(){!w&&generateBlocksDefaults.gridContainer.verticalGapMobile?n({verticalGapMobile:0}):n({verticalGapMobile:parseFloat(w)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapMobile:generateBlocksDefaults.gridContainer.verticalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:T,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:B,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentMobile:e})}})),Ge("generateblocks.editor.controls","","gridLayout",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Be("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"gridDocumentation",state:this.state}),Object(l.createElement)("p",null,Be("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/grid/",target:"_blank",rel:"noreferrer noopener"},Be("Visit our documentation","generateblocks")),Ge("generateblocks.editor.controls","","gridDocumentation",this.props,this.state))),Object(l.createElement)(_e,null,Object(l.createElement)(Ee,{label:Be("HTML Anchor"),help:Be("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(Ke,"-"),n({anchor:e})}})),Object(l.createElement)(X,this.props),this.props.deviceType&&Object(l.createElement)(Pe,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(ae,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(ne,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ge,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(pe,this.props)),Object(l.createElement)("div",M,b>0||this.state.selectedLayout?Object(l.createElement)(Pe,null,Object(l.createElement)(Ne,{allowedBlocks:["generateblocks/container"],renderAppender:!1})):this.getLayoutsSelector()))}}]),a}(Ae),Qe=Ze([We((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),qe((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Ye),Xe={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function $e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function et(e){for(var t=1;t0&&(t+=o)}}return t}function K(e,t){return!(!e&&0!==e)&&e+t}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Y=wp.element.Component,Q=wp.hooks.applyFilters,X=function(e){f()(a,e);var t=J(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Q("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGap,i=e.verticalGap,r=e.verticalAlignment,n=e.horizontalAlignment,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":r,"justify-content":n,"margin-left":"-"+a/2+"px","margin-right":"-"+a/2+"px"}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a/2+"px","padding-right":a/2+"px","margin-bottom":K(i,"px")}],o=Q("generateblocks.editor.mainCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(Y);function $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ee=wp.element.Component,te=wp.hooks.applyFilters,ae=function(e){f()(a,e);var t=$(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=te("generateblocks.editor.desktopCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ee);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ie=wp.element.Component,re=wp.hooks.applyFilters,ne=function(e){f()(a,e);var t=le(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=re("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapTablet,i=e.verticalGapTablet,r=e.verticalAlignmentTablet,n=e.horizontalAlignmentTablet,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=re("generateblocks.editor.tabletCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(ie);function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ce=wp.element.Component,se=wp.hooks.applyFilters,ge=function(e){f()(a,e);var t=oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=se("generateblocks.editor.tabletOnlyCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ce);function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var be=wp.element.Component,de=wp.hooks.applyFilters,pe=function(e){f()(a,e);var t=ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=de("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapMobile,i=e.verticalGapMobile,r=e.verticalAlignmentMobile,n=e.horizontalAlignmentMobile,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=de("generateblocks.editor.mobileCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(be),fe=a(11),he=a.n(fe);function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ke=wp.hooks.applyFilters,ye=function(e){f()(a,e);var t=me(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.children;return ke(t,a||"",this.props)}}]),a}(wp.element.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ve=wp.components.PanelBody,Te=wp.element.Component,Oe=wp.hooks.applyFilters,Ce=function(e){f()(a,e);var t=we(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=void 0!==t&&t,i=e.initialOpen,r=void 0!==i&&i,n=e.icon,o=e.className,c=e.id,s=e.state,g=e.showPanel,u=void 0===g||g,b=e.children;if(!Oe("generateblocks.editor.showPanel",u,c,this.props))return null;var d=!0;return""===b&&(d=!1),"object"===he()(b)&&(d=Object.values(b).some((function(e){return null!==e&&!1!==e&&""!==e}))),d?Object(l.createElement)(ye,{name:"generateblocks.panel."+c,props:this.props,state:s},a?Object(l.createElement)(ve,{title:a,initialOpen:r,icon:n,className:o},Oe("generateblocks.editor.panelContents",b,c,this.props)):Object(l.createElement)(ve,null,Oe("generateblocks.editor.panelContents",b,c,this.props))):null}}]),a}(Te);function Se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Be=wp.i18n.__,De=wp.components,Ee=De.TextControl,je=De.SelectControl,Re=De.Placeholder,Me=De.Button,ze=De.ToolbarGroup,xe=De.ToolbarButton,Le=wp.element,Pe=Le.Fragment,Ae=Le.Component,Ue=wp.blockEditor,He=Ue.InspectorControls,Ne=Ue.InnerBlocks,Fe=Ue.BlockControls,_e=Ue.InspectorAdvancedControls,Ie=wp.blocks.createBlock,Ge=wp.hooks.applyFilters,Ve=wp.data,qe=Ve.withSelect,We=Ve.withDispatch,Ze=wp.compose.compose,Ke=/[\s#]/g,Je=[],Ye=function(e){f()(a,e);var t=Se(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedLayout:!1,selectedDevice:"Desktop"},e.onLayoutSelect=e.onLayoutSelect.bind(d()(e)),e.getColumnsFromLayout=e.getColumnsFromLayout.bind(d()(e)),e.getLayoutsSelector=e.getLayoutsSelector.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Je.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Je.push(e)):Je.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Je.push(e)),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId;t.columns;if(this.state.selectedLayout){var i=this.getColumnsFromLayout(this.state.selectedLayout);i.forEach((function(e){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",e),void 0,l,!1)})),a({columns:i.length}),this.setState({selectedLayout:!1})}else{var r=wp.data.select("core/block-editor").getBlocksByClientId(l)[0];if(r)a({columns:r.innerBlocks.length})}}},{key:"getColumnsFromLayout",value:function(e){var t=this,a=[],l=e.split("-"),i=0;return l.forEach((function(){var e={isGrid:!0,gridId:t.props.attributes.uniqueId,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"};e.width=Number(l[i]),i++,a.push(e)})),a}},{key:"getLayoutsSelector",value:function(){var e=this;return Object(l.createElement)(Re,{label:Be("Grid","generateblocks"),instructions:Be("Select one layout to get started.","generateblocks"),className:"gb-select-layout"},Object(l.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16.66-16.66-16.66-16.66-16.66-16.66"].map((function(t){var a=e.getColumnsFromLayout(t);return Object(l.createElement)("button",{key:"layout-".concat(t),className:"gb-grid-wrapper-layout-preview-btn",onClick:function(){return e.onLayoutSelect(t)}},a.map((function(e,a){return Object(l.createElement)("div",{key:"layout-".concat(t,"-col-").concat(a),className:v()("gb-col","gb-col-".concat(e.width))})})))}))))}},{key:"onLayoutSelect",value:function(e){this.setState({selectedLayout:e})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.columns,d=i.horizontalGap,p=i.verticalGap,f=i.verticalAlignment,h=i.horizontalGapTablet,m=i.verticalGapTablet,k=i.verticalAlignmentTablet,y=i.horizontalGapMobile,w=i.verticalGapMobile,T=i.verticalAlignmentMobile,C=i.horizontalAlignment,S=i.horizontalAlignmentTablet,B=i.horizontalAlignmentMobile,D=d||0===d?d:"",E=p||0===p?p:"",j=d||0===d?d:"",R=p||0===p?p:"";h&&(j=h),m&&(R=m);var M={className:v()((e={"gb-grid-wrapper":!0},o()(e,"gb-grid-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return M=Ge("generateblocks.frontend.htmlAttributes",M,"generateblocks/grid",i),Object(l.createElement)(Pe,null,Object(l.createElement)(Fe,null,Object(l.createElement)(ze,null,Object(l.createElement)(xe,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:O("addContainer"),label:Be("Add Grid Item","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",{isGrid:!0,gridId:s,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"}),void 0,c)},showTooltip:!0}))),Object(l.createElement)(He,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{id:"gridLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:d||0===d?d:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGap:e})},onBlur:function(){!d&&generateBlocksDefaults.gridContainer.horizontalGap?n({horizontalGap:0}):n({horizontalGap:parseFloat(d)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGap:generateBlocksDefaults.gridContainer.horizontalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:p||0===p?p:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGap:e})},onBlur:function(){!p&&generateBlocksDefaults.gridContainer.verticalGap?n({verticalGap:0}):n({verticalGap:parseFloat(p)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGap:generateBlocksDefaults.gridContainer.verticalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),value:f,help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:C,options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignment:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:h||0===h?h:"",min:"0",placeholder:D,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapTablet:e})},onBlur:function(){!h&&generateBlocksDefaults.gridContainer.horizontalGapTablet?n({horizontalGapTablet:0}):n({horizontalGapTablet:parseFloat(h)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapTablet:generateBlocksDefaults.gridContainer.horizontalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:m||0===m?m:"",min:"0",placeholder:E,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapTablet:e})},onBlur:function(){!m&&generateBlocksDefaults.gridContainer.verticalGapTablet?n({verticalGapTablet:0}):n({verticalGapTablet:parseFloat(m)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapTablet:generateBlocksDefaults.gridContainer.verticalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:k,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:S,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:y||0===y?y:"",min:"0",placeholder:j,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapMobile:e})},onBlur:function(){!y&&generateBlocksDefaults.gridContainer.horizontalGapMobile?n({horizontalGapMobile:0}):n({horizontalGapMobile:parseFloat(y)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapMobile:generateBlocksDefaults.gridContainer.horizontalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:w||0===w?w:"",min:"0",placeholder:R,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapMobile:e})},onBlur:function(){!w&&generateBlocksDefaults.gridContainer.verticalGapMobile?n({verticalGapMobile:0}):n({verticalGapMobile:parseFloat(w)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapMobile:generateBlocksDefaults.gridContainer.verticalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:T,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:B,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentMobile:e})}})),Ge("generateblocks.editor.controls","","gridLayout",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Be("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"gridDocumentation",state:this.state}),Object(l.createElement)("p",null,Be("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/grid/",target:"_blank",rel:"noreferrer noopener"},Be("Visit our documentation","generateblocks")),Ge("generateblocks.editor.controls","","gridDocumentation",this.props,this.state))),Object(l.createElement)(_e,null,Object(l.createElement)(Ee,{label:Be("HTML Anchor"),help:Be("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(Ke,"-"),n({anchor:e})}})),Object(l.createElement)(X,this.props),this.props.deviceType&&Object(l.createElement)(Pe,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(ae,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(ne,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ge,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(pe,this.props)),Object(l.createElement)("div",M,b>0||this.state.selectedLayout?Object(l.createElement)(Pe,null,Object(l.createElement)(Ne,{allowedBlocks:["generateblocks/container"],renderAppender:!1})):this.getLayoutsSelector()))}}]),a}(Ae),Qe=Ze([We((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),qe((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Ye),Xe={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function $e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function et(e){for(var t=1;t Date: Tue, 15 Dec 2020 13:23:23 -0800 Subject: [PATCH 12/53] Update blocks.asset.php --- dist/blocks.asset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index 93946a9b8..31efd6414 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-element', 'wp-polyfill'), 'version' => '47690c24a325be707b4e52046bf01a94'); \ No newline at end of file + array('wp-element', 'wp-polyfill'), 'version' => '06cacee1e3f7f01088792c9a4d77ad85'); \ No newline at end of file From 4bc546e5400edc781a1e0bdb085738ac02e4a396 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Tue, 15 Dec 2020 20:08:21 -0800 Subject: [PATCH 13/53] Merge bg image and gradient controls into one tab --- src/blocks/container/edit.js | 504 ++++++++++++++++++----------------- 1 file changed, 265 insertions(+), 239 deletions(-) diff --git a/src/blocks/container/edit.js b/src/blocks/container/edit.js index 70b11674f..1e5faa40c 100644 --- a/src/blocks/container/edit.js +++ b/src/blocks/container/edit.js @@ -37,6 +37,7 @@ const { PanelRow, Tooltip, Dropdown, + TabPanel, } = wp.components; const { @@ -402,6 +403,23 @@ class GenerateBlockContainer extends Component { htmlAttributes = applyFilters( 'generateblocks.frontend.htmlAttributes', htmlAttributes, 'generateblocks/container', attributes ); + let containerTabs = []; + + if ( 'Desktop' === this.getDeviceType() ) { + containerTabs = [ + { + name: 'image', + title: __( 'Image', 'generateblocks' ), + }, + { + name: 'gradient', + title: __( 'Gradient', 'generateblocks' ), + }, + ]; + } + + const containerTabsOutput = applyFilters( 'generateblocks.editor.containerTabOptions', containerTabs ); + return ( @@ -1302,262 +1320,270 @@ class GenerateBlockContainer extends Component { - { 'Desktop' === this.getDeviceType() && - - } - - { applyFilters( 'generateblocks.editor.controls', '', 'containerBackgroundGradient', this.props, this.state ) } - - - - { 'Desktop' === this.getDeviceType() && - - -
- { - if ( ! value ) { - setAttributes( { - bgImage: null, - } ); - } else { - setAttributes( { - bgImage: { - id: '', - image: { - url: value, - }, - }, - } ); - } - } } - /> - -
- { - let size = generateBlocksDefaults.container.bgImageSize; - - if ( 'undefined' === typeof media.sizes[ size ] ) { - size = 'full'; - } - - setAttributes( { - bgImage: { - id: media.id, - image: media.sizes[ size ], - }, - } ); - } } - onClose={ () => { - document.querySelector( '.gblocks-bg-image-wrapper input' ).focus(); - } } - allowedTypes={ [ 'image' ] } - value={ !! bgImage ? bgImage.id : '' } - modalClass="editor-gb-container-background__media-modal" - render={ ( { open } ) => ( - - - - ) } - /> +
+ { + if ( ! value ) { + setAttributes( { + bgImage: null, + } ); + } else { + setAttributes( { + bgImage: { + id: '', + image: { + url: value, + }, + }, + } ); + } + } } + /> - { applyFilters( 'generateblocks.editor.backgroundImageActions', '', this.props, this.state ) } -
-
- +
+ { + let size = generateBlocksDefaults.container.bgImageSize; - { !! bgImage && ( -
- { !! bgOptions.overlay ? ( // This option is deprecated, so only show it if it's in use. - - { - setAttributes( { - bgOptions: { - ...bgOptions, - overlay: nextOverlay, - }, - } ); - } } - /> + if ( 'undefined' === typeof media.sizes[ size ] ) { + size = 'full'; + } - - { __( 'The background color overlay option is deprecated. Toggle this option to use the new method.', 'generateblocks' ) } - - - ) : ( // These options is only for people not using the deprecated overlay option. - - { 'undefined' !== typeof bgImage.id && bgImage.id && - { - setAttributes( { - bgImageSize: value, - } ); - } } - /> - } - - { - setAttributes( { - bgOptions: { - ...bgOptions, - selector: value, - }, - } ); - } } - /> + setAttributes( { + bgImage: { + id: media.id, + image: media.sizes[ size ], + }, + } ); + } } + onClose={ () => { + document.querySelector( '.gblocks-bg-image-wrapper input' ).focus(); + } } + allowedTypes={ [ 'image' ] } + value={ !! bgImage ? bgImage.id : '' } + modalClass="editor-gb-container-background__media-modal" + render={ ( { open } ) => ( + + + + ) } + /> - { - setAttributes( { - bgOptions: { - ...bgOptions, - opacity: value, - selector: 'pseudo-element', - }, - } ); - } } - min={ 0 } - max={ 1 } - step={ 0.1 } - initialPosition={ generateBlocksDefaults.container.bgOptions.opacity } - /> + { applyFilters( 'generateblocks.editor.backgroundImageActions', '', this.props, this.state ) } +
+
+ + + { !! bgImage && ( +
+ { !! bgOptions.overlay ? ( // This option is deprecated, so only show it if it's in use. + + { + setAttributes( { + bgOptions: { + ...bgOptions, + overlay: nextOverlay, + }, + } ); + } } + /> + + + { __( 'The background color overlay option is deprecated. Toggle this option to use the new method.', 'generateblocks' ) } + + + ) : ( // These options is only for people not using the deprecated overlay option. + + { 'undefined' !== typeof bgImage.id && bgImage.id && + { + setAttributes( { + bgImageSize: value, + } ); + } } + /> + } - { 1 !== bgOptions.opacity && 'pseudo-element' !== bgOptions.selector && - - { __( 'Your selector must be set to Pseudo Element to use opacity.', 'generateblocks' ) } - + { + setAttributes( { + bgOptions: { + ...bgOptions, + selector: value, + }, + } ); + } } + /> + + { + setAttributes( { + bgOptions: { + ...bgOptions, + opacity: value, + selector: 'pseudo-element', + }, + } ); + } } + min={ 0 } + max={ 1 } + step={ 0.1 } + initialPosition={ generateBlocksDefaults.container.bgOptions.opacity } + /> + + { 1 !== bgOptions.opacity && 'pseudo-element' !== bgOptions.selector && + + { __( 'Your selector must be set to Pseudo Element to use opacity.', 'generateblocks' ) } + + } + + ) } + + { + setAttributes( { + bgOptions: { + ...bgOptions, + size: nextSize, + }, + } ); + } } + /> + + { + setAttributes( { + bgOptions: { + ...bgOptions, + position: nextPosition, + }, + } ); + } } + /> + + { + setAttributes( { + bgOptions: { + ...bgOptions, + repeat: nextRepeat, + }, + } ); + } } + /> + + { + setAttributes( { + bgOptions: { + ...bgOptions, + attachment: nextAttachment, + }, + } ); + } } + /> +
+ ) } + } - - ) } - { - setAttributes( { - bgOptions: { - ...bgOptions, - size: nextSize, - }, - } ); - } } - /> - - { - setAttributes( { - bgOptions: { - ...bgOptions, - position: nextPosition, - }, - } ); - } } - /> - - { - setAttributes( { - bgOptions: { - ...bgOptions, - repeat: nextRepeat, - }, - } ); - } } - /> + { 'gradient' === tab.name && + + } - { - setAttributes( { - bgOptions: { - ...bgOptions, - attachment: nextAttachment, - }, - } ); - } } - /> -
- ) } -
+ { applyFilters( 'generateblocks.editor.containerBackgroundTabBody', '', tab, this.props, this.state ) } +
+ ); + } + } + } - { applyFilters( 'generateblocks.editor.controls', '', 'containerBackgroundImage', this.props, this.state ) } + { applyFilters( 'generateblocks.editor.controls', '', 'containerBackground', this.props, this.state ) } Date: Tue, 15 Dec 2020 20:08:27 -0800 Subject: [PATCH 14/53] Update dist --- dist/blocks.asset.php | 2 +- dist/blocks.js | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index 31efd6414..03284e790 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-element', 'wp-polyfill'), 'version' => '06cacee1e3f7f01088792c9a4d77ad85'); \ No newline at end of file + array('wp-element', 'wp-polyfill'), 'version' => 'f6e69804534e8e2201a8514879abe161'); \ No newline at end of file diff --git a/dist/blocks.js b/dist/blocks.js index cbf7edd3e..d01f099a9 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -4,12 +4,12 @@ /* translators: Dimension label (padding, margin, border) */,"aria-label":Ft(Nt("%s Top","generateblocks"),r),value:a[c]?a[c]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:R,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeRight(a):e.onReset("attrRight")},onBlur:function(){I||""!==a[s]||""===B[s]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeRight("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Ft(Nt("%s Right","generateblocks"),r),value:a[s]?a[s]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:M,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeBottom(a):e.onReset("attrBottom")},onBlur:function(){I||""!==a[g]||""===B[g]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeBottom("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Ft(Nt("%s Bottom","generateblocks"),r),value:a[g]?a[g]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:z,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeLeft(a):e.onReset("attrLeft")},onBlur:function(){I||""!==a[u]||""===B[u]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeLeft("0"))},onClick:function(e){e.currentTarget.focus()} -/* translators: Dimension label (padding, margin, border) */,"aria-label":Ft(Nt("%s Left","generateblocks"),r),value:a[u]?a[u]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)(Wt,{text:a[b]?Nt("Unsync","generateblocks"):Nt("Sync","generateblocks")},Object(l.createElement)(qt,{className:"components-gblocks-dimensions-control_sync","aria-label":Nt("Sync Units","generateblocks"),isPrimary:!!a[b]&&a[b],"aria-pressed":!!a[b]&&a[b],onClick:function(t){return e.syncUnits(t,"")},isSmall:!0},(a[b],O("sync"))))),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__input-labels"},Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},f),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},m),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},y),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},T),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"}))))}}]),a}(It),Kt=(a(29),{Roboto:{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Open Sans":{weight:["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Lato:{weight:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Montserrat:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Source Sans Pro":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Roboto Condensed":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Oswald:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},"Roboto Mono":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"monospace"},Raleway:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Poppins:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Roboto Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Merriweather:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"serif"},"PT Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Ubuntu:{weight:["300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},"Playfair Display":{weight:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},Muli:{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Open Sans Condensed":{weight:["300","300italic","700"],fallback:"sans-serif"},"PT Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},Lora:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Slabo 27px":{weight:["regular"],fallback:"serif"},Nunito:{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans JP":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Work Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},Rubik:{weight:["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Noto Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fira Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Titillium Web":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],fallback:"sans-serif"},Quicksand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Noto Sans KR":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nanum Gothic":{weight:["regular","700","800"],fallback:"sans-serif"},Mukta:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Noto Sans TC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nunito Sans":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Heebo:{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Sans Narrow":{weight:["regular","700"],fallback:"sans-serif"},Arimo:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Inconsolata:{weight:["regular","700"],fallback:"monospace"},Barlow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Oxygen:{weight:["300","regular","700"],fallback:"sans-serif"},Dosis:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Bitter:{weight:["regular","italic","700"],fallback:"serif"},"Libre Baskerville":{weight:["regular","italic","700"],fallback:"serif"},"Crimson Text":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},"Libre Franklin":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Karla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Josefin Sans":{weight:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},Cabin:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Anton:{weight:["regular"],fallback:"sans-serif"},"Source Code Pro":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"monospace"},Hind:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Abel:{weight:["regular"],fallback:"sans-serif"},Amiri:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fjalla One":{weight:["regular"],fallback:"sans-serif"},Lobster:{weight:["regular"],fallback:"display"},Pacifico:{weight:["regular"],fallback:"handwriting"},"Indie Flower":{weight:["regular"],fallback:"handwriting"},"Exo 2":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Dancing Script":{weight:["regular","500","600","700"],fallback:"handwriting"},"Source Serif Pro":{weight:["regular","600","700"],fallback:"serif"},Arvo:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Hind Siliguri":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Varela Round":{weight:["regular"],fallback:"sans-serif"},"Merriweather Sans":{weight:["300","300italic","regular","italic","700","700italic","800","800italic"],fallback:"sans-serif"},Cairo:{weight:["200","300","regular","600","700","900"],fallback:"sans-serif"},"Yanone Kaffeesatz":{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Overpass:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Shadows Into Light":{weight:["regular"],fallback:"handwriting"},"Barlow Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"IBM Plex Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Comfortaa:{weight:["300","regular","500","600","700"],fallback:"display"},Asap:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Prompt:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Kanit:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Questrial:{weight:["regular"],fallback:"sans-serif"},Martel:{weight:["200","300","regular","600","700","800","900"],fallback:"serif"},"Archivo Narrow":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Abril Fatface":{weight:["regular"],fallback:"display"},"Amatic SC":{weight:["regular","700"],fallback:"handwriting"},Acme:{weight:["regular"],fallback:"sans-serif"},Catamaran:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Fira Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"EB Garamond":{weight:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],fallback:"serif"},"Bree Serif":{weight:["regular"],fallback:"serif"},"Zilla Slab":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Noto Sans SC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Cormorant Garamond":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Hind Madurai":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Teko:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Righteous:{weight:["regular"],fallback:"display"},Signika:{weight:["300","regular","600","700"],fallback:"sans-serif"},Play:{weight:["regular","700"],fallback:"sans-serif"},Domine:{weight:["regular","700"],fallback:"serif"},Exo:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Russo One":{weight:["regular"],fallback:"sans-serif"},Cinzel:{weight:["regular","700","900"],fallback:"serif"},"PT Sans Caption":{weight:["regular","700"],fallback:"sans-serif"},Rajdhani:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Maven Pro":{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Fredoka One":{weight:["regular"],fallback:"display"},"IBM Plex Serif":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Ubuntu Condensed":{weight:["regular"],fallback:"sans-serif"},"Patua One":{weight:["regular"],fallback:"display"},Caveat:{weight:["regular","700"],fallback:"handwriting"},"Permanent Marker":{weight:["regular"],fallback:"handwriting"},Assistant:{weight:["200","300","regular","600","700","800"],fallback:"sans-serif"},ABeeZee:{weight:["regular","italic"],fallback:"sans-serif"},Vollkorn:{weight:["regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"serif"},"Crete Round":{weight:["regular","italic"],fallback:"serif"},"Special Elite":{weight:["regular"],fallback:"display"},Rokkitt:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Bangers:{weight:["regular"],fallback:"display"},"Francois One":{weight:["regular"],fallback:"sans-serif"},"Barlow Semi Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Alegreya Sans":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Satisfy:{weight:["regular"],fallback:"handwriting"},Tajawal:{weight:["200","300","regular","500","700","800","900"],fallback:"sans-serif"},"Bebas Neue":{weight:["regular"],fallback:"display"},"Patrick Hand":{weight:["regular"],fallback:"handwriting"},Cuprum:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Viga:{weight:["regular"],fallback:"sans-serif"},Courgette:{weight:["regular"],fallback:"handwriting"},"Ropa Sans":{weight:["regular","italic"],fallback:"sans-serif"},"Noto Serif JP":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Gochi Hand":{weight:["regular"],fallback:"handwriting"},Alegreya:{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Luckiest Guy":{weight:["regular"],fallback:"display"},"Noticia Text":{weight:["regular","italic","700","700italic"],fallback:"serif"},Tinos:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Passion One":{weight:["regular","700","900"],fallback:"display"},"Alfa Slab One":{weight:["regular"],fallback:"display"},"Nanum Myeongjo":{weight:["regular","700","800"],fallback:"serif"},Monda:{weight:["regular","700"],fallback:"sans-serif"},"Lobster Two":{weight:["regular","italic","700","700italic"],fallback:"display"},Kalam:{weight:["300","regular","700"],fallback:"handwriting"},"Kaushan Script":{weight:["regular"],fallback:"handwriting"},"Archivo Black":{weight:["regular"],fallback:"sans-serif"},Cardo:{weight:["regular","italic","700"],fallback:"serif"},Archivo:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Great Vibes":{weight:["regular"],fallback:"handwriting"},Volkhov:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Quattrocento Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"News Cycle":{weight:["regular","700"],fallback:"sans-serif"},"Pathway Gothic One":{weight:["regular"],fallback:"sans-serif"},Sacramento:{weight:["regular"],fallback:"handwriting"},"Frank Ruhl Libre":{weight:["300","regular","500","700","900"],fallback:"serif"},Yantramanav:{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},Cantarell:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Istok Web":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Didact Gothic":{weight:["regular"],fallback:"sans-serif"},"Concert One":{weight:["regular"],fallback:"display"},Taviraj:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Old Standard TT":{weight:["regular","italic","700"],fallback:"serif"},"Montserrat Alternates":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Economica:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Changa:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Fira Sans Extra Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Gloria Hallelujah":{weight:["regular"],fallback:"handwriting"},Parisienne:{weight:["regular"],fallback:"handwriting"},Orbitron:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Asap Condensed":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Playfair Display SC":{weight:["regular","italic","700","700italic","900","900italic"],fallback:"serif"},Chivo:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Sriracha:{weight:["regular"],fallback:"handwriting"},"Hind Vadodara":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"DM Sans":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Prata:{weight:["regular"],fallback:"serif"},Quattrocento:{weight:["regular","700"],fallback:"serif"},Cookie:{weight:["regular"],fallback:"handwriting"},"Poiret One":{weight:["regular"],fallback:"display"},Handlee:{weight:["regular"],fallback:"handwriting"},Sarabun:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},BenchNine:{weight:["300","regular","700"],fallback:"sans-serif"},Merienda:{weight:["regular","700"],fallback:"handwriting"},"M PLUS 1p":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Mono":{weight:["regular"],fallback:"monospace"},Lalezar:{weight:["regular"],fallback:"display"},Sanchez:{weight:["regular","italic"],fallback:"serif"},Lemonada:{weight:["300","regular","500","600","700"],fallback:"display"},"Markazi Text":{weight:["regular","500","600","700"],fallback:"serif"},Neuton:{weight:["200","300","regular","italic","700","800"],fallback:"serif"},"Hind Guntur":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Josefin Slab":{weight:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"serif"},Philosopher:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Advent Pro":{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Do Hyeon":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Mincho":{weight:["regular"],fallback:"sans-serif"},Ruda:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Vidaloka:{weight:["regular"],fallback:"serif"},Ultra:{weight:["regular"],fallback:"serif"},Neucha:{weight:["regular"],fallback:"handwriting"},Arapey:{weight:["regular","italic"],fallback:"serif"},Gudea:{weight:["regular","italic","700"],fallback:"sans-serif"},"Paytone One":{weight:["regular"],fallback:"sans-serif"},Kreon:{weight:["300","regular","500","600","700"],fallback:"serif"},"M PLUS Rounded 1c":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"Pragati Narrow":{weight:["regular","700"],fallback:"sans-serif"},"Press Start 2P":{weight:["regular"],fallback:"display"},"Hammersmith One":{weight:["regular"],fallback:"sans-serif"},"Gentium Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Monoton:{weight:["regular"],fallback:"display"},Alef:{weight:["regular","700"],fallback:"sans-serif"},Alice:{weight:["regular"],fallback:"serif"},Aclonica:{weight:["regular"],fallback:"sans-serif"},"Sigmar One":{weight:["regular"],fallback:"display"},Spectral:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Marck Script":{weight:["regular"],fallback:"handwriting"},Electrolize:{weight:["regular"],fallback:"sans-serif"},Actor:{weight:["regular"],fallback:"sans-serif"},"Architects Daughter":{weight:["regular"],fallback:"handwriting"},Adamina:{weight:["regular"],fallback:"serif"},"Pontano Sans":{weight:["regular"],fallback:"sans-serif"},Audiowide:{weight:["regular"],fallback:"display"},Inter:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Cabin Condensed":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Unica One":{weight:["regular"],fallback:"display"},Yellowtail:{weight:["regular"],fallback:"handwriting"},"El Messiri":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Squada One":{weight:["regular"],fallback:"display"},Staatliches:{weight:["regular"],fallback:"display"},Amaranth:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Enriqueta:{weight:["regular","500","600","700"],fallback:"serif"},Mitr:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Glegoo:{weight:["regular","700"],fallback:"serif"},"Bowlby One SC":{weight:["regular"],fallback:"display"},Basic:{weight:["regular"],fallback:"sans-serif"},"Nanum Gothic Coding":{weight:["regular","700"],fallback:"monospace"},Sarala:{weight:["regular","700"],fallback:"sans-serif"},"Bad Script":{weight:["regular"],fallback:"handwriting"},"Homemade Apple":{weight:["regular"],fallback:"handwriting"},Tangerine:{weight:["regular","700"],fallback:"handwriting"},Cormorant:{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Oleo Script":{weight:["regular","700"],fallback:"display"},Karma:{weight:["300","regular","500","600","700"],fallback:"serif"},"Julius Sans One":{weight:["regular"],fallback:"sans-serif"},"Carter One":{weight:["regular"],fallback:"display"},Khand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Nanum Pen Script":{weight:["regular"],fallback:"handwriting"},Cambay:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Fugaz One":{weight:["regular"],fallback:"display"},"Shadows Into Light Two":{weight:["regular"],fallback:"handwriting"},Coda:{weight:["regular","800"],fallback:"display"},"Signika Negative":{weight:["300","regular","600","700"],fallback:"sans-serif"},Pridi:{weight:["200","300","regular","500","600","700"],fallback:"serif"},Playball:{weight:["regular"],fallback:"display"},Saira:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Rock Salt":{weight:["regular"],fallback:"handwriting"},"Gothic A1":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Gentium Book Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Allura:{weight:["regular"],fallback:"handwriting"},"Yeseva One":{weight:["regular"],fallback:"display"},"DM Serif Text":{weight:["regular","italic"],fallback:"serif"},Lusitana:{weight:["regular","700"],fallback:"serif"},Jura:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Average:{weight:["regular"],fallback:"serif"},Yrsa:{weight:["300","regular","500","600","700"],fallback:"serif"},"Sorts Mill Goudy":{weight:["regular","italic"],fallback:"serif"},"Cantata One":{weight:["regular"],fallback:"serif"},Armata:{weight:["regular"],fallback:"sans-serif"},Scada:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Abhaya Libre":{weight:["regular","500","600","700","800"],fallback:"serif"},Damion:{weight:["regular"],fallback:"handwriting"},Marmelad:{weight:["regular"],fallback:"sans-serif"},Varela:{weight:["regular"],fallback:"sans-serif"},Quantico:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Covered By Your Grace":{weight:["regular"],fallback:"handwriting"},"PT Serif Caption":{weight:["regular","italic"],fallback:"serif"},Ramabhadra:{weight:["regular"],fallback:"sans-serif"},Unna:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Encode Sans":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Arsenal:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Black Han Sans":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Gothic":{weight:["regular"],fallback:"sans-serif"},"Ubuntu Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Pinyon Script":{weight:["regular"],fallback:"handwriting"},"Black Ops One":{weight:["regular"],fallback:"display"},Marcellus:{weight:["regular"],fallback:"serif"},"Fauna One":{weight:["regular"],fallback:"serif"},"Lilita One":{weight:["regular"],fallback:"display"},Sintony:{weight:["regular","700"],fallback:"sans-serif"},Khula:{weight:["300","regular","600","700","800"],fallback:"sans-serif"},Jaldi:{weight:["regular","700"],fallback:"sans-serif"},"Rubik Mono One":{weight:["regular"],fallback:"sans-serif"},Allan:{weight:["regular","700"],fallback:"display"},"Reenie Beanie":{weight:["regular"],fallback:"handwriting"},"Alex Brush":{weight:["regular"],fallback:"handwriting"},"Mr Dafoe":{weight:["regular"],fallback:"handwriting"},Palanquin:{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Encode Sans Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Antic:{weight:["regular"],fallback:"sans-serif"},Knewave:{weight:["regular"],fallback:"display"},"Caveat Brush":{weight:["regular"],fallback:"handwriting"},Rambla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Spinnaker:{weight:["regular"],fallback:"sans-serif"},"IBM Plex Mono":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"monospace"},Michroma:{weight:["regular"],fallback:"sans-serif"},"Nothing You Could Do":{weight:["regular"],fallback:"handwriting"},"Kelly Slab":{weight:["regular"],fallback:"display"},Boogaloo:{weight:["regular"],fallback:"display"},Chewy:{weight:["regular"],fallback:"display"},"ZCOOL XiaoWei":{weight:["regular"],fallback:"serif"},Rancho:{weight:["regular"],fallback:"handwriting"},"Noto Serif SC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Pangolin:{weight:["regular"],fallback:"handwriting"},"Fira Mono":{weight:["regular","500","700"],fallback:"monospace"},Forum:{weight:["regular"],fallback:"display"},"Antic Slab":{weight:["regular"],fallback:"serif"},"Alegreya Sans SC":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Anonymous Pro":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Lateef:{weight:["regular"],fallback:"handwriting"},"Annie Use Your Telescope":{weight:["regular"],fallback:"handwriting"},"Noto Sans HK":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Martel Sans":{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},"Chakra Petch":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Rufina:{weight:["regular","700"],fallback:"serif"},"Bai Jamjuree":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Scheherazade:{weight:["regular","700"],fallback:"serif"},Share:{weight:["regular","italic","700","700italic"],fallback:"display"},"Tenor Sans":{weight:["regular"],fallback:"sans-serif"},"DM Serif Display":{weight:["regular","italic"],fallback:"serif"},VT323:{weight:["regular"],fallback:"monospace"},"Share Tech Mono":{weight:["regular"],fallback:"monospace"},Mali:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"handwriting"},Cousine:{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Cinzel Decorative":{weight:["regular","700","900"],fallback:"display"},Overlock:{weight:["regular","italic","700","700italic","900","900italic"],fallback:"display"},"Arbutus Slab":{weight:["regular"],fallback:"serif"},"Reem Kufi":{weight:["regular"],fallback:"sans-serif"},"Cabin Sketch":{weight:["regular","700"],fallback:"display"},"Saira Extra Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Eczar:{weight:["regular","500","600","700","800"],fallback:"serif"},"Leckerli One":{weight:["regular"],fallback:"handwriting"},Krub:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Berkshire Swash":{weight:["regular"],fallback:"handwriting"},"Fredericka the Great":{weight:["regular"],fallback:"display"},"Saira Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Overpass Mono":{weight:["300","regular","600","700"],fallback:"monospace"},Itim:{weight:["regular"],fallback:"handwriting"},Rasa:{weight:["300","regular","500","600","700"],fallback:"serif"},Bevan:{weight:["regular"],fallback:"display"},"Arima Madurai":{weight:["100","200","300","regular","500","700","800","900"],fallback:"display"},Italianno:{weight:["regular"],fallback:"handwriting"},"Coda Caption":{weight:["800"],fallback:"sans-serif"},Shrikhand:{weight:["regular"],fallback:"display"},"Just Another Hand":{weight:["regular"],fallback:"handwriting"},"Saira Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Almarai:{weight:["300","regular","700","800"],fallback:"sans-serif"},"Mukta Malar":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Oranienbaum:{weight:["regular"],fallback:"serif"},Nobile:{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Candal:{weight:["regular"],fallback:"sans-serif"},"Six Caps":{weight:["regular"],fallback:"sans-serif"},"Space Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Capriola:{weight:["regular"],fallback:"sans-serif"},Biryani:{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},Halant:{weight:["300","regular","500","600","700"],fallback:"serif"},Allerta:{weight:["regular"],fallback:"sans-serif"},Trirong:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},Mallanna:{weight:["regular"],fallback:"sans-serif"},Aldrich:{weight:["regular"],fallback:"sans-serif"},Aleo:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Suez One":{weight:["regular"],fallback:"serif"},Caudex:{weight:["regular","italic","700","700italic"],fallback:"serif"},Niconne:{weight:["regular"],fallback:"handwriting"},"Mrs Saint Delafield":{weight:["regular"],fallback:"handwriting"},Gruppo:{weight:["regular"],fallback:"display"},"Miriam Libre":{weight:["regular","700"],fallback:"sans-serif"},"Contrail One":{weight:["regular"],fallback:"display"},"Days One":{weight:["regular"],fallback:"sans-serif"},"Allerta Stencil":{weight:["regular"],fallback:"sans-serif"},"Average Sans":{weight:["regular"],fallback:"sans-serif"},"Coming Soon":{weight:["regular"],fallback:"handwriting"},Pattaya:{weight:["regular"],fallback:"sans-serif"},"Londrina Solid":{weight:["100","300","regular","900"],fallback:"display"},Bungee:{weight:["regular"],fallback:"display"},Coustard:{weight:["regular","900"],fallback:"serif"},"Marcellus SC":{weight:["regular"],fallback:"serif"},"Racing Sans One":{weight:["regular"],fallback:"display"},Bentham:{weight:["regular"],fallback:"serif"},"Bungee Inline":{weight:["regular"],fallback:"display"},Magra:{weight:["regular","700"],fallback:"sans-serif"},Judson:{weight:["regular","italic","700"],fallback:"serif"},Rochester:{weight:["regular"],fallback:"handwriting"},"Grand Hotel":{weight:["regular"],fallback:"handwriting"},Gelasio:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Yesteryear:{weight:["regular"],fallback:"handwriting"},Syncopate:{weight:["regular","700"],fallback:"sans-serif"},Hanuman:{weight:["regular","700"],fallback:"serif"},"Kosugi Maru":{weight:["regular"],fallback:"sans-serif"},Copse:{weight:["regular"],fallback:"serif"},Mada:{weight:["200","300","regular","500","600","700","900"],fallback:"sans-serif"},"Titan One":{weight:["regular"],fallback:"display"},"Noto Serif TC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Kameron:{weight:["regular","700"],fallback:"serif"},Telex:{weight:["regular"],fallback:"sans-serif"},Norican:{weight:["regular"],fallback:"handwriting"},Maitree:{weight:["200","300","regular","500","600","700"],fallback:"serif"},"IM Fell Double Pica":{weight:["regular","italic"],fallback:"serif"},Molengo:{weight:["regular"],fallback:"sans-serif"},Sunflower:{weight:["300","500","700"],fallback:"sans-serif"},"Alegreya SC":{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Red Hat Display":{weight:["regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},Jua:{weight:["regular"],fallback:"sans-serif"},Ovo:{weight:["regular"],fallback:"serif"},"IBM Plex Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Nixie One":{weight:["regular"],fallback:"display"},Aladin:{weight:["regular"],fallback:"handwriting"},Arizonia:{weight:["regular"],fallback:"handwriting"},"Bubblegum Sans":{weight:["regular"],fallback:"display"},"Changa One":{weight:["regular","italic"],fallback:"display"},"Lexend Deca":{weight:["regular"],fallback:"sans-serif"},Sofia:{weight:["regular"],fallback:"handwriting"},"Jockey One":{weight:["regular"],fallback:"sans-serif"},Suranna:{weight:["regular"],fallback:"serif"},Amethysta:{weight:["regular"],fallback:"serif"},Schoolbell:{weight:["regular"],fallback:"handwriting"},"Nanum Brush Script":{weight:["regular"],fallback:"handwriting"},"Cedarville Cursive":{weight:["regular"],fallback:"handwriting"},"Cutive Mono":{weight:["regular"],fallback:"monospace"},Delius:{weight:["regular"],fallback:"handwriting"},"Raleway Dots":{weight:["regular"],fallback:"display"},Graduate:{weight:["regular"],fallback:"display"},Lustria:{weight:["regular"],fallback:"serif"},"Mukta Vaani":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Kadwa:{weight:["regular","700"],fallback:"serif"},"Rozha One":{weight:["regular"],fallback:"serif"},Buenard:{weight:["regular","700"],fallback:"serif"},Cambo:{weight:["regular"],fallback:"serif"},Marvel:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Krona One":{weight:["regular"],fallback:"sans-serif"},"Carrois Gothic":{weight:["regular"],fallback:"sans-serif"},Carme:{weight:["regular"],fallback:"sans-serif"},"Slabo 13px":{weight:["regular"],fallback:"serif"},Lemon:{weight:["regular"],fallback:"display"},"Love Ya Like A Sister":{weight:["regular"],fallback:"display"},Rosario:{weight:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},"Merienda One":{weight:["regular"],fallback:"handwriting"},"Public Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Petit Formal Script":{weight:["regular"],fallback:"handwriting"},"Ceviche One":{weight:["regular"],fallback:"display"},Voltaire:{weight:["regular"],fallback:"sans-serif"},Fresca:{weight:["regular"],fallback:"sans-serif"},"Averia Serif Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Rye:{weight:["regular"],fallback:"display"},"Noto Serif KR":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Chelsea Market":{weight:["regular"],fallback:"display"},Calligraffitti:{weight:["regular"],fallback:"handwriting"},"Freckle Face":{weight:["regular"],fallback:"display"},"Duru Sans":{weight:["regular"],fallback:"sans-serif"},Trocchi:{weight:["regular"],fallback:"serif"},Metrophobic:{weight:["regular"],fallback:"sans-serif"},Mate:{weight:["regular","italic"],fallback:"serif"},Harmattan:{weight:["regular"],fallback:"sans-serif"},"Gilda Display":{weight:["regular"],fallback:"serif"},"Cormorant Infant":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Spartan:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Oxygen Mono":{weight:["regular"],fallback:"monospace"},Chonburi:{weight:["regular"],fallback:"display"},"Goudy Bookletter 1911":{weight:["regular"],fallback:"serif"},Sansita:{weight:["regular","italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Emilys Candy":{weight:["regular"],fallback:"display"},Amiko:{weight:["regular","600","700"],fallback:"sans-serif"},Kristi:{weight:["regular"],fallback:"handwriting"},"Palanquin Dark":{weight:["regular","500","600","700"],fallback:"sans-serif"},Lekton:{weight:["regular","italic","700"],fallback:"sans-serif"},Cutive:{weight:["regular"],fallback:"serif"},"Herr Von Muellerhoff":{weight:["regular"],fallback:"handwriting"},"GFS Didot":{weight:["regular"],fallback:"serif"},Radley:{weight:["regular","italic"],fallback:"serif"},"Sue Ellen Francisco":{weight:["regular"],fallback:"handwriting"},Pompiere:{weight:["regular"],fallback:"display"},Gabriela:{weight:["regular"],fallback:"serif"},Niramit:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Seaweed Script":{weight:["regular"],fallback:"display"},"Sedgwick Ave":{weight:["regular"],fallback:"handwriting"},Federo:{weight:["regular"],fallback:"sans-serif"},McLaren:{weight:["regular"],fallback:"display"},"IM Fell DW Pica":{weight:["regular","italic"],fallback:"serif"},Sniglet:{weight:["regular","800"],fallback:"display"},"Mr De Haviland":{weight:["regular"],fallback:"handwriting"},Shojumaru:{weight:["regular"],fallback:"display"},Poly:{weight:["regular","italic"],fallback:"serif"},Belleza:{weight:["regular"],fallback:"sans-serif"},Faustina:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"IM Fell English":{weight:["regular","italic"],fallback:"serif"},"Rammetto One":{weight:["regular"],fallback:"display"},Amita:{weight:["regular","700"],fallback:"handwriting"},Inder:{weight:["regular"],fallback:"sans-serif"},"Antic Didone":{weight:["regular"],fallback:"serif"},"Alike Angular":{weight:["regular"],fallback:"serif"},Montez:{weight:["regular"],fallback:"handwriting"},K2D:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},UnifrakturMaguntia:{weight:["regular"],fallback:"display"},Gurajada:{weight:["regular"],fallback:"serif"},"Proza Libre":{weight:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Athiti:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Andada:{weight:["regular"],fallback:"serif"},"Liu Jian Mao Cao":{weight:["regular"],fallback:"handwriting"},Megrim:{weight:["regular"],fallback:"display"},"Vast Shadow":{weight:["regular"],fallback:"display"},Wallpoet:{weight:["regular"],fallback:"display"},Unkempt:{weight:["regular","700"],fallback:"display"},"Fanwood Text":{weight:["regular","italic"],fallback:"serif"},"Doppio One":{weight:["regular"],fallback:"sans-serif"},"Comic Neue":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"handwriting"},Corben:{weight:["regular","700"],fallback:"display"},Frijole:{weight:["regular"],fallback:"display"},Balthazar:{weight:["regular"],fallback:"serif"},Mirza:{weight:["regular","500","600","700"],fallback:"display"},"IM Fell French Canon SC":{weight:["regular"],fallback:"serif"},Brawler:{weight:["regular"],fallback:"serif"},"Oleo Script Swash Caps":{weight:["regular","700"],fallback:"display"},Mandali:{weight:["regular"],fallback:"sans-serif"},Convergence:{weight:["regular"],fallback:"sans-serif"},Fondamento:{weight:["regular","italic"],fallback:"handwriting"},Alike:{weight:["regular"],fallback:"serif"},Baumans:{weight:["regular"],fallback:"display"},Esteban:{weight:["regular"],fallback:"serif"},"Gravitas One":{weight:["regular"],fallback:"display"},Anaheim:{weight:["regular"],fallback:"sans-serif"},"Wendy One":{weight:["regular"],fallback:"sans-serif"},"Stardos Stencil":{weight:["regular","700"],fallback:"display"},"Spicy Rice":{weight:["regular"],fallback:"display"},Rakkas:{weight:["regular"],fallback:"display"},"La Belle Aurore":{weight:["regular"],fallback:"handwriting"},"Secular One":{weight:["regular"],fallback:"sans-serif"},Belgrano:{weight:["regular"],fallback:"serif"},"Bungee Shade":{weight:["regular"],fallback:"display"},"Crafty Girls":{weight:["regular"],fallback:"handwriting"},Battambang:{weight:["regular","700"],fallback:"display"},Quando:{weight:["regular"],fallback:"serif"},"Mouse Memoirs":{weight:["regular"],fallback:"sans-serif"},Gugi:{weight:["regular"],fallback:"display"},"Faster One":{weight:["regular"],fallback:"display"},"B612 Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Limelight:{weight:["regular"],fallback:"display"},"Short Stack":{weight:["regular"],fallback:"handwriting"},"Mountains of Christmas":{weight:["regular","700"],fallback:"display"},"Share Tech":{weight:["regular"],fallback:"sans-serif"},Laila:{weight:["300","regular","500","600","700"],fallback:"serif"},Literata:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Cormorant SC":{weight:["300","regular","500","600","700"],fallback:"serif"},"Fjord One":{weight:["regular"],fallback:"serif"},Podkova:{weight:["regular","500","600","700","800"],fallback:"serif"},Homenaje:{weight:["regular"],fallback:"sans-serif"},"Walter Turncoat":{weight:["regular"],fallback:"handwriting"},Sen:{weight:["regular","700","800"],fallback:"sans-serif"},"Patrick Hand SC":{weight:["regular"],fallback:"handwriting"},Voces:{weight:["regular"],fallback:"display"},Qwigley:{weight:["regular"],fallback:"handwriting"},"Happy Monkey":{weight:["regular"],fallback:"display"},"Rouge Script":{weight:["regular"],fallback:"handwriting"},"Baloo Chettan 2":{weight:["regular","500","600","700","800"],fallback:"display"},NTR:{weight:["regular"],fallback:"sans-serif"},Skranji:{weight:["regular","700"],fallback:"display"},Strait:{weight:["regular"],fallback:"sans-serif"},"Dawning of a New Day":{weight:["regular"],fallback:"handwriting"},Iceland:{weight:["regular"],fallback:"display"},"Expletus Sans":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"display"},"Montserrat Subrayada":{weight:["regular","700"],fallback:"sans-serif"},Oregano:{weight:["regular","italic"],fallback:"display"},"Give You Glory":{weight:["regular"],fallback:"handwriting"},Alata:{weight:["regular"],fallback:"sans-serif"},Puritan:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Mako:{weight:["regular"],fallback:"sans-serif"},Andika:{weight:["regular"],fallback:"sans-serif"},"Cormorant Upright":{weight:["300","regular","500","600","700"],fallback:"serif"},Zeyada:{weight:["regular"],fallback:"handwriting"},"Bowlby One":{weight:["regular"],fallback:"display"},"Aref Ruqaa":{weight:["regular","700"],fallback:"serif"},Numans:{weight:["regular"],fallback:"sans-serif"},Kurale:{weight:["regular"],fallback:"serif"},Spirax:{weight:["regular"],fallback:"display"},"Clicker Script":{weight:["regular"],fallback:"handwriting"},"Waiting for the Sunrise":{weight:["regular"],fallback:"handwriting"},"Holtwood One SC":{weight:["regular"],fallback:"serif"},Katibeh:{weight:["regular"],fallback:"display"},"Carrois Gothic SC":{weight:["regular"],fallback:"sans-serif"},Livvic:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},Eater:{weight:["regular"],fallback:"display"},"Fontdiner Swanky":{weight:["regular"],fallback:"display"},"Finger Paint":{weight:["regular"],fallback:"display"},Bellefair:{weight:["regular"],fallback:"serif"},"Wire One":{weight:["regular"],fallback:"sans-serif"},Kosugi:{weight:["regular"],fallback:"sans-serif"},Charm:{weight:["regular","700"],fallback:"handwriting"},"Delius Swash Caps":{weight:["regular"],fallback:"handwriting"},"Vesper Libre":{weight:["regular","500","700","900"],fallback:"serif"},"Red Hat Text":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Gafata:{weight:["regular"],fallback:"sans-serif"},"Averia Sans Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Denk One":{weight:["regular"],fallback:"sans-serif"},Geo:{weight:["regular","italic"],fallback:"sans-serif"},Tauri:{weight:["regular"],fallback:"sans-serif"},"Cherry Swash":{weight:["regular","700"],fallback:"display"},Codystar:{weight:["300","regular"],fallback:"display"},"Cantora One":{weight:["regular"],fallback:"sans-serif"},"Encode Sans Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Nova Square":{weight:["regular"],fallback:"display"},BioRhyme:{weight:["200","300","regular","700","800"],fallback:"serif"},Timmana:{weight:["regular"],fallback:"sans-serif"},Atma:{weight:["300","regular","500","600","700"],fallback:"display"},Tienne:{weight:["regular","700","900"],fallback:"serif"},Meddon:{weight:["regular"],fallback:"handwriting"},Galada:{weight:["regular"],fallback:"display"},Padauk:{weight:["regular","700"],fallback:"sans-serif"},"Loved by the King":{weight:["regular"],fallback:"handwriting"},"The Girl Next Door":{weight:["regular"],fallback:"handwriting"},"Darker Grotesque":{weight:["300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Life Savers":{weight:["regular","700","800"],fallback:"display"},Bilbo:{weight:["regular"],fallback:"handwriting"},Shanti:{weight:["regular"],fallback:"sans-serif"},"Headland One":{weight:["regular"],fallback:"serif"},"Euphoria Script":{weight:["regular"],fallback:"handwriting"},Imprima:{weight:["regular"],fallback:"sans-serif"},"Aguafina Script":{weight:["regular"],fallback:"handwriting"},"Baloo 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Over the Rainbow":{weight:["regular"],fallback:"handwriting"},Sarpanch:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Orienta:{weight:["regular"],fallback:"sans-serif"},"Spectral SC":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Port Lligat Sans":{weight:["regular"],fallback:"sans-serif"},Artifika:{weight:["regular"],fallback:"serif"},Ledger:{weight:["regular"],fallback:"serif"},Ruluko:{weight:["regular"],fallback:"sans-serif"},Sail:{weight:["regular"],fallback:"display"},Alatsi:{weight:["regular"],fallback:"sans-serif"},"Sonsie One":{weight:["regular"],fallback:"display"},"Bilbo Swash Caps":{weight:["regular"],fallback:"handwriting"},Slackey:{weight:["regular"],fallback:"display"},Salsa:{weight:["regular"],fallback:"display"},Rationale:{weight:["regular"],fallback:"sans-serif"},"Hepta Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Nosifer:{weight:["regular"],fallback:"display"},Dekko:{weight:["regular"],fallback:"handwriting"},"Encode Sans Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Lily Script One":{weight:["regular"],fallback:"display"},"Zilla Slab Highlight":{weight:["regular","700"],fallback:"display"},Dokdo:{weight:["regular"],fallback:"handwriting"},"Kotta One":{weight:["regular"],fallback:"serif"},"Macondo Swash Caps":{weight:["regular"],fallback:"display"},"Encode Sans Semi Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Prosto One":{weight:["regular"],fallback:"display"},"Trade Winds":{weight:["regular"],fallback:"display"},Farsan:{weight:["regular"],fallback:"display"},Manuale:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},Creepster:{weight:["regular"],fallback:"display"},"Medula One":{weight:["regular"],fallback:"display"},Ranchers:{weight:["regular"],fallback:"display"},"David Libre":{weight:["regular","500","700"],fallback:"serif"},"Libre Barcode 39":{weight:["regular"],fallback:"display"},"Vampiro One":{weight:["regular"],fallback:"display"},Metamorphous:{weight:["regular"],fallback:"display"},"Bubbler One":{weight:["regular"],fallback:"sans-serif"},"Nova Mono":{weight:["regular"],fallback:"monospace"},"Princess Sofia":{weight:["regular"],fallback:"handwriting"},"Just Me Again Down Here":{weight:["regular"],fallback:"handwriting"},Notable:{weight:["regular"],fallback:"sans-serif"},"Fascinate Inline":{weight:["regular"],fallback:"display"},Vibur:{weight:["regular"],fallback:"handwriting"},"Vollkorn SC":{weight:["regular","600","700","900"],fallback:"serif"},Crushed:{weight:["regular"],fallback:"display"},Sumana:{weight:["regular","700"],fallback:"serif"},Elsie:{weight:["regular","900"],fallback:"display"},Ranga:{weight:["regular","700"],fallback:"display"},"Port Lligat Slab":{weight:["regular"],fallback:"serif"},Amarante:{weight:["regular"],fallback:"display"},"Ruslan Display":{weight:["regular"],fallback:"display"},"Germania One":{weight:["regular"],fallback:"display"},"Sirin Stencil":{weight:["regular"],fallback:"display"},Pavanam:{weight:["regular"],fallback:"sans-serif"},Peralta:{weight:["regular"],fallback:"display"},"Scope One":{weight:["regular"],fallback:"serif"},Jomolhari:{weight:["regular"],fallback:"serif"},Kranky:{weight:["regular"],fallback:"display"},"Yatra One":{weight:["regular"],fallback:"display"},"Jacques Francois Shadow":{weight:["regular"],fallback:"display"},Ribeye:{weight:["regular"],fallback:"display"},"Averia Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Saira Stencil One":{weight:["regular"],fallback:"display"},"Cherry Cream Soda":{weight:["regular"],fallback:"display"},"Mukta Mahee":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Srisakdi:{weight:["regular","700"],fallback:"display"},Trochut:{weight:["regular","italic","700"],fallback:"display"},Coiny:{weight:["regular"],fallback:"display"},"Ma Shan Zheng":{weight:["regular"],fallback:"handwriting"},Asul:{weight:["regular","700"],fallback:"sans-serif"},Ewert:{weight:["regular"],fallback:"display"},Arya:{weight:["regular","700"],fallback:"sans-serif"},"Hanalei Fill":{weight:["regular"],fallback:"display"},Grenze:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Ribeye Marrow":{weight:["regular"],fallback:"display"},"IM Fell English SC":{weight:["regular"],fallback:"serif"},"Chau Philomene One":{weight:["regular","italic"],fallback:"sans-serif"},Sarina:{weight:["regular"],fallback:"display"},Chicle:{weight:["regular"],fallback:"display"},Manjari:{weight:["100","regular","700"],fallback:"sans-serif"},Montaga:{weight:["regular"],fallback:"serif"},Italiana:{weight:["regular"],fallback:"serif"},Akronim:{weight:["regular"],fallback:"display"},Habibi:{weight:["regular"],fallback:"serif"},Englebert:{weight:["regular"],fallback:"sans-serif"},Dynalight:{weight:["regular"],fallback:"display"},"Mate SC":{weight:["regular"],fallback:"serif"},"Henny Penny":{weight:["regular"],fallback:"display"},"Sree Krushnadevaraya":{weight:["regular"],fallback:"serif"},Engagement:{weight:["regular"],fallback:"handwriting"},Girassol:{weight:["regular"],fallback:"display"},"Kite One":{weight:["regular"],fallback:"sans-serif"},"Ibarra Real Nova":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},Gaegu:{weight:["300","regular","700"],fallback:"handwriting"},Fenix:{weight:["regular"],fallback:"serif"},"Pirata One":{weight:["regular"],fallback:"display"},"Tulpen One":{weight:["regular"],fallback:"display"},"IM Fell Great Primer":{weight:["regular","italic"],fallback:"serif"},Chathura:{weight:["100","300","regular","700","800"],fallback:"sans-serif"},Unlock:{weight:["regular"],fallback:"display"},"Nova Round":{weight:["regular"],fallback:"display"},Sura:{weight:["regular","700"],fallback:"serif"},"Kumar One":{weight:["regular"],fallback:"display"},Baskervville:{weight:["regular","italic"],fallback:"serif"},Quintessential:{weight:["regular"],fallback:"handwriting"},Milonga:{weight:["regular"],fallback:"display"},Bayon:{weight:["regular"],fallback:"display"},"Be Vietnam":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},"Crimson Pro":{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},B612:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"League Script":{weight:["regular"],fallback:"handwriting"},"Inknut Antiqua":{weight:["300","regular","500","600","700","800","900"],fallback:"serif"},Mogra:{weight:["regular"],fallback:"display"},"Mystery Quest":{weight:["regular"],fallback:"display"},"Monsieur La Doulaise":{weight:["regular"],fallback:"handwriting"},Vibes:{weight:["regular"],fallback:"display"},Rosarivo:{weight:["regular","italic"],fallback:"serif"},"Uncial Antiqua":{weight:["regular"],fallback:"display"},Dorsa:{weight:["regular"],fallback:"sans-serif"},Almendra:{weight:["regular","italic","700","700italic"],fallback:"serif"},Diplomata:{weight:["regular"],fallback:"display"},Simonetta:{weight:["regular","italic","900","900italic"],fallback:"display"},"New Rocker":{weight:["regular"],fallback:"display"},Snippet:{weight:["regular"],fallback:"sans-serif"},Petrona:{weight:["regular"],fallback:"serif"},Ramaraja:{weight:["regular"],fallback:"serif"},"Averia Gruesa Libre":{weight:["regular"],fallback:"display"},"Baloo Bhaina 2":{weight:["regular","500","600","700","800"],fallback:"display"},Kodchasan:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Meera Inimai":{weight:["regular"],fallback:"sans-serif"},Flamenco:{weight:["300","regular"],fallback:"display"},Khmer:{weight:["regular"],fallback:"display"},Paprika:{weight:["regular"],fallback:"display"},Koulen:{weight:["regular"],fallback:"display"},Mansalva:{weight:["regular"],fallback:"handwriting"},"Lovers Quarrel":{weight:["regular"],fallback:"handwriting"},Condiment:{weight:["regular"],fallback:"handwriting"},"Baloo Thambi 2":{weight:["regular","500","600","700","800"],fallback:"display"},Stoke:{weight:["300","regular"],fallback:"serif"},Barrio:{weight:["regular"],fallback:"display"},Barriecito:{weight:["regular"],fallback:"display"},"Donegal One":{weight:["regular"],fallback:"serif"},Kavoon:{weight:["regular"],fallback:"display"},"Big Shoulders Display":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Mina:{weight:["regular","700"],fallback:"sans-serif"},"Big Shoulders Text":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Prociono:{weight:["regular"],fallback:"serif"},"Text Me One":{weight:["regular"],fallback:"sans-serif"},"IM Fell French Canon":{weight:["regular","italic"],fallback:"serif"},"Overlock SC":{weight:["regular"],fallback:"display"},Cagliostro:{weight:["regular"],fallback:"sans-serif"},"Marko One":{weight:["regular"],fallback:"serif"},"Swanky and Moo Moo":{weight:["regular"],fallback:"handwriting"},"Maiden Orange":{weight:["regular"],fallback:"display"},Blinker:{weight:["100","200","300","regular","600","700","800","900"],fallback:"sans-serif"},Miniver:{weight:["regular"],fallback:"display"},Angkor:{weight:["regular"],fallback:"display"},Chango:{weight:["regular"],fallback:"display"},Thasadith:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Modak:{weight:["regular"],fallback:"display"},Junge:{weight:["regular"],fallback:"serif"},"Stint Ultra Condensed":{weight:["regular"],fallback:"display"},Stalemate:{weight:["regular"],fallback:"handwriting"},Tillana:{weight:["regular","500","600","700","800"],fallback:"handwriting"},UnifrakturCook:{weight:["700"],fallback:"display"},"Rum Raisin":{weight:["regular"],fallback:"sans-serif"},Farro:{weight:["300","regular","500","700"],fallback:"sans-serif"},"Delius Unicase":{weight:["regular","700"],fallback:"handwriting"},Sancreek:{weight:["regular"],fallback:"display"},Julee:{weight:["regular"],fallback:"handwriting"},Margarine:{weight:["regular"],fallback:"display"},"Lakki Reddy":{weight:["regular"],fallback:"handwriting"},"Stint Ultra Expanded":{weight:["regular"],fallback:"display"},"Bigshot One":{weight:["regular"],fallback:"display"},Griffy:{weight:["regular"],fallback:"display"},Moul:{weight:["regular"],fallback:"display"},"Diplomata SC":{weight:["regular"],fallback:"display"},Oxanium:{weight:["200","300","regular","500","600","700","800"],fallback:"display"},Offside:{weight:["regular"],fallback:"display"},"Fira Code":{weight:["300","regular","500","600","700"],fallback:"monospace"},"Eagle Lake":{weight:["regular"],fallback:"handwriting"},Flavors:{weight:["regular"],fallback:"display"},"Londrina Outline":{weight:["regular"],fallback:"display"},Tomorrow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Nokora:{weight:["regular","700"],fallback:"serif"},Calistoga:{weight:["regular"],fallback:"display"},Gotu:{weight:["regular"],fallback:"sans-serif"},"Della Respira":{weight:["regular"],fallback:"serif"},"Cormorant Unicase":{weight:["300","regular","500","600","700"],fallback:"serif"},"Libre Caslon Text":{weight:["regular","italic","700"],fallback:"serif"},Buda:{weight:["300"],fallback:"display"},Asar:{weight:["regular"],fallback:"serif"},"Poller One":{weight:["regular"],fallback:"display"},"Autour One":{weight:["regular"],fallback:"display"},"Nova Slim":{weight:["regular"],fallback:"display"},Underdog:{weight:["regular"],fallback:"display"},Redressed:{weight:["regular"],fallback:"handwriting"},"Yeon Sung":{weight:["regular"],fallback:"display"},Content:{weight:["regular","700"],fallback:"display"},Kantumruy:{weight:["300","regular","700"],fallback:"sans-serif"},"Baloo Paaji 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Jim Nightshade":{weight:["regular"],fallback:"handwriting"},"Glass Antiqua":{weight:["regular"],fallback:"display"},"Snowburst One":{weight:["regular"],fallback:"display"},"Gamja Flower":{weight:["regular"],fallback:"handwriting"},Revalia:{weight:["regular"],fallback:"display"},"Metal Mania":{weight:["regular"],fallback:"display"},Charmonman:{weight:["regular","700"],fallback:"handwriting"},"IM Fell DW Pica SC":{weight:["regular"],fallback:"serif"},Inika:{weight:["regular","700"],fallback:"serif"},"Elsie Swash Caps":{weight:["regular","900"],fallback:"display"},Wellfleet:{weight:["regular"],fallback:"display"},"Chela One":{weight:["regular"],fallback:"display"},"Rhodium Libre":{weight:["regular"],fallback:"serif"},"Mrs Sheppards":{weight:["regular"],fallback:"handwriting"},"Sedgwick Ave Display":{weight:["regular"],fallback:"handwriting"},"Modern Antiqua":{weight:["regular"],fallback:"display"},"Ravi Prakash":{weight:["regular"],fallback:"display"},Galdeano:{weight:["regular"],fallback:"sans-serif"},Oldenburg:{weight:["regular"],fallback:"display"},Arbutus:{weight:["regular"],fallback:"display"},"Poor Story":{weight:["regular"],fallback:"display"},"Hi Melody":{weight:["regular"],fallback:"handwriting"},"Joti One":{weight:["regular"],fallback:"display"},"Nova Flat":{weight:["regular"],fallback:"display"},"ZCOOL QingKe HuangYou":{weight:["regular"],fallback:"display"},"Linden Hill":{weight:["regular","italic"],fallback:"serif"},Bokor:{weight:["regular"],fallback:"display"},"Courier Prime":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Trykker:{weight:["regular"],fallback:"serif"},KoHo:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Song Myung":{weight:["regular"],fallback:"serif"},Ruthie:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended Text":{weight:["regular"],fallback:"display"},Chilanka:{weight:["regular"],fallback:"handwriting"},Fahkwang:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Felipa:{weight:["regular"],fallback:"handwriting"},Monofett:{weight:["regular"],fallback:"display"},"Odibee Sans":{weight:["regular"],fallback:"display"},Smythe:{weight:["regular"],fallback:"display"},"Major Mono Display":{weight:["regular"],fallback:"monospace"},Jomhuria:{weight:["regular"],fallback:"display"},"Croissant One":{weight:["regular"],fallback:"display"},Dangrek:{weight:["regular"],fallback:"display"},"Original Surfer":{weight:["regular"],fallback:"display"},Bahiana:{weight:["regular"],fallback:"display"},Gorditas:{weight:["regular","700"],fallback:"display"},"Odor Mean Chey":{weight:["regular"],fallback:"display"},Iceberg:{weight:["regular"],fallback:"display"},MedievalSharp:{weight:["regular"],fallback:"display"},"Caesar Dressing":{weight:["regular"],fallback:"display"},Sahitya:{weight:["regular","700"],fallback:"serif"},Stylish:{weight:["regular"],fallback:"sans-serif"},"Nova Cut":{weight:["regular"],fallback:"display"},"Purple Purse":{weight:["regular"],fallback:"display"},Devonshire:{weight:["regular"],fallback:"handwriting"},Smokum:{weight:["regular"],fallback:"display"},"Almendra Display":{weight:["regular"],fallback:"display"},Galindo:{weight:["regular"],fallback:"display"},Preahvihear:{weight:["regular"],fallback:"display"},Siemreap:{weight:["regular"],fallback:"display"},"Irish Grover":{weight:["regular"],fallback:"display"},Gupter:{weight:["regular","500","700"],fallback:"serif"},"Meie Script":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128":{weight:["regular"],fallback:"display"},"Keania One":{weight:["regular"],fallback:"display"},"GFS Neohellenic":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Cute Font":{weight:["regular"],fallback:"display"},"Londrina Shadow":{weight:["regular"],fallback:"display"},"East Sea Dokdo":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended":{weight:["regular"],fallback:"display"},Risque:{weight:["regular"],fallback:"display"},Lancelot:{weight:["regular"],fallback:"display"},"Libre Caslon Display":{weight:["regular"],fallback:"serif"},Plaster:{weight:["regular"],fallback:"display"},"Goblin One":{weight:["regular"],fallback:"display"},Asset:{weight:["regular"],fallback:"display"},"Almendra SC":{weight:["regular"],fallback:"serif"},"Jacques Francois":{weight:["regular"],fallback:"serif"},"Jolly Lodger":{weight:["regular"],fallback:"display"},"Lexend Exa":{weight:["regular"],fallback:"sans-serif"},Molle:{weight:["italic"],fallback:"handwriting"},Kavivanar:{weight:["regular"],fallback:"handwriting"},"Kirang Haerang":{weight:["regular"],fallback:"display"},Piedra:{weight:["regular"],fallback:"display"},"Atomic Age":{weight:["regular"],fallback:"display"},"Kulim Park":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Libre Barcode 39 Text":{weight:["regular"],fallback:"display"},"IM Fell Great Primer SC":{weight:["regular"],fallback:"serif"},"Tenali Ramakrishna":{weight:["regular"],fallback:"sans-serif"},Butcherman:{weight:["regular"],fallback:"display"},"Dr Sugiyama":{weight:["regular"],fallback:"handwriting"},"Geostar Fill":{weight:["regular"],fallback:"display"},Romanesco:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128 Text":{weight:["regular"],fallback:"display"},Sunshiney:{weight:["regular"],fallback:"handwriting"},"Kumar One Outline":{weight:["regular"],fallback:"display"},Peddana:{weight:["regular"],fallback:"serif"},"Baloo Bhai 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Kdam Thmor":{weight:["regular"],fallback:"display"},"Ruge Boogie":{weight:["regular"],fallback:"handwriting"},Freehand:{weight:["regular"],fallback:"display"},Bonbon:{weight:["regular"],fallback:"handwriting"},Caladea:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Single Day":{weight:["regular"],fallback:"display"},"Baloo Tamma 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Inria Sans":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Hanalei:{weight:["regular"],fallback:"display"},"Emblema One":{weight:["regular"],fallback:"display"},"Seymour One":{weight:["regular"],fallback:"sans-serif"},"Miss Fajardose":{weight:["regular"],fallback:"handwriting"},Sevillana:{weight:["regular"],fallback:"display"},"Inria Serif":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Bungee Outline":{weight:["regular"],fallback:"display"},Metal:{weight:["regular"],fallback:"display"},"IM Fell Double Pica SC":{weight:["regular"],fallback:"serif"},"Lexend Giga":{weight:["regular"],fallback:"sans-serif"},"ZCOOL KuaiLe":{weight:["regular"],fallback:"display"},Astloch:{weight:["regular","700"],fallback:"display"},"Mr Bedfort":{weight:["regular"],fallback:"handwriting"},Macondo:{weight:["regular"],fallback:"display"},"Butterfly Kids":{weight:["regular"],fallback:"handwriting"},"Supermercado One":{weight:["regular"],fallback:"display"},Fruktur:{weight:["regular"],fallback:"display"},Taprom:{weight:["regular"],fallback:"display"},Lacquer:{weight:["regular"],fallback:"display"},"Black And White Picture":{weight:["regular"],fallback:"sans-serif"},"Bigelow Rules":{weight:["regular"],fallback:"display"},"Beth Ellen":{weight:["regular"],fallback:"handwriting"},"Sofadi One":{weight:["regular"],fallback:"display"},Combo:{weight:["regular"],fallback:"display"},Bellota:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Federant:{weight:["regular"],fallback:"display"},"Miltonian Tattoo":{weight:["regular"],fallback:"display"},"Londrina Sketch":{weight:["regular"],fallback:"display"},Suwannaphum:{weight:["regular"],fallback:"display"},"Bungee Hairline":{weight:["regular"],fallback:"display"},Fascinate:{weight:["regular"],fallback:"display"},"Erica One":{weight:["regular"],fallback:"display"},"Nova Oval":{weight:["regular"],fallback:"display"},"Baloo Da 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Sulphur Point":{weight:["300","regular","700"],fallback:"sans-serif"},Aubrey:{weight:["regular"],fallback:"display"},Gidugu:{weight:["regular"],fallback:"sans-serif"},"Bellota Text":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Nova Script":{weight:["regular"],fallback:"display"},Miltonian:{weight:["regular"],fallback:"display"},Gayathri:{weight:["100","regular","700"],fallback:"sans-serif"},Geostar:{weight:["regular"],fallback:"display"},Moulpali:{weight:["regular"],fallback:"display"},"Passero One":{weight:["regular"],fallback:"display"},"Stalinist One":{weight:["regular"],fallback:"display"},"Long Cang":{weight:["regular"],fallback:"handwriting"},Solway:{weight:["300","regular","500","700","800"],fallback:"serif"},"Zhi Mang Xing":{weight:["regular"],fallback:"handwriting"},"Baloo Tammudu 2":{weight:["regular","500","600","700","800"],fallback:"display"},Chenla:{weight:["regular"],fallback:"display"},Suravaram:{weight:["regular"],fallback:"serif"},Fasthand:{weight:["regular"],fallback:"serif"},Kenia:{weight:["regular"],fallback:"display"},Dhurjati:{weight:["regular"],fallback:"sans-serif"},"Lexend Tera":{weight:["regular"],fallback:"sans-serif"},"BioRhyme Expanded":{weight:["200","300","regular","700","800"],fallback:"serif"},"Turret Road":{weight:["200","300","regular","500","700","800"],fallback:"display"},Warnes:{weight:["regular"],fallback:"display"},"Viaoda Libre":{weight:["regular"],fallback:"display"},"Lexend Mega":{weight:["regular"],fallback:"sans-serif"},Bahianita:{weight:["regular"],fallback:"display"},Manrope:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Lexend Zetta":{weight:["regular"],fallback:"sans-serif"},"Lexend Peta":{weight:["regular"],fallback:"sans-serif"}});function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=wp.i18n.__,Qt=wp.element,Xt=Qt.Component,$t=Qt.Fragment,ea=wp.components,ta=ea.BaseControl,aa=ea.SelectControl,la=ea.ToggleControl,ia=ea.TextControl,ra=ea.Button,na=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.setAttributes,i=t.attributes,r=t.device,n=void 0===r?"":r,c=t.showFontSize,s=void 0!==c&&c,g=t.showFontFamily,u=void 0!==g&&g,b=t.showFontWeight,d=void 0!==b&&b,p=t.showTextTransform,f=void 0!==p&&p,h=t.showLineHeight,m=void 0!==h&&h,k=t.showLetterSpacing,y=void 0!==k&&k,w=t.disableAdvancedToggle,v=void 0!==w&&w,T=t.fontSizePlaceholder,O=void 0===T?"17":T,C=[{value:"",label:Yt("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(Kt).slice(0,20).forEach((function(e){C.push({value:e,label:e})})),C.push({value:"other",label:Yt("Other","generateblocks")});var S=[{value:"",label:Yt("Default","generateblocks")},{value:"normal",label:Yt("Normal","generateblocks")},{value:"bold",label:Yt("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],B=[{value:"",label:Yt("Default","generateblocks")},{value:"uppercase",label:Yt("Uppercase","generateblocks")},{value:"lowercase",label:Yt("Lowercase","generateblocks")},{value:"capitalize",label:Yt("Capitalize","generateblocks")},{value:"initial",label:Yt("Normal","generateblocks")}];void 0!==Kt[i.fontFamily]&&void 0!==Kt[i.fontFamily].weight&&(S=[{value:"",label:Yt("Default","generateblocks")},{value:"normal",label:Yt("Normal","generateblocks")},{value:"bold",label:Yt("Bold","generateblocks")}],Kt[i.fontFamily].weight.filter((function(e){var t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e)})).forEach((function(e){S.push({value:e,label:e})})));var D=function(e){"other"===e&&(e="");i.fontWeight;a({fontFamily:e}),i.fontWeight&&Object.values(S).indexOf(i.fontWeight),void 0!==Kt[e]?a({googleFont:!0,fontFamilyFallback:Kt[e].fallback,googleFontVariants:Kt[e].weight.join(", ")}):a({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})},E=function(e){a({fontFamily:e.target.value}),D(e.target.value)},j=function(e,t){return i[e+t]},R=function(e,t){return e+t},M=i.showAdvancedTypography;v&&(M=!0);var z=O;"Tablet"===n&&i.fontSize&&(z=i.fontSize),"Mobile"===n&&(i.fontSizeTablet?z=i.fontSizeTablet:i.fontSize&&(z=i.fontSize));var x="";return"Tablet"===n&&i.lineHeight&&(x=i.lineHeight),"Mobile"===n&&(i.lineHeightTablet?x=i.lineHeightTablet:i.lineHeight&&(x=i.lineHeight)),Object(l.createElement)($t,null,Object(l.createElement)("div",{className:"components-gblocks-typography-weight-transform"},d&&Object(l.createElement)(aa,{label:Yt("Weight","generateblocks"),value:i.fontWeight,options:S,onChange:function(e){a({fontWeight:e})},className:"components-base-control"}),f&&Object(l.createElement)(aa,{label:Yt("Transform","generateblocks"),value:i.textTransform,options:B,onChange:function(e){a({textTransform:e})},className:"components-base-control"})),!v&&Object(l.createElement)(la,{label:Yt("Show Advanced Typography","generateblocks"),checked:!!i.showAdvancedTypography,onChange:function(e){a({showAdvancedTypography:e})}}),u&&M&&Object(l.createElement)(ta,{className:"gblocks-font-family-shortcuts"},Object(l.createElement)("span",{className:"components-base-control__label"},Yt("Font Family","generateblocks")),Object(l.createElement)("select",{className:"components-select-control__input components-select-control__input--gblocks-fontfamily",onChange:E,onBlur:E},C.map((function(e,t){return Object(l.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))),u&&M&&Object(l.createElement)(ia,{value:i.fontFamily,placeholder:Yt("Enter font name","generateblocks"),onChange:function(e){return D(e)}}),u&&""!==i.fontFamily&&M&&Object(l.createElement)($t,null,Object(l.createElement)(la,{label:Yt("Google Font","generateblocks"),checked:!!i.googleFont,onChange:function(e){a({googleFont:e}),e&&void 0!==Kt[i.fontFamily]&&a({fontFamilyFallback:Kt[i.fontFamily].fallback,googleFontVariants:Kt[i.fontFamily].weight.join(", ")})}}),!!i.googleFont&&Object(l.createElement)(ia,{label:Yt("Variants","generateblocks"),value:i.googleFontVariants,placeholder:Yt("300, 400, 400i","generateblocks"),onChange:function(e){a({googleFontVariants:e})}})),u&&M&&Object(l.createElement)(ia,{label:Yt("Font Family Fallback","generateblocks"),value:i.fontFamilyFallback,placeholder:Yt("sans-serif","generateblocks"),onChange:function(e){a({fontFamilyFallback:e})}}),s&&M&&Object(l.createElement)(ta,null,Object(l.createElement)(V,{label:Yt("Font Size","generateblocks"),value:i.fontSizeUnit,units:["px","em","%"],onClick:function(e){a({fontSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(ia,{type:"number",value:j("fontSize",n)||"",placeholder:z,onChange:function(e){var t=R("fontSize",n);a(o()({},t,parseFloat(e)))},min:1,autoComplete:"off"}),Object(l.createElement)(ra,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=R("fontSize",n);a(o()({},t,e.props.defaultFontSize))}},Yt("Reset","generateblocks")))),m&&M&&Object(l.createElement)(ta,null,Object(l.createElement)(V,{label:Yt("Line Height","generateblocks"),value:i.lineHeightUnit,units:["px","em","%"],onClick:function(e){a({lineHeightUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(ia,{type:"number",value:j("lineHeight",n)||0===j("lineHeight",n)?j("lineHeight",n):"",placeholder:x,onChange:function(e){var t=R("lineHeight",n);a(o()({},t,e))},onBlur:function(){var e=R("lineHeight",n);a(o()({},e,parseFloat(j("lineHeight",n))))},onClick:function(e){e.currentTarget.focus()},min:0,step:.1,autoComplete:"off"}),Object(l.createElement)(ra,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=R("lineHeight",n);a(o()({},t,e.props.defaultLineHeight))}},Yt("Reset","generateblocks")))),y&&M&&Object(l.createElement)(ta,null,Object(l.createElement)(V,{label:Yt("Letter Spacing","generateblocks"),value:"em",units:["em"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(ia,{type:"number",value:j("letterSpacing",n)||"",placeholder:"0.01",onChange:function(e){var t=R("letterSpacing",n);a(o()({},t,e))},onBlur:function(){var e=R("letterSpacing",n);a(o()({},e,parseFloat(j("letterSpacing",n))))},onClick:function(e){e.currentTarget.focus()},min:-1,step:.01,autoComplete:"off"}),Object(l.createElement)(ra,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=R("letterSpacing",n);a(o()({},t,e.props.defaultLetterSpacing))}},Yt("Reset","generateblocks")))))}}]),a}(Xt);a(30);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ca=wp.i18n.__,sa=wp.element,ga=sa.Component,ua=sa.Fragment,ba=wp.components,da=ba.BaseControl,pa=ba.ToggleControl,fa=ba.TextControl,ha=ba.RangeControl,ma=ba.SelectControl,ka=function(e){f()(a,e);var t=oa(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrGradient,n=t.attrGradientDirection,c=t.attrGradientColorOne,s=t.attrGradientColorOneOpacity,g=t.attrGradientColorStopOne,u=t.attrGradientColorTwo,b=t.attrGradientColorTwoOpacity,d=t.attrGradientColorStopTwo,p=t.defaultColorOne,f=t.defaultColorTwo,h=a.gradientSelector,m=ca("element"===h?"Displays behind the background image.":"Displays in front of the background image.","generateblocks");return Object(l.createElement)(ua,null,Object(l.createElement)(pa,{label:ca("Use Gradient","generateblocks"),checked:!!a[r],onChange:function(t){i(o()({},e.props.attrGradient,t))}}),!!a[r]&&Object(l.createElement)(ua,null,void 0!==h&&Object(l.createElement)(ma,{label:ca("Selector","generateblocks"),help:m,value:h,options:[{label:ca("Element","generateblocks"),value:"element"},{label:ca("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){i({gradientSelector:e})}}),Object(l.createElement)(da,null,Object(l.createElement)("span",{className:"components-base-control__label"},ca("Direction","generateblocks")),Object(l.createElement)(ha,{value:a[n]?a[n]:1,onChange:function(e){i(o()({},n,e))},min:0,max:360,step:1,initialPosition:90})),Object(l.createElement)(da,null,Object(l.createElement)("span",{className:"components-base-control__label"},ca("Color One","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(At,{value:a[c],alpha:!0,valueOpacity:a[s],attrOpacity:"gradientColorOneOpacity",onChange:function(e){return i(o()({},c,e))},onOpacityChange:function(e){return i(o()({},s,e))},onClear:function(){return i(o()({},c,p))}}),Object(l.createElement)(fa,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[g]||0===a[g]?a[g]:"",placeholder:ca("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},g,e))},onBlur:function(){(a[g]||0===a[g])&&i(o()({},g,parseFloat(a[g])))},onClick:function(e){e.currentTarget.focus()}}))),Object(l.createElement)(da,null,Object(l.createElement)("span",{className:"components-base-control__label"},ca("Color Two","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(At,{value:a[u],alpha:!0,valueOpacity:a[b],attrOpacity:"gradientColorTwoOpacity",onChange:function(e){return i(o()({},u,e))},onOpacityChange:function(e){return i(o()({},b,e))},onClear:function(){return i(o()({},u,f))}}),Object(l.createElement)(fa,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[d]||0===a[d]?a[d]:"",placeholder:ca("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},d,e))},onBlur:function(){(a[d]||0===a[d])&&i(o()({},d,parseFloat(a[d])))},onClick:function(e){e.currentTarget.focus()}})))))}}]),a}(ga),ya=a(16),wa=a.n(ya);function va(e){return wa.a.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}function Ta(e,t,a,l,i){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+i+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+i+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+i+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+i+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}var Oa=wp.hooks.applyFilters;function Ca(e,t){var a=t.attributes,l=a.backgroundColor,i=a.backgroundColorOpacity,r=a.bgImage,n=a.gradient,o=a.bgOptions,c=a.gradientColorOne,s=a.gradientColorOneOpacity,g=a.gradientColorTwo,u=a.gradientColorTwoOpacity,b=a.gradientColorStopOne,d=a.gradientColorStopTwo,p=a.gradientDirection,f="";if(n){var h="",m="";c&&""!==b&&(h=" "+b+"%"),g&&""!==d&&(m=" "+d+"%"),f="linear-gradient("+p+"deg, "+Ct(c,s)+h+", "+Ct(g,u)+m+")"}if("gradient"===e)return f;var k=!1,y=Ct(l,i);if(r){var w=r.image.url;w=Oa("generateblocks.editor.bgImageURL",w,t),"element"===o.selector&&(y||n)&&void 0!==o.overlay&&o.overlay?n?k=f+", url("+w+")":y&&(k="linear-gradient(0deg, "+y+", "+y+"), url("+w+")"):k="url("+w+")"}return k}function Sa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ba=wp.element.Component,Da=wp.hooks.applyFilters,Ea=function(e){f()(a,e);var t=Sa(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Da("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.width,n=e.outerContainer,o=e.innerContainer,c=e.containerWidth,s=e.minHeight,g=e.minHeightUnit,u=e.paddingTop,b=e.paddingRight,d=e.paddingBottom,p=e.paddingLeft,f=e.paddingUnit,h=e.marginTop,m=e.marginRight,k=e.marginBottom,y=e.marginLeft,w=e.marginUnit,v=e.borderSizeTop,T=e.borderSizeRight,O=e.borderSizeBottom,C=e.borderSizeLeft,S=e.borderRadiusTopRight,B=e.borderRadiusBottomRight,D=e.borderRadiusBottomLeft,E=e.borderRadiusTopLeft,j=e.borderRadiusUnit,R=e.borderColor,M=e.borderColorOpacity,z=e.backgroundColor,x=e.backgroundColorOpacity,L=e.gradient,P=e.gradientSelector,A=e.textColor,U=e.linkColor,H=e.linkColorHover,N=e.bgImage,F=e.bgOptions,_=e.verticalAlignment,I=e.zindex,G=e.innerZindex,V=e.alignment,q=e.fontFamily,W=e.fontFamilyFallback,J=e.fontWeight,Y=e.fontSize,Q=e.fontSizeUnit,X=e.textTransform,$=e.shapeDividers,ee=c;ee||(ee=generateBlocksDefaults.container.containerWidth);var te="";q&&W&&(te=", "+W);var ae=!!N,le=Ca("image",this.props),ie=Ca("gradient",this.props),re=G;!re&&ae&&"pseudo-element"===F.selector&&(re=1);var ne=[];return ne[".gb-container-"+a]=[{"background-color":Ct(z,x),color:A,"border-radius":Ta(E,S,B,D,j),margin:Ta(h,m,k,y,w),"z-index":I,"text-align":V,"font-family":q+te,"font-weight":J,"text-transform":X,"font-size":K(Y,Q),"min-height":K(s,g)}],ae&&"element"===F.selector&&le?ne[".gb-container-"+a].push({"background-image":le,"background-size":F.size,"background-position":F.position,"background-repeat":F.repeat,"background-attachment":F.attachment}):L&&"element"===P&&ne[".gb-container-"+a].push({"background-image":ie}),(ae&&"pseudo-element"===F.selector||I||L&&"pseudo-element"===P)&&ne[".gb-container-"+a].push({position:"relative"}),(ae&&"pseudo-element"===F.selector||L&&"pseudo-element"===P)&&(ne[".gb-container-"+a].push({overflow:"hidden"}),ne[".gb-container-"+a+" .block-list-appender"]=[{"z-index":10}]),ne[".editor-styles-wrapper .gb-container-"+a+" h1,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h2,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h3,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h4,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h5,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h6"]=[{color:A}],(v||T||O||C)&&ne[".gb-container-"+a].push({"border-width":Ta(v,T,O,C,"px"),"border-style":"solid","border-color":Ct(R,M)}),s&&!i&&ne[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":_}),i&&(ne[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":_}),ne[".block-editor-block-list__layout > #block-"+t]=[{height:"100%"}]),ae&&"pseudo-element"===F.selector&&(ne[".gb-container-"+a+":before"]=[{content:'""',"background-image":le,"background-repeat":F.repeat,"background-position":F.position,"background-size":F.size,"background-attachment":F.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}],void 0!==F.opacity&&1!==F.opacity&&ne[".gb-container-"+a+":before"].push({opacity:F.opacity})),L&&"pseudo-element"===P&&(ne[".gb-container-"+a+":after"]=[{content:'""',"background-image":ie,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),ne[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:U}],ne[".gb-container-"+a+" a:hover"]=[{color:H}],ne[".gb-container-"+a+" > .gb-inside-container"]=[{padding:Ta(u,b,d,p,f),width:!(!s||i)&&"100%"}],(re||0===re)&&ne[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":re,position:"relative"}),"contained"!==o||i||ne[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":K(ee,"px"),"margin-left":"auto","margin-right":"auto"}),ne[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:K(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],ne[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&K(ee,"px")}],ne[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],ne["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],$.length&&(ne[".gb-container-"+a].push({position:"relative"}),ne[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],$.forEach((function(e,t){var l=[],i=t+1;"top"===$[t].location&&l.push("scaleY(-1)"),$[t].flipHorizontally&&(l.push("scaleX(-1)"),ne[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:Ct($[t].color,$[t].colorOpacity),"z-index":$[t].zindex}],"top"!==$[t].location&&"bottom"!==$[t].location||ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===$[t].location&&ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===$[t].location&&ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=$[t].width+"%";100===$[t].width&&(r="calc("+r+" + 1.3px)"),ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:K($[t].height,"px"),width:r}],"top"!==$[t].location&&"bottom"!==$[t].location||ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),ne=Da("generateblocks.editor.mainCSS",ne,this.props,"container"),Object(l.createElement)("style",null,Z(ne))}}]),a}(Ba);function ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ra=wp.element.Component,Ma=wp.hooks.applyFilters,za=function(e){f()(a,e);var t=ja(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Ma("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Ma("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,Z(i))}}]),a}(Ra);function xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var La=wp.element.Component,Pa=wp.hooks.applyFilters,Aa=function(e){f()(a,e);var t=xa(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Pa("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,u=e.paddingLeftTablet,b=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,w=e.borderSizeBottomTablet,v=e.borderSizeLeftTablet,T=e.borderRadiusTopRightTablet,O=e.borderRadiusBottomRightTablet,C=e.borderRadiusBottomLeftTablet,S=e.borderRadiusTopLeftTablet,B=e.borderRadiusUnit,D=e.verticalAlignmentTablet,E=e.alignmentTablet,j=e.fontSizeTablet,R=e.fontSizeUnit,M=e.shapeDividers,z=[];return z[".gb-container-"+a]=[{"border-top-left-radius":K(S,B),"border-top-right-radius":K(T,B),"border-bottom-right-radius":K(O,B),"border-bottom-left-radius":K(C,B),"margin-top":K(d,m),"margin-right":K(p,m),"margin-bottom":K(f,m),"margin-left":K(h,m),"text-align":E,"font-size":K(j,R),"min-height":K(n,o)}],(k||y||w||v)&&z[".gb-container-"+a].push({"border-top-width":K(k,"px"),"border-right-width":K(y,"px"),"border-bottom-width":K(w,"px"),"border-left-width":K(v,"px"),"border-style":"solid"}),n&&!i&&z[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==D?D:null}),i&&"inherit"!==D&&z[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":D}),z[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":K(c,b),"padding-right":K(s,b),"padding-bottom":K(g,b),"padding-left":K(u,b),width:!(!n||i)&&"100%"}],z[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:K(r,"%")}],M.length&&M.forEach((function(e,t){z[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:K(M[t].heightTablet,"px"),width:K(M[t].widthTablet,"%")}]})),z=Pa("generateblocks.editor.tabletCSS",z,this.props,"container"),Object(l.createElement)("style",null,Z(z))}}]),a}(La);function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ha=wp.element.Component,Na=wp.hooks.applyFilters,Fa=function(e){f()(a,e);var t=Ua(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Na("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Na("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,Z(a))}}]),a}(Ha);function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ia=wp.element.Component,Ga=wp.hooks.applyFilters,Va=function(e){f()(a,e);var t=_a(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Ga("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,u=e.paddingLeftMobile,b=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,w=e.borderSizeBottomMobile,v=e.borderSizeLeftMobile,T=e.borderRadiusTopRightMobile,O=e.borderRadiusBottomRightMobile,C=e.borderRadiusBottomLeftMobile,S=e.borderRadiusTopLeftMobile,B=e.borderRadiusUnit,D=e.verticalAlignmentMobile,E=e.removeVerticalGapMobile,j=e.alignmentMobile,R=e.fontSizeMobile,M=e.fontSizeUnit,z=e.orderMobile,x=e.shapeDividers,L=e.bgImage,P=e.bgOptions,A=[];return A[".gb-container-"+a]=[{"border-top-left-radius":K(S,B),"border-top-right-radius":K(T,B),"border-bottom-right-radius":K(O,B),"border-bottom-left-radius":K(C,B),"margin-top":K(d,m),"margin-right":K(p,m),"margin-bottom":K(f,m),"margin-left":K(h,m),"text-align":j,"font-size":K(R,M),"min-height":K(n,o)}],(k||y||w||v)&&A[".gb-container-"+a].push({"border-top-width":K(k,"px"),"border-right-width":K(y,"px"),"border-bottom-width":K(w,"px"),"border-left-width":K(v,"px"),"border-style":"solid"}),"inherit"!==D&&n&&!i&&A[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":D}),i&&"inherit"!==D&&A[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":D}),A[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":K(c,b),"padding-right":K(s,b),"padding-bottom":K(g,b),"padding-left":K(u,b),width:!(!n||i)&&"100%"}],A[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:K(r,"%"),order:z}],E&&(A[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),x.length&&x.forEach((function(e,t){A[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:K(x[t].heightMobile,"px"),width:K(x[t].widthMobile,"%")}]})),L&&"fixed"===P.attachment&&("element"===P.selector&&A[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===P.selector&&(A[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),A=Ga("generateblocks.editor.mobileCSS",A,this.props,"container"),Object(l.createElement)("style",null,Z(A))}}]),a}(Ia);function qa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Wa(e){for(var t=1;t #block-"+t]=[{height:"100%"}]),ae&&"pseudo-element"===F.selector&&(ne[".gb-container-"+a+":before"]=[{content:'""',"background-image":le,"background-repeat":F.repeat,"background-position":F.position,"background-size":F.size,"background-attachment":F.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}],void 0!==F.opacity&&1!==F.opacity&&ne[".gb-container-"+a+":before"].push({opacity:F.opacity})),L&&"pseudo-element"===P&&(ne[".gb-container-"+a+":after"]=[{content:'""',"background-image":ie,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),ne[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:U}],ne[".gb-container-"+a+" a:hover"]=[{color:H}],ne[".gb-container-"+a+" > .gb-inside-container"]=[{padding:Ta(u,b,d,p,f),width:!(!s||i)&&"100%"}],(re||0===re)&&ne[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":re,position:"relative"}),"contained"!==o||i||ne[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":K(ee,"px"),"margin-left":"auto","margin-right":"auto"}),ne[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:K(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],ne[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&K(ee,"px")}],ne[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],ne["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],$.length&&(ne[".gb-container-"+a].push({position:"relative"}),ne[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],$.forEach((function(e,t){var l=[],i=t+1;"top"===$[t].location&&l.push("scaleY(-1)"),$[t].flipHorizontally&&(l.push("scaleX(-1)"),ne[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:Ct($[t].color,$[t].colorOpacity),"z-index":$[t].zindex}],"top"!==$[t].location&&"bottom"!==$[t].location||ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===$[t].location&&ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===$[t].location&&ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=$[t].width+"%";100===$[t].width&&(r="calc("+r+" + 1.3px)"),ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:K($[t].height,"px"),width:r}],"top"!==$[t].location&&"bottom"!==$[t].location||ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),ne=Da("generateblocks.editor.mainCSS",ne,this.props,"container"),Object(l.createElement)("style",null,Z(ne))}}]),a}(Ba);function ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ra=wp.element.Component,Ma=wp.hooks.applyFilters,za=function(e){f()(a,e);var t=ja(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Ma("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Ma("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,Z(i))}}]),a}(Ra);function xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var La=wp.element.Component,Pa=wp.hooks.applyFilters,Aa=function(e){f()(a,e);var t=xa(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Pa("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,u=e.paddingLeftTablet,b=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,w=e.borderSizeBottomTablet,v=e.borderSizeLeftTablet,T=e.borderRadiusTopRightTablet,O=e.borderRadiusBottomRightTablet,C=e.borderRadiusBottomLeftTablet,S=e.borderRadiusTopLeftTablet,B=e.borderRadiusUnit,D=e.verticalAlignmentTablet,E=e.alignmentTablet,j=e.fontSizeTablet,R=e.fontSizeUnit,M=e.shapeDividers,z=[];return z[".gb-container-"+a]=[{"border-top-left-radius":K(S,B),"border-top-right-radius":K(T,B),"border-bottom-right-radius":K(O,B),"border-bottom-left-radius":K(C,B),"margin-top":K(d,m),"margin-right":K(p,m),"margin-bottom":K(f,m),"margin-left":K(h,m),"text-align":E,"font-size":K(j,R),"min-height":K(n,o)}],(k||y||w||v)&&z[".gb-container-"+a].push({"border-top-width":K(k,"px"),"border-right-width":K(y,"px"),"border-bottom-width":K(w,"px"),"border-left-width":K(v,"px"),"border-style":"solid"}),n&&!i&&z[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==D?D:null}),i&&"inherit"!==D&&z[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":D}),z[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":K(c,b),"padding-right":K(s,b),"padding-bottom":K(g,b),"padding-left":K(u,b),width:!(!n||i)&&"100%"}],z[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:K(r,"%")}],M.length&&M.forEach((function(e,t){z[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:K(M[t].heightTablet,"px"),width:K(M[t].widthTablet,"%")}]})),z=Pa("generateblocks.editor.tabletCSS",z,this.props,"container"),Object(l.createElement)("style",null,Z(z))}}]),a}(La);function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ha=wp.element.Component,Na=wp.hooks.applyFilters,Fa=function(e){f()(a,e);var t=Ua(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Na("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Na("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,Z(a))}}]),a}(Ha);function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ia=wp.element.Component,Ga=wp.hooks.applyFilters,Va=function(e){f()(a,e);var t=_a(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Ga("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,u=e.paddingLeftMobile,b=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,w=e.borderSizeBottomMobile,v=e.borderSizeLeftMobile,T=e.borderRadiusTopRightMobile,O=e.borderRadiusBottomRightMobile,C=e.borderRadiusBottomLeftMobile,S=e.borderRadiusTopLeftMobile,B=e.borderRadiusUnit,D=e.verticalAlignmentMobile,E=e.removeVerticalGapMobile,j=e.alignmentMobile,R=e.fontSizeMobile,M=e.fontSizeUnit,z=e.orderMobile,x=e.shapeDividers,L=e.bgImage,P=e.bgOptions,A=[];return A[".gb-container-"+a]=[{"border-top-left-radius":K(S,B),"border-top-right-radius":K(T,B),"border-bottom-right-radius":K(O,B),"border-bottom-left-radius":K(C,B),"margin-top":K(d,m),"margin-right":K(p,m),"margin-bottom":K(f,m),"margin-left":K(h,m),"text-align":j,"font-size":K(R,M),"min-height":K(n,o)}],(k||y||w||v)&&A[".gb-container-"+a].push({"border-top-width":K(k,"px"),"border-right-width":K(y,"px"),"border-bottom-width":K(w,"px"),"border-left-width":K(v,"px"),"border-style":"solid"}),"inherit"!==D&&n&&!i&&A[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":D}),i&&"inherit"!==D&&A[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":D}),A[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":K(c,b),"padding-right":K(s,b),"padding-bottom":K(g,b),"padding-left":K(u,b),width:!(!n||i)&&"100%"}],A[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:K(r,"%"),order:z}],E&&(A[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),x.length&&x.forEach((function(e,t){A[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:K(x[t].heightMobile,"px"),width:K(x[t].widthMobile,"%")}]})),L&&"fixed"===P.attachment&&("element"===P.selector&&A[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===P.selector&&(A[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),A=Ga("generateblocks.editor.mobileCSS",A,this.props,"container"),Object(l.createElement)("style",null,Z(A))}}]),a}(Ia);function qa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Wa(e){for(var t=1;t0&&Object(l.createElement)(gl,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:ye,initialTabName:vl("generateblocks.editor.containerBackgroundInitialTab","",this.props,this.state)},(function(e){return Object(l.createElement)("div",null,"image"===e.name&&Object(l.createElement)(bl,null,Object(l.createElement)(il,{id:"gblocks-background-image-upload",label:Ja("Image URL","generateblocks")},Object(l.createElement)("div",{className:"gblocks-bg-image-wrapper"},Object(l.createElement)(ll,{type:"text",value:U?U.image.url:"",onChange:function(e){n(e?{bgImage:{id:"",image:{url:e}}}:{bgImage:null})}}),Object(l.createElement)("div",{className:"gblocks-background-image-action-buttons"},Object(l.createElement)(ml,{title:Ja("Set background image","generateblocks"),onSelect:function(e){var t=generateBlocksDefaults.container.bgImageSize;void 0===e.sizes[t]&&(t="full"),n({bgImage:{id:e.id,image:e.sizes[t]}})},onClose:function(){document.querySelector(".gblocks-bg-image-wrapper input").focus()},allowedTypes:["image"],value:U?U.id:"",modalClass:"editor-gb-container-background__media-modal",render:function(e){var t=e.open;return Object(l.createElement)(cl,{text:Ja("Open the Media Library","generateblocks")},Object(l.createElement)($a,{onClick:t,className:"is-secondary is-small"},Ja("Browse","generateblocks")))}}),vl("generateblocks.editor.backgroundImageActions","",t.props,t.state)))),!!U&&Object(l.createElement)("div",{className:"section-bg-settings"},H.overlay?Object(l.createElement)(bl,null,Object(l.createElement)(tl,{label:Ja("Background Color Overlay","generateblocks"),checked:!!H.overlay,onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{overlay:e})})}}),Object(l.createElement)(rl,{className:"gblocks-option-notice",status:"info",isDismissible:!1},Ja("The background color overlay option is deprecated. Toggle this option to use the new method.","generateblocks"))):Object(l.createElement)(bl,null,void 0!==U.id&&U.id&&Object(l.createElement)(al,{label:Ja("Image Size","generateblocks"),value:N,options:he,onChange:function(e){n({bgImageSize:e})}}),Object(l.createElement)(al,{label:Ja("Selector","generateblocks"),value:H.selector,options:[{label:Ja("Element","generateblocks"),value:"element"},{label:Ja("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{selector:e})})}}),Object(l.createElement)(Xa,{label:Ja("Image Opacity","generateblocks"),value:H.opacity,onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{opacity:e,selector:"pseudo-element"})})},min:0,max:1,step:.1,initialPosition:generateBlocksDefaults.container.bgOptions.opacity}),1!==H.opacity&&"pseudo-element"!==H.selector&&Object(l.createElement)(rl,{className:"gblocks-option-notice",status:"info",isDismissible:!1},Ja("Your selector must be set to Pseudo Element to use opacity.","generateblocks"))),Object(l.createElement)(ll,{label:Ja("Size","generateblocks"),value:H.size,onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{size:e})})}}),Object(l.createElement)(ll,{label:Ja("Position","generateblocks"),value:H.position,onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{position:e})})}}),Object(l.createElement)(al,{label:Ja("Repeat","generateblocks"),value:H.repeat,options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"}],onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{repeat:e})})}}),Object(l.createElement)(al,{label:Ja("Attachment","generateblocks"),value:H.attachment,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{attachment:e})})}}))),"gradient"===e.name&&Object(l.createElement)(ka,r()({},t.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorStopTwo:"gradientColorStopTwo",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",defaultColorOne:generateBlocksDefaults.container.gradientColorOne,defaultColorTwo:generateBlocksDefaults.container.gradientColorTwo})),vl("generateblocks.editor.containerBackgroundTabBody","",e,t.props,t.state))})),vl("generateblocks.editor.controls","","containerBackground",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Shapes","generateblocks"),initialOpen:!1,icon:O("shapes"),className:"gblocks-panel-label",id:"containerShapes",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!i.shapeDividers.length)}),Object(l.createElement)(il,{className:"gb-icon-chooser gb-shape-chooser"},re.map((function(e,a){var i=a+1;return Object(l.createElement)(bl,{key:a},Object(l.createElement)("div",{className:"gblocks-shape-container"},Object(l.createElement)("div",{className:v()(o()({"gblocks-shape-toggle-preview":!0},"gblocks-shape-toggle-preview-".concat(i),!0)),style:{backgroundColor:M}},void 0!==fe[re[a].shape]&&Object(l.createElement)("div",{className:"gblocks-shape-divider-preview",style:{color:re[a].color},dangerouslySetInnerHTML:{__html:va(fe[re[a].shape].icon)}})), /* translators: Shape number */ -Ya(Ja("Shape %s","generateblocks"),i),Object(l.createElement)(ul,null,Object(l.createElement)(sl,{renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return Object(l.createElement)(cl,{text:Ja("Edit Shape","generateblocks")},Object(l.createElement)($a,{className:"gblocks-shape-dropdown",isSecondary:!t||void 0,isPrimary:!!t||void 0,icon:"admin-tools",onClick:a,"aria-expanded":t}))},renderContent:function(){return Object(l.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===t.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(il,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map((function(e,t){var i=generateBlocksInfo.svgShapes[e].svgs;return Object(l.createElement)(nl,{title:generateBlocksInfo.svgShapes[e].group,initialOpen:i.hasOwnProperty(re[a].shape),key:t},Object(l.createElement)(ol,null,Object(l.createElement)(il,null,Object(l.createElement)("ul",{className:"gblocks-icon-chooser gblocks-shape-chooser"},Object.keys(i).map((function(e,t){return Object(l.createElement)("li",{key:"editor-pblock-types-list-item-".concat(t)},Object(l.createElement)(cl,{text:i[e].label},Object(l.createElement)($a,{className:v()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":re[a].shape===e}),onClick:function(){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{shape:e}),n({shapeDividers:t})}},"string"==typeof i[e].icon?Object(l.createElement)(ul,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:va(i[e].icon)}})):Object(l.createElement)(ul,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},i[e].icon)))))}))))))}))),Object(l.createElement)(At,{label:Ja("Color","generateblocks"),value:re[a].color,alpha:!0,valueOpacity:re[a].colorOpacity,onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{color:e}),n({shapeDividers:t})},onOpacityChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{colorOpacity:e}),n({shapeDividers:t})}}),Object(l.createElement)(al,{label:Ja("Location","generateblocks"),value:re[a].location,options:[{label:Ja("Top","generateblocks"),value:"top"},{label:Ja("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{location:e}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].height?re[a].height:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{height:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].width?re[a].width:"",min:"100",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{width:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(tl,{label:Ja("Flip Horizontally","generateblocks"),checked:!!re[a].flipHorizontally,onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{flipHorizontally:e}),n({shapeDividers:t})}}),Object(l.createElement)(ll,{label:Ja("z-index","generateblocks"),type:"number",min:"0",value:re[a].zindex||0===re[a].zindex?re[a].zindex:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{zindex:e}),n({shapeDividers:t})},onBlur:function(){var e=vt()(re);e[a]=Wa(Wa({},e[a]),{},{zindex:parseFloat(re[a].zindex)}),n({shapeDividers:e})},onClick:function(e){e.currentTarget.focus()}})),"Tablet"===t.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].heightTablet?re[a].heightTablet:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{heightTablet:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].widthTablet?re[a].widthTablet:"",min:"100",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{widthTablet:parseFloat(e)}),n({shapeDividers:t})}})),"Mobile"===t.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].heightMobile?re[a].heightMobile:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{heightMobile:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].widthMobile?re[a].widthMobile:"",min:"100",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{widthMobile:parseFloat(e)}),n({shapeDividers:t})}})))}})),"Desktop"===t.getDeviceType()&&Object(l.createElement)(cl,{text:Ja("Delete Shape","generateblocks")},Object(l.createElement)($a,{className:"gblocks-remove-shape",onClick:function(){window.confirm(Ja("This will permanently delete this shape.","generateblocks"))&&function(e){var t=vt()(re);t.splice(e,1),n({shapeDividers:t})}(a)},icon:"no-alt"}))))})),Object(l.createElement)("div",{className:"gblocks-add-new-shape"},Object(l.createElement)($a,{isSecondary:!0,onClick:function(){var e=vt()(re);e.push({shape:generateBlocksStyling.container.shapeDividers.shape,color:generateBlocksStyling.container.shapeDividers.color,colorOpacity:generateBlocksStyling.container.shapeDividers.colorOpacity,location:generateBlocksStyling.container.shapeDividers.location,height:generateBlocksStyling.container.shapeDividers.height,heightTablet:generateBlocksStyling.container.shapeDividers.heightTablet,heightMobile:generateBlocksStyling.container.shapeDividers.heightMobile,width:generateBlocksStyling.container.shapeDividers.width,widthTablet:generateBlocksStyling.container.shapeDividers.widthTablet,widthMobile:generateBlocksStyling.container.shapeDividers.widthMobile,flipHorizontally:generateBlocksStyling.container.shapeDividers.flipHorizontally,zindex:generateBlocksStyling.container.shapeDividers.zindex}),n({shapeDividers:e})}.bind(this)},Ja("Add Shape","generateblocks")))),wl("generateblocks.editor.controls","","containerShapeDivider",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Documentation","generateblocks"),initialOpen:!1,icon:O("documentation"),className:"gblocks-panel-label",id:"containerDocumentation",state:this.state}),Object(l.createElement)("p",null,Ja("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/container/",target:"_blank",rel:"noreferrer noopener"},Ja("Visit our documentation","generateblocks")),wl("generateblocks.editor.controls","","containerDocumentation",this.props,this.state))),Object(l.createElement)(kl,null,Object(l.createElement)(ll,{label:Ja("HTML Anchor"),help:Ja("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(Sl,"-"),n({anchor:e})}})),Object(l.createElement)(Ea,this.props),this.props.deviceType&&Object(l.createElement)(ul,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(za,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Aa,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Fa,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Va,this.props)),ee&&te&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+ee.replace(/ /g,"+")+ge}),Object(l.createElement)(Ot,{tagName:d,htmlAttrs:me},wl("generateblocks.frontend.afterContainerOpen","",i),Object(l.createElement)("div",{className:v()({"gb-inside-container":!0})},wl("generateblocks.frontend.insideContainer","",i),Object(l.createElement)(fl,{templateLock:!1,renderAppender:c?void 0:function(){return Object(l.createElement)(fl.ButtonBlockAppender,null)}})),Object(l.createElement)(ul,null,!!i.shapeDividers.length&&Object(l.createElement)("div",{className:"gb-shapes"},i.shapeDividers.map((function(e,t){var a=t+1;return Object(l.createElement)(ul,{key:t},void 0!==fe[re[t].shape]&&Object(l.createElement)("div",{className:v()(o()({"gb-shape":!0},"gb-shape-".concat(a),!0)),dangerouslySetInnerHTML:{__html:va(fe[re[t].shape].icon)}}))})))),wl("generateblocks.frontend.beforeContainerClose","",i)))}}]),a}(bl),El=Cl([Ol((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Tl((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType,a=e("core").getMedia,l=(0,e("core/editor").getEditedPostAttribute)("featured_media");return t?{media:l?a(l):null,deviceType:t()}:{media:l?a(l):null,deviceType:null}}))])(Dl),jl={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isGrid:{type:"boolean",default:!1},gridId:{type:"string",default:""},tagName:{type:"string",default:generateBlocksDefaults.container.tagName},width:{type:"number",default:generateBlocksDefaults.container.width},widthTablet:{type:"number",default:generateBlocksDefaults.container.widthTablet},widthMobile:{type:"number",default:generateBlocksDefaults.container.widthMobile},orderTablet:{type:"number",default:generateBlocksDefaults.container.orderTablet},orderMobile:{type:"number",default:generateBlocksDefaults.container.orderMobile},outerContainer:{type:"string",default:generateBlocksDefaults.container.outerContainer},innerContainer:{type:"string",default:generateBlocksDefaults.container.innerContainer},containerWidth:{type:"number",default:generateBlocksDefaults.container.containerWidth},minHeight:{type:"number",default:generateBlocksDefaults.container.minHeight},minHeightUnit:{type:"string",default:generateBlocksDefaults.container.minHeightUnit},minHeightTablet:{type:"number",default:generateBlocksDefaults.container.minHeightTablet},minHeightUnitTablet:{type:"string",default:generateBlocksDefaults.container.minHeightUnitTablet},minHeightMobile:{type:"number",default:generateBlocksDefaults.container.minHeightMobile},minHeightUnitMobile:{type:"string",default:generateBlocksDefaults.container.minHeightUnitMobile},paddingTop:{type:"string",default:generateBlocksDefaults.container.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.container.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.container.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.container.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.container.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},paddingTopTablet:{type:"string",default:generateBlocksDefaults.container.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.container.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.container.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.container.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.container.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.container.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.container.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.container.paddingLeftMobile},marginTop:{type:"string",default:generateBlocksDefaults.container.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.container.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.container.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.container.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.container.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.container.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.container.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.container.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.container.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.container.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.container.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.container.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.container.marginLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.container.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.container.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.container.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.container.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.container.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftMobile},borderColor:{type:"string",default:generateBlocksDefaults.container.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.container.borderColorOpacity},backgroundColor:{type:"string",default:generateBlocksDefaults.container.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.container.backgroundColorOpacity},gradient:{type:"boolean",default:generateBlocksDefaults.container.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.container.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.container.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.container.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.container.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.container.gradientColorStopTwo},gradientSelector:{type:"string",default:"element"},textColor:{type:"string",default:generateBlocksDefaults.container.textColor},linkColor:{type:"string",default:generateBlocksDefaults.container.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.container.linkColorHover},bgImage:{type:"object",default:generateBlocksDefaults.container.bgImage},bgOptions:{type:"object",default:{selector:generateBlocksDefaults.container.bgOptions.selector,opacity:generateBlocksDefaults.container.bgOptions.opacity,overlay:generateBlocksDefaults.container.bgOptions.overlay,position:generateBlocksDefaults.container.bgOptions.position,size:generateBlocksDefaults.container.bgOptions.size,repeat:generateBlocksDefaults.container.bgOptions.repeat,attachment:generateBlocksDefaults.container.bgOptions.attachment}},bgImageSize:{type:"string",default:generateBlocksDefaults.container.bgImageSize},verticalAlignment:{type:"string",default:generateBlocksDefaults.container.verticalAlignment},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentTablet},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentMobile},zindex:{type:"number",default:generateBlocksDefaults.container.zindex},innerZindex:{type:"number",default:generateBlocksDefaults.container.innerZindex},removeVerticalGap:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGap},removeVerticalGapTablet:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapTablet},removeVerticalGapMobile:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapMobile},alignment:{type:"string",default:generateBlocksDefaults.container.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.container.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.container.alignmentMobile},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.container.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.container.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.container.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.container.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.container.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.container.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.container.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.container.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.container.fontSizeUnit},textTransform:{type:"string",default:""},align:{type:"string",default:""},shapeDividers:{type:"array",default:[]},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};generateBlocksInfo.hasCustomFields&&Object.assign(jl,{fullWidthContent:{type:"string",source:"meta",meta:"_generate-full-width-content"}});var Rl=jl;function Ml(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function zl(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=Il("generateblocks.editor.mainCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(_l);function Vl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ql=wp.element.Component,Wl=wp.hooks.applyFilters,Zl=function(e){f()(a,e);var t=Vl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Wl("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,Z(e))}}]),a}(ql);function Kl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Jl=wp.element.Component,Yl=wp.hooks.applyFilters,Ql=function(e){f()(a,e);var t=Kl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Yl("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":K(i,c),"margin-right":K(r,c),"margin-bottom":K(n,c),"margin-left":K(o,c),"justify-content":Nl(a),"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=Yl("generateblocks.editor.tabletCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(Jl);function Xl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var $l=wp.element.Component,ei=wp.hooks.applyFilters,ti=function(e){f()(a,e);var t=Xl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=ei("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,Z(e))}}]),a}($l);function ai(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var li=wp.element.Component,ii=wp.hooks.applyFilters,ri=function(e){f()(a,e);var t=ai(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=ii("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":K(i,c),"margin-right":K(r,c),"margin-bottom":K(n,c),"margin-left":K(o,c),"justify-content":Nl(a),"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=ii("generateblocks.editor.mobileCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(li);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var oi=wp.i18n.__,ci=wp.components,si=ci.Tooltip,gi=ci.Button,ui=ci.ToggleControl,bi=ci.ToolbarGroup,di=ci.ToolbarButton,pi=ci.TextControl,fi=wp.element,hi=fi.Fragment,mi=fi.Component,ki=wp.blockEditor,yi=ki.InspectorControls,wi=ki.InnerBlocks,vi=ki.AlignmentToolbar,Ti=ki.BlockControls,Oi=ki.InspectorAdvancedControls,Ci=wp.blocks,Si=Ci.createBlock,Bi=Ci.cloneBlock,Di=wp.hooks.applyFilters,Ei=wp.data,ji=Ei.withSelect,Ri=Ei.withDispatch,Mi=wp.compose.compose,zi=/[\s#]/g,xi=[],Li=[{icon:"editor-alignleft",title:oi("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:oi("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:oi("Align Buttons Right","generateblocks"),align:"right"}],Pi=function(e){f()(a,e);var t=ni(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?xi.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),xi.push(e)):xi.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),xi.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Si("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,w=i.fillHorizontalSpaceMobile,T={className:v()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return T=Di("generateblocks.frontend.htmlAttributes",T,"generateblocks/button-container",i),Object(l.createElement)(hi,null,Object(l.createElement)(Ti,null,Object(l.createElement)(bi,null,Object(l.createElement)(di,{className:"gblocks-add-new-button",icon:"insert",label:oi("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Bi(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Si("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(vi,{value:b,alignmentControls:Li,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(vi,{value:d,alignmentControls:Li,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(vi,{value:p,alignmentControls:Li,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(yi,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{title:oi("Spacing","generateblocks"),initialOpen:!0,icon:O("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(hi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:oi("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(ui,{label:oi("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(ui,{label:oi("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(hi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:oi("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(ui,{label:oi("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(ui,{label:oi("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(hi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:oi("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(ui,{label:oi("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(ui,{label:oi("Fill Horizontal Space","generateblocks"),checked:!!w,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Di("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:oi("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,oi("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},oi("Visit our documentation","generateblocks")),Di("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Oi,null,Object(l.createElement)(pi,{label:oi("HTML Anchor"),help:oi("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(zi,"-"),n({anchor:e})}})),Object(l.createElement)(Gl,this.props),this.props.deviceType&&Object(l.createElement)(hi,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Zl,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Ql,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ti,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(ri,this.props)),Object(l.createElement)("div",T,Object(l.createElement)(wi,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(si,{text:oi("Add Button","generateblocks")},Object(l.createElement)(gi,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Si("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(mi),Ai=Mi([Ri((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),ji((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Pi),Ui={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Hi(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ni(e){for(var t=1;t0?Z.join(" "):null,"aria-label":C||null,id:d||null};return J=on("generateblocks.frontend.htmlAttributes",J,"generateblocks/button",i),Object(l.createElement)(Xr,null,Object(l.createElement)(rn,null,Object(l.createElement)(Kr,null,Object(l.createElement)(Jr,{className:"gblocks-add-new-button",icon:"insert",label:Vr("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=nn(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(tn,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Typography","generateblocks"),initialOpen:!1,icon:O("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!T||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(na,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(na,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(na,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),on("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Spacing","generateblocks"),initialOpen:!1,icon:O("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Vr("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Vr("T-Left","generateblocks"),labelRight:Vr("T-Right","generateblocks"),labelBottom:Vr("B-Right","generateblocks"),labelLeft:Vr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Vr("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Vr("T-Left","generateblocks"),labelRight:Vr("T-Right","generateblocks"),labelBottom:Vr("B-Right","generateblocks"),labelLeft:Vr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Vr("T-Left","generateblocks"),labelRight:Vr("T-Right","generateblocks"),labelBottom:Vr("B-Right","generateblocks"),labelLeft:Vr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),on("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Colors","generateblocks"),initialOpen:!1,icon:O("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Wr,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Vr("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Vr("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(Xr,null,Object(l.createElement)(At,{label:Vr("Background Color","generateblocks"),value:S,alpha:!0,valueOpacity:B,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(At,{label:Vr("Text Color","generateblocks"),value:D,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(At,{label:Vr("Border Color","generateblocks"),value:P,alpha:!0,valueOpacity:A,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),on("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(Xr,null,Object(l.createElement)(At,{label:Vr("Background Color","generateblocks"),value:E,alpha:!0,valueOpacity:j,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(At,{label:Vr("Text Color","generateblocks"),value:R,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(At,{label:Vr("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),on("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),on("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Background Gradient","generateblocks"),initialOpen:!1,icon:O("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ka,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),on("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Icon","generateblocks"),initialOpen:!1,icon:O("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(br,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Vr("Left","generateblocks"),value:"left"},{label:Vr("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(Xr,null,!T&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:Vr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Zr,{type:"number",value:N||"",step:"em"===I?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(N)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Yr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Vr("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(Xr,null,!T&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:Vr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Zr,{type:"number",value:F||"",step:"em"===I?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(F)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Yr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Vr("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(Xr,null,!T&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:Vr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Zr,{type:"number",value:_||"",step:"em"===I?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(_)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Yr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Vr("Reset","generateblocks")))),on("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Vr("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Vr("Visit our documentation","generateblocks")),on("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(an,null,Object(l.createElement)(Zr,{label:Vr("HTML Anchor"),help:Vr("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(bn,"-"),n({anchor:e})}}),Object(l.createElement)(Zr,{label:Vr("ARIA Label","generateblocks"),help:Vr("Helpful to people using screen readers.","generateblocks"),value:C,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Br,this.props),this.props.deviceType&&Object(l.createElement)(Xr,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rr,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Lr,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Hr,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ir,this.props)),M&&z&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+M.replace(/ /g,"+")+K}),Object(l.createElement)(Ot,{tagName:f?"a":"span",htmlAttrs:J},!!y&&Object(l.createElement)(Xr,null,"left"===w&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(y)}}),!T&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(ln,{placeholder:Vr("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===w&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(y)}})),!y&&!T&&Object(l.createElement)(ln,{placeholder:Vr("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(Tr,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}($r),fn=un([gn((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),sn((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pn),hn=wp.blockEditor.RichText,mn=wp.hooks.applyFilters,kn={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function yn(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function wn(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=vn("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(d)}}),!f&&Object(l.createElement)(Tn.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(d)}}))}}],Cn=wp.i18n.__;(0,wp.blocks.registerBlockType)("generateblocks/button",{title:Cn("Button","generateblocks"),description:Cn("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:O("button"),category:"generateblocks",keywords:[Cn("button"),Cn("buttons"),Cn("generate")],attributes:kn,supports:{className:!1,inserter:!1,reusable:!1},edit:fn,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,u=a.relSponsored,b=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),u&&m.push("sponsored");var k={className:v()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!b),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=mn("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(Ot,{tagName:c?"a":"span",htmlAttrs:k},!!b&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(b)}}),!p&&Object(l.createElement)(hn.Content,{value:n,tagName:b?"span":null,className:b?"gb-button-text":null}),!!b&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(b)}}))},deprecated:On});a(35);function Sn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Bn=wp.element.Component,Dn=wp.hooks.applyFilters,En=function(e){f()(a,e);var t=Sn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Dn("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,u=e.borderColorOpacity,b=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,w=e.lineHeightUnit,v=e.letterSpacing,T=e.marginTop,O=e.marginRight,C=e.marginBottom,S=e.marginLeft,B=e.marginUnit,D=e.paddingTop,E=e.paddingRight,j=e.paddingBottom,R=e.paddingLeft,M=e.paddingUnit,z=e.borderSizeTop,x=e.borderSizeRight,L=e.borderSizeBottom,P=e.borderSizeLeft,A=e.borderRadiusTopRight,U=e.borderRadiusBottomRight,H=e.borderRadiusBottomLeft,N=e.borderRadiusTopLeft,F=e.borderRadiusUnit,_=e.icon,I=e.iconColor,G=e.iconColorOpacity,V=e.iconLocation,q=e.iconVerticalAlignment,W=e.iconPaddingTop,J=e.iconPaddingRight,Y=e.iconPaddingBottom,Q=e.iconPaddingLeft,X=e.iconPaddingUnit,$=e.iconSize,ee=e.iconSizeUnit,te=e.inlineWidth,ae=e.removeText,le="",ie="inline-block";d&&p&&(le=", "+p);var re=i+".gb-headline-"+a,ne=[];return ne[".editor-styles-wrapper "+re]=[{color:c,"font-family":d+le,"font-weight":f,"text-transform":k,"text-align":r,"font-size":K(h,m),"line-height":K(y,w),"letter-spacing":K(v,"em"),display:!!_&&"flex","align-items":Nl("inline"===V?q:r),"justify-content":Nl(r),"flex-direction":!(!_||"above"!==V)&&"column"}],ne[".editor-styles-wrapper .gb-container "+re]=[{color:c}],_&&(ie="inline-flex"),ne[".editor-styles-wrapper "+re].push({"background-color":Ct(n,o),color:c,display:!!te&&ie,"margin-top":K(T,B),"margin-right":K(O,B),"margin-bottom":K(C,B),"margin-left":K(S,B),padding:Ta(D,E,j,R,M),"border-radius":Ta(N,A,U,H,F)}),(z||x||L||P)&&ne[".editor-styles-wrapper "+re].push({"border-width":Ta(z,x,L,P,"px"),"border-style":"solid","border-color":Ct(g,u)}),ne[".editor-styles-wrapper "+re+" a"]=[{color:s}],ne[re+" .gb-icon"]=[{padding:!ae&&Ta(W,J,Y,Q,X),"align-self":!(!_||"above"!==V)&&Nl(r),color:Ct(I,G),display:!(!_||"above"!==V)&&"inline"}],ne[re+" .gb-icon svg"]=[{width:K($,ee),height:K($,ee)}],ne[re+" .gb-highlight"]=[{color:b}],ne["#block-"+t]=[{display:!!te&&"inline-flex"}],ne=Dn("generateblocks.editor.mainCSS",ne,this.props,"headline"),Object(l.createElement)("style",null,Z(ne))}}]),a}(Bn);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Rn=wp.element.Component,Mn=wp.hooks.applyFilters,zn=function(e){f()(a,e);var t=jn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Mn("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,Z(e))}}]),a}(Rn);function xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ln=wp.element.Component,Pn=wp.hooks.applyFilters,An=function(e){f()(a,e);var t=xn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Pn("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,u=e.marginTopTablet,b=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,w=e.paddingUnit,v=e.borderSizeTopTablet,T=e.borderSizeRightTablet,O=e.borderSizeBottomTablet,C=e.borderSizeLeftTablet,S=e.borderRadiusTopRightTablet,B=e.borderRadiusBottomRightTablet,D=e.borderRadiusBottomLeftTablet,E=e.borderRadiusTopLeftTablet,j=e.borderRadiusUnit,R=e.icon,M=e.iconLocationTablet,z=e.iconVerticalAlignmentTablet,x=e.iconPaddingTopTablet,L=e.iconPaddingRightTablet,P=e.iconPaddingBottomTablet,A=e.iconPaddingLeftTablet,U=e.iconPaddingUnit,H=e.iconSizeTablet,N=e.iconSizeUnit,F=e.inlineWidthTablet,_=e.removeText,I=i+".gb-headline-"+a,G="inline-block",V=[];return V[".editor-styles-wrapper "+I]=[{"text-align":r,"font-size":K(n,o),"line-height":K(c,s),"letter-spacing":K(g,"em"),display:!!R&&"flex","align-items":Nl("inline"===M?z:r),"justify-content":Nl(r),"flex-direction":!(!R||"above"!==M)&&"column","margin-top":K(u,f)+" !important","margin-right":K(b,f)+" !important","margin-bottom":K(d,f)+" !important","margin-left":K(p,f)+" !important","padding-top":K(h,w),"padding-right":K(m,w),"padding-bottom":K(k,w),"padding-left":K(y,w),"border-top-left-radius":K(E,j),"border-top-right-radius":K(S,j),"border-bottom-right-radius":K(B,j),"border-bottom-left-radius":K(D,j)}],R&&(G="inline-flex",V[".editor-styles-wrapper "+I].push({display:!!F&&G})),(v||T||O||C)&&V[".editor-styles-wrapper "+I].push({"border-top-width":K(v,"px"),"border-right-width":K(T,"px"),"border-bottom-width":K(O,"px"),"border-left-width":K(C,"px"),"border-style":"solid"}),V[I+" .gb-icon"]=[{"padding-top":!_&&K(x,U),"padding-right":!_&&K(L,U),"padding-bottom":!_&&K(P,U),"padding-left":!_&&K(A,U),"align-self":!(!R||"above"!==M)&&Nl(r),display:!(!R||"above"!==M)&&"inline"}],V[I+" .gb-icon svg"]=[{width:K(H,N),height:K(H,N)}],V["#block-"+t]=[{display:!!F&&"inline-flex"}],V=Pn("generateblocks.editor.tabletCSS",V,this.props,"text"),Object(l.createElement)("style",null,Z(V))}}]),a}(Ln);function Un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Hn=wp.element.Component,Nn=wp.hooks.applyFilters,Fn=function(e){f()(a,e);var t=Un(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Nn("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,Z(e))}}]),a}(Hn);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var In=wp.element.Component,Gn=wp.hooks.applyFilters,Vn=function(e){f()(a,e);var t=_n(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Gn("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,u=e.marginTopMobile,b=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,w=e.paddingUnit,v=e.borderSizeTopMobile,T=e.borderSizeRightMobile,O=e.borderSizeBottomMobile,C=e.borderSizeLeftMobile,S=e.borderRadiusTopRightMobile,B=e.borderRadiusBottomRightMobile,D=e.borderRadiusBottomLeftMobile,E=e.borderRadiusTopLeftMobile,j=e.borderRadiusUnit,R=e.icon,M=e.iconLocationMobile,z=e.iconVerticalAlignmentMobile,x=e.iconPaddingTopMobile,L=e.iconPaddingRightMobile,P=e.iconPaddingBottomMobile,A=e.iconPaddingLeftMobile,U=e.iconPaddingUnit,H=e.iconSizeMobile,N=e.iconSizeUnit,F=e.inlineWidthMobile,_=e.removeText,I=i+".gb-headline-"+a,G="inline-block",V=[];return V[".editor-styles-wrapper "+I]=[{"text-align":r,"font-size":K(n,o),"line-height":K(c,s),"letter-spacing":K(g,"em"),display:!!R&&"flex","align-items":Nl("inline"===M?z:r),"justify-content":Nl(r),"flex-direction":!(!R||"above"!==M)&&"column","margin-top":K(u,f)+" !important","margin-right":K(b,f)+" !important","margin-bottom":K(d,f)+" !important","margin-left":K(p,f)+" !important","padding-top":K(h,w),"padding-right":K(m,w),"padding-bottom":K(k,w),"padding-left":K(y,w),"border-top-left-radius":K(E,j),"border-top-right-radius":K(S,j),"border-bottom-right-radius":K(B,j),"border-bottom-left-radius":K(D,j)}],R&&(G="inline-flex",V[".editor-styles-wrapper "+I].push({display:!!F&&G})),(v||T||O||C)&&V[".editor-styles-wrapper "+I].push({"border-top-width":K(v,"px"),"border-right-width":K(T,"px"),"border-bottom-width":K(O,"px"),"border-left-width":K(C,"px"),"border-style":"solid"}),V[I+" .gb-icon"]=[{"padding-top":!_&&K(x,U),"padding-right":!_&&K(L,U),"padding-bottom":!_&&K(P,U),"padding-left":!_&&K(A,U),"align-self":!(!R||"above"!==M)&&Nl(r),display:!(!R||"above"!==M)&&"inline"}],V[I+" .gb-icon svg"]=[{width:K(H,N),height:K(H,N)}],V["#block-"+t]=[{display:!!F&&"inline-flex"}],V=Gn("generateblocks.editor.mobileCSS",V,this.props,"headline"),Object(l.createElement)("style",null,Z(V))}}]),a}(In),qn=wp.i18n.__,Wn=wp.element.Fragment,Zn=wp.richText,Kn=Zn.toggleFormat,Jn=Zn.registerFormatType,Yn=wp.blockEditor,Qn=Yn.RichTextToolbarButton,Xn=Yn.RichTextShortcut,$n=wp.data.withSelect,eo=wp.compose.ifCondition,to=wp.compose.compose,ao=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),lo=to($n((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),eo((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Kn(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(Wn,null,Object(l.createElement)(Xn,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Qn,{icon:ao,title:qn("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))}));Jn("generateblocks/mark",{title:qn("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:lo});var io=wp.components,ro=io.Path,no=io.SVG;function oo(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(no,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(ro,{d:a[t]}))}function co(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var so=wp.i18n,go=so.__,uo=so.sprintf,bo=wp.components,po=bo.TextControl,fo=bo.ToolbarGroup,ho=bo.SelectControl,mo=bo.ToggleControl,ko=bo.Button,yo=wp.element,wo=yo.Fragment,vo=yo.Component,To=wp.blockEditor,Oo=To.InspectorControls,Co=To.RichText,So=To.BlockControls,Bo=To.AlignmentToolbar,Do=To.InspectorAdvancedControls,Eo=wp.hooks.applyFilters,jo=wp.data,Ro=jo.withSelect,Mo=jo.withDispatch,zo=wp.compose.compose,xo=/[\s#]/g,Lo=[],Po=function(e){f()(a,e);var t=co(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Lo.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Lo.push(e)):Lo.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Lo.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,u=i.className,b=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,w=i.linkColor,T=i.linkColorHover,C=i.borderColor,S=i.borderColorOpacity,B=i.highlightTextColor,D=i.fontFamily,E=i.googleFont,j=i.googleFontVariants,R=i.marginTop,M=i.marginRight,z=i.marginBottom,L=i.marginLeft,P=i.icon,A=i.hasIcon,U=i.iconColor,H=i.iconColorOpacity,N=i.iconLocation,F=i.iconLocationTablet,_=i.iconLocationMobile,I=i.iconVerticalAlignment,G=i.iconVerticalAlignmentTablet,q=i.iconVerticalAlignmentMobile,W=i.iconSize,Z=i.iconSizeTablet,K=i.iconSizeMobile,J=i.iconSizeUnit,Y=i.inlineWidth,Q=i.inlineWidthTablet,X=i.inlineWidthMobile,$=i.removeText,ee=i.ariaLabel,te="";j&&(te=":"+j);var ae="";ae=Z||0===Z?Z:W||0===W?W:"";var le={className:v()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!A),o()(e,u,void 0!==u),e)),id:g||null};return le=Eo("generateblocks.frontend.htmlAttributes",le,"generateblocks/headline",i),Object(l.createElement)(wo,null,Object(l.createElement)(So,null,Object(l.createElement)(fo,{isCollapsed:!0,icon:Object(l.createElement)(oo,{level:d}),label:go("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oo,{level:"h1"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3" -go("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(oo,{level:"h2"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3" -go("Heading %s","generateblocks"),"2"),onClick:function(){n({element:"h2"})}},{isActive:"h3"===d,icon:Object(l.createElement)(oo,{level:"h3"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3" -go("Heading %s","generateblocks"),"3"),onClick:function(){n({element:"h3"})}},{isActive:"h4"===d,icon:Object(l.createElement)(oo,{level:"h4"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3" -go("Heading %s","generateblocks"),"4"),onClick:function(){n({element:"h4"})}},{isActive:"h5"===d,icon:Object(l.createElement)(oo,{level:"h5"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3" -go("Heading %s","generateblocks"),"5"),onClick:function(){n({element:"h5"})}},{isActive:"h6"===d,icon:Object(l.createElement)(oo,{level:"h6"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3" -go("Heading %s","generateblocks"),"6"),onClick:function(){n({element:"h6"})}},{isActive:"p"===d,icon:Object(l.createElement)(oo,{level:"p"}),title:go("Paragraph","generateblocks"),onClick:function(){n({element:"p"})}},{isActive:"div"===d,icon:Object(l.createElement)(oo,{level:"div"}),title:go("Div","generateblocks"),onClick:function(){n({element:"div"})}}]}),"Desktop"===this.getDeviceType()&&!Y&&Object(l.createElement)(Bo,{value:p,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&!Q&&Object(l.createElement)(Bo,{value:f,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&!X&&Object(l.createElement)(Bo,{value:h,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Oo,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{id:"headlineElement",state:this.state,showPanel:"Desktop"===this.getDeviceType()}),Object(l.createElement)(ho,{label:go("Element","generateblocks"),value:d,options:[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"paragraph",value:"p"},{label:"div",value:"div"}],onChange:function(e){n({element:e}),R||M||z||L||n("p"===e?{marginUnit:"em"}:{marginUnit:generateBlocksDefaults.headline.marginUnit})}}),Eo("generateblocks.editor.controls","","headlineElement",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:go("Typography","generateblocks"),initialOpen:!1,icon:O("typography"),className:"gblocks-panel-label",id:"headlineTypography",state:this.state,showPanel:!$||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(wo,null,Object(l.createElement)(na,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,fontSizePlaceholder:c,defaultFontSize:generateBlocksDefaults.headline.fontSize,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeight,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(wo,null,Object(l.createElement)(na,r()({},this.props,{device:"Tablet",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightTablet,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(wo,null,Object(l.createElement)(na,r()({},this.props,{device:"Mobile",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightMobile,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingMobile}))),Eo("generateblocks.editor.controls","","headlineTypography",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:go("Spacing","generateblocks"),initialOpen:!1,icon:O("spacing"),className:"gblocks-panel-label",id:"headlineSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(wo,null,Object(l.createElement)(mo,{label:go("Inline Width","generateblocks"),checked:!!Y,onChange:function(e){n({inlineWidth:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:go("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:go("T-Left","generateblocks"),labelRight:go("T-Right","generateblocks"),labelBottom:go("B-Right","generateblocks"),labelLeft:go("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(wo,null,Object(l.createElement)(mo,{label:go("Inline Width","generateblocks"),checked:!!Q,onChange:function(e){n({inlineWidthTablet:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:go("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:go("T-Left","generateblocks"),labelRight:go("T-Right","generateblocks"),labelBottom:go("B-Right","generateblocks"),labelLeft:go("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(wo,null,Object(l.createElement)(mo,{label:go("Inline Width","generateblocks"),checked:!!X,onChange:function(e){n({inlineWidthMobile:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:go("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:go("T-Left","generateblocks"),labelRight:go("T-Right","generateblocks"),labelBottom:go("B-Right","generateblocks"),labelLeft:go("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Eo("generateblocks.editor.controls","","headlineSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:go("Colors","generateblocks"),initialOpen:!1,icon:O("colors"),className:"gblocks-panel-label",id:"headlineColors",state:this.state,showPanel:"Desktop"===this.getDeviceType()||!1}),Object(l.createElement)(At,{label:go("Background Color","generateblocks"),value:m,alpha:!0,valueOpacity:k,attrOpacity:"backgroundColorOpacity",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(At,{label:go("Text Color","generateblocks"),value:y,alpha:!1,onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(At,{label:go("Link Color","generateblocks"),value:w,alpha:!1,onChange:function(e){return n({linkColor:e})}}),Object(l.createElement)(At,{label:go("Link Color Hover","generateblocks"),value:T,alpha:!1,onChange:function(e){return n({linkColorHover:e})}}),Object(l.createElement)(At,{label:go("Border Color","generateblocks"),value:C,alpha:!0,valueOpacity:S,attrOpacity:"borderColorOpacity",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),P&&Object(l.createElement)(At,{label:go("Icon Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"iconColorOpacity",onChange:function(e){return n({iconColor:e})},onOpacityChange:function(e){return n({iconColorOpacity:e})}}),Object(l.createElement)(At,{label:go("Highlight Text","generateblocks"),value:B,alpha:!1,onChange:function(e){return n({highlightTextColor:e})}})),Object(l.createElement)(Ce,r()({},this.props,{title:go("Icon","generateblocks"),initialOpen:!1,icon:O("icons"),className:"gblocks-panel-label",id:"headlineIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!P)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(br,r()({},this.props,{attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel"})),"Desktop"===this.getDeviceType()&&!!P&&Object(l.createElement)(wo,null,!$&&Object(l.createElement)(wo,null,Object(l.createElement)(ho,{label:go("Icon Location","generateblocks"),value:N,options:[{label:go("Inline","generateblocks"),value:"inline"},{label:go("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocation:e,iconPaddingRight:"inline"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":""})}}),"inline"===N&&Object(l.createElement)(ho,{label:go("Icon Alignment","generateblocks"),value:I,options:[{label:go("Top","generateblocks"),value:"top"},{label:go("Center","generateblocks"),value:"center"},{label:go("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignment:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(V,{label:go("Icon Size","generateblocks"),value:J,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(po,{type:"number",value:W||0===W?W:"",step:"em"===J?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(W)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(ko,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.headline.iconSize})}},go("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!P&&Object(l.createElement)(wo,null,!$&&Object(l.createElement)(wo,null,Object(l.createElement)(ho,{label:go("Icon Location","generateblocks"),value:F,options:[{label:go("Inherit","generateblocks"),value:""},{label:go("Inline","generateblocks"),value:"inline"},{label:go("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":""})}}),"inline"===F&&Object(l.createElement)(ho,{label:go("Icon Alignment","generateblocks"),value:G,options:[{label:go("Inherit","generateblocks"),value:""},{label:go("Top","generateblocks"),value:"top"},{label:go("Center","generateblocks"),value:"center"},{label:go("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentTablet:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(V,{label:go("Icon Size","generateblocks"),value:J,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(po,{type:"number",value:Z||0===Z?Z:"",step:"em"===J?.1:1,placeholder:W||0===W?W:"",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(Z)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(ko,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.headline.iconSizeTablet})}},go("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!P&&Object(l.createElement)(wo,null,!$&&Object(l.createElement)(wo,null,Object(l.createElement)(ho,{label:go("Icon Location","generateblocks"),value:_,options:[{label:go("Inherit","generateblocks"),value:""},{label:go("Inline","generateblocks"),value:"inline"},{label:go("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":""})}}),"inline"===_&&Object(l.createElement)(ho,{label:go("Icon Alignment","generateblocks"),value:q,options:[{label:go("Inherit","generateblocks"),value:""},{label:go("Top","generateblocks"),value:"top"},{label:go("Center","generateblocks"),value:"center"},{label:go("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentMobile:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(V,{label:go("Icon Size","generateblocks"),value:J,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(po,{type:"number",value:K||0===K?K:"",step:"em"===J?.1:1,placeholder:ae,onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(K)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(ko,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.headline.iconSizeMobile})}},go("Reset","generateblocks")))),Eo("generateblocks.editor.controls","","headlineIcon",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:go("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"headlineDocumentation",state:this.state}),Object(l.createElement)("p",null,go("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/headline/",target:"_blank",rel:"noreferrer noopener"},go("Visit our documentation","generateblocks")),Eo("generateblocks.editor.controls","","headlineDocumentation",this.props,this.state))),Object(l.createElement)(Do,null,Object(l.createElement)(po,{label:go("HTML Anchor"),help:go("Anchors lets you link directly to a section on a page.","generateblocks"),value:g||"",onChange:function(e){e=e.replace(xo,"-"),n({anchor:e})}})),Object(l.createElement)(En,this.props),this.props.deviceType&&Object(l.createElement)(wo,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(zn,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(An,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Fn,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Vn,this.props)),D&&E&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+D.replace(/ /g,"+")+te}),Object(l.createElement)(Ot,{tagName:d,htmlAttrs:le},A&&Object(l.createElement)(wo,null,Object(l.createElement)("span",{className:"gb-icon","aria-label":$&&ee?ee:void 0,dangerouslySetInnerHTML:{__html:va(P)}}),!$&&Object(l.createElement)("span",{className:"gb-headline-text"},Object(l.createElement)(Co,{tagName:"span",value:b,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0}))),!A&&!$&&Object(l.createElement)(Co,{tagName:"span",value:b,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0})))}}]),a}(vo),Ao=zo([Mo((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Ro((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Po),Uo=wp.blockEditor.RichText,Ho=wp.hooks.applyFilters,No={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},content:{type:"string",source:"html",selector:".gb-headline-text"},element:{type:"string",default:"h2"},alignment:{type:"string",default:generateBlocksDefaults.headline.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.headline.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.headline.alignmentMobile},backgroundColor:{type:"string",default:generateBlocksDefaults.headline.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.headline.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.headline.textColor},linkColor:{type:"string",default:generateBlocksDefaults.headline.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.headline.linkColorHover},borderColor:{type:"string",default:generateBlocksDefaults.headline.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.headline.borderColorOpacity},highlightTextColor:{type:"string",default:generateBlocksDefaults.headline.highlightTextColor},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.headline.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.headline.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.headline.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.headline.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.headline.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.headline.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.headline.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.headline.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.headline.fontSizeUnit},textTransform:{type:"string",default:""},lineHeight:{type:"number",default:generateBlocksDefaults.headline.lineHeight},lineHeightTablet:{type:"number",default:generateBlocksDefaults.headline.lineHeightTablet},lineHeightMobile:{type:"number",default:generateBlocksDefaults.headline.lineHeightMobile},lineHeightUnit:{type:"string",default:generateBlocksDefaults.headline.lineHeightUnit},letterSpacing:{type:"number",default:generateBlocksDefaults.headline.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.headline.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.headline.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.headline.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.headline.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.headline.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.headline.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.headline.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.headline.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.headline.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.headline.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.headline.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.headline.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.headline.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.headline.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.headline.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.headline.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.headline.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.headline.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.headline.paddingLeft},paddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.paddingLeftMobile},paddingUnit:{type:"string",default:generateBlocksDefaults.headline.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},borderSizeTop:{type:"string",default:generateBlocksDefaults.headline.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.headline.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.headline.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftMobile},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:generateBlocksDefaults.headline.iconColor},iconColorOpacity:{type:"number",default:generateBlocksDefaults.headline.iconColorOpacity},customIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.headline.iconLocation},iconLocationTablet:{type:"string",default:generateBlocksDefaults.headline.iconLocationTablet},iconLocationMobile:{type:"string",default:generateBlocksDefaults.headline.iconLocationMobile},iconVerticalAlignment:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignment},iconVerticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentTablet},iconVerticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentMobile},iconPaddingTop:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.headline.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.headline.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.headline.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.headline.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.headline.iconSizeUnit},inlineWidth:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidth},inlineWidthTablet:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthTablet},inlineWidthMobile:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthMobile},removeText:{type:"boolean",default:generateBlocksDefaults.headline.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.headline.ariaLabel},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}},Fo=wp.blocks.createBlock,_o={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Fo("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Fo("generateblocks/headline",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Fo("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Fo("core/heading",{content:t})}}]};function Io(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Go(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Fl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=Gl("generateblocks.editor.mainCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(Il);function ql(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Wl=wp.element.Component,Zl=wp.hooks.applyFilters,Kl=function(e){f()(a,e);var t=ql(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Zl("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,Z(e))}}]),a}(Wl);function Jl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yl=wp.element.Component,Ql=wp.hooks.applyFilters,Xl=function(e){f()(a,e);var t=Jl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Ql("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":K(i,c),"margin-right":K(r,c),"margin-bottom":K(n,c),"margin-left":K(o,c),"justify-content":Fl(a),"flex-direction":!!s&&"column","align-items":!!s&&Fl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Fl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=Ql("generateblocks.editor.tabletCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(Yl);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ei=wp.element.Component,ti=wp.hooks.applyFilters,ai=function(e){f()(a,e);var t=$l(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=ti("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,Z(e))}}]),a}(ei);function li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ii=wp.element.Component,ri=wp.hooks.applyFilters,ni=function(e){f()(a,e);var t=li(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=ri("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":K(i,c),"margin-right":K(r,c),"margin-bottom":K(n,c),"margin-left":K(o,c),"justify-content":Fl(a),"flex-direction":!!s&&"column","align-items":!!s&&Fl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Fl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=ri("generateblocks.editor.mobileCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(ii);function oi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ci=wp.i18n.__,si=wp.components,gi=si.Tooltip,ui=si.Button,bi=si.ToggleControl,di=si.ToolbarGroup,pi=si.ToolbarButton,fi=si.TextControl,hi=wp.element,mi=hi.Fragment,ki=hi.Component,yi=wp.blockEditor,wi=yi.InspectorControls,vi=yi.InnerBlocks,Ti=yi.AlignmentToolbar,Oi=yi.BlockControls,Ci=yi.InspectorAdvancedControls,Si=wp.blocks,Bi=Si.createBlock,Di=Si.cloneBlock,Ei=wp.hooks.applyFilters,ji=wp.data,Ri=ji.withSelect,Mi=ji.withDispatch,zi=wp.compose.compose,xi=/[\s#]/g,Li=[],Pi=[{icon:"editor-alignleft",title:ci("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:ci("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:ci("Align Buttons Right","generateblocks"),align:"right"}],Ai=function(e){f()(a,e);var t=oi(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Li.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Li.push(e)):Li.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Li.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Bi("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,w=i.fillHorizontalSpaceMobile,T={className:v()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return T=Ei("generateblocks.frontend.htmlAttributes",T,"generateblocks/button-container",i),Object(l.createElement)(mi,null,Object(l.createElement)(Oi,null,Object(l.createElement)(di,null,Object(l.createElement)(pi,{className:"gblocks-add-new-button",icon:"insert",label:ci("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Di(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Bi("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ti,{value:b,alignmentControls:Pi,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Ti,{value:d,alignmentControls:Pi,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Ti,{value:p,alignmentControls:Pi,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(wi,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{title:ci("Spacing","generateblocks"),initialOpen:!0,icon:O("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(mi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:ci("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(bi,{label:ci("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(bi,{label:ci("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(mi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:ci("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(bi,{label:ci("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(bi,{label:ci("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(mi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:ci("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(bi,{label:ci("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(bi,{label:ci("Fill Horizontal Space","generateblocks"),checked:!!w,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Ei("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:ci("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,ci("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},ci("Visit our documentation","generateblocks")),Ei("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Ci,null,Object(l.createElement)(fi,{label:ci("HTML Anchor"),help:ci("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(xi,"-"),n({anchor:e})}})),Object(l.createElement)(Vl,this.props),this.props.deviceType&&Object(l.createElement)(mi,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Kl,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Xl,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ai,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(ni,this.props)),Object(l.createElement)("div",T,Object(l.createElement)(vi,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(gi,{text:ci("Add Button","generateblocks")},Object(l.createElement)(ui,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Bi("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(ki),Ui=zi([Mi((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Ri((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Ai),Hi={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Ni(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Fi(e){for(var t=1;t0?Z.join(" "):null,"aria-label":C||null,id:d||null};return J=cn("generateblocks.frontend.htmlAttributes",J,"generateblocks/button",i),Object(l.createElement)($r,null,Object(l.createElement)(nn,null,Object(l.createElement)(Jr,null,Object(l.createElement)(Yr,{className:"gblocks-add-new-button",icon:"insert",label:qr("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=on(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(an,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{title:qr("Typography","generateblocks"),initialOpen:!1,icon:O("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!T||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)($r,null,Object(l.createElement)(na,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)($r,null,Object(l.createElement)(na,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)($r,null,Object(l.createElement)(na,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),cn("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:qr("Spacing","generateblocks"),initialOpen:!1,icon:O("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)($r,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:qr("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:qr("T-Left","generateblocks"),labelRight:qr("T-Right","generateblocks"),labelBottom:qr("B-Right","generateblocks"),labelLeft:qr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)($r,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:qr("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:qr("T-Left","generateblocks"),labelRight:qr("T-Right","generateblocks"),labelBottom:qr("B-Right","generateblocks"),labelLeft:qr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)($r,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:qr("T-Left","generateblocks"),labelRight:qr("T-Right","generateblocks"),labelBottom:qr("B-Right","generateblocks"),labelLeft:qr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),cn("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:qr("Colors","generateblocks"),initialOpen:!1,icon:O("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Zr,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:qr("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:qr("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)($r,null,Object(l.createElement)(At,{label:qr("Background Color","generateblocks"),value:S,alpha:!0,valueOpacity:B,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(At,{label:qr("Text Color","generateblocks"),value:D,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(At,{label:qr("Border Color","generateblocks"),value:P,alpha:!0,valueOpacity:A,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),cn("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)($r,null,Object(l.createElement)(At,{label:qr("Background Color","generateblocks"),value:E,alpha:!0,valueOpacity:j,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(At,{label:qr("Text Color","generateblocks"),value:R,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(At,{label:qr("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),cn("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),cn("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:qr("Background Gradient","generateblocks"),initialOpen:!1,icon:O("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ka,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),cn("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:qr("Icon","generateblocks"),initialOpen:!1,icon:O("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(dr,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:qr("Left","generateblocks"),value:"left"},{label:qr("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)($r,null,!T&&Object(l.createElement)($r,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:qr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Kr,{type:"number",value:N||"",step:"em"===I?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(N)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Qr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},qr("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)($r,null,!T&&Object(l.createElement)($r,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:qr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Kr,{type:"number",value:F||"",step:"em"===I?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(F)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Qr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},qr("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)($r,null,!T&&Object(l.createElement)($r,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:qr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Kr,{type:"number",value:_||"",step:"em"===I?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(_)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Qr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},qr("Reset","generateblocks")))),cn("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:qr("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,qr("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},qr("Visit our documentation","generateblocks")),cn("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(ln,null,Object(l.createElement)(Kr,{label:qr("HTML Anchor"),help:qr("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(dn,"-"),n({anchor:e})}}),Object(l.createElement)(Kr,{label:qr("ARIA Label","generateblocks"),help:qr("Helpful to people using screen readers.","generateblocks"),value:C,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dr,this.props),this.props.deviceType&&Object(l.createElement)($r,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Mr,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Pr,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Nr,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Gr,this.props)),M&&z&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+M.replace(/ /g,"+")+K}),Object(l.createElement)(Ot,{tagName:f?"a":"span",htmlAttrs:J},!!y&&Object(l.createElement)($r,null,"left"===w&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(y)}}),!T&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(rn,{placeholder:qr("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===w&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(y)}})),!y&&!T&&Object(l.createElement)(rn,{placeholder:qr("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(Or,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(en),hn=bn([un((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),gn((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(fn),mn=wp.blockEditor.RichText,kn=wp.hooks.applyFilters,yn={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function wn(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function vn(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Tn("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(d)}}),!f&&Object(l.createElement)(On.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(d)}}))}}],Sn=wp.i18n.__;(0,wp.blocks.registerBlockType)("generateblocks/button",{title:Sn("Button","generateblocks"),description:Sn("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:O("button"),category:"generateblocks",keywords:[Sn("button"),Sn("buttons"),Sn("generate")],attributes:yn,supports:{className:!1,inserter:!1,reusable:!1},edit:hn,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,u=a.relSponsored,b=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),u&&m.push("sponsored");var k={className:v()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!b),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=kn("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(Ot,{tagName:c?"a":"span",htmlAttrs:k},!!b&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(b)}}),!p&&Object(l.createElement)(mn.Content,{value:n,tagName:b?"span":null,className:b?"gb-button-text":null}),!!b&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(b)}}))},deprecated:Cn});a(35);function Bn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Dn=wp.element.Component,En=wp.hooks.applyFilters,jn=function(e){f()(a,e);var t=Bn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=En("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,u=e.borderColorOpacity,b=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,w=e.lineHeightUnit,v=e.letterSpacing,T=e.marginTop,O=e.marginRight,C=e.marginBottom,S=e.marginLeft,B=e.marginUnit,D=e.paddingTop,E=e.paddingRight,j=e.paddingBottom,R=e.paddingLeft,M=e.paddingUnit,z=e.borderSizeTop,x=e.borderSizeRight,L=e.borderSizeBottom,P=e.borderSizeLeft,A=e.borderRadiusTopRight,U=e.borderRadiusBottomRight,H=e.borderRadiusBottomLeft,N=e.borderRadiusTopLeft,F=e.borderRadiusUnit,_=e.icon,I=e.iconColor,G=e.iconColorOpacity,V=e.iconLocation,q=e.iconVerticalAlignment,W=e.iconPaddingTop,J=e.iconPaddingRight,Y=e.iconPaddingBottom,Q=e.iconPaddingLeft,X=e.iconPaddingUnit,$=e.iconSize,ee=e.iconSizeUnit,te=e.inlineWidth,ae=e.removeText,le="",ie="inline-block";d&&p&&(le=", "+p);var re=i+".gb-headline-"+a,ne=[];return ne[".editor-styles-wrapper "+re]=[{color:c,"font-family":d+le,"font-weight":f,"text-transform":k,"text-align":r,"font-size":K(h,m),"line-height":K(y,w),"letter-spacing":K(v,"em"),display:!!_&&"flex","align-items":Fl("inline"===V?q:r),"justify-content":Fl(r),"flex-direction":!(!_||"above"!==V)&&"column"}],ne[".editor-styles-wrapper .gb-container "+re]=[{color:c}],_&&(ie="inline-flex"),ne[".editor-styles-wrapper "+re].push({"background-color":Ct(n,o),color:c,display:!!te&&ie,"margin-top":K(T,B),"margin-right":K(O,B),"margin-bottom":K(C,B),"margin-left":K(S,B),padding:Ta(D,E,j,R,M),"border-radius":Ta(N,A,U,H,F)}),(z||x||L||P)&&ne[".editor-styles-wrapper "+re].push({"border-width":Ta(z,x,L,P,"px"),"border-style":"solid","border-color":Ct(g,u)}),ne[".editor-styles-wrapper "+re+" a"]=[{color:s}],ne[re+" .gb-icon"]=[{padding:!ae&&Ta(W,J,Y,Q,X),"align-self":!(!_||"above"!==V)&&Fl(r),color:Ct(I,G),display:!(!_||"above"!==V)&&"inline"}],ne[re+" .gb-icon svg"]=[{width:K($,ee),height:K($,ee)}],ne[re+" .gb-highlight"]=[{color:b}],ne["#block-"+t]=[{display:!!te&&"inline-flex"}],ne=En("generateblocks.editor.mainCSS",ne,this.props,"headline"),Object(l.createElement)("style",null,Z(ne))}}]),a}(Dn);function Rn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Mn=wp.element.Component,zn=wp.hooks.applyFilters,xn=function(e){f()(a,e);var t=Rn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=zn("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,Z(e))}}]),a}(Mn);function Ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pn=wp.element.Component,An=wp.hooks.applyFilters,Un=function(e){f()(a,e);var t=Ln(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=An("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,u=e.marginTopTablet,b=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,w=e.paddingUnit,v=e.borderSizeTopTablet,T=e.borderSizeRightTablet,O=e.borderSizeBottomTablet,C=e.borderSizeLeftTablet,S=e.borderRadiusTopRightTablet,B=e.borderRadiusBottomRightTablet,D=e.borderRadiusBottomLeftTablet,E=e.borderRadiusTopLeftTablet,j=e.borderRadiusUnit,R=e.icon,M=e.iconLocationTablet,z=e.iconVerticalAlignmentTablet,x=e.iconPaddingTopTablet,L=e.iconPaddingRightTablet,P=e.iconPaddingBottomTablet,A=e.iconPaddingLeftTablet,U=e.iconPaddingUnit,H=e.iconSizeTablet,N=e.iconSizeUnit,F=e.inlineWidthTablet,_=e.removeText,I=i+".gb-headline-"+a,G="inline-block",V=[];return V[".editor-styles-wrapper "+I]=[{"text-align":r,"font-size":K(n,o),"line-height":K(c,s),"letter-spacing":K(g,"em"),display:!!R&&"flex","align-items":Fl("inline"===M?z:r),"justify-content":Fl(r),"flex-direction":!(!R||"above"!==M)&&"column","margin-top":K(u,f)+" !important","margin-right":K(b,f)+" !important","margin-bottom":K(d,f)+" !important","margin-left":K(p,f)+" !important","padding-top":K(h,w),"padding-right":K(m,w),"padding-bottom":K(k,w),"padding-left":K(y,w),"border-top-left-radius":K(E,j),"border-top-right-radius":K(S,j),"border-bottom-right-radius":K(B,j),"border-bottom-left-radius":K(D,j)}],R&&(G="inline-flex",V[".editor-styles-wrapper "+I].push({display:!!F&&G})),(v||T||O||C)&&V[".editor-styles-wrapper "+I].push({"border-top-width":K(v,"px"),"border-right-width":K(T,"px"),"border-bottom-width":K(O,"px"),"border-left-width":K(C,"px"),"border-style":"solid"}),V[I+" .gb-icon"]=[{"padding-top":!_&&K(x,U),"padding-right":!_&&K(L,U),"padding-bottom":!_&&K(P,U),"padding-left":!_&&K(A,U),"align-self":!(!R||"above"!==M)&&Fl(r),display:!(!R||"above"!==M)&&"inline"}],V[I+" .gb-icon svg"]=[{width:K(H,N),height:K(H,N)}],V["#block-"+t]=[{display:!!F&&"inline-flex"}],V=An("generateblocks.editor.tabletCSS",V,this.props,"text"),Object(l.createElement)("style",null,Z(V))}}]),a}(Pn);function Hn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Nn=wp.element.Component,Fn=wp.hooks.applyFilters,_n=function(e){f()(a,e);var t=Hn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Fn("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,Z(e))}}]),a}(Nn);function In(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Gn=wp.element.Component,Vn=wp.hooks.applyFilters,qn=function(e){f()(a,e);var t=In(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Vn("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,u=e.marginTopMobile,b=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,w=e.paddingUnit,v=e.borderSizeTopMobile,T=e.borderSizeRightMobile,O=e.borderSizeBottomMobile,C=e.borderSizeLeftMobile,S=e.borderRadiusTopRightMobile,B=e.borderRadiusBottomRightMobile,D=e.borderRadiusBottomLeftMobile,E=e.borderRadiusTopLeftMobile,j=e.borderRadiusUnit,R=e.icon,M=e.iconLocationMobile,z=e.iconVerticalAlignmentMobile,x=e.iconPaddingTopMobile,L=e.iconPaddingRightMobile,P=e.iconPaddingBottomMobile,A=e.iconPaddingLeftMobile,U=e.iconPaddingUnit,H=e.iconSizeMobile,N=e.iconSizeUnit,F=e.inlineWidthMobile,_=e.removeText,I=i+".gb-headline-"+a,G="inline-block",V=[];return V[".editor-styles-wrapper "+I]=[{"text-align":r,"font-size":K(n,o),"line-height":K(c,s),"letter-spacing":K(g,"em"),display:!!R&&"flex","align-items":Fl("inline"===M?z:r),"justify-content":Fl(r),"flex-direction":!(!R||"above"!==M)&&"column","margin-top":K(u,f)+" !important","margin-right":K(b,f)+" !important","margin-bottom":K(d,f)+" !important","margin-left":K(p,f)+" !important","padding-top":K(h,w),"padding-right":K(m,w),"padding-bottom":K(k,w),"padding-left":K(y,w),"border-top-left-radius":K(E,j),"border-top-right-radius":K(S,j),"border-bottom-right-radius":K(B,j),"border-bottom-left-radius":K(D,j)}],R&&(G="inline-flex",V[".editor-styles-wrapper "+I].push({display:!!F&&G})),(v||T||O||C)&&V[".editor-styles-wrapper "+I].push({"border-top-width":K(v,"px"),"border-right-width":K(T,"px"),"border-bottom-width":K(O,"px"),"border-left-width":K(C,"px"),"border-style":"solid"}),V[I+" .gb-icon"]=[{"padding-top":!_&&K(x,U),"padding-right":!_&&K(L,U),"padding-bottom":!_&&K(P,U),"padding-left":!_&&K(A,U),"align-self":!(!R||"above"!==M)&&Fl(r),display:!(!R||"above"!==M)&&"inline"}],V[I+" .gb-icon svg"]=[{width:K(H,N),height:K(H,N)}],V["#block-"+t]=[{display:!!F&&"inline-flex"}],V=Vn("generateblocks.editor.mobileCSS",V,this.props,"headline"),Object(l.createElement)("style",null,Z(V))}}]),a}(Gn),Wn=wp.i18n.__,Zn=wp.element.Fragment,Kn=wp.richText,Jn=Kn.toggleFormat,Yn=Kn.registerFormatType,Qn=wp.blockEditor,Xn=Qn.RichTextToolbarButton,$n=Qn.RichTextShortcut,eo=wp.data.withSelect,to=wp.compose.ifCondition,ao=wp.compose.compose,lo=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),io=ao(eo((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),to((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Jn(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(Zn,null,Object(l.createElement)($n,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Xn,{icon:lo,title:Wn("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))}));Yn("generateblocks/mark",{title:Wn("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:io});var ro=wp.components,no=ro.Path,oo=ro.SVG;function co(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(oo,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(no,{d:a[t]}))}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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var go=wp.i18n,uo=go.__,bo=go.sprintf,po=wp.components,fo=po.TextControl,ho=po.ToolbarGroup,mo=po.SelectControl,ko=po.ToggleControl,yo=po.Button,wo=wp.element,vo=wo.Fragment,To=wo.Component,Oo=wp.blockEditor,Co=Oo.InspectorControls,So=Oo.RichText,Bo=Oo.BlockControls,Do=Oo.AlignmentToolbar,Eo=Oo.InspectorAdvancedControls,jo=wp.hooks.applyFilters,Ro=wp.data,Mo=Ro.withSelect,zo=Ro.withDispatch,xo=wp.compose.compose,Lo=/[\s#]/g,Po=[],Ao=function(e){f()(a,e);var t=so(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Po.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Po.push(e)):Po.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Po.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,u=i.className,b=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,w=i.linkColor,T=i.linkColorHover,C=i.borderColor,S=i.borderColorOpacity,B=i.highlightTextColor,D=i.fontFamily,E=i.googleFont,j=i.googleFontVariants,R=i.marginTop,M=i.marginRight,z=i.marginBottom,L=i.marginLeft,P=i.icon,A=i.hasIcon,U=i.iconColor,H=i.iconColorOpacity,N=i.iconLocation,F=i.iconLocationTablet,_=i.iconLocationMobile,I=i.iconVerticalAlignment,G=i.iconVerticalAlignmentTablet,q=i.iconVerticalAlignmentMobile,W=i.iconSize,Z=i.iconSizeTablet,K=i.iconSizeMobile,J=i.iconSizeUnit,Y=i.inlineWidth,Q=i.inlineWidthTablet,X=i.inlineWidthMobile,$=i.removeText,ee=i.ariaLabel,te="";j&&(te=":"+j);var ae="";ae=Z||0===Z?Z:W||0===W?W:"";var le={className:v()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!A),o()(e,u,void 0!==u),e)),id:g||null};return le=jo("generateblocks.frontend.htmlAttributes",le,"generateblocks/headline",i),Object(l.createElement)(vo,null,Object(l.createElement)(Bo,null,Object(l.createElement)(ho,{isCollapsed:!0,icon:Object(l.createElement)(co,{level:d}),label:uo("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(co,{level:"h1"}),title:bo(// translators: %s: heading level e.g: "1", "2", "3" +uo("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(co,{level:"h2"}),title:bo(// translators: %s: heading level e.g: "1", "2", "3" +uo("Heading %s","generateblocks"),"2"),onClick:function(){n({element:"h2"})}},{isActive:"h3"===d,icon:Object(l.createElement)(co,{level:"h3"}),title:bo(// translators: %s: heading level e.g: "1", "2", "3" +uo("Heading %s","generateblocks"),"3"),onClick:function(){n({element:"h3"})}},{isActive:"h4"===d,icon:Object(l.createElement)(co,{level:"h4"}),title:bo(// translators: %s: heading level e.g: "1", "2", "3" +uo("Heading %s","generateblocks"),"4"),onClick:function(){n({element:"h4"})}},{isActive:"h5"===d,icon:Object(l.createElement)(co,{level:"h5"}),title:bo(// translators: %s: heading level e.g: "1", "2", "3" +uo("Heading %s","generateblocks"),"5"),onClick:function(){n({element:"h5"})}},{isActive:"h6"===d,icon:Object(l.createElement)(co,{level:"h6"}),title:bo(// translators: %s: heading level e.g: "1", "2", "3" +uo("Heading %s","generateblocks"),"6"),onClick:function(){n({element:"h6"})}},{isActive:"p"===d,icon:Object(l.createElement)(co,{level:"p"}),title:uo("Paragraph","generateblocks"),onClick:function(){n({element:"p"})}},{isActive:"div"===d,icon:Object(l.createElement)(co,{level:"div"}),title:uo("Div","generateblocks"),onClick:function(){n({element:"div"})}}]}),"Desktop"===this.getDeviceType()&&!Y&&Object(l.createElement)(Do,{value:p,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&!Q&&Object(l.createElement)(Do,{value:f,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&!X&&Object(l.createElement)(Do,{value:h,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Co,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{id:"headlineElement",state:this.state,showPanel:"Desktop"===this.getDeviceType()}),Object(l.createElement)(mo,{label:uo("Element","generateblocks"),value:d,options:[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"paragraph",value:"p"},{label:"div",value:"div"}],onChange:function(e){n({element:e}),R||M||z||L||n("p"===e?{marginUnit:"em"}:{marginUnit:generateBlocksDefaults.headline.marginUnit})}}),jo("generateblocks.editor.controls","","headlineElement",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:uo("Typography","generateblocks"),initialOpen:!1,icon:O("typography"),className:"gblocks-panel-label",id:"headlineTypography",state:this.state,showPanel:!$||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(vo,null,Object(l.createElement)(na,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,fontSizePlaceholder:c,defaultFontSize:generateBlocksDefaults.headline.fontSize,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeight,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(vo,null,Object(l.createElement)(na,r()({},this.props,{device:"Tablet",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightTablet,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(vo,null,Object(l.createElement)(na,r()({},this.props,{device:"Mobile",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightMobile,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingMobile}))),jo("generateblocks.editor.controls","","headlineTypography",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:uo("Spacing","generateblocks"),initialOpen:!1,icon:O("spacing"),className:"gblocks-panel-label",id:"headlineSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(vo,null,Object(l.createElement)(ko,{label:uo("Inline Width","generateblocks"),checked:!!Y,onChange:function(e){n({inlineWidth:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:uo("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:uo("T-Left","generateblocks"),labelRight:uo("T-Right","generateblocks"),labelBottom:uo("B-Right","generateblocks"),labelLeft:uo("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(vo,null,Object(l.createElement)(ko,{label:uo("Inline Width","generateblocks"),checked:!!Q,onChange:function(e){n({inlineWidthTablet:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:uo("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:uo("T-Left","generateblocks"),labelRight:uo("T-Right","generateblocks"),labelBottom:uo("B-Right","generateblocks"),labelLeft:uo("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(vo,null,Object(l.createElement)(ko,{label:uo("Inline Width","generateblocks"),checked:!!X,onChange:function(e){n({inlineWidthMobile:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:uo("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:uo("T-Left","generateblocks"),labelRight:uo("T-Right","generateblocks"),labelBottom:uo("B-Right","generateblocks"),labelLeft:uo("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),jo("generateblocks.editor.controls","","headlineSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:uo("Colors","generateblocks"),initialOpen:!1,icon:O("colors"),className:"gblocks-panel-label",id:"headlineColors",state:this.state,showPanel:"Desktop"===this.getDeviceType()||!1}),Object(l.createElement)(At,{label:uo("Background Color","generateblocks"),value:m,alpha:!0,valueOpacity:k,attrOpacity:"backgroundColorOpacity",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(At,{label:uo("Text Color","generateblocks"),value:y,alpha:!1,onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(At,{label:uo("Link Color","generateblocks"),value:w,alpha:!1,onChange:function(e){return n({linkColor:e})}}),Object(l.createElement)(At,{label:uo("Link Color Hover","generateblocks"),value:T,alpha:!1,onChange:function(e){return n({linkColorHover:e})}}),Object(l.createElement)(At,{label:uo("Border Color","generateblocks"),value:C,alpha:!0,valueOpacity:S,attrOpacity:"borderColorOpacity",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),P&&Object(l.createElement)(At,{label:uo("Icon Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"iconColorOpacity",onChange:function(e){return n({iconColor:e})},onOpacityChange:function(e){return n({iconColorOpacity:e})}}),Object(l.createElement)(At,{label:uo("Highlight Text","generateblocks"),value:B,alpha:!1,onChange:function(e){return n({highlightTextColor:e})}})),Object(l.createElement)(Ce,r()({},this.props,{title:uo("Icon","generateblocks"),initialOpen:!1,icon:O("icons"),className:"gblocks-panel-label",id:"headlineIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!P)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(dr,r()({},this.props,{attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel"})),"Desktop"===this.getDeviceType()&&!!P&&Object(l.createElement)(vo,null,!$&&Object(l.createElement)(vo,null,Object(l.createElement)(mo,{label:uo("Icon Location","generateblocks"),value:N,options:[{label:uo("Inline","generateblocks"),value:"inline"},{label:uo("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocation:e,iconPaddingRight:"inline"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":""})}}),"inline"===N&&Object(l.createElement)(mo,{label:uo("Icon Alignment","generateblocks"),value:I,options:[{label:uo("Top","generateblocks"),value:"top"},{label:uo("Center","generateblocks"),value:"center"},{label:uo("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignment:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(V,{label:uo("Icon Size","generateblocks"),value:J,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(fo,{type:"number",value:W||0===W?W:"",step:"em"===J?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(W)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(yo,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.headline.iconSize})}},uo("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!P&&Object(l.createElement)(vo,null,!$&&Object(l.createElement)(vo,null,Object(l.createElement)(mo,{label:uo("Icon Location","generateblocks"),value:F,options:[{label:uo("Inherit","generateblocks"),value:""},{label:uo("Inline","generateblocks"),value:"inline"},{label:uo("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":""})}}),"inline"===F&&Object(l.createElement)(mo,{label:uo("Icon Alignment","generateblocks"),value:G,options:[{label:uo("Inherit","generateblocks"),value:""},{label:uo("Top","generateblocks"),value:"top"},{label:uo("Center","generateblocks"),value:"center"},{label:uo("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentTablet:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(V,{label:uo("Icon Size","generateblocks"),value:J,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(fo,{type:"number",value:Z||0===Z?Z:"",step:"em"===J?.1:1,placeholder:W||0===W?W:"",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(Z)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(yo,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.headline.iconSizeTablet})}},uo("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!P&&Object(l.createElement)(vo,null,!$&&Object(l.createElement)(vo,null,Object(l.createElement)(mo,{label:uo("Icon Location","generateblocks"),value:_,options:[{label:uo("Inherit","generateblocks"),value:""},{label:uo("Inline","generateblocks"),value:"inline"},{label:uo("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":""})}}),"inline"===_&&Object(l.createElement)(mo,{label:uo("Icon Alignment","generateblocks"),value:q,options:[{label:uo("Inherit","generateblocks"),value:""},{label:uo("Top","generateblocks"),value:"top"},{label:uo("Center","generateblocks"),value:"center"},{label:uo("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentMobile:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(V,{label:uo("Icon Size","generateblocks"),value:J,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(fo,{type:"number",value:K||0===K?K:"",step:"em"===J?.1:1,placeholder:ae,onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(K)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(yo,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.headline.iconSizeMobile})}},uo("Reset","generateblocks")))),jo("generateblocks.editor.controls","","headlineIcon",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:uo("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"headlineDocumentation",state:this.state}),Object(l.createElement)("p",null,uo("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/headline/",target:"_blank",rel:"noreferrer noopener"},uo("Visit our documentation","generateblocks")),jo("generateblocks.editor.controls","","headlineDocumentation",this.props,this.state))),Object(l.createElement)(Eo,null,Object(l.createElement)(fo,{label:uo("HTML Anchor"),help:uo("Anchors lets you link directly to a section on a page.","generateblocks"),value:g||"",onChange:function(e){e=e.replace(Lo,"-"),n({anchor:e})}})),Object(l.createElement)(jn,this.props),this.props.deviceType&&Object(l.createElement)(vo,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(xn,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Un,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(_n,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(qn,this.props)),D&&E&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+D.replace(/ /g,"+")+te}),Object(l.createElement)(Ot,{tagName:d,htmlAttrs:le},A&&Object(l.createElement)(vo,null,Object(l.createElement)("span",{className:"gb-icon","aria-label":$&&ee?ee:void 0,dangerouslySetInnerHTML:{__html:va(P)}}),!$&&Object(l.createElement)("span",{className:"gb-headline-text"},Object(l.createElement)(So,{tagName:"span",value:b,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0}))),!A&&!$&&Object(l.createElement)(So,{tagName:"span",value:b,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0})))}}]),a}(To),Uo=xo([zo((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Mo((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Ao),Ho=wp.blockEditor.RichText,No=wp.hooks.applyFilters,Fo={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},content:{type:"string",source:"html",selector:".gb-headline-text"},element:{type:"string",default:"h2"},alignment:{type:"string",default:generateBlocksDefaults.headline.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.headline.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.headline.alignmentMobile},backgroundColor:{type:"string",default:generateBlocksDefaults.headline.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.headline.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.headline.textColor},linkColor:{type:"string",default:generateBlocksDefaults.headline.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.headline.linkColorHover},borderColor:{type:"string",default:generateBlocksDefaults.headline.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.headline.borderColorOpacity},highlightTextColor:{type:"string",default:generateBlocksDefaults.headline.highlightTextColor},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.headline.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.headline.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.headline.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.headline.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.headline.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.headline.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.headline.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.headline.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.headline.fontSizeUnit},textTransform:{type:"string",default:""},lineHeight:{type:"number",default:generateBlocksDefaults.headline.lineHeight},lineHeightTablet:{type:"number",default:generateBlocksDefaults.headline.lineHeightTablet},lineHeightMobile:{type:"number",default:generateBlocksDefaults.headline.lineHeightMobile},lineHeightUnit:{type:"string",default:generateBlocksDefaults.headline.lineHeightUnit},letterSpacing:{type:"number",default:generateBlocksDefaults.headline.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.headline.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.headline.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.headline.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.headline.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.headline.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.headline.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.headline.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.headline.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.headline.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.headline.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.headline.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.headline.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.headline.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.headline.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.headline.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.headline.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.headline.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.headline.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.headline.paddingLeft},paddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.paddingLeftMobile},paddingUnit:{type:"string",default:generateBlocksDefaults.headline.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},borderSizeTop:{type:"string",default:generateBlocksDefaults.headline.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.headline.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.headline.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftMobile},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:generateBlocksDefaults.headline.iconColor},iconColorOpacity:{type:"number",default:generateBlocksDefaults.headline.iconColorOpacity},customIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.headline.iconLocation},iconLocationTablet:{type:"string",default:generateBlocksDefaults.headline.iconLocationTablet},iconLocationMobile:{type:"string",default:generateBlocksDefaults.headline.iconLocationMobile},iconVerticalAlignment:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignment},iconVerticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentTablet},iconVerticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentMobile},iconPaddingTop:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.headline.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.headline.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.headline.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.headline.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.headline.iconSizeUnit},inlineWidth:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidth},inlineWidthTablet:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthTablet},inlineWidthMobile:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthMobile},removeText:{type:"boolean",default:generateBlocksDefaults.headline.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.headline.ariaLabel},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}},_o=wp.blocks.createBlock,Io={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return _o("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return _o("generateblocks/headline",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return _o("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return _o("core/heading",{content:t})}}]};function Go(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Vo(e){for(var t=1;t Date: Tue, 15 Dec 2020 20:10:08 -0800 Subject: [PATCH 15/53] Update domPurify --- dist/blocks.asset.php | 2 +- dist/blocks.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index 03284e790..8182aac69 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-element', 'wp-polyfill'), 'version' => 'f6e69804534e8e2201a8514879abe161'); \ No newline at end of file + array('wp-element', 'wp-polyfill'), 'version' => '699f338dac3446914f758e69e0401200'); \ No newline at end of file diff --git a/dist/blocks.js b/dist/blocks.js index d01f099a9..6750b1c1d 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -1,4 +1,4 @@ -!function(e){var t={};function a(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(l,i,function(t){return e[t]}.bind(null,i));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=39)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var a=0,l=new Array(t);a1?a-1:0),i=1;i/gm),L=i(/^data-[\-\w.\u00B7-\uFFFF]/),P=i(/^aria-[\-\w]+$/),A=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=i(/^(?:\w+script|data):/i),H=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function F(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:_(),a=function(t){return e(t)};if(a.version="2.2.2",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var i=t.document,r=t.document,n=t.DocumentFragment,o=t.HTMLTemplateElement,c=t.Node,s=t.NodeFilter,w=t.NamedNodeMap,G=void 0===w?t.NamedNodeMap||t.MozNamedAttrMap:w,V=t.Text,q=t.Comment,W=t.DOMParser,Z=t.trustedTypes;if("function"==typeof o){var K=r.createElement("template");K.content&&K.content.ownerDocument&&(r=K.content.ownerDocument)}var J=I(Z,i),Y=J&&Ee?J.createHTML(""):"",Q=r,X=Q.implementation,$=Q.createNodeIterator,ee=Q.getElementsByTagName,te=Q.createDocumentFragment,ae=i.importNode,le={};try{le=T(r).documentMode?r.documentMode:{}}catch(e){}var ie={};a.isSupported=X&&void 0!==X.createHTMLDocument&&9!==le;var re=z,ne=x,oe=L,ce=P,se=U,ge=H,ue=A,be=null,de=v({},[].concat(F(O),F(C),F(S),F(B),F(D))),pe=null,fe=v({},[].concat(F(E),F(j),F(R),F(M))),he=null,me=null,ke=!0,ye=!0,we=!1,ve=!1,Te=!1,Oe=!1,Ce=!1,Se=!1,Be=!1,De=!0,Ee=!1,je=!0,Re=!0,Me=!1,ze={},xe=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),Le=null,Pe=v({},["audio","video","img","source","image","track"]),Ae=null,Ue=v({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),He=null,Ne=r.createElement("form"),Fe=function(e){He&&He===e||(e&&"object"===(void 0===e?"undefined":N(e))||(e={}),e=T(e),be="ALLOWED_TAGS"in e?v({},e.ALLOWED_TAGS):de,pe="ALLOWED_ATTR"in e?v({},e.ALLOWED_ATTR):fe,Ae="ADD_URI_SAFE_ATTR"in e?v(T(Ue),e.ADD_URI_SAFE_ATTR):Ue,Le="ADD_DATA_URI_TAGS"in e?v(T(Pe),e.ADD_DATA_URI_TAGS):Pe,he="FORBID_TAGS"in e?v({},e.FORBID_TAGS):{},me="FORBID_ATTR"in e?v({},e.FORBID_ATTR):{},ze="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ye=!1!==e.ALLOW_DATA_ATTR,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=e.SAFE_FOR_TEMPLATES||!1,Te=e.WHOLE_DOCUMENT||!1,Se=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,De=!1!==e.RETURN_DOM_IMPORT,Ee=e.RETURN_TRUSTED_TYPE||!1,Ce=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Re=!1!==e.KEEP_CONTENT,Me=e.IN_PLACE||!1,ue=e.ALLOWED_URI_REGEXP||ue,ve&&(ye=!1),Be&&(Se=!0),ze&&(be=v({},[].concat(F(D))),pe=[],!0===ze.html&&(v(be,O),v(pe,E)),!0===ze.svg&&(v(be,C),v(pe,j),v(pe,M)),!0===ze.svgFilters&&(v(be,S),v(pe,j),v(pe,M)),!0===ze.mathMl&&(v(be,B),v(pe,R),v(pe,M))),e.ADD_TAGS&&(be===de&&(be=T(be)),v(be,e.ADD_TAGS)),e.ADD_ATTR&&(pe===fe&&(pe=T(pe)),v(pe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&v(Ae,e.ADD_URI_SAFE_ATTR),Re&&(be["#text"]=!0),Te&&v(be,["html","head","body"]),be.table&&(v(be,["tbody"]),delete he.tbody),l&&l(e),He=e)},_e=function(e){b(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=Y}},Ie=function(e,t){try{b(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(a.removed,{attribute:null,from:t})}t.removeAttribute(e)},Ge=function(e){var t=void 0,a=void 0;if(Ce)e=""+e;else{var l=p(e,/^[\r\n\t ]+/);a=l&&l[0]}var i=J?J.createHTML(e):e;try{t=(new W).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var n=(t=X.createHTMLDocument("")).body;n.parentNode.removeChild(n.parentNode.firstElementChild),n.outerHTML=i}return e&&a&&t.body.insertBefore(r.createTextNode(a),t.body.childNodes[0]||null),ee.call(t,Te?"html":"body")[0]},Ve=function(e){return $.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,(function(){return s.FILTER_ACCEPT}),!1)},qe=function(e){return!(e instanceof V||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof G&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},We=function(e){return"object"===(void 0===c?"undefined":N(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":N(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ze=function(e,t,l){ie[e]&&g(ie[e],(function(e){e.call(a,t,l,He)}))},Ke=function(e){var t=void 0;if(Ze("beforeSanitizeElements",e,null),qe(e))return _e(e),!0;if(p(e.nodeName,/[\u0080-\uFFFF]/))return _e(e),!0;var l=d(e.nodeName);if(Ze("uponSanitizeElement",e,{tagName:l,allowedTags:be}),("svg"===l||"math"===l)&&0!==e.querySelectorAll("p, br, form, table").length)return _e(e),!0;if(!We(e.firstElementChild)&&(!We(e.content)||!We(e.content.firstElementChild))&&k(/<[!/\w]/g,e.innerHTML)&&k(/<[!/\w]/g,e.textContent))return _e(e),!0;if(!be[l]||he[l]){if(Re&&!xe[l]&&"function"==typeof e.insertAdjacentHTML)try{var i=e.innerHTML;e.insertAdjacentHTML("AfterEnd",J?J.createHTML(i):i)}catch(e){}return _e(e),!0}return"noscript"!==l&&"noembed"!==l||!k(/<\/no(script|embed)/i,e.innerHTML)?(ve&&3===e.nodeType&&(t=e.textContent,t=f(t,re," "),t=f(t,ne," "),e.textContent!==t&&(b(a.removed,{element:e.cloneNode()}),e.textContent=t)),Ze("afterSanitizeElements",e,null),!1):(_e(e),!0)},Je=function(e,t,a){if(je&&("id"===t||"name"===t)&&(a in r||a in Ne))return!1;if(ye&&k(oe,t));else if(ke&&k(ce,t));else{if(!pe[t]||me[t])return!1;if(Ae[t]);else if(k(ue,f(a,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==h(a,"data:")||!Le[e])if(we&&!k(se,f(a,ge,"")));else if(a)return!1}return!0},Ye=function(e){var t=void 0,l=void 0,i=void 0,r=void 0;Ze("beforeSanitizeAttributes",e,null);var n=e.attributes;if(n){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(r=n.length;r--;){var c=t=n[r],s=c.name,g=c.namespaceURI;if(l=m(t.value),i=d(s),o.attrName=i,o.attrValue=l,o.keepAttr=!0,o.forceKeepAttr=void 0,Ze("uponSanitizeAttribute",e,o),l=o.attrValue,!o.forceKeepAttr&&(Ie(s,e),o.keepAttr))if(k(/\/>/i,l))Ie(s,e);else{ve&&(l=f(l,re," "),l=f(l,ne," "));var b=e.nodeName.toLowerCase();if(Je(b,i,l))try{g?e.setAttributeNS(g,s,l):e.setAttribute(s,l),u(a.removed)}catch(e){}}}Ze("afterSanitizeAttributes",e,null)}},Qe=function e(t){var a=void 0,l=Ve(t);for(Ze("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)Ze("uponSanitizeShadowNode",a,null),Ke(a)||(a.content instanceof n&&e(a.content),Ye(a));Ze("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e,l){var r=void 0,o=void 0,s=void 0,g=void 0,u=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!We(e)){if("function"!=typeof e.toString)throw y("toString is not a function");if("string"!=typeof(e=e.toString()))throw y("dirty is not a string, aborting")}if(!a.isSupported){if("object"===N(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(We(e))return t.toStaticHTML(e.outerHTML)}return e}if(Oe||Fe(l),a.removed=[],"string"==typeof e&&(Me=!1),Me);else if(e instanceof c)1===(o=(r=Ge("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Se&&!ve&&!Te&&-1===e.indexOf("<"))return J&&Ee?J.createHTML(e):e;if(!(r=Ge(e)))return Se?null:Y}r&&Ce&&_e(r.firstChild);for(var b=Ve(Me?e:r);s=b.nextNode();)3===s.nodeType&&s===g||Ke(s)||(s.content instanceof n&&Qe(s.content),Ye(s),g=s);if(g=null,Me)return e;if(Se){if(Be)for(u=te.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return De&&(u=ae.call(i,u,!0)),u}var d=Te?r.outerHTML:r.innerHTML;return ve&&(d=f(d,re," "),d=f(d,ne," ")),J&&Ee?J.createHTML(d):d},a.setConfig=function(e){Fe(e),Oe=!0},a.clearConfig=function(){He=null,Oe=!1},a.isValidAttribute=function(e,t,a){He||Fe({});var l=d(e),i=d(t);return Je(l,i,a)},a.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],b(ie[e],t))},a.removeHook=function(e){ie[e]&&u(ie[e])},a.removeHooks=function(e){ie[e]&&(ie[e]=[])},a.removeAllHooks=function(){ie={}},a}()}()},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var a=[],l=!0,i=!1,r=void 0;try{for(var n,o=e[Symbol.iterator]();!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){var l=a(15);e.exports=function(e){if(Array.isArray(e))return l(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,function(e,t,a){"use strict";a.r(t);var l=a(0),i=(a(17),a(3)),r=a.n(i),n=a(2),o=a.n(n),c=a(4),s=a.n(c),g=a(5),u=a.n(g),b=a(9),d=a.n(b),p=a(6),f=a.n(p),h=a(7),m=a.n(h),k=a(1),y=a.n(k),w=a(8),v=a.n(w),T=wp.element.createElement;function O(e){return"tabs-desktop"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},T("path",{d:"M18.95 4H4.55C3.55589 4 2.75 4.76751 2.75 5.71429V14.2857C2.75 15.2325 3.55589 16 4.55 16H18.95C19.9441 16 20.75 15.2325 20.75 14.2857V5.71429C20.75 4.76751 19.9441 4 18.95 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),T("path",{d:"M1.75 18C1.19772 18 0.75 18.4477 0.75 19C0.75 19.5523 1.19772 20 1.75 20H21.75C22.3023 20 22.75 19.5523 22.75 19C22.75 18.4477 22.3023 18 21.75 18H1.75ZM9 18.8C8.86193 18.8 8.75 18.9119 8.75 19.05C8.75 19.1881 8.86193 19.3 9 19.3H14.5C14.6381 19.3 14.75 19.1881 14.75 19.05C14.75 18.9119 14.6381 18.8 14.5 18.8H9Z",stroke:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):"tabs-tablet"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"M16.6429 4H7.35714C6.33147 4 5.5 4.71634 5.5 5.6V18.4C5.5 19.2837 6.33147 20 7.35714 20H16.6429C17.6685 20 18.5 19.2837 18.5 18.4V5.6C18.5 4.71634 17.6685 4 16.6429 4Z"}),T("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"M15.5714 4H8.42857C7.63959 4 7 4.71634 7 5.6V18.4C7 19.2837 7.63959 20 8.42857 20H15.5714C16.3604 20 17 19.2837 17 18.4V5.6C17 4.71634 16.3604 4 15.5714 4Z"}),T("path",{d:"M12 17.5H12.01"})):"sync"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"m7.34133533 6.23855964v-1.98499625c-2.17404351.03150788-4.03300825 1.38634659-4.85221305 3.27681921-.31507877.72468117-.44111028 1.51237809-.4096024 2.33158289.06301575 1.13428361.47261815 2.20555141 1.16579145 3.05626411.37809452.4411102.28357089 1.1027757-.18904726 1.4493623-.44111028.3150788-1.07126782.2205551-1.41785447-.1890473-.85071268-1.0397599-1.38634658-2.3315829-1.54388597-3.7179294-.12603151-1.00825211-.03150788-2.01650417.25206302-2.9302326.88222055-3.02475619 3.6864216-5.26181546 6.99474868-5.29332334v-1.98499624c0-.09452363.12603151-.15753939.22055514-.09452363l4.09602403 2.99324831c.0630157.06301575.0630157.15753938 0 .18904726l-4.09602403 2.99324831c-.09452363.06301575-.22055514 0-.22055514-.09452363zm.22055514 13.17029256c.09452363.0630158.22055514 0 .22055514-.0945236v-1.9849963c3.30832709-.0315078 6.11252809-2.2685671 6.99474869-5.2933233.252063-.9137284.3780945-1.8904726.252063-2.93023256-.1575394-1.38634658-.7246812-2.67816954-1.543886-3.71792948-.3465866-.44111028-.9767441-.53563391-1.4178544-.18904726-.4726182.34658665-.5671418 1.00825206-.1890473 1.44936234.6931733.85071268 1.1027757 1.89047262 1.1657915 3.05626407.0315078.81920479-.1260315 1.63840959-.4096024 2.33158289-.787697 1.8904726-2.6466617 3.2453113-4.85221309 3.2768192v-1.9849962c0-.0945237-.12603151-.1575394-.22055514-.0945237l-4.096024 2.9932483c-.06301576.0630158-.06301576.1575394 0 .1890473z",transform:"translate(4 2)"})):"headline"===e?T("svg",{width:24,height:24,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4",fill:"#1e72bd"})):"grid"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M20 .6c0-.3-.2-.6-.5-.6H.5C.2 0 0 .3 0 .6v4.6c0 .3.2.6.5.6h19c.3 0 .5-.3.5-.6V.6zM6.7 7.7c0-.3-.2-.6-.5-.6H.5c-.3 0-.5.3-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.3.5-.6l.1-4.6zM19.9 7.7c0-.3-.2-.6-.6-.6H8.6c-.4 0-.6.3-.6.6v4.5c0 .3.2.6.6.6h10.8c.3 0 .6-.3.6-.6l-.1-4.5z",fill:"#1d72ba"}),T("path",{d:"M20 14.8c0-.3-.2-.6-.5-.6h-5.6c-.3 0-.5.2-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.2.5-.6v-4.6zM12 14.8c0-.3-.2-.5-.5-.5H.5c-.3 0-.5.2-.5.5v4.6c0 .4.2.6.5.6h11c.3 0 .5-.2.5-.5v-4.7z",fill:"#1d72ba"})):"container"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M2.8 3.4c0-.4.3-.7.7-.7h1.2V0H3.4C1.5 0 0 1.5 0 3.4v1.2h2.8V3.4zM0 7.4h2.8v5.3H0zM17.2 7.4H20v5.3h-2.8zM17.2 16.6c0 .4-.3.7-.7.7h-1.2V20h1.2c1.9 0 3.4-1.5 3.4-3.4v-1.2h-2.8v1.2h.1zM7.4 0h5.3v2.8H7.4zM3.4 17.2c-.4 0-.7-.3-.7-.7v-1.2H0v1.2c0 2 1.5 3.5 3.4 3.5h1.2v-2.8H3.4zM7.4 17.2h5.3V20H7.4zM16.6 2.8c.4 0 .7.3.7.7v1.2H20V3.4C20 1.5 18.5 0 16.6 0h-1.2v2.8h1.2z",fill:"#1e72bd"})):"button"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M19.2 0H.8C.4 0 0 .4 0 .8v6.4c0 .4.4.8.8.8h18.4c.4 0 .8-.4.8-.8V.8c0-.4-.4-.8-.8-.8zM18.4 12H1.6c-.9 0-1.6.7-1.6 1.6v4.8c0 .9.7 1.6 1.6 1.6h16.8c.9 0 1.6-.7 1.6-1.6v-4.8c0-.9-.7-1.6-1.6-1.6zm.4 6.4c0 .2-.2.4-.4.4H1.6c-.2 0-.4-.2-.4-.4v-4.8c0-.2.2-.4.4-.4h16.8c.2 0 .4.2.4.4v4.8z",fill:"#1e72bd"})):"paragraph"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20"},T("path",{d:"M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71A.984.984 0 0 0 15 2z"})):"spacing"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),T("path",{d:"M40.452,77.705c7.802,1.393 23.794,1.393 31.596,0l13.635,13.635c-12.215,3.213 -46.652,3.213 -58.866,0l13.635,-13.635Zm50.888,-50.888c3.213,12.215 3.213,46.653 0,58.866l-13.635,-13.635c1.393,-7.801 1.393,-23.794 0,-31.596l13.635,-13.635Zm-70.18,0l13.635,13.635c-1.393,7.802 -1.393,23.794 0,31.596l-13.635,13.635c-3.213,-12.213 -3.213,-46.651 0,-58.866Zm5.657,-5.657c12.214,-3.213 46.652,-3.213 58.866,0l-13.635,13.635c-7.801,-1.393 -23.795,-1.393 -31.596,0l-13.635,-13.635Z"})):"advanced"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,37.215c6.632,2.124 6.632,23.512 0,25.636c-6.632,2.124 -73.42,2.124 -80.052,0c-6.632,-2.124 -6.632,-23.512 0,-25.636c6.632,-2.124 73.42,-2.124 80.052,0Z"}),T("path",{d:"M48.61,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"}),T("path",{d:"M90.955,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"})):"backgrounds"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M1.491,87.777l37.79,-37.79l31.352,31.352c2.412,2.171 5.656,0 5.656,0l17.248,-17.247l13.186,13.186l4.796,4.797c-0.971,12.199 -2.726,21.685 -5.249,24.208c-8.29,8.289 -91.776,8.289 -100.066,0c-2.113,-2.113 -3.687,-9.113 -4.713,-18.506Z"}),T("path",{d:"M0.631,77.323c-1.742,-27.728 0.125,-65.658 5.573,-71.106c8.29,-8.289 91.776,-8.289 100.066,0c5.07,5.07 7.039,38.265 5.89,65.185l-15.795,-15.795c-2.412,-2.172 -5.657,0 -5.657,0l-17.247,17.246l-31.351,-31.351c-0.731,-0.658 -1.036,-1 -2.619,-1.166c-0.263,0 -0.477,-0.075 -1.245,0.131c-0.912,0.244 -1.793,1.035 -1.793,1.035l-35.822,35.821Zm76.434,-59.584c7.115,0 12.891,5.776 12.891,12.89c0,7.114 -5.776,12.89 -12.891,12.89c-7.114,0 -12.89,-5.776 -12.89,-12.89c0,-7.114 5.776,-12.89 12.89,-12.89Z"})):"colors"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradients"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M112.426,48.746c0.503,25.204 -1.545,52.939 -6.143,57.537c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.289,-8.288 91.748,-8.289 100.061,-0.004c0,0 0.005,0.004 0.005,0.004c3.691,3.692 5.739,22.295 6.143,42.529Zm-16.154,-32.526c-6.656,-6.628 -73.418,-6.627 -80.048,0.004c-6.631,6.63 -6.632,73.392 -0.004,80.048l80.052,-80.052Z"})):"icons"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),T("path",{d:"M89.605,22.895c5.527,5.526 5.527,61.184 0,66.71c-5.526,5.527 -61.184,5.527 -66.71,0c-5.527,-5.526 -5.527,-61.184 0,-66.71c5.526,-5.527 61.184,-5.527 66.71,0Zm-21.066,62.31l0,-2.731c-0.648,-0.074 -1.272,-0.199 -1.87,-0.374c-0.599,-0.174 -1.148,-0.374 -1.646,-0.598c-0.699,-0.299 -1.235,-0.755 -1.609,-1.366c-0.374,-0.611 -0.561,-1.353 -0.561,-2.226l0,-29.703l-0.561,-0.561l-18.331,0.972l0,2.731c0.748,0.075 1.577,0.25 2.488,0.524c0.91,0.274 1.589,0.561 2.038,0.86c0.599,0.399 1.098,0.929 1.497,1.59c0.399,0.661 0.598,1.428 0.598,2.301l0,21.773c0,0.923 -0.162,1.665 -0.486,2.226c-0.324,0.561 -0.885,0.991 -1.683,1.29c-0.449,0.175 -0.986,0.3 -1.609,0.374c-0.624,0.075 -1.26,0.138 -1.908,0.187l0,2.731l23.643,0Zm-12.978,-59.459c4.76,0 8.625,3.864 8.625,8.625c0,4.76 -3.865,8.625 -8.625,8.625c-4.76,0 -8.625,-3.865 -8.625,-8.625c0,-4.761 3.865,-8.625 8.625,-8.625Z"})):"typography"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-8.783,78.583l0,-2.817c-0.661,-0.026 -1.481,-0.165 -2.46,-0.417c-0.979,-0.251 -1.773,-0.562 -2.381,-0.932c-0.9,-0.609 -1.601,-1.23 -2.103,-1.865c-0.503,-0.635 -0.953,-1.468 -1.349,-2.5l-18.769,-48.569l-3.175,0c-2.672,6.878 -5.714,14.721 -9.126,23.53c-3.266,8.43 -6.265,16.06 -8.998,22.891l-11.672,-28.684l-2.304,0c-1.939,4.742 -4.148,10.149 -6.625,16.222c-2.477,6.072 -4.743,11.543 -6.798,16.412c-0.403,0.949 -0.816,1.692 -1.238,2.23c-0.423,0.538 -1.018,1.053 -1.786,1.545c-0.48,0.292 -1.095,0.524 -1.844,0.698c-0.749,0.173 -1.373,0.278 -1.872,0.314l0,1.942l15.382,0l0,-1.942c-1.518,-0.073 -2.881,-0.31 -4.091,-0.711c-1.209,-0.401 -1.814,-0.966 -1.814,-1.696c0,-0.31 0.048,-0.711 0.144,-1.204c0.096,-0.492 0.268,-1.13 0.518,-1.914c0.269,-0.803 0.571,-1.678 0.907,-2.626c0.336,-0.948 0.773,-2.061 1.311,-3.338l14.316,0l3.399,8.699c0.012,0.03 0.024,0.06 0.036,0.092c-0.161,0.119 -0.329,0.237 -0.503,0.355c-0.661,0.423 -1.508,0.76 -2.539,1.012c-1.032,0.251 -1.892,0.403 -2.58,0.456l0,2.817l21.19,0l0,-2.817c-2.09,-0.106 -3.968,-0.45 -5.635,-1.032c-1.666,-0.582 -2.499,-1.402 -2.499,-2.46c0,-0.45 0.066,-1.032 0.198,-1.746c0.132,-0.714 0.37,-1.64 0.714,-2.777c0.371,-1.164 0.787,-2.434 1.25,-3.81c0.463,-1.375 1.065,-2.989 1.806,-4.841l19.721,0l4.682,12.619c0.106,0.264 0.186,0.568 0.238,0.912c0.053,0.344 0.08,0.635 0.08,0.873c0,0.582 -0.681,1.072 -2.044,1.468c-1.362,0.397 -3.075,0.662 -5.138,0.794l0,2.817l23.451,0Zm-56.864,-15.865l-6.193,-15.045l-6.078,15.045l12.271,0Zm34.167,-7.15l-8.532,-21.824l-8.373,21.824l16.905,0Z"})):"addContainer"===e?T("svg",{width:20,height:20,viewBox:"0 0 64 64",fillRule:"evenodd"},T("path",{d:"M41.454,57.126l0,6.409c-6.088,0.286 -12.82,0.286 -18.908,0l0,-6.409c5.957,0.366 12.951,0.366 18.908,0Zm-33.93,-8.899c0.458,3.226 1.086,5.568 1.883,6.366c0.798,0.797 3.14,1.425 6.366,1.883l0,6.592c-6.084,-0.578 -10.706,-1.519 -12.015,-2.826c-1.307,-1.309 -2.248,-5.931 -2.826,-12.015l6.592,0Zm55.544,0c-0.578,6.084 -1.519,10.706 -2.826,12.015c-1.309,1.307 -5.931,2.248 -12.015,2.826l0,-6.592c3.226,-0.458 5.568,-1.086 6.366,-1.883c0.797,-0.798 1.425,-3.14 1.883,-6.366l6.592,0Zm0.467,-25.681c0.286,6.088 0.286,12.82 0,18.908l-6.409,0c0.366,-5.957 0.366,-12.951 0,-18.908l6.409,0Zm-56.661,0c-0.366,5.957 -0.366,12.951 0,18.908l-6.409,0c-0.286,-6.088 -0.286,-12.82 0,-18.908l6.409,0Zm41.353,-21.614c6.084,0.578 10.706,1.519 12.015,2.826c1.307,1.309 2.248,5.931 2.826,12.015l-6.592,0c-0.458,-3.226 -1.086,-5.568 -1.883,-6.366c-0.798,-0.797 -3.14,-1.425 -6.366,-1.883l0,-6.592Zm-32.454,0l0,6.592c-3.226,0.458 -5.568,1.086 -6.366,1.883c-0.797,0.798 -1.425,3.14 -1.883,6.366l-6.592,0c0.578,-6.084 1.519,-10.706 2.826,-12.015c1.309,-1.307 5.931,-2.248 12.015,-2.826Zm6.773,-0.467c6.088,-0.286 12.82,-0.286 18.908,0l0,6.409c-5.957,-0.366 -12.951,-0.366 -18.908,0l0,-6.409Z"}),T("path",{d:"M18.03,29.037l11.007,0l0,-11.007l6.773,0l0,11.007l11.007,0l0,6.773l-11.007,0l0,11.007l-6.773,0l0,-11.007l-11.007,0l0,-6.773Z"})):"gradient"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},T("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"documentation"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.755 6.245c8.327 8.326 8.327 92.184 0 100.51-8.326 8.327-92.184 8.327-100.51 0-8.327-8.326-8.327-92.184 0-100.51 8.326-8.327 92.184-8.327 100.51 0zm-92.661 93.896C9.279 84 9.781 23.714 15.834 17.661c2.491-2.491 19.588-4.132 26.354-4.712 4.748-.408 10.115.671 14.243 1.23 4.128-.559 9.495-1.638 14.243-1.23 6.766.58 23.863 2.221 26.354 4.712 6.053 6.053 6.791 66.339 1.976 82.48-4.729-1.977-19.708-3.436-26.784-3.853-5.234-.308-11.129.739-15.671 1.354-4.543-.615-10.437-1.662-15.672-1.354-7.075.417-22.054 1.876-26.783 3.853z"}),T("path",{d:"M50.188 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM50.277 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 73.799c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0z"}),T("path",{d:"M89.909 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM89.998 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM89.998 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0z"})):"layout"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.719 6.238c8.362 8.362 8.362 92.208 0 100.57-8.362 8.287-92.208 8.287-100.495 0-8.362-8.362-8.362-92.208 0-100.57 8.287-8.286 92.133-8.286 100.495 0zm-9.417 9.417c6.78 6.78 6.78 74.957 0 81.737-6.78 6.78-74.956 6.78-81.661 0-6.78-6.78-6.78-74.957 0-81.737 6.705-6.78 74.881-6.78 81.661 0z"}),T("path",{d:"M93.988 48.877c.602 17.477-.754 37.893-3.993 41.132-3.164 3.164-22.75 4.52-40.002 4.068v-45.2h43.995zm-75.108 0h23.58v44.899c-9.718-.603-17.553-1.808-19.512-3.767-3.24-3.24-4.595-23.655-4.068-41.132zm.377-7.533c.678-9.19 1.883-16.498 3.691-18.306 5.575-5.575 61.472-5.575 67.047 0 1.808 1.808 3.013 9.115 3.691 18.306h-74.43z"})):"shapes"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.756,6.244C115.081,14.571 115.081,98.429 106.756,106.756C98.429,115.081 14.571,115.081 6.244,106.756C-2.081,98.429 -2.081,14.571 6.244,6.244C14.571,-2.081 98.429,-2.081 106.756,6.244ZM67.875,88.052C67.875,86.977 67.003,86.105 65.928,86.105L47.072,86.105C45.997,86.105 45.125,86.977 45.125,88.052L45.125,91.948C45.125,93.023 45.997,93.896 47.072,93.896L65.928,93.896C67.003,93.896 67.875,93.023 67.875,91.948L67.875,88.052ZM57.899,31.409L59.305,31.409C60.853,31.409 62.11,30.152 62.11,28.604L62.11,28.089L73.263,57.543C73.757,58.333 73.731,59.161 73.731,59.403C73.729,62.659 65.231,69.414 65.375,83.611L47.625,83.611C47.769,69.414 39.271,62.659 39.269,59.403C39.269,59.161 39.243,58.333 39.737,57.543L50.89,28.089L50.89,28.604C50.89,30.152 52.147,31.409 53.695,31.409L55.101,31.409C55.111,35.738 55.142,50.367 55.098,54.109C55.093,54.494 54.907,54.988 54.68,55.45C52.915,56.169 51.669,57.903 51.669,59.925C51.669,62.592 53.834,64.756 56.5,64.756C59.166,64.756 61.331,62.592 61.331,59.925C61.331,57.903 60.085,56.169 58.32,55.45C58.093,54.988 57.907,54.494 57.902,54.109C57.858,50.367 57.889,35.738 57.899,31.409ZM52.227,19.451L52.227,18.881C52.227,17.702 53.185,16.745 54.364,16.745L58.636,16.745C59.815,16.745 60.773,17.702 60.773,18.881L60.773,19.451L88.831,19.451C89.457,17.867 91.002,16.745 92.807,16.745C95.165,16.745 97.08,18.66 97.08,21.018C97.08,23.376 95.165,25.29 92.807,25.29C91.03,25.29 89.505,24.203 88.861,22.658L71.798,22.658C83.83,28.003 92.531,39.501 93.898,53.148L94.93,53.148C96.109,53.148 97.067,54.105 97.067,55.284L97.067,59.557C97.067,60.736 96.109,61.693 94.93,61.693L90.657,61.693C89.478,61.693 88.521,60.736 88.521,59.557L88.521,55.284C88.521,54.105 89.478,53.148 90.657,53.148L90.922,53.148C89.19,37.24 76.627,24.564 60.773,22.659L60.773,23.154C60.773,24.333 59.815,25.29 58.636,25.29L54.364,25.29C53.185,25.29 52.227,24.333 52.227,23.154L52.227,22.688C36.484,24.689 24.036,37.318 22.312,53.148L22.329,53.148C23.508,53.148 24.466,54.105 24.466,55.284L24.466,59.557C24.466,60.736 23.508,61.693 22.329,61.693L18.056,61.693C16.877,61.693 15.92,60.736 15.92,59.557L15.92,55.284C15.92,54.105 16.877,53.148 18.056,53.148L19.336,53.148C20.703,39.501 29.405,28.003 41.437,22.658L24.139,22.658C23.495,24.203 21.97,25.29 20.193,25.29C17.835,25.29 15.92,23.376 15.92,21.018C15.92,18.66 17.835,16.745 20.193,16.745C21.998,16.745 23.543,17.867 24.169,19.451L52.227,19.451Z"})):void 0}a(18);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var S=wp.element,B=S.Component,D=S.Fragment,E=wp.i18n.__,j=wp.components,R=j.Tooltip,M=j.Button,z=wp.hooks.applyFilters,x=function(e){f()(a,e);var t=C(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.onClick,a=e.selectedDevice;return Object(l.createElement)(D,null,Object(l.createElement)("div",{className:"gb-responsive-tabs"},Object(l.createElement)(R,{text:E("Show options for all devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Desktop"===a,onClick:function(){t("Desktop")}},E("Desktop","generateblocks"))),Object(l.createElement)(R,{text:E("Show options for tablet devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Tablet"===a,onClick:function(){t("Tablet")}},E("Tablet","generateblocks"))),Object(l.createElement)(R,{text:E("Show options for mobile devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Mobile"===a,onClick:function(){t("Mobile")}},E("Mobile","generateblocks")))),z("generateblocks.editor.controls","","afterResponsiveTabs",this.props,this.state))}}]),a}(B);a(19);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var P=wp.element.Component,A=wp.i18n,U=A.__,H=A.sprintf,N=A._x,F=wp.components,_=F.ButtonGroup,I=F.Button,G=F.Tooltip,V=function(e){f()(a,e);var t=L(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.label,a=e.value,i=e.onClick,r=e.units;return Object(l.createElement)("div",{className:"components-gblocks-units-control-header__units"},Object(l.createElement)("div",{className:"components-gblocks-units-control-label__units"},t),Object(l.createElement)("div",{className:"components-gblocks-control__units"},Object(l.createElement)(_,{className:"components-gblocks-control-buttons__units","aria-label":U("Select Units","generateblocks")},r.map((function(e){var t=e;return"px"===e&&(t=N("Pixel","A size unit for CSS markup","generateblocks")),"em"===e&&(t=N("Em","A size unit for CSS markup","generateblocks")),"%"===e&&(t=N("Percentage","A size unit for CSS markup","generateblocks")),"deg"===e&&(t=N("Degree","A size unit for CSS markup","generateblocks")),Object(l.createElement)(G +!function(e){var t={};function a(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(l,i,function(t){return e[t]}.bind(null,i));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=39)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var a=0,l=new Array(t);a1?a-1:0),i=1;i/gm),L=i(/^data-[\-\w.\u00B7-\uFFFF]/),P=i(/^aria-[\-\w]+$/),A=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=i(/^(?:\w+script|data):/i),H=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function F(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:_(),a=function(t){return e(t)};if(a.version="2.2.4",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var i=t.document,r=t.document,n=t.DocumentFragment,o=t.HTMLTemplateElement,c=t.Node,s=t.NodeFilter,w=t.NamedNodeMap,G=void 0===w?t.NamedNodeMap||t.MozNamedAttrMap:w,V=t.Text,q=t.Comment,W=t.DOMParser,Z=t.trustedTypes;if("function"==typeof o){var K=r.createElement("template");K.content&&K.content.ownerDocument&&(r=K.content.ownerDocument)}var J=I(Z,i),Y=J&&Ee?J.createHTML(""):"",Q=r,X=Q.implementation,$=Q.createNodeIterator,ee=Q.getElementsByTagName,te=Q.createDocumentFragment,ae=i.importNode,le={};try{le=T(r).documentMode?r.documentMode:{}}catch(e){}var ie={};a.isSupported=X&&void 0!==X.createHTMLDocument&&9!==le;var re=z,ne=x,oe=L,ce=P,se=U,ge=H,ue=A,be=null,de=v({},[].concat(F(O),F(C),F(S),F(B),F(D))),pe=null,fe=v({},[].concat(F(E),F(j),F(R),F(M))),he=null,me=null,ke=!0,ye=!0,we=!1,ve=!1,Te=!1,Oe=!1,Ce=!1,Se=!1,Be=!1,De=!0,Ee=!1,je=!0,Re=!0,Me=!1,ze={},xe=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),Le=null,Pe=v({},["audio","video","img","source","image","track"]),Ae=null,Ue=v({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),He=null,Ne=r.createElement("form"),Fe=function(e){He&&He===e||(e&&"object"===(void 0===e?"undefined":N(e))||(e={}),e=T(e),be="ALLOWED_TAGS"in e?v({},e.ALLOWED_TAGS):de,pe="ALLOWED_ATTR"in e?v({},e.ALLOWED_ATTR):fe,Ae="ADD_URI_SAFE_ATTR"in e?v(T(Ue),e.ADD_URI_SAFE_ATTR):Ue,Le="ADD_DATA_URI_TAGS"in e?v(T(Pe),e.ADD_DATA_URI_TAGS):Pe,he="FORBID_TAGS"in e?v({},e.FORBID_TAGS):{},me="FORBID_ATTR"in e?v({},e.FORBID_ATTR):{},ze="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ye=!1!==e.ALLOW_DATA_ATTR,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=e.SAFE_FOR_TEMPLATES||!1,Te=e.WHOLE_DOCUMENT||!1,Se=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,De=!1!==e.RETURN_DOM_IMPORT,Ee=e.RETURN_TRUSTED_TYPE||!1,Ce=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Re=!1!==e.KEEP_CONTENT,Me=e.IN_PLACE||!1,ue=e.ALLOWED_URI_REGEXP||ue,ve&&(ye=!1),Be&&(Se=!0),ze&&(be=v({},[].concat(F(D))),pe=[],!0===ze.html&&(v(be,O),v(pe,E)),!0===ze.svg&&(v(be,C),v(pe,j),v(pe,M)),!0===ze.svgFilters&&(v(be,S),v(pe,j),v(pe,M)),!0===ze.mathMl&&(v(be,B),v(pe,R),v(pe,M))),e.ADD_TAGS&&(be===de&&(be=T(be)),v(be,e.ADD_TAGS)),e.ADD_ATTR&&(pe===fe&&(pe=T(pe)),v(pe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&v(Ae,e.ADD_URI_SAFE_ATTR),Re&&(be["#text"]=!0),Te&&v(be,["html","head","body"]),be.table&&(v(be,["tbody"]),delete he.tbody),l&&l(e),He=e)},_e=function(e){b(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=Y}catch(t){e.remove()}}},Ie=function(e,t){try{b(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(a.removed,{attribute:null,from:t})}t.removeAttribute(e)},Ge=function(e){var t=void 0,a=void 0;if(Ce)e=""+e;else{var l=p(e,/^[\r\n\t ]+/);a=l&&l[0]}var i=J?J.createHTML(e):e;try{t=(new W).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var n=(t=X.createHTMLDocument("")).body;n.parentNode.removeChild(n.parentNode.firstElementChild),n.outerHTML=i}return e&&a&&t.body.insertBefore(r.createTextNode(a),t.body.childNodes[0]||null),ee.call(t,Te?"html":"body")[0]},Ve=function(e){return $.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,(function(){return s.FILTER_ACCEPT}),!1)},qe=function(e){return!(e instanceof V||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof G&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},We=function(e){return"object"===(void 0===c?"undefined":N(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":N(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ze=function(e,t,l){ie[e]&&g(ie[e],(function(e){e.call(a,t,l,He)}))},Ke=function(e){var t=void 0;if(Ze("beforeSanitizeElements",e,null),qe(e))return _e(e),!0;if(p(e.nodeName,/[\u0080-\uFFFF]/))return _e(e),!0;var l=d(e.nodeName);if(Ze("uponSanitizeElement",e,{tagName:l,allowedTags:be}),!We(e.firstElementChild)&&(!We(e.content)||!We(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return _e(e),!0;if(!be[l]||he[l]){if(Re&&!xe[l]&&"function"==typeof e.insertAdjacentHTML)try{var i=e.innerHTML;e.insertAdjacentHTML("AfterEnd",J?J.createHTML(i):i)}catch(e){}return _e(e),!0}return"noscript"!==l&&"noembed"!==l||!k(/<\/no(script|embed)/i,e.innerHTML)?"math"===l&&We(e.firstElementChild)&&e.querySelectorAll(":not("+B.join("):not(")+")").length>0||"svg"===l&&e.querySelectorAll("p, br, table, form, noscript").length>0?(_e(e),!0):(ve&&3===e.nodeType&&(t=e.textContent,t=f(t,re," "),t=f(t,ne," "),e.textContent!==t&&(b(a.removed,{element:e.cloneNode()}),e.textContent=t)),Ze("afterSanitizeElements",e,null),!1):(_e(e),!0)},Je=function(e,t,a){if(je&&("id"===t||"name"===t)&&(a in r||a in Ne))return!1;if(ye&&k(oe,t));else if(ke&&k(ce,t));else{if(!pe[t]||me[t])return!1;if(Ae[t]);else if(k(ue,f(a,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==h(a,"data:")||!Le[e])if(we&&!k(se,f(a,ge,"")));else if(a)return!1}return!0},Ye=function(e){var t=void 0,l=void 0,i=void 0,r=void 0;Ze("beforeSanitizeAttributes",e,null);var n=e.attributes;if(n){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(r=n.length;r--;){var c=t=n[r],s=c.name,g=c.namespaceURI;if(l=m(t.value),i=d(s),o.attrName=i,o.attrValue=l,o.keepAttr=!0,o.forceKeepAttr=void 0,Ze("uponSanitizeAttribute",e,o),l=o.attrValue,!o.forceKeepAttr&&(Ie(s,e),o.keepAttr))if(k(/\/>/i,l))Ie(s,e);else{ve&&(l=f(l,re," "),l=f(l,ne," "));var b=e.nodeName.toLowerCase();if(Je(b,i,l))try{g?e.setAttributeNS(g,s,l):e.setAttribute(s,l),u(a.removed)}catch(e){}}}Ze("afterSanitizeAttributes",e,null)}},Qe=function e(t){var a=void 0,l=Ve(t);for(Ze("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)Ze("uponSanitizeShadowNode",a,null),Ke(a)||(a.content instanceof n&&e(a.content),Ye(a));Ze("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e,l){var r=void 0,o=void 0,s=void 0,g=void 0,u=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!We(e)){if("function"!=typeof e.toString)throw y("toString is not a function");if("string"!=typeof(e=e.toString()))throw y("dirty is not a string, aborting")}if(!a.isSupported){if("object"===N(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(We(e))return t.toStaticHTML(e.outerHTML)}return e}if(Oe||Fe(l),a.removed=[],"string"==typeof e&&(Me=!1),Me);else if(e instanceof c)1===(o=(r=Ge("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Se&&!ve&&!Te&&-1===e.indexOf("<"))return J&&Ee?J.createHTML(e):e;if(!(r=Ge(e)))return Se?null:Y}r&&Ce&&_e(r.firstChild);for(var b=Ve(Me?e:r);s=b.nextNode();)3===s.nodeType&&s===g||Ke(s)||(s.content instanceof n&&Qe(s.content),Ye(s),g=s);if(g=null,Me)return e;if(Se){if(Be)for(u=te.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return De&&(u=ae.call(i,u,!0)),u}var d=Te?r.outerHTML:r.innerHTML;return ve&&(d=f(d,re," "),d=f(d,ne," ")),J&&Ee?J.createHTML(d):d},a.setConfig=function(e){Fe(e),Oe=!0},a.clearConfig=function(){He=null,Oe=!1},a.isValidAttribute=function(e,t,a){He||Fe({});var l=d(e),i=d(t);return Je(l,i,a)},a.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],b(ie[e],t))},a.removeHook=function(e){ie[e]&&u(ie[e])},a.removeHooks=function(e){ie[e]&&(ie[e]=[])},a.removeAllHooks=function(){ie={}},a}()}()},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var a=[],l=!0,i=!1,r=void 0;try{for(var n,o=e[Symbol.iterator]();!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){var l=a(15);e.exports=function(e){if(Array.isArray(e))return l(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,function(e,t,a){"use strict";a.r(t);var l=a(0),i=(a(17),a(3)),r=a.n(i),n=a(2),o=a.n(n),c=a(4),s=a.n(c),g=a(5),u=a.n(g),b=a(9),d=a.n(b),p=a(6),f=a.n(p),h=a(7),m=a.n(h),k=a(1),y=a.n(k),w=a(8),v=a.n(w),T=wp.element.createElement;function O(e){return"tabs-desktop"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},T("path",{d:"M18.95 4H4.55C3.55589 4 2.75 4.76751 2.75 5.71429V14.2857C2.75 15.2325 3.55589 16 4.55 16H18.95C19.9441 16 20.75 15.2325 20.75 14.2857V5.71429C20.75 4.76751 19.9441 4 18.95 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),T("path",{d:"M1.75 18C1.19772 18 0.75 18.4477 0.75 19C0.75 19.5523 1.19772 20 1.75 20H21.75C22.3023 20 22.75 19.5523 22.75 19C22.75 18.4477 22.3023 18 21.75 18H1.75ZM9 18.8C8.86193 18.8 8.75 18.9119 8.75 19.05C8.75 19.1881 8.86193 19.3 9 19.3H14.5C14.6381 19.3 14.75 19.1881 14.75 19.05C14.75 18.9119 14.6381 18.8 14.5 18.8H9Z",stroke:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):"tabs-tablet"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"M16.6429 4H7.35714C6.33147 4 5.5 4.71634 5.5 5.6V18.4C5.5 19.2837 6.33147 20 7.35714 20H16.6429C17.6685 20 18.5 19.2837 18.5 18.4V5.6C18.5 4.71634 17.6685 4 16.6429 4Z"}),T("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"M15.5714 4H8.42857C7.63959 4 7 4.71634 7 5.6V18.4C7 19.2837 7.63959 20 8.42857 20H15.5714C16.3604 20 17 19.2837 17 18.4V5.6C17 4.71634 16.3604 4 15.5714 4Z"}),T("path",{d:"M12 17.5H12.01"})):"sync"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"m7.34133533 6.23855964v-1.98499625c-2.17404351.03150788-4.03300825 1.38634659-4.85221305 3.27681921-.31507877.72468117-.44111028 1.51237809-.4096024 2.33158289.06301575 1.13428361.47261815 2.20555141 1.16579145 3.05626411.37809452.4411102.28357089 1.1027757-.18904726 1.4493623-.44111028.3150788-1.07126782.2205551-1.41785447-.1890473-.85071268-1.0397599-1.38634658-2.3315829-1.54388597-3.7179294-.12603151-1.00825211-.03150788-2.01650417.25206302-2.9302326.88222055-3.02475619 3.6864216-5.26181546 6.99474868-5.29332334v-1.98499624c0-.09452363.12603151-.15753939.22055514-.09452363l4.09602403 2.99324831c.0630157.06301575.0630157.15753938 0 .18904726l-4.09602403 2.99324831c-.09452363.06301575-.22055514 0-.22055514-.09452363zm.22055514 13.17029256c.09452363.0630158.22055514 0 .22055514-.0945236v-1.9849963c3.30832709-.0315078 6.11252809-2.2685671 6.99474869-5.2933233.252063-.9137284.3780945-1.8904726.252063-2.93023256-.1575394-1.38634658-.7246812-2.67816954-1.543886-3.71792948-.3465866-.44111028-.9767441-.53563391-1.4178544-.18904726-.4726182.34658665-.5671418 1.00825206-.1890473 1.44936234.6931733.85071268 1.1027757 1.89047262 1.1657915 3.05626407.0315078.81920479-.1260315 1.63840959-.4096024 2.33158289-.787697 1.8904726-2.6466617 3.2453113-4.85221309 3.2768192v-1.9849962c0-.0945237-.12603151-.1575394-.22055514-.0945237l-4.096024 2.9932483c-.06301576.0630158-.06301576.1575394 0 .1890473z",transform:"translate(4 2)"})):"headline"===e?T("svg",{width:24,height:24,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4",fill:"#1e72bd"})):"grid"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M20 .6c0-.3-.2-.6-.5-.6H.5C.2 0 0 .3 0 .6v4.6c0 .3.2.6.5.6h19c.3 0 .5-.3.5-.6V.6zM6.7 7.7c0-.3-.2-.6-.5-.6H.5c-.3 0-.5.3-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.3.5-.6l.1-4.6zM19.9 7.7c0-.3-.2-.6-.6-.6H8.6c-.4 0-.6.3-.6.6v4.5c0 .3.2.6.6.6h10.8c.3 0 .6-.3.6-.6l-.1-4.5z",fill:"#1d72ba"}),T("path",{d:"M20 14.8c0-.3-.2-.6-.5-.6h-5.6c-.3 0-.5.2-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.2.5-.6v-4.6zM12 14.8c0-.3-.2-.5-.5-.5H.5c-.3 0-.5.2-.5.5v4.6c0 .4.2.6.5.6h11c.3 0 .5-.2.5-.5v-4.7z",fill:"#1d72ba"})):"container"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M2.8 3.4c0-.4.3-.7.7-.7h1.2V0H3.4C1.5 0 0 1.5 0 3.4v1.2h2.8V3.4zM0 7.4h2.8v5.3H0zM17.2 7.4H20v5.3h-2.8zM17.2 16.6c0 .4-.3.7-.7.7h-1.2V20h1.2c1.9 0 3.4-1.5 3.4-3.4v-1.2h-2.8v1.2h.1zM7.4 0h5.3v2.8H7.4zM3.4 17.2c-.4 0-.7-.3-.7-.7v-1.2H0v1.2c0 2 1.5 3.5 3.4 3.5h1.2v-2.8H3.4zM7.4 17.2h5.3V20H7.4zM16.6 2.8c.4 0 .7.3.7.7v1.2H20V3.4C20 1.5 18.5 0 16.6 0h-1.2v2.8h1.2z",fill:"#1e72bd"})):"button"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M19.2 0H.8C.4 0 0 .4 0 .8v6.4c0 .4.4.8.8.8h18.4c.4 0 .8-.4.8-.8V.8c0-.4-.4-.8-.8-.8zM18.4 12H1.6c-.9 0-1.6.7-1.6 1.6v4.8c0 .9.7 1.6 1.6 1.6h16.8c.9 0 1.6-.7 1.6-1.6v-4.8c0-.9-.7-1.6-1.6-1.6zm.4 6.4c0 .2-.2.4-.4.4H1.6c-.2 0-.4-.2-.4-.4v-4.8c0-.2.2-.4.4-.4h16.8c.2 0 .4.2.4.4v4.8z",fill:"#1e72bd"})):"paragraph"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20"},T("path",{d:"M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71A.984.984 0 0 0 15 2z"})):"spacing"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),T("path",{d:"M40.452,77.705c7.802,1.393 23.794,1.393 31.596,0l13.635,13.635c-12.215,3.213 -46.652,3.213 -58.866,0l13.635,-13.635Zm50.888,-50.888c3.213,12.215 3.213,46.653 0,58.866l-13.635,-13.635c1.393,-7.801 1.393,-23.794 0,-31.596l13.635,-13.635Zm-70.18,0l13.635,13.635c-1.393,7.802 -1.393,23.794 0,31.596l-13.635,13.635c-3.213,-12.213 -3.213,-46.651 0,-58.866Zm5.657,-5.657c12.214,-3.213 46.652,-3.213 58.866,0l-13.635,13.635c-7.801,-1.393 -23.795,-1.393 -31.596,0l-13.635,-13.635Z"})):"advanced"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,37.215c6.632,2.124 6.632,23.512 0,25.636c-6.632,2.124 -73.42,2.124 -80.052,0c-6.632,-2.124 -6.632,-23.512 0,-25.636c6.632,-2.124 73.42,-2.124 80.052,0Z"}),T("path",{d:"M48.61,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"}),T("path",{d:"M90.955,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"})):"backgrounds"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M1.491,87.777l37.79,-37.79l31.352,31.352c2.412,2.171 5.656,0 5.656,0l17.248,-17.247l13.186,13.186l4.796,4.797c-0.971,12.199 -2.726,21.685 -5.249,24.208c-8.29,8.289 -91.776,8.289 -100.066,0c-2.113,-2.113 -3.687,-9.113 -4.713,-18.506Z"}),T("path",{d:"M0.631,77.323c-1.742,-27.728 0.125,-65.658 5.573,-71.106c8.29,-8.289 91.776,-8.289 100.066,0c5.07,5.07 7.039,38.265 5.89,65.185l-15.795,-15.795c-2.412,-2.172 -5.657,0 -5.657,0l-17.247,17.246l-31.351,-31.351c-0.731,-0.658 -1.036,-1 -2.619,-1.166c-0.263,0 -0.477,-0.075 -1.245,0.131c-0.912,0.244 -1.793,1.035 -1.793,1.035l-35.822,35.821Zm76.434,-59.584c7.115,0 12.891,5.776 12.891,12.89c0,7.114 -5.776,12.89 -12.891,12.89c-7.114,0 -12.89,-5.776 -12.89,-12.89c0,-7.114 5.776,-12.89 12.89,-12.89Z"})):"colors"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradients"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M112.426,48.746c0.503,25.204 -1.545,52.939 -6.143,57.537c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.289,-8.288 91.748,-8.289 100.061,-0.004c0,0 0.005,0.004 0.005,0.004c3.691,3.692 5.739,22.295 6.143,42.529Zm-16.154,-32.526c-6.656,-6.628 -73.418,-6.627 -80.048,0.004c-6.631,6.63 -6.632,73.392 -0.004,80.048l80.052,-80.052Z"})):"icons"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),T("path",{d:"M89.605,22.895c5.527,5.526 5.527,61.184 0,66.71c-5.526,5.527 -61.184,5.527 -66.71,0c-5.527,-5.526 -5.527,-61.184 0,-66.71c5.526,-5.527 61.184,-5.527 66.71,0Zm-21.066,62.31l0,-2.731c-0.648,-0.074 -1.272,-0.199 -1.87,-0.374c-0.599,-0.174 -1.148,-0.374 -1.646,-0.598c-0.699,-0.299 -1.235,-0.755 -1.609,-1.366c-0.374,-0.611 -0.561,-1.353 -0.561,-2.226l0,-29.703l-0.561,-0.561l-18.331,0.972l0,2.731c0.748,0.075 1.577,0.25 2.488,0.524c0.91,0.274 1.589,0.561 2.038,0.86c0.599,0.399 1.098,0.929 1.497,1.59c0.399,0.661 0.598,1.428 0.598,2.301l0,21.773c0,0.923 -0.162,1.665 -0.486,2.226c-0.324,0.561 -0.885,0.991 -1.683,1.29c-0.449,0.175 -0.986,0.3 -1.609,0.374c-0.624,0.075 -1.26,0.138 -1.908,0.187l0,2.731l23.643,0Zm-12.978,-59.459c4.76,0 8.625,3.864 8.625,8.625c0,4.76 -3.865,8.625 -8.625,8.625c-4.76,0 -8.625,-3.865 -8.625,-8.625c0,-4.761 3.865,-8.625 8.625,-8.625Z"})):"typography"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-8.783,78.583l0,-2.817c-0.661,-0.026 -1.481,-0.165 -2.46,-0.417c-0.979,-0.251 -1.773,-0.562 -2.381,-0.932c-0.9,-0.609 -1.601,-1.23 -2.103,-1.865c-0.503,-0.635 -0.953,-1.468 -1.349,-2.5l-18.769,-48.569l-3.175,0c-2.672,6.878 -5.714,14.721 -9.126,23.53c-3.266,8.43 -6.265,16.06 -8.998,22.891l-11.672,-28.684l-2.304,0c-1.939,4.742 -4.148,10.149 -6.625,16.222c-2.477,6.072 -4.743,11.543 -6.798,16.412c-0.403,0.949 -0.816,1.692 -1.238,2.23c-0.423,0.538 -1.018,1.053 -1.786,1.545c-0.48,0.292 -1.095,0.524 -1.844,0.698c-0.749,0.173 -1.373,0.278 -1.872,0.314l0,1.942l15.382,0l0,-1.942c-1.518,-0.073 -2.881,-0.31 -4.091,-0.711c-1.209,-0.401 -1.814,-0.966 -1.814,-1.696c0,-0.31 0.048,-0.711 0.144,-1.204c0.096,-0.492 0.268,-1.13 0.518,-1.914c0.269,-0.803 0.571,-1.678 0.907,-2.626c0.336,-0.948 0.773,-2.061 1.311,-3.338l14.316,0l3.399,8.699c0.012,0.03 0.024,0.06 0.036,0.092c-0.161,0.119 -0.329,0.237 -0.503,0.355c-0.661,0.423 -1.508,0.76 -2.539,1.012c-1.032,0.251 -1.892,0.403 -2.58,0.456l0,2.817l21.19,0l0,-2.817c-2.09,-0.106 -3.968,-0.45 -5.635,-1.032c-1.666,-0.582 -2.499,-1.402 -2.499,-2.46c0,-0.45 0.066,-1.032 0.198,-1.746c0.132,-0.714 0.37,-1.64 0.714,-2.777c0.371,-1.164 0.787,-2.434 1.25,-3.81c0.463,-1.375 1.065,-2.989 1.806,-4.841l19.721,0l4.682,12.619c0.106,0.264 0.186,0.568 0.238,0.912c0.053,0.344 0.08,0.635 0.08,0.873c0,0.582 -0.681,1.072 -2.044,1.468c-1.362,0.397 -3.075,0.662 -5.138,0.794l0,2.817l23.451,0Zm-56.864,-15.865l-6.193,-15.045l-6.078,15.045l12.271,0Zm34.167,-7.15l-8.532,-21.824l-8.373,21.824l16.905,0Z"})):"addContainer"===e?T("svg",{width:20,height:20,viewBox:"0 0 64 64",fillRule:"evenodd"},T("path",{d:"M41.454,57.126l0,6.409c-6.088,0.286 -12.82,0.286 -18.908,0l0,-6.409c5.957,0.366 12.951,0.366 18.908,0Zm-33.93,-8.899c0.458,3.226 1.086,5.568 1.883,6.366c0.798,0.797 3.14,1.425 6.366,1.883l0,6.592c-6.084,-0.578 -10.706,-1.519 -12.015,-2.826c-1.307,-1.309 -2.248,-5.931 -2.826,-12.015l6.592,0Zm55.544,0c-0.578,6.084 -1.519,10.706 -2.826,12.015c-1.309,1.307 -5.931,2.248 -12.015,2.826l0,-6.592c3.226,-0.458 5.568,-1.086 6.366,-1.883c0.797,-0.798 1.425,-3.14 1.883,-6.366l6.592,0Zm0.467,-25.681c0.286,6.088 0.286,12.82 0,18.908l-6.409,0c0.366,-5.957 0.366,-12.951 0,-18.908l6.409,0Zm-56.661,0c-0.366,5.957 -0.366,12.951 0,18.908l-6.409,0c-0.286,-6.088 -0.286,-12.82 0,-18.908l6.409,0Zm41.353,-21.614c6.084,0.578 10.706,1.519 12.015,2.826c1.307,1.309 2.248,5.931 2.826,12.015l-6.592,0c-0.458,-3.226 -1.086,-5.568 -1.883,-6.366c-0.798,-0.797 -3.14,-1.425 -6.366,-1.883l0,-6.592Zm-32.454,0l0,6.592c-3.226,0.458 -5.568,1.086 -6.366,1.883c-0.797,0.798 -1.425,3.14 -1.883,6.366l-6.592,0c0.578,-6.084 1.519,-10.706 2.826,-12.015c1.309,-1.307 5.931,-2.248 12.015,-2.826Zm6.773,-0.467c6.088,-0.286 12.82,-0.286 18.908,0l0,6.409c-5.957,-0.366 -12.951,-0.366 -18.908,0l0,-6.409Z"}),T("path",{d:"M18.03,29.037l11.007,0l0,-11.007l6.773,0l0,11.007l11.007,0l0,6.773l-11.007,0l0,11.007l-6.773,0l0,-11.007l-11.007,0l0,-6.773Z"})):"gradient"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},T("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"documentation"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.755 6.245c8.327 8.326 8.327 92.184 0 100.51-8.326 8.327-92.184 8.327-100.51 0-8.327-8.326-8.327-92.184 0-100.51 8.326-8.327 92.184-8.327 100.51 0zm-92.661 93.896C9.279 84 9.781 23.714 15.834 17.661c2.491-2.491 19.588-4.132 26.354-4.712 4.748-.408 10.115.671 14.243 1.23 4.128-.559 9.495-1.638 14.243-1.23 6.766.58 23.863 2.221 26.354 4.712 6.053 6.053 6.791 66.339 1.976 82.48-4.729-1.977-19.708-3.436-26.784-3.853-5.234-.308-11.129.739-15.671 1.354-4.543-.615-10.437-1.662-15.672-1.354-7.075.417-22.054 1.876-26.783 3.853z"}),T("path",{d:"M50.188 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM50.277 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 73.799c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0z"}),T("path",{d:"M89.909 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM89.998 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM89.998 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0z"})):"layout"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.719 6.238c8.362 8.362 8.362 92.208 0 100.57-8.362 8.287-92.208 8.287-100.495 0-8.362-8.362-8.362-92.208 0-100.57 8.287-8.286 92.133-8.286 100.495 0zm-9.417 9.417c6.78 6.78 6.78 74.957 0 81.737-6.78 6.78-74.956 6.78-81.661 0-6.78-6.78-6.78-74.957 0-81.737 6.705-6.78 74.881-6.78 81.661 0z"}),T("path",{d:"M93.988 48.877c.602 17.477-.754 37.893-3.993 41.132-3.164 3.164-22.75 4.52-40.002 4.068v-45.2h43.995zm-75.108 0h23.58v44.899c-9.718-.603-17.553-1.808-19.512-3.767-3.24-3.24-4.595-23.655-4.068-41.132zm.377-7.533c.678-9.19 1.883-16.498 3.691-18.306 5.575-5.575 61.472-5.575 67.047 0 1.808 1.808 3.013 9.115 3.691 18.306h-74.43z"})):"shapes"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.756,6.244C115.081,14.571 115.081,98.429 106.756,106.756C98.429,115.081 14.571,115.081 6.244,106.756C-2.081,98.429 -2.081,14.571 6.244,6.244C14.571,-2.081 98.429,-2.081 106.756,6.244ZM67.875,88.052C67.875,86.977 67.003,86.105 65.928,86.105L47.072,86.105C45.997,86.105 45.125,86.977 45.125,88.052L45.125,91.948C45.125,93.023 45.997,93.896 47.072,93.896L65.928,93.896C67.003,93.896 67.875,93.023 67.875,91.948L67.875,88.052ZM57.899,31.409L59.305,31.409C60.853,31.409 62.11,30.152 62.11,28.604L62.11,28.089L73.263,57.543C73.757,58.333 73.731,59.161 73.731,59.403C73.729,62.659 65.231,69.414 65.375,83.611L47.625,83.611C47.769,69.414 39.271,62.659 39.269,59.403C39.269,59.161 39.243,58.333 39.737,57.543L50.89,28.089L50.89,28.604C50.89,30.152 52.147,31.409 53.695,31.409L55.101,31.409C55.111,35.738 55.142,50.367 55.098,54.109C55.093,54.494 54.907,54.988 54.68,55.45C52.915,56.169 51.669,57.903 51.669,59.925C51.669,62.592 53.834,64.756 56.5,64.756C59.166,64.756 61.331,62.592 61.331,59.925C61.331,57.903 60.085,56.169 58.32,55.45C58.093,54.988 57.907,54.494 57.902,54.109C57.858,50.367 57.889,35.738 57.899,31.409ZM52.227,19.451L52.227,18.881C52.227,17.702 53.185,16.745 54.364,16.745L58.636,16.745C59.815,16.745 60.773,17.702 60.773,18.881L60.773,19.451L88.831,19.451C89.457,17.867 91.002,16.745 92.807,16.745C95.165,16.745 97.08,18.66 97.08,21.018C97.08,23.376 95.165,25.29 92.807,25.29C91.03,25.29 89.505,24.203 88.861,22.658L71.798,22.658C83.83,28.003 92.531,39.501 93.898,53.148L94.93,53.148C96.109,53.148 97.067,54.105 97.067,55.284L97.067,59.557C97.067,60.736 96.109,61.693 94.93,61.693L90.657,61.693C89.478,61.693 88.521,60.736 88.521,59.557L88.521,55.284C88.521,54.105 89.478,53.148 90.657,53.148L90.922,53.148C89.19,37.24 76.627,24.564 60.773,22.659L60.773,23.154C60.773,24.333 59.815,25.29 58.636,25.29L54.364,25.29C53.185,25.29 52.227,24.333 52.227,23.154L52.227,22.688C36.484,24.689 24.036,37.318 22.312,53.148L22.329,53.148C23.508,53.148 24.466,54.105 24.466,55.284L24.466,59.557C24.466,60.736 23.508,61.693 22.329,61.693L18.056,61.693C16.877,61.693 15.92,60.736 15.92,59.557L15.92,55.284C15.92,54.105 16.877,53.148 18.056,53.148L19.336,53.148C20.703,39.501 29.405,28.003 41.437,22.658L24.139,22.658C23.495,24.203 21.97,25.29 20.193,25.29C17.835,25.29 15.92,23.376 15.92,21.018C15.92,18.66 17.835,16.745 20.193,16.745C21.998,16.745 23.543,17.867 24.169,19.451L52.227,19.451Z"})):void 0}a(18);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var S=wp.element,B=S.Component,D=S.Fragment,E=wp.i18n.__,j=wp.components,R=j.Tooltip,M=j.Button,z=wp.hooks.applyFilters,x=function(e){f()(a,e);var t=C(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.onClick,a=e.selectedDevice;return Object(l.createElement)(D,null,Object(l.createElement)("div",{className:"gb-responsive-tabs"},Object(l.createElement)(R,{text:E("Show options for all devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Desktop"===a,onClick:function(){t("Desktop")}},E("Desktop","generateblocks"))),Object(l.createElement)(R,{text:E("Show options for tablet devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Tablet"===a,onClick:function(){t("Tablet")}},E("Tablet","generateblocks"))),Object(l.createElement)(R,{text:E("Show options for mobile devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Mobile"===a,onClick:function(){t("Mobile")}},E("Mobile","generateblocks")))),z("generateblocks.editor.controls","","afterResponsiveTabs",this.props,this.state))}}]),a}(B);a(19);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var P=wp.element.Component,A=wp.i18n,U=A.__,H=A.sprintf,N=A._x,F=wp.components,_=F.ButtonGroup,I=F.Button,G=F.Tooltip,V=function(e){f()(a,e);var t=L(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.label,a=e.value,i=e.onClick,r=e.units;return Object(l.createElement)("div",{className:"components-gblocks-units-control-header__units"},Object(l.createElement)("div",{className:"components-gblocks-units-control-label__units"},t),Object(l.createElement)("div",{className:"components-gblocks-control__units"},Object(l.createElement)(_,{className:"components-gblocks-control-buttons__units","aria-label":U("Select Units","generateblocks")},r.map((function(e){var t=e;return"px"===e&&(t=N("Pixel","A size unit for CSS markup","generateblocks")),"em"===e&&(t=N("Em","A size unit for CSS markup","generateblocks")),"%"===e&&(t=N("Percentage","A size unit for CSS markup","generateblocks")),"deg"===e&&(t=N("Degree","A size unit for CSS markup","generateblocks")),Object(l.createElement)(G /* translators: Unit type (px, em, %) */,{text:H(U("%s Units","generateblocks"),t),key:e},Object(l.createElement)(I,{key:e,className:"components-gblocks-control-button__units--"+e,isSmall:!0,isPrimary:a===e,"aria-pressed":a===e /* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":H(U("%s Units","generateblocks"),t),onClick:function(){return i(e)}},e))})))))}}]),a}(P),q=a(12),W=a.n(q);function Z(e){for(var t="",a=0,l=Object.entries(e);a0&&(t+=o)}}return t}function K(e,t){return!(!e&&0!==e)&&e+t}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Y=wp.element.Component,Q=wp.hooks.applyFilters,X=function(e){f()(a,e);var t=J(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Q("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGap,i=e.verticalGap,r=e.verticalAlignment,n=e.horizontalAlignment,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":r,"justify-content":n,"margin-left":"-"+a/2+"px","margin-right":"-"+a/2+"px"}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a/2+"px","padding-right":a/2+"px","margin-bottom":K(i,"px")}],o=Q("generateblocks.editor.mainCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(Y);function $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ee=wp.element.Component,te=wp.hooks.applyFilters,ae=function(e){f()(a,e);var t=$(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=te("generateblocks.editor.desktopCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ee);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ie=wp.element.Component,re=wp.hooks.applyFilters,ne=function(e){f()(a,e);var t=le(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=re("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapTablet,i=e.verticalGapTablet,r=e.verticalAlignmentTablet,n=e.horizontalAlignmentTablet,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=re("generateblocks.editor.tabletCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(ie);function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ce=wp.element.Component,se=wp.hooks.applyFilters,ge=function(e){f()(a,e);var t=oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=se("generateblocks.editor.tabletOnlyCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ce);function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var be=wp.element.Component,de=wp.hooks.applyFilters,pe=function(e){f()(a,e);var t=ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=de("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapMobile,i=e.verticalGapMobile,r=e.verticalAlignmentMobile,n=e.horizontalAlignmentMobile,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=de("generateblocks.editor.mobileCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(be),fe=a(11),he=a.n(fe);function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ke=wp.hooks.applyFilters,ye=function(e){f()(a,e);var t=me(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.children;return ke(t,a||"",this.props)}}]),a}(wp.element.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ve=wp.components.PanelBody,Te=wp.element.Component,Oe=wp.hooks.applyFilters,Ce=function(e){f()(a,e);var t=we(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=void 0!==t&&t,i=e.initialOpen,r=void 0!==i&&i,n=e.icon,o=e.className,c=e.id,s=e.state,g=e.showPanel,u=void 0===g||g,b=e.children;if(!Oe("generateblocks.editor.showPanel",u,c,this.props))return null;var d=!0;return""===b&&(d=!1),"object"===he()(b)&&(d=Object.values(b).some((function(e){return null!==e&&!1!==e&&""!==e}))),d?Object(l.createElement)(ye,{name:"generateblocks.panel."+c,props:this.props,state:s},a?Object(l.createElement)(ve,{title:a,initialOpen:r,icon:n,className:o},Oe("generateblocks.editor.panelContents",b,c,this.props)):Object(l.createElement)(ve,null,Oe("generateblocks.editor.panelContents",b,c,this.props))):null}}]),a}(Te);function Se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Be=wp.i18n.__,De=wp.components,Ee=De.TextControl,je=De.SelectControl,Re=De.Placeholder,Me=De.Button,ze=De.ToolbarGroup,xe=De.ToolbarButton,Le=wp.element,Pe=Le.Fragment,Ae=Le.Component,Ue=wp.blockEditor,He=Ue.InspectorControls,Ne=Ue.InnerBlocks,Fe=Ue.BlockControls,_e=Ue.InspectorAdvancedControls,Ie=wp.blocks.createBlock,Ge=wp.hooks.applyFilters,Ve=wp.data,qe=Ve.withSelect,We=Ve.withDispatch,Ze=wp.compose.compose,Ke=/[\s#]/g,Je=[],Ye=function(e){f()(a,e);var t=Se(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedLayout:!1,selectedDevice:"Desktop"},e.onLayoutSelect=e.onLayoutSelect.bind(d()(e)),e.getColumnsFromLayout=e.getColumnsFromLayout.bind(d()(e)),e.getLayoutsSelector=e.getLayoutsSelector.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Je.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Je.push(e)):Je.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Je.push(e)),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId;t.columns;if(this.state.selectedLayout){var i=this.getColumnsFromLayout(this.state.selectedLayout);i.forEach((function(e){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",e),void 0,l,!1)})),a({columns:i.length}),this.setState({selectedLayout:!1})}else{var r=wp.data.select("core/block-editor").getBlocksByClientId(l)[0];if(r)a({columns:r.innerBlocks.length})}}},{key:"getColumnsFromLayout",value:function(e){var t=this,a=[],l=e.split("-"),i=0;return l.forEach((function(){var e={isGrid:!0,gridId:t.props.attributes.uniqueId,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"};e.width=Number(l[i]),i++,a.push(e)})),a}},{key:"getLayoutsSelector",value:function(){var e=this;return Object(l.createElement)(Re,{label:Be("Grid","generateblocks"),instructions:Be("Select one layout to get started.","generateblocks"),className:"gb-select-layout"},Object(l.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16.66-16.66-16.66-16.66-16.66-16.66"].map((function(t){var a=e.getColumnsFromLayout(t);return Object(l.createElement)("button",{key:"layout-".concat(t),className:"gb-grid-wrapper-layout-preview-btn",onClick:function(){return e.onLayoutSelect(t)}},a.map((function(e,a){return Object(l.createElement)("div",{key:"layout-".concat(t,"-col-").concat(a),className:v()("gb-col","gb-col-".concat(e.width))})})))}))))}},{key:"onLayoutSelect",value:function(e){this.setState({selectedLayout:e})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.columns,d=i.horizontalGap,p=i.verticalGap,f=i.verticalAlignment,h=i.horizontalGapTablet,m=i.verticalGapTablet,k=i.verticalAlignmentTablet,y=i.horizontalGapMobile,w=i.verticalGapMobile,T=i.verticalAlignmentMobile,C=i.horizontalAlignment,S=i.horizontalAlignmentTablet,B=i.horizontalAlignmentMobile,D=d||0===d?d:"",E=p||0===p?p:"",j=d||0===d?d:"",R=p||0===p?p:"";h&&(j=h),m&&(R=m);var M={className:v()((e={"gb-grid-wrapper":!0},o()(e,"gb-grid-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return M=Ge("generateblocks.frontend.htmlAttributes",M,"generateblocks/grid",i),Object(l.createElement)(Pe,null,Object(l.createElement)(Fe,null,Object(l.createElement)(ze,null,Object(l.createElement)(xe,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:O("addContainer"),label:Be("Add Grid Item","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",{isGrid:!0,gridId:s,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"}),void 0,c)},showTooltip:!0}))),Object(l.createElement)(He,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{id:"gridLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:d||0===d?d:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGap:e})},onBlur:function(){!d&&generateBlocksDefaults.gridContainer.horizontalGap?n({horizontalGap:0}):n({horizontalGap:parseFloat(d)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGap:generateBlocksDefaults.gridContainer.horizontalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:p||0===p?p:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGap:e})},onBlur:function(){!p&&generateBlocksDefaults.gridContainer.verticalGap?n({verticalGap:0}):n({verticalGap:parseFloat(p)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGap:generateBlocksDefaults.gridContainer.verticalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),value:f,help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:C,options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignment:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:h||0===h?h:"",min:"0",placeholder:D,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapTablet:e})},onBlur:function(){!h&&generateBlocksDefaults.gridContainer.horizontalGapTablet?n({horizontalGapTablet:0}):n({horizontalGapTablet:parseFloat(h)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapTablet:generateBlocksDefaults.gridContainer.horizontalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:m||0===m?m:"",min:"0",placeholder:E,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapTablet:e})},onBlur:function(){!m&&generateBlocksDefaults.gridContainer.verticalGapTablet?n({verticalGapTablet:0}):n({verticalGapTablet:parseFloat(m)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapTablet:generateBlocksDefaults.gridContainer.verticalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:k,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:S,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:y||0===y?y:"",min:"0",placeholder:j,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapMobile:e})},onBlur:function(){!y&&generateBlocksDefaults.gridContainer.horizontalGapMobile?n({horizontalGapMobile:0}):n({horizontalGapMobile:parseFloat(y)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapMobile:generateBlocksDefaults.gridContainer.horizontalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:w||0===w?w:"",min:"0",placeholder:R,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapMobile:e})},onBlur:function(){!w&&generateBlocksDefaults.gridContainer.verticalGapMobile?n({verticalGapMobile:0}):n({verticalGapMobile:parseFloat(w)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapMobile:generateBlocksDefaults.gridContainer.verticalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:T,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:B,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentMobile:e})}})),Ge("generateblocks.editor.controls","","gridLayout",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Be("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"gridDocumentation",state:this.state}),Object(l.createElement)("p",null,Be("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/grid/",target:"_blank",rel:"noreferrer noopener"},Be("Visit our documentation","generateblocks")),Ge("generateblocks.editor.controls","","gridDocumentation",this.props,this.state))),Object(l.createElement)(_e,null,Object(l.createElement)(Ee,{label:Be("HTML Anchor"),help:Be("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(Ke,"-"),n({anchor:e})}})),Object(l.createElement)(X,this.props),this.props.deviceType&&Object(l.createElement)(Pe,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(ae,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(ne,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ge,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(pe,this.props)),Object(l.createElement)("div",M,b>0||this.state.selectedLayout?Object(l.createElement)(Pe,null,Object(l.createElement)(Ne,{allowedBlocks:["generateblocks/container"],renderAppender:!1})):this.getLayoutsSelector()))}}]),a}(Ae),Qe=Ze([We((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),qe((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Ye),Xe={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function $e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function et(e){for(var t=1;t Date: Wed, 16 Dec 2020 13:36:20 -0800 Subject: [PATCH 16/53] Import WP packages instead of defining them --- src/blocks/button-container/block.js | 13 +++++--- src/blocks/button-container/css/desktop.js | 9 +++-- src/blocks/button-container/css/main.js | 9 +++-- src/blocks/button-container/css/mobile.js | 9 +++-- .../button-container/css/tablet-only.js | 9 +++-- src/blocks/button-container/css/tablet.js | 9 +++-- src/blocks/button-container/deprecated.js | 8 ++--- src/blocks/button-container/edit.js | 33 ++++++++++--------- src/blocks/button/block.js | 9 +++-- src/blocks/button/css/desktop.js | 9 +++-- src/blocks/button/css/main.js | 9 +++-- src/blocks/button/css/mobile.js | 9 +++-- src/blocks/button/css/tablet-only.js | 9 +++-- src/blocks/button/css/tablet.js | 9 +++-- src/blocks/button/deprecated.js | 8 ++--- src/blocks/button/edit.js | 32 +++++++++--------- src/blocks/button/save.js | 8 ++--- src/blocks/container/block-controls.js | 28 ++++++++-------- src/blocks/container/block.js | 12 +++---- src/blocks/container/css/desktop.js | 9 +++-- src/blocks/container/css/main.js | 9 +++-- src/blocks/container/css/mobile.js | 9 +++-- src/blocks/container/css/tablet-only.js | 9 +++-- src/blocks/container/css/tablet.js | 9 +++-- src/blocks/container/deprecated.js | 10 +++--- src/blocks/container/edit.js | 28 ++++++++-------- src/blocks/grid/block.js | 13 +++++--- src/blocks/grid/css/desktop.js | 9 +++-- src/blocks/grid/css/main.js | 9 +++-- src/blocks/grid/css/mobile.js | 9 +++-- src/blocks/grid/css/tablet-only.js | 9 +++-- src/blocks/grid/css/tablet.js | 9 +++-- src/blocks/grid/deprecated.js | 8 ++--- src/blocks/grid/edit.js | 32 +++++++++--------- src/blocks/headline/block.js | 9 +++-- src/blocks/headline/css/desktop.js | 9 +++-- src/blocks/headline/css/main.js | 9 +++-- src/blocks/headline/css/mobile.js | 9 +++-- src/blocks/headline/css/tablet-only.js | 9 +++-- src/blocks/headline/css/tablet.js | 9 +++-- src/blocks/headline/deprecated.js | 8 ++--- src/blocks/headline/edit.js | 28 ++++++++-------- src/blocks/headline/element-icons.js | 4 +-- src/blocks/headline/markformat.js | 27 +++++++-------- src/blocks/headline/save.js | 8 ++--- src/blocks/headline/transforms.js | 4 +-- src/components/apply-filters/index.js | 8 +++-- src/components/color-picker/index.js | 16 +++++---- src/components/dimensions/index.js | 12 +++---- src/components/element/index.js | 4 ++- src/components/gradient/index.js | 14 +++++--- src/components/icon-picker/index.js | 16 ++++----- src/components/icon-picker/svgs-general.js | 4 ++- src/components/icon-picker/svgs-social.js | 4 ++- src/components/panel-area/index.js | 12 +++---- src/components/responsive-tabs/index.js | 16 ++++----- src/components/typography/index.js | 12 +++---- src/components/unit-picker/index.js | 12 +++---- src/components/url-input/index.js | 16 ++++----- src/dashboard.js | 20 +++++------ src/utils/get-background-image/index.js | 4 +-- 61 files changed, 443 insertions(+), 282 deletions(-) diff --git a/src/blocks/button-container/block.js b/src/blocks/button-container/block.js index 06f184805..d638f6692 100644 --- a/src/blocks/button-container/block.js +++ b/src/blocks/button-container/block.js @@ -10,12 +10,17 @@ import deprecated from './deprecated'; import blockAttributes from './attributes'; import getIcon from '../../utils/get-icon'; -const { __ } = wp.i18n; -const { registerBlockType } = wp.blocks; +import { + __, +} from '@wordpress/i18n'; -const { +import { + registerBlockType, +} from '@wordpress/blocks'; + +import { InnerBlocks, -} = wp.blockEditor; +} from '@wordpress/block-editor'; /** * Register our Button Container block. diff --git a/src/blocks/button-container/css/desktop.js b/src/blocks/button-container/css/desktop.js index 0f31466b6..37e660f46 100644 --- a/src/blocks/button-container/css/desktop.js +++ b/src/blocks/button-container/css/desktop.js @@ -1,7 +1,12 @@ import buildCSS from '../../../utils/build-css'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class DesktopCSS extends Component { render() { diff --git a/src/blocks/button-container/css/main.js b/src/blocks/button-container/css/main.js index 0adc8f32a..899feec86 100644 --- a/src/blocks/button-container/css/main.js +++ b/src/blocks/button-container/css/main.js @@ -2,8 +2,13 @@ import buildCSS from '../../../utils/build-css'; import shorthandCSS from '../../../utils/shorthand-css'; import flexboxAlignment from '../../../utils/flexbox-alignment'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class MainCSS extends Component { render() { diff --git a/src/blocks/button-container/css/mobile.js b/src/blocks/button-container/css/mobile.js index e4197f7c7..b3fc81776 100644 --- a/src/blocks/button-container/css/mobile.js +++ b/src/blocks/button-container/css/mobile.js @@ -2,8 +2,13 @@ import buildCSS from '../../../utils/build-css'; import valueWithUnit from '../../../utils/value-with-unit'; import flexboxAlignment from '../../../utils/flexbox-alignment'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class MobileCSS extends Component { render() { diff --git a/src/blocks/button-container/css/tablet-only.js b/src/blocks/button-container/css/tablet-only.js index 5b7d15f67..ea14b8cc9 100644 --- a/src/blocks/button-container/css/tablet-only.js +++ b/src/blocks/button-container/css/tablet-only.js @@ -1,7 +1,12 @@ import buildCSS from '../../../utils/build-css'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class TabletOnlyCSS extends Component { render() { diff --git a/src/blocks/button-container/css/tablet.js b/src/blocks/button-container/css/tablet.js index 6b3ad08eb..0b14911e8 100644 --- a/src/blocks/button-container/css/tablet.js +++ b/src/blocks/button-container/css/tablet.js @@ -2,8 +2,13 @@ import buildCSS from '../../../utils/build-css'; import valueWithUnit from '../../../utils/value-with-unit'; import flexboxAlignment from '../../../utils/flexbox-alignment'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class TabletCSS extends Component { render() { diff --git a/src/blocks/button-container/deprecated.js b/src/blocks/button-container/deprecated.js index c50bbe017..23489ece7 100644 --- a/src/blocks/button-container/deprecated.js +++ b/src/blocks/button-container/deprecated.js @@ -4,13 +4,13 @@ import classnames from 'classnames'; import blockAttributes from './attributes'; -const { +import { InnerBlocks, -} = wp.blockEditor; +} from '@wordpress/block-editor'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; const deprecated = [ // v1 of container block. Deprecated the gb-grid-column wrapper in save component. diff --git a/src/blocks/button-container/edit.js b/src/blocks/button-container/edit.js index b9032fe98..6750b2174 100644 --- a/src/blocks/button-container/edit.js +++ b/src/blocks/button-container/edit.js @@ -13,46 +13,49 @@ import TabletOnlyCSS from './css/tablet-only.js'; import MobileCSS from './css/mobile.js'; import PanelArea from '../../components/panel-area/'; -const { __ } = wp.i18n; // Import __() from wp.i18n -const { +import { + __, +} from '@wordpress/i18n'; + +import { Tooltip, Button, ToggleControl, ToolbarGroup, ToolbarButton, TextControl, -} = wp.components; +} from '@wordpress/components'; -const { +import { Fragment, Component, -} = wp.element; +} from '@wordpress/element'; -const { +import { InspectorControls, InnerBlocks, AlignmentToolbar, BlockControls, InspectorAdvancedControls, -} = wp.blockEditor; +} from '@wordpress/block-editor'; -const { +import { createBlock, cloneBlock, -} = wp.blocks; +} from '@wordpress/blocks'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; -const { +import { withSelect, withDispatch, -} = wp.data; +} from '@wordpress/data'; -const { +import { compose, -} = wp.compose; +} from '@wordpress/compose'; /** * Regular expression matching invalid anchor characters for replacement. diff --git a/src/blocks/button/block.js b/src/blocks/button/block.js index 76c43713b..d9eb5ee07 100644 --- a/src/blocks/button/block.js +++ b/src/blocks/button/block.js @@ -10,8 +10,13 @@ import deprecated from './deprecated'; import blockAttributes from './attributes'; import getIcon from '../../utils/get-icon'; -const { __ } = wp.i18n; -const { registerBlockType } = wp.blocks; +import { + __, +} from '@wordpress/i18n'; + +import { + registerBlockType, +} from '@wordpress/blocks'; /** * Register our Button block. diff --git a/src/blocks/button/css/desktop.js b/src/blocks/button/css/desktop.js index bc9ac9542..c356f3d90 100644 --- a/src/blocks/button/css/desktop.js +++ b/src/blocks/button/css/desktop.js @@ -1,8 +1,13 @@ /* eslint-disable quotes */ import buildCSS from '../../../utils/build-css'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class DesktopCSS extends Component { render() { diff --git a/src/blocks/button/css/main.js b/src/blocks/button/css/main.js index 530253633..4b2919f3a 100644 --- a/src/blocks/button/css/main.js +++ b/src/blocks/button/css/main.js @@ -4,8 +4,13 @@ import valueWithUnit from '../../../utils/value-with-unit'; import shorthandCSS from '../../../utils/shorthand-css'; import hexToRGBA from '../../../utils/hex-to-rgba'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class MainCSS extends Component { render() { diff --git a/src/blocks/button/css/mobile.js b/src/blocks/button/css/mobile.js index 57f5ab0d6..5570ebd35 100644 --- a/src/blocks/button/css/mobile.js +++ b/src/blocks/button/css/mobile.js @@ -2,8 +2,13 @@ import buildCSS from '../../../utils/build-css'; import valueWithUnit from '../../../utils/value-with-unit'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class MobileCSS extends Component { render() { diff --git a/src/blocks/button/css/tablet-only.js b/src/blocks/button/css/tablet-only.js index 9b530323d..8ed5e91e4 100644 --- a/src/blocks/button/css/tablet-only.js +++ b/src/blocks/button/css/tablet-only.js @@ -1,8 +1,13 @@ /* eslint-disable quotes */ import buildCSS from '../../../utils/build-css'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class TabletOnlyCSS extends Component { render() { diff --git a/src/blocks/button/css/tablet.js b/src/blocks/button/css/tablet.js index 3aab985b4..caaee09b9 100644 --- a/src/blocks/button/css/tablet.js +++ b/src/blocks/button/css/tablet.js @@ -2,8 +2,13 @@ import buildCSS from '../../../utils/build-css'; import valueWithUnit from '../../../utils/value-with-unit'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class TabletCSS extends Component { render() { diff --git a/src/blocks/button/deprecated.js b/src/blocks/button/deprecated.js index 20e09b2f7..ec676f9c2 100644 --- a/src/blocks/button/deprecated.js +++ b/src/blocks/button/deprecated.js @@ -5,13 +5,13 @@ import classnames from 'classnames'; import blockAttributes from './attributes'; import sanitizeSVG from '../../utils/sanitize-svg'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; -const { +import { RichText, -} = wp.blockEditor; +} from '@wordpress/block-editor'; const deprecated = [ // v1 of button block. diff --git a/src/blocks/button/edit.js b/src/blocks/button/edit.js index be94a7932..a27efc1d1 100644 --- a/src/blocks/button/edit.js +++ b/src/blocks/button/edit.js @@ -21,46 +21,46 @@ import MobileCSS from './css/mobile.js'; import sanitizeSVG from '../../utils/sanitize-svg'; import Element from '../../components/element'; -const { +import { __, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { TabPanel, TextControl, ToolbarGroup, ToolbarButton, Button, -} = wp.components; +} from '@wordpress/components'; -const { +import { Fragment, Component, -} = wp.element; +} from '@wordpress/element'; -const { +import { InspectorControls, InspectorAdvancedControls, RichText, BlockControls, -} = wp.blockEditor; +} from '@wordpress/block-editor'; -const { +import { cloneBlock, -} = wp.blocks; +} from '@wordpress/blocks'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; -const { +import { withSelect, withDispatch, -} = wp.data; +} from '@wordpress/data'; -const { +import { compose, -} = wp.compose; +} from '@wordpress/compose'; /** * Regular expression matching invalid anchor characters for replacement. diff --git a/src/blocks/button/save.js b/src/blocks/button/save.js index 706bdbe51..cb92d1049 100644 --- a/src/blocks/button/save.js +++ b/src/blocks/button/save.js @@ -6,13 +6,13 @@ import classnames from 'classnames'; import sanitizeSVG from '../../utils/sanitize-svg'; import Element from '../../components/element'; -const { +import { RichText, -} = wp.blockEditor; +} from '@wordpress/block-editor'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; export default ( { attributes } ) => { const { diff --git a/src/blocks/container/block-controls.js b/src/blocks/container/block-controls.js index 1646d7e3d..980f7345e 100644 --- a/src/blocks/container/block-controls.js +++ b/src/blocks/container/block-controls.js @@ -3,35 +3,35 @@ import getIcon from '../../utils/get-icon'; /** * WordPress Dependencies */ -const { +import { __, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { addFilter, -} = wp.hooks; +} from '@wordpress/hooks'; -const { +import { Fragment, -} = wp.element; +} from '@wordpress/element'; -const { +import { BlockControls, BlockAlignmentToolbar, -} = wp.blockEditor; +} from '@wordpress/block-editor'; -const { +import { ToolbarGroup, ToolbarButton, -} = wp.components; +} from '@wordpress/components'; -const { +import { createHigherOrderComponent, -} = wp.compose; +} from '@wordpress/compose'; -const { +import { cloneBlock, -} = wp.blocks; +} from '@wordpress/blocks'; const hasWideAlignSupport = generateBlocksInfo.hasWideAlignSupport; const WIDE_ALIGNMENTS = [ 'wide', 'full' ]; diff --git a/src/blocks/container/block.js b/src/blocks/container/block.js index 5ee47c4bf..4268632f6 100644 --- a/src/blocks/container/block.js +++ b/src/blocks/container/block.js @@ -10,17 +10,17 @@ import blockAttributes from './attributes'; import deprecated from './deprecated'; import getIcon from '../../utils/get-icon'; -const { +import { __, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { registerBlockType, -} = wp.blocks; +} from '@wordpress/blocks'; -const { +import { InnerBlocks, -} = wp.blockEditor; +} from '@wordpress/block-editor'; /** * Register our Container block. diff --git a/src/blocks/container/css/desktop.js b/src/blocks/container/css/desktop.js index 6679f3f2c..e8de9c03a 100644 --- a/src/blocks/container/css/desktop.js +++ b/src/blocks/container/css/desktop.js @@ -1,8 +1,13 @@ /* eslint-disable quotes */ import buildCSS from '../../../utils/build-css'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class DesktopCSS extends Component { render() { diff --git a/src/blocks/container/css/main.js b/src/blocks/container/css/main.js index ac117e8db..73a9687c2 100644 --- a/src/blocks/container/css/main.js +++ b/src/blocks/container/css/main.js @@ -5,8 +5,13 @@ import hexToRGBA from '../../../utils/hex-to-rgba'; import valueWithUnit from '../../../utils/value-with-unit'; import getBackgroundImageCSS from '../../../utils/get-background-image'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class MainCSS extends Component { render() { diff --git a/src/blocks/container/css/mobile.js b/src/blocks/container/css/mobile.js index 3247e6944..db540e1c3 100644 --- a/src/blocks/container/css/mobile.js +++ b/src/blocks/container/css/mobile.js @@ -2,8 +2,13 @@ import buildCSS from '../../../utils/build-css'; import valueWithUnit from '../../../utils/value-with-unit'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class MobileCSS extends Component { render() { diff --git a/src/blocks/container/css/tablet-only.js b/src/blocks/container/css/tablet-only.js index 57c181216..916f07bfa 100644 --- a/src/blocks/container/css/tablet-only.js +++ b/src/blocks/container/css/tablet-only.js @@ -1,8 +1,13 @@ /* eslint-disable quotes */ import buildCSS from '../../../utils/build-css'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class TabletOnlyCSS extends Component { render() { diff --git a/src/blocks/container/css/tablet.js b/src/blocks/container/css/tablet.js index 292469220..079d01350 100644 --- a/src/blocks/container/css/tablet.js +++ b/src/blocks/container/css/tablet.js @@ -2,8 +2,13 @@ import buildCSS from '../../../utils/build-css'; import valueWithUnit from '../../../utils/value-with-unit'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class TabletCSS extends Component { render() { diff --git a/src/blocks/container/deprecated.js b/src/blocks/container/deprecated.js index 648842770..1e7e926c8 100644 --- a/src/blocks/container/deprecated.js +++ b/src/blocks/container/deprecated.js @@ -5,13 +5,13 @@ import classnames from 'classnames'; import Element from '../../components/element'; import blockAttributes from './attributes'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; -const { +import { InnerBlocks, -} = wp.blockEditor; +} from '@wordpress/block-editor'; const deprecated = [ // v1 of container block. Deprecated the gb-grid-column wrapper in save component. @@ -62,7 +62,7 @@ const deprecated = [ return (
{ children }
} diff --git a/src/blocks/container/edit.js b/src/blocks/container/edit.js index 1e5faa40c..a1566eda7 100644 --- a/src/blocks/container/edit.js +++ b/src/blocks/container/edit.js @@ -19,12 +19,12 @@ import TabletCSS from './css/tablet.js'; import TabletOnlyCSS from './css/tablet-only.js'; import MobileCSS from './css/mobile.js'; -const { +import { __, sprintf, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { RangeControl, Button, ButtonGroup, @@ -38,34 +38,34 @@ const { Tooltip, Dropdown, TabPanel, -} = wp.components; +} from '@wordpress/components'; -const { +import { Fragment, Component, -} = wp.element; +} from '@wordpress/element'; -const { +import { InspectorControls, InnerBlocks, MediaUpload, AlignmentToolbar, InspectorAdvancedControls, BlockControls, -} = wp.blockEditor; +} from '@wordpress/block-editor'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; -const { +import { withSelect, withDispatch, -} = wp.data; +} from '@wordpress/data'; -const { +import { compose, -} = wp.compose; +} from '@wordpress/compose'; /** * Regular expression matching invalid anchor characters for replacement. diff --git a/src/blocks/grid/block.js b/src/blocks/grid/block.js index 1e2ee0601..08c1ee3b9 100644 --- a/src/blocks/grid/block.js +++ b/src/blocks/grid/block.js @@ -9,12 +9,17 @@ import blockAttributes from './attributes'; import getIcon from '../../utils/get-icon'; import deprecated from './deprecated'; -const { __ } = wp.i18n; -const { registerBlockType } = wp.blocks; +import { + __, +} from '@wordpress/i18n'; -const { +import { + registerBlockType, +} from '@wordpress/blocks'; + +import { InnerBlocks, -} = wp.blockEditor; +} from '@wordpress/block-editor'; /** * Register our Grid block. diff --git a/src/blocks/grid/css/desktop.js b/src/blocks/grid/css/desktop.js index e4895164c..d3f7b51ac 100644 --- a/src/blocks/grid/css/desktop.js +++ b/src/blocks/grid/css/desktop.js @@ -1,7 +1,12 @@ import buildCSS from '../../../utils/build-css'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class DesktopCSS extends Component { render() { diff --git a/src/blocks/grid/css/main.js b/src/blocks/grid/css/main.js index 442faa1a0..7345d5037 100644 --- a/src/blocks/grid/css/main.js +++ b/src/blocks/grid/css/main.js @@ -1,8 +1,13 @@ import buildCSS from '../../../utils/build-css'; import valueWithUnit from '../../../utils/value-with-unit'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class MainCSS extends Component { render() { diff --git a/src/blocks/grid/css/mobile.js b/src/blocks/grid/css/mobile.js index e56a23bf4..2cbde63bc 100644 --- a/src/blocks/grid/css/mobile.js +++ b/src/blocks/grid/css/mobile.js @@ -1,8 +1,13 @@ import buildCSS from '../../../utils/build-css'; import valueWithUnit from '../../../utils/value-with-unit'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class MobileCSS extends Component { render() { diff --git a/src/blocks/grid/css/tablet-only.js b/src/blocks/grid/css/tablet-only.js index b1805d41f..b4db9d84e 100644 --- a/src/blocks/grid/css/tablet-only.js +++ b/src/blocks/grid/css/tablet-only.js @@ -1,7 +1,12 @@ import buildCSS from '../../../utils/build-css'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class TabletOnlyCSS extends Component { render() { diff --git a/src/blocks/grid/css/tablet.js b/src/blocks/grid/css/tablet.js index 935593b21..c1e2cb71b 100644 --- a/src/blocks/grid/css/tablet.js +++ b/src/blocks/grid/css/tablet.js @@ -1,8 +1,13 @@ import buildCSS from '../../../utils/build-css'; import valueWithUnit from '../../../utils/value-with-unit'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class TabletCSS extends Component { render() { diff --git a/src/blocks/grid/deprecated.js b/src/blocks/grid/deprecated.js index 222fcf9d6..9fa080ca0 100644 --- a/src/blocks/grid/deprecated.js +++ b/src/blocks/grid/deprecated.js @@ -4,13 +4,13 @@ import classnames from 'classnames'; import blockAttributes from './attributes'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; -const { +import { InnerBlocks, -} = wp.blockEditor; +} from '@wordpress/block-editor'; const deprecated = [ // v1 of container block. Deprecated the gb-grid-column wrapper in save component. diff --git a/src/blocks/grid/edit.js b/src/blocks/grid/edit.js index ddf109a3c..2b3c7366a 100644 --- a/src/blocks/grid/edit.js +++ b/src/blocks/grid/edit.js @@ -13,47 +13,47 @@ import TabletOnlyCSS from './css/tablet-only.js'; import MobileCSS from './css/mobile.js'; import PanelArea from '../../components/panel-area/'; -const { +import { __, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { TextControl, SelectControl, Placeholder, Button, ToolbarGroup, ToolbarButton, -} = wp.components; +} from '@wordpress/components'; -const { +import { Fragment, Component, -} = wp.element; +} from '@wordpress/element'; -const { +import { InspectorControls, InnerBlocks, BlockControls, InspectorAdvancedControls, -} = wp.blockEditor; +} from '@wordpress/block-editor'; -const { +import { createBlock, -} = wp.blocks; +} from '@wordpress/blocks'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; -const { +import { withSelect, withDispatch, -} = wp.data; +} from '@wordpress/data'; -const { +import { compose, -} = wp.compose; +} from '@wordpress/compose'; /** * Regular expression matching invalid anchor characters for replacement. diff --git a/src/blocks/headline/block.js b/src/blocks/headline/block.js index 1882b074d..77f7f9670 100644 --- a/src/blocks/headline/block.js +++ b/src/blocks/headline/block.js @@ -12,8 +12,13 @@ import transforms from './transforms'; import deprecated from './deprecated'; import getIcon from '../../utils/get-icon'; -const { __ } = wp.i18n; -const { registerBlockType } = wp.blocks; +import { + __, +} from '@wordpress/i18n'; + +import { + registerBlockType, +} from '@wordpress/blocks'; /** * Register our Headline block. diff --git a/src/blocks/headline/css/desktop.js b/src/blocks/headline/css/desktop.js index ee0049cf2..4211f0915 100644 --- a/src/blocks/headline/css/desktop.js +++ b/src/blocks/headline/css/desktop.js @@ -1,7 +1,12 @@ import buildCSS from '../../../utils/build-css'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class DesktopCSS extends Component { render() { diff --git a/src/blocks/headline/css/main.js b/src/blocks/headline/css/main.js index 67c34433c..dcb858f1a 100644 --- a/src/blocks/headline/css/main.js +++ b/src/blocks/headline/css/main.js @@ -4,8 +4,13 @@ import valueWithUnit from '../../../utils/value-with-unit'; import shorthandCSS from '../../../utils/shorthand-css'; import hexToRGBA from '../../../utils/hex-to-rgba'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class MainCSS extends Component { render() { diff --git a/src/blocks/headline/css/mobile.js b/src/blocks/headline/css/mobile.js index 0242092f1..815ad5baa 100644 --- a/src/blocks/headline/css/mobile.js +++ b/src/blocks/headline/css/mobile.js @@ -2,8 +2,13 @@ import buildCSS from '../../../utils/build-css'; import flexboxAlignment from '../../../utils/flexbox-alignment'; import valueWithUnit from '../../../utils/value-with-unit'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class MobileCSS extends Component { render() { diff --git a/src/blocks/headline/css/tablet-only.js b/src/blocks/headline/css/tablet-only.js index fcd93d6b9..aad6db7ee 100644 --- a/src/blocks/headline/css/tablet-only.js +++ b/src/blocks/headline/css/tablet-only.js @@ -1,7 +1,12 @@ import buildCSS from '../../../utils/build-css'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class TabletOnlyCSS extends Component { render() { diff --git a/src/blocks/headline/css/tablet.js b/src/blocks/headline/css/tablet.js index d8f739dee..09ef2b003 100644 --- a/src/blocks/headline/css/tablet.js +++ b/src/blocks/headline/css/tablet.js @@ -2,8 +2,13 @@ import buildCSS from '../../../utils/build-css'; import flexboxAlignment from '../../../utils/flexbox-alignment'; import valueWithUnit from '../../../utils/value-with-unit'; -const { Component } = wp.element; -const { applyFilters } = wp.hooks; +import { + Component, +} from '@wordpress/element'; + +import { + applyFilters, +} from '@wordpress/hooks'; export default class TabletCSS extends Component { render() { diff --git a/src/blocks/headline/deprecated.js b/src/blocks/headline/deprecated.js index 2b490dbac..31b0244fe 100644 --- a/src/blocks/headline/deprecated.js +++ b/src/blocks/headline/deprecated.js @@ -2,13 +2,13 @@ import blockAttributes from './attributes'; import classnames from 'classnames'; import sanitizeSVG from '../../utils/sanitize-svg'; -const { +import { RichText, -} = wp.blockEditor; +} from '@wordpress/block-editor'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; const deprecated = [ // v2 - remove wrapper. diff --git a/src/blocks/headline/edit.js b/src/blocks/headline/edit.js index d56a15eaa..1219874d2 100644 --- a/src/blocks/headline/edit.js +++ b/src/blocks/headline/edit.js @@ -21,44 +21,44 @@ import Element from '../../components/element'; import './markformat'; import HeadingLevelIcon from './element-icons'; -const { +import { __, sprintf, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { TextControl, ToolbarGroup, SelectControl, ToggleControl, Button, -} = wp.components; +} from '@wordpress/components'; -const { +import { Fragment, Component, -} = wp.element; +} from '@wordpress/element'; -const { +import { InspectorControls, RichText, BlockControls, AlignmentToolbar, InspectorAdvancedControls, -} = wp.blockEditor; +} from '@wordpress/block-editor'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; -const { +import { withSelect, withDispatch, -} = wp.data; +} from '@wordpress/data'; -const { +import { compose, -} = wp.compose; +} from '@wordpress/compose'; /** * Regular expression matching invalid anchor characters for replacement. diff --git a/src/blocks/headline/element-icons.js b/src/blocks/headline/element-icons.js index 96bcba777..13ee4d3b2 100644 --- a/src/blocks/headline/element-icons.js +++ b/src/blocks/headline/element-icons.js @@ -1,10 +1,10 @@ /** * WordPress dependencies */ -const { +import { Path, SVG, -} = wp.components; +} from '@wordpress/components'; /** * HeadingLevelIcon props. diff --git a/src/blocks/headline/markformat.js b/src/blocks/headline/markformat.js index f4692d8f1..bd6eb2f7c 100644 --- a/src/blocks/headline/markformat.js +++ b/src/blocks/headline/markformat.js @@ -1,32 +1,29 @@ -const { +import { __, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { Fragment, -} = wp.element; +} from '@wordpress/element'; -const { +import { toggleFormat, registerFormatType, -} = wp.richText; +} from '@wordpress/richText'; -const { +import { RichTextToolbarButton, RichTextShortcut, -} = wp.blockEditor; +} from '@wordpress/block-editor'; -const { +import { withSelect, -} = wp.data; +} from '@wordpress/data'; -const { +import { ifCondition, -} = wp.compose; - -const { compose, -} = wp.compose; +} from '@wordpress/compose'; const icon = ; const name = 'generateblocks/mark'; diff --git a/src/blocks/headline/save.js b/src/blocks/headline/save.js index ee2b4ac07..c21811852 100644 --- a/src/blocks/headline/save.js +++ b/src/blocks/headline/save.js @@ -6,13 +6,13 @@ import classnames from 'classnames'; import sanitizeSVG from '../../utils/sanitize-svg'; import Element from '../../components/element'; -const { +import { RichText, -} = wp.blockEditor; +} from '@wordpress/block-editor'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; export default ( { attributes } ) => { const { diff --git a/src/blocks/headline/transforms.js b/src/blocks/headline/transforms.js index 2938e7205..398470816 100644 --- a/src/blocks/headline/transforms.js +++ b/src/blocks/headline/transforms.js @@ -1,9 +1,9 @@ /** * WordPress dependencies */ -const { +import { createBlock, -} = wp.blocks; +} from '@wordpress/blocks'; const transforms = { from: [ diff --git a/src/components/apply-filters/index.js b/src/components/apply-filters/index.js index f4e2afcc5..61d3c7e77 100644 --- a/src/components/apply-filters/index.js +++ b/src/components/apply-filters/index.js @@ -1,11 +1,13 @@ /** * WordPress dependencies */ -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; -const { Component } = wp.element; +import { + Component, +} from '@wordpress/element'; /** * Component Class diff --git a/src/components/color-picker/index.js b/src/components/color-picker/index.js index 833a31d9c..8f1c75a0b 100644 --- a/src/components/color-picker/index.js +++ b/src/components/color-picker/index.js @@ -5,22 +5,26 @@ import getIcon from '../../utils/get-icon'; // Import CSS import './editor.scss'; -const { Component } = wp.element; +import { + Component, +} from '@wordpress/element'; -const { __ } = wp.i18n; +import { + __, +} from '@wordpress/i18n'; -const { +import { Tooltip, BaseControl, ColorPicker, RangeControl, Popover, Button, -} = wp.components; +} from '@wordpress/components'; -const { +import { ColorPalette, -} = wp.blockEditor; +} from '@wordpress/block-editor'; export default class GenerateBlocksColorPicker extends Component { constructor() { diff --git a/src/components/dimensions/index.js b/src/components/dimensions/index.js index 245269b0c..017c857b9 100644 --- a/src/components/dimensions/index.js +++ b/src/components/dimensions/index.js @@ -9,20 +9,20 @@ import UnitPicker from '../unit-picker'; /** * WordPress dependencies */ -const { +import { __, sprintf, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { Component, Fragment, -} = wp.element; +} from '@wordpress/element'; -const { +import { Button, Tooltip, -} = wp.components; +} from '@wordpress/components'; class DimensionsControl extends Component { constructor() { diff --git a/src/components/element/index.js b/src/components/element/index.js index 0a1b6778b..d8ac191a9 100644 --- a/src/components/element/index.js +++ b/src/components/element/index.js @@ -1,4 +1,6 @@ -const { createElement } = wp.element; +import { + createElement, +} from '@wordpress/element'; export default function Element( { tagName, htmlAttrs, children } ) { return createElement( diff --git a/src/components/gradient/index.js b/src/components/gradient/index.js index a84964775..96ba0bf5b 100644 --- a/src/components/gradient/index.js +++ b/src/components/gradient/index.js @@ -7,16 +7,22 @@ import ColorPicker from '../color-picker'; /** * WordPress dependencies */ -const { __ } = wp.i18n; -const { Component, Fragment } = wp.element; +import { + __, +} from '@wordpress/i18n'; -const { +import { + Component, + Fragment, +} from '@wordpress/element'; + +import { BaseControl, ToggleControl, TextControl, RangeControl, SelectControl, -} = wp.components; +} from '@wordpress/components'; /** * Typography Component diff --git a/src/components/icon-picker/index.js b/src/components/icon-picker/index.js index 008dbde17..7b8cd415b 100644 --- a/src/components/icon-picker/index.js +++ b/src/components/icon-picker/index.js @@ -9,17 +9,17 @@ import sanitizeSVG from '../../utils/sanitize-svg'; /** * WordPress dependencies */ -const { +import { __, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { Component, Fragment, renderToString, -} = wp.element; +} from '@wordpress/element'; -const { +import { BaseControl, SelectControl, ToggleControl, @@ -28,11 +28,11 @@ const { Button, PanelBody, PanelRow, -} = wp.components; +} from '@wordpress/components'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; /** * Typography Component diff --git a/src/components/icon-picker/svgs-general.js b/src/components/icon-picker/svgs-general.js index 3ec387535..70ddad2ec 100644 --- a/src/components/icon-picker/svgs-general.js +++ b/src/components/icon-picker/svgs-general.js @@ -1,7 +1,9 @@ /** * WordPress dependencies */ -const { _x } = wp.i18n; +import { + _x, +} from '@wordpress/i18n'; const svgs = { clock: { diff --git a/src/components/icon-picker/svgs-social.js b/src/components/icon-picker/svgs-social.js index ec2e30831..81d49748e 100644 --- a/src/components/icon-picker/svgs-social.js +++ b/src/components/icon-picker/svgs-social.js @@ -1,7 +1,9 @@ /** * WordPress dependencies */ -const { _x } = wp.i18n; +import { + _x, +} from '@wordpress/i18n'; const svgs = { facebook: { diff --git a/src/components/panel-area/index.js b/src/components/panel-area/index.js index a0b5bcdd8..27cc0bf6e 100644 --- a/src/components/panel-area/index.js +++ b/src/components/panel-area/index.js @@ -1,16 +1,16 @@ import ApplyFilters from '../apply-filters/'; -const { +import { PanelBody, -} = wp.components; +} from '@wordpress/components'; -const { +import { Component, -} = wp.element; +} from '@wordpress/element'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; /** * Component Class diff --git a/src/components/responsive-tabs/index.js b/src/components/responsive-tabs/index.js index 414451f07..4cfe12d1c 100644 --- a/src/components/responsive-tabs/index.js +++ b/src/components/responsive-tabs/index.js @@ -1,22 +1,22 @@ import './editor.scss'; -const { +import { Component, Fragment, -} = wp.element; +} from '@wordpress/element'; -const { +import { __, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { Tooltip, Button, -} = wp.components; +} from '@wordpress/components'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; export default class ResponsiveTabs extends Component { render() { diff --git a/src/components/typography/index.js b/src/components/typography/index.js index 9fadb6938..9ed3c9b57 100644 --- a/src/components/typography/index.js +++ b/src/components/typography/index.js @@ -8,22 +8,22 @@ import UnitPicker from '../unit-picker'; /** * WordPress dependencies */ -const { +import { __, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { Component, Fragment, -} = wp.element; +} from '@wordpress/element'; -const { +import { BaseControl, SelectControl, ToggleControl, TextControl, Button, -} = wp.components; +} from '@wordpress/components'; /** * Typography Component diff --git a/src/components/unit-picker/index.js b/src/components/unit-picker/index.js index 7a46387cf..0e0510024 100644 --- a/src/components/unit-picker/index.js +++ b/src/components/unit-picker/index.js @@ -1,21 +1,21 @@ // Import CSS import './editor.scss'; -const { +import { Component, -} = wp.element; +} from '@wordpress/element'; -const { +import { __, sprintf, _x, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { ButtonGroup, Button, Tooltip, -} = wp.components; +} from '@wordpress/components'; export default class UnitChooser extends Component { render() { diff --git a/src/components/url-input/index.js b/src/components/url-input/index.js index d3804c159..412d7c204 100644 --- a/src/components/url-input/index.js +++ b/src/components/url-input/index.js @@ -3,22 +3,22 @@ import classnames from 'classnames'; // Import CSS import './editor.scss'; -const { +import { __, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { Component, -} = wp.element; +} from '@wordpress/element'; -const { +import { Button, ToggleControl, -} = wp.components; +} from '@wordpress/components'; -const { +import { URLInput, -} = wp.blockEditor; +} from '@wordpress/block-editor'; export default class ButtonURLInput extends Component { constructor() { diff --git a/src/dashboard.js b/src/dashboard.js index f6b7dcf37..5beb9c467 100644 --- a/src/dashboard.js +++ b/src/dashboard.js @@ -1,11 +1,11 @@ /** * WordPress dependencies */ -const { +import { __, -} = wp.i18n; +} from '@wordpress/i18n'; -const { +import { BaseControl, Button, PanelBody, @@ -14,21 +14,19 @@ const { Spinner, ToggleControl, SelectControl, -} = wp.components; +} from '@wordpress/components'; -const { +import { render, Component, Fragment, -} = wp.element; +} from '@wordpress/element'; -const { - apiFetch, -} = wp; +import apiFetch from '@wordpress/api-fetch'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; /** * Internal dependencies diff --git a/src/utils/get-background-image/index.js b/src/utils/get-background-image/index.js index 0f32b3203..cc441d8bc 100644 --- a/src/utils/get-background-image/index.js +++ b/src/utils/get-background-image/index.js @@ -1,8 +1,8 @@ import hexToRGBA from '../hex-to-rgba'; -const { +import { applyFilters, -} = wp.hooks; +} from '@wordpress/hooks'; export default function getBackgroundImageCSS( type, props ) { const { From 816add5ca0aae0c573b61d8af8451dd3f1b80824 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Wed, 16 Dec 2020 13:36:26 -0800 Subject: [PATCH 17/53] Update dist --- dist/blocks.asset.php | 2 +- dist/blocks.js | 28 ++++++++++++++-------------- dist/dashboard.asset.php | 2 +- dist/dashboard.js | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index 8182aac69..b640d997c 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-element', 'wp-polyfill'), 'version' => '699f338dac3446914f758e69e0401200'); \ No newline at end of file + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '7abda06de5247b62232e556dbfeadae1'); \ No newline at end of file diff --git a/dist/blocks.js b/dist/blocks.js index 6750b1c1d..fa393f951 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -1,15 +1,15 @@ -!function(e){var t={};function a(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(l,i,function(t){return e[t]}.bind(null,i));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=39)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var a=0,l=new Array(t);a1?a-1:0),i=1;i/gm),L=i(/^data-[\-\w.\u00B7-\uFFFF]/),P=i(/^aria-[\-\w]+$/),A=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=i(/^(?:\w+script|data):/i),H=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function F(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:_(),a=function(t){return e(t)};if(a.version="2.2.4",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var i=t.document,r=t.document,n=t.DocumentFragment,o=t.HTMLTemplateElement,c=t.Node,s=t.NodeFilter,w=t.NamedNodeMap,G=void 0===w?t.NamedNodeMap||t.MozNamedAttrMap:w,V=t.Text,q=t.Comment,W=t.DOMParser,Z=t.trustedTypes;if("function"==typeof o){var K=r.createElement("template");K.content&&K.content.ownerDocument&&(r=K.content.ownerDocument)}var J=I(Z,i),Y=J&&Ee?J.createHTML(""):"",Q=r,X=Q.implementation,$=Q.createNodeIterator,ee=Q.getElementsByTagName,te=Q.createDocumentFragment,ae=i.importNode,le={};try{le=T(r).documentMode?r.documentMode:{}}catch(e){}var ie={};a.isSupported=X&&void 0!==X.createHTMLDocument&&9!==le;var re=z,ne=x,oe=L,ce=P,se=U,ge=H,ue=A,be=null,de=v({},[].concat(F(O),F(C),F(S),F(B),F(D))),pe=null,fe=v({},[].concat(F(E),F(j),F(R),F(M))),he=null,me=null,ke=!0,ye=!0,we=!1,ve=!1,Te=!1,Oe=!1,Ce=!1,Se=!1,Be=!1,De=!0,Ee=!1,je=!0,Re=!0,Me=!1,ze={},xe=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),Le=null,Pe=v({},["audio","video","img","source","image","track"]),Ae=null,Ue=v({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),He=null,Ne=r.createElement("form"),Fe=function(e){He&&He===e||(e&&"object"===(void 0===e?"undefined":N(e))||(e={}),e=T(e),be="ALLOWED_TAGS"in e?v({},e.ALLOWED_TAGS):de,pe="ALLOWED_ATTR"in e?v({},e.ALLOWED_ATTR):fe,Ae="ADD_URI_SAFE_ATTR"in e?v(T(Ue),e.ADD_URI_SAFE_ATTR):Ue,Le="ADD_DATA_URI_TAGS"in e?v(T(Pe),e.ADD_DATA_URI_TAGS):Pe,he="FORBID_TAGS"in e?v({},e.FORBID_TAGS):{},me="FORBID_ATTR"in e?v({},e.FORBID_ATTR):{},ze="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ye=!1!==e.ALLOW_DATA_ATTR,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=e.SAFE_FOR_TEMPLATES||!1,Te=e.WHOLE_DOCUMENT||!1,Se=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,De=!1!==e.RETURN_DOM_IMPORT,Ee=e.RETURN_TRUSTED_TYPE||!1,Ce=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Re=!1!==e.KEEP_CONTENT,Me=e.IN_PLACE||!1,ue=e.ALLOWED_URI_REGEXP||ue,ve&&(ye=!1),Be&&(Se=!0),ze&&(be=v({},[].concat(F(D))),pe=[],!0===ze.html&&(v(be,O),v(pe,E)),!0===ze.svg&&(v(be,C),v(pe,j),v(pe,M)),!0===ze.svgFilters&&(v(be,S),v(pe,j),v(pe,M)),!0===ze.mathMl&&(v(be,B),v(pe,R),v(pe,M))),e.ADD_TAGS&&(be===de&&(be=T(be)),v(be,e.ADD_TAGS)),e.ADD_ATTR&&(pe===fe&&(pe=T(pe)),v(pe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&v(Ae,e.ADD_URI_SAFE_ATTR),Re&&(be["#text"]=!0),Te&&v(be,["html","head","body"]),be.table&&(v(be,["tbody"]),delete he.tbody),l&&l(e),He=e)},_e=function(e){b(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=Y}catch(t){e.remove()}}},Ie=function(e,t){try{b(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(a.removed,{attribute:null,from:t})}t.removeAttribute(e)},Ge=function(e){var t=void 0,a=void 0;if(Ce)e=""+e;else{var l=p(e,/^[\r\n\t ]+/);a=l&&l[0]}var i=J?J.createHTML(e):e;try{t=(new W).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var n=(t=X.createHTMLDocument("")).body;n.parentNode.removeChild(n.parentNode.firstElementChild),n.outerHTML=i}return e&&a&&t.body.insertBefore(r.createTextNode(a),t.body.childNodes[0]||null),ee.call(t,Te?"html":"body")[0]},Ve=function(e){return $.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,(function(){return s.FILTER_ACCEPT}),!1)},qe=function(e){return!(e instanceof V||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof G&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},We=function(e){return"object"===(void 0===c?"undefined":N(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":N(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ze=function(e,t,l){ie[e]&&g(ie[e],(function(e){e.call(a,t,l,He)}))},Ke=function(e){var t=void 0;if(Ze("beforeSanitizeElements",e,null),qe(e))return _e(e),!0;if(p(e.nodeName,/[\u0080-\uFFFF]/))return _e(e),!0;var l=d(e.nodeName);if(Ze("uponSanitizeElement",e,{tagName:l,allowedTags:be}),!We(e.firstElementChild)&&(!We(e.content)||!We(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return _e(e),!0;if(!be[l]||he[l]){if(Re&&!xe[l]&&"function"==typeof e.insertAdjacentHTML)try{var i=e.innerHTML;e.insertAdjacentHTML("AfterEnd",J?J.createHTML(i):i)}catch(e){}return _e(e),!0}return"noscript"!==l&&"noembed"!==l||!k(/<\/no(script|embed)/i,e.innerHTML)?"math"===l&&We(e.firstElementChild)&&e.querySelectorAll(":not("+B.join("):not(")+")").length>0||"svg"===l&&e.querySelectorAll("p, br, table, form, noscript").length>0?(_e(e),!0):(ve&&3===e.nodeType&&(t=e.textContent,t=f(t,re," "),t=f(t,ne," "),e.textContent!==t&&(b(a.removed,{element:e.cloneNode()}),e.textContent=t)),Ze("afterSanitizeElements",e,null),!1):(_e(e),!0)},Je=function(e,t,a){if(je&&("id"===t||"name"===t)&&(a in r||a in Ne))return!1;if(ye&&k(oe,t));else if(ke&&k(ce,t));else{if(!pe[t]||me[t])return!1;if(Ae[t]);else if(k(ue,f(a,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==h(a,"data:")||!Le[e])if(we&&!k(se,f(a,ge,"")));else if(a)return!1}return!0},Ye=function(e){var t=void 0,l=void 0,i=void 0,r=void 0;Ze("beforeSanitizeAttributes",e,null);var n=e.attributes;if(n){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(r=n.length;r--;){var c=t=n[r],s=c.name,g=c.namespaceURI;if(l=m(t.value),i=d(s),o.attrName=i,o.attrValue=l,o.keepAttr=!0,o.forceKeepAttr=void 0,Ze("uponSanitizeAttribute",e,o),l=o.attrValue,!o.forceKeepAttr&&(Ie(s,e),o.keepAttr))if(k(/\/>/i,l))Ie(s,e);else{ve&&(l=f(l,re," "),l=f(l,ne," "));var b=e.nodeName.toLowerCase();if(Je(b,i,l))try{g?e.setAttributeNS(g,s,l):e.setAttribute(s,l),u(a.removed)}catch(e){}}}Ze("afterSanitizeAttributes",e,null)}},Qe=function e(t){var a=void 0,l=Ve(t);for(Ze("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)Ze("uponSanitizeShadowNode",a,null),Ke(a)||(a.content instanceof n&&e(a.content),Ye(a));Ze("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e,l){var r=void 0,o=void 0,s=void 0,g=void 0,u=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!We(e)){if("function"!=typeof e.toString)throw y("toString is not a function");if("string"!=typeof(e=e.toString()))throw y("dirty is not a string, aborting")}if(!a.isSupported){if("object"===N(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(We(e))return t.toStaticHTML(e.outerHTML)}return e}if(Oe||Fe(l),a.removed=[],"string"==typeof e&&(Me=!1),Me);else if(e instanceof c)1===(o=(r=Ge("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Se&&!ve&&!Te&&-1===e.indexOf("<"))return J&&Ee?J.createHTML(e):e;if(!(r=Ge(e)))return Se?null:Y}r&&Ce&&_e(r.firstChild);for(var b=Ve(Me?e:r);s=b.nextNode();)3===s.nodeType&&s===g||Ke(s)||(s.content instanceof n&&Qe(s.content),Ye(s),g=s);if(g=null,Me)return e;if(Se){if(Be)for(u=te.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return De&&(u=ae.call(i,u,!0)),u}var d=Te?r.outerHTML:r.innerHTML;return ve&&(d=f(d,re," "),d=f(d,ne," ")),J&&Ee?J.createHTML(d):d},a.setConfig=function(e){Fe(e),Oe=!0},a.clearConfig=function(){He=null,Oe=!1},a.isValidAttribute=function(e,t,a){He||Fe({});var l=d(e),i=d(t);return Je(l,i,a)},a.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],b(ie[e],t))},a.removeHook=function(e){ie[e]&&u(ie[e])},a.removeHooks=function(e){ie[e]&&(ie[e]=[])},a.removeAllHooks=function(){ie={}},a}()}()},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var a=[],l=!0,i=!1,r=void 0;try{for(var n,o=e[Symbol.iterator]();!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){var l=a(15);e.exports=function(e){if(Array.isArray(e))return l(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,function(e,t,a){"use strict";a.r(t);var l=a(0),i=(a(17),a(3)),r=a.n(i),n=a(2),o=a.n(n),c=a(4),s=a.n(c),g=a(5),u=a.n(g),b=a(9),d=a.n(b),p=a(6),f=a.n(p),h=a(7),m=a.n(h),k=a(1),y=a.n(k),w=a(8),v=a.n(w),T=wp.element.createElement;function O(e){return"tabs-desktop"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},T("path",{d:"M18.95 4H4.55C3.55589 4 2.75 4.76751 2.75 5.71429V14.2857C2.75 15.2325 3.55589 16 4.55 16H18.95C19.9441 16 20.75 15.2325 20.75 14.2857V5.71429C20.75 4.76751 19.9441 4 18.95 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),T("path",{d:"M1.75 18C1.19772 18 0.75 18.4477 0.75 19C0.75 19.5523 1.19772 20 1.75 20H21.75C22.3023 20 22.75 19.5523 22.75 19C22.75 18.4477 22.3023 18 21.75 18H1.75ZM9 18.8C8.86193 18.8 8.75 18.9119 8.75 19.05C8.75 19.1881 8.86193 19.3 9 19.3H14.5C14.6381 19.3 14.75 19.1881 14.75 19.05C14.75 18.9119 14.6381 18.8 14.5 18.8H9Z",stroke:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):"tabs-tablet"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"M16.6429 4H7.35714C6.33147 4 5.5 4.71634 5.5 5.6V18.4C5.5 19.2837 6.33147 20 7.35714 20H16.6429C17.6685 20 18.5 19.2837 18.5 18.4V5.6C18.5 4.71634 17.6685 4 16.6429 4Z"}),T("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"M15.5714 4H8.42857C7.63959 4 7 4.71634 7 5.6V18.4C7 19.2837 7.63959 20 8.42857 20H15.5714C16.3604 20 17 19.2837 17 18.4V5.6C17 4.71634 16.3604 4 15.5714 4Z"}),T("path",{d:"M12 17.5H12.01"})):"sync"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"m7.34133533 6.23855964v-1.98499625c-2.17404351.03150788-4.03300825 1.38634659-4.85221305 3.27681921-.31507877.72468117-.44111028 1.51237809-.4096024 2.33158289.06301575 1.13428361.47261815 2.20555141 1.16579145 3.05626411.37809452.4411102.28357089 1.1027757-.18904726 1.4493623-.44111028.3150788-1.07126782.2205551-1.41785447-.1890473-.85071268-1.0397599-1.38634658-2.3315829-1.54388597-3.7179294-.12603151-1.00825211-.03150788-2.01650417.25206302-2.9302326.88222055-3.02475619 3.6864216-5.26181546 6.99474868-5.29332334v-1.98499624c0-.09452363.12603151-.15753939.22055514-.09452363l4.09602403 2.99324831c.0630157.06301575.0630157.15753938 0 .18904726l-4.09602403 2.99324831c-.09452363.06301575-.22055514 0-.22055514-.09452363zm.22055514 13.17029256c.09452363.0630158.22055514 0 .22055514-.0945236v-1.9849963c3.30832709-.0315078 6.11252809-2.2685671 6.99474869-5.2933233.252063-.9137284.3780945-1.8904726.252063-2.93023256-.1575394-1.38634658-.7246812-2.67816954-1.543886-3.71792948-.3465866-.44111028-.9767441-.53563391-1.4178544-.18904726-.4726182.34658665-.5671418 1.00825206-.1890473 1.44936234.6931733.85071268 1.1027757 1.89047262 1.1657915 3.05626407.0315078.81920479-.1260315 1.63840959-.4096024 2.33158289-.787697 1.8904726-2.6466617 3.2453113-4.85221309 3.2768192v-1.9849962c0-.0945237-.12603151-.1575394-.22055514-.0945237l-4.096024 2.9932483c-.06301576.0630158-.06301576.1575394 0 .1890473z",transform:"translate(4 2)"})):"headline"===e?T("svg",{width:24,height:24,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4",fill:"#1e72bd"})):"grid"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M20 .6c0-.3-.2-.6-.5-.6H.5C.2 0 0 .3 0 .6v4.6c0 .3.2.6.5.6h19c.3 0 .5-.3.5-.6V.6zM6.7 7.7c0-.3-.2-.6-.5-.6H.5c-.3 0-.5.3-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.3.5-.6l.1-4.6zM19.9 7.7c0-.3-.2-.6-.6-.6H8.6c-.4 0-.6.3-.6.6v4.5c0 .3.2.6.6.6h10.8c.3 0 .6-.3.6-.6l-.1-4.5z",fill:"#1d72ba"}),T("path",{d:"M20 14.8c0-.3-.2-.6-.5-.6h-5.6c-.3 0-.5.2-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.2.5-.6v-4.6zM12 14.8c0-.3-.2-.5-.5-.5H.5c-.3 0-.5.2-.5.5v4.6c0 .4.2.6.5.6h11c.3 0 .5-.2.5-.5v-4.7z",fill:"#1d72ba"})):"container"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M2.8 3.4c0-.4.3-.7.7-.7h1.2V0H3.4C1.5 0 0 1.5 0 3.4v1.2h2.8V3.4zM0 7.4h2.8v5.3H0zM17.2 7.4H20v5.3h-2.8zM17.2 16.6c0 .4-.3.7-.7.7h-1.2V20h1.2c1.9 0 3.4-1.5 3.4-3.4v-1.2h-2.8v1.2h.1zM7.4 0h5.3v2.8H7.4zM3.4 17.2c-.4 0-.7-.3-.7-.7v-1.2H0v1.2c0 2 1.5 3.5 3.4 3.5h1.2v-2.8H3.4zM7.4 17.2h5.3V20H7.4zM16.6 2.8c.4 0 .7.3.7.7v1.2H20V3.4C20 1.5 18.5 0 16.6 0h-1.2v2.8h1.2z",fill:"#1e72bd"})):"button"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M19.2 0H.8C.4 0 0 .4 0 .8v6.4c0 .4.4.8.8.8h18.4c.4 0 .8-.4.8-.8V.8c0-.4-.4-.8-.8-.8zM18.4 12H1.6c-.9 0-1.6.7-1.6 1.6v4.8c0 .9.7 1.6 1.6 1.6h16.8c.9 0 1.6-.7 1.6-1.6v-4.8c0-.9-.7-1.6-1.6-1.6zm.4 6.4c0 .2-.2.4-.4.4H1.6c-.2 0-.4-.2-.4-.4v-4.8c0-.2.2-.4.4-.4h16.8c.2 0 .4.2.4.4v4.8z",fill:"#1e72bd"})):"paragraph"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20"},T("path",{d:"M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71A.984.984 0 0 0 15 2z"})):"spacing"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),T("path",{d:"M40.452,77.705c7.802,1.393 23.794,1.393 31.596,0l13.635,13.635c-12.215,3.213 -46.652,3.213 -58.866,0l13.635,-13.635Zm50.888,-50.888c3.213,12.215 3.213,46.653 0,58.866l-13.635,-13.635c1.393,-7.801 1.393,-23.794 0,-31.596l13.635,-13.635Zm-70.18,0l13.635,13.635c-1.393,7.802 -1.393,23.794 0,31.596l-13.635,13.635c-3.213,-12.213 -3.213,-46.651 0,-58.866Zm5.657,-5.657c12.214,-3.213 46.652,-3.213 58.866,0l-13.635,13.635c-7.801,-1.393 -23.795,-1.393 -31.596,0l-13.635,-13.635Z"})):"advanced"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,37.215c6.632,2.124 6.632,23.512 0,25.636c-6.632,2.124 -73.42,2.124 -80.052,0c-6.632,-2.124 -6.632,-23.512 0,-25.636c6.632,-2.124 73.42,-2.124 80.052,0Z"}),T("path",{d:"M48.61,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"}),T("path",{d:"M90.955,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"})):"backgrounds"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M1.491,87.777l37.79,-37.79l31.352,31.352c2.412,2.171 5.656,0 5.656,0l17.248,-17.247l13.186,13.186l4.796,4.797c-0.971,12.199 -2.726,21.685 -5.249,24.208c-8.29,8.289 -91.776,8.289 -100.066,0c-2.113,-2.113 -3.687,-9.113 -4.713,-18.506Z"}),T("path",{d:"M0.631,77.323c-1.742,-27.728 0.125,-65.658 5.573,-71.106c8.29,-8.289 91.776,-8.289 100.066,0c5.07,5.07 7.039,38.265 5.89,65.185l-15.795,-15.795c-2.412,-2.172 -5.657,0 -5.657,0l-17.247,17.246l-31.351,-31.351c-0.731,-0.658 -1.036,-1 -2.619,-1.166c-0.263,0 -0.477,-0.075 -1.245,0.131c-0.912,0.244 -1.793,1.035 -1.793,1.035l-35.822,35.821Zm76.434,-59.584c7.115,0 12.891,5.776 12.891,12.89c0,7.114 -5.776,12.89 -12.891,12.89c-7.114,0 -12.89,-5.776 -12.89,-12.89c0,-7.114 5.776,-12.89 12.89,-12.89Z"})):"colors"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradients"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M112.426,48.746c0.503,25.204 -1.545,52.939 -6.143,57.537c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.289,-8.288 91.748,-8.289 100.061,-0.004c0,0 0.005,0.004 0.005,0.004c3.691,3.692 5.739,22.295 6.143,42.529Zm-16.154,-32.526c-6.656,-6.628 -73.418,-6.627 -80.048,0.004c-6.631,6.63 -6.632,73.392 -0.004,80.048l80.052,-80.052Z"})):"icons"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),T("path",{d:"M89.605,22.895c5.527,5.526 5.527,61.184 0,66.71c-5.526,5.527 -61.184,5.527 -66.71,0c-5.527,-5.526 -5.527,-61.184 0,-66.71c5.526,-5.527 61.184,-5.527 66.71,0Zm-21.066,62.31l0,-2.731c-0.648,-0.074 -1.272,-0.199 -1.87,-0.374c-0.599,-0.174 -1.148,-0.374 -1.646,-0.598c-0.699,-0.299 -1.235,-0.755 -1.609,-1.366c-0.374,-0.611 -0.561,-1.353 -0.561,-2.226l0,-29.703l-0.561,-0.561l-18.331,0.972l0,2.731c0.748,0.075 1.577,0.25 2.488,0.524c0.91,0.274 1.589,0.561 2.038,0.86c0.599,0.399 1.098,0.929 1.497,1.59c0.399,0.661 0.598,1.428 0.598,2.301l0,21.773c0,0.923 -0.162,1.665 -0.486,2.226c-0.324,0.561 -0.885,0.991 -1.683,1.29c-0.449,0.175 -0.986,0.3 -1.609,0.374c-0.624,0.075 -1.26,0.138 -1.908,0.187l0,2.731l23.643,0Zm-12.978,-59.459c4.76,0 8.625,3.864 8.625,8.625c0,4.76 -3.865,8.625 -8.625,8.625c-4.76,0 -8.625,-3.865 -8.625,-8.625c0,-4.761 3.865,-8.625 8.625,-8.625Z"})):"typography"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-8.783,78.583l0,-2.817c-0.661,-0.026 -1.481,-0.165 -2.46,-0.417c-0.979,-0.251 -1.773,-0.562 -2.381,-0.932c-0.9,-0.609 -1.601,-1.23 -2.103,-1.865c-0.503,-0.635 -0.953,-1.468 -1.349,-2.5l-18.769,-48.569l-3.175,0c-2.672,6.878 -5.714,14.721 -9.126,23.53c-3.266,8.43 -6.265,16.06 -8.998,22.891l-11.672,-28.684l-2.304,0c-1.939,4.742 -4.148,10.149 -6.625,16.222c-2.477,6.072 -4.743,11.543 -6.798,16.412c-0.403,0.949 -0.816,1.692 -1.238,2.23c-0.423,0.538 -1.018,1.053 -1.786,1.545c-0.48,0.292 -1.095,0.524 -1.844,0.698c-0.749,0.173 -1.373,0.278 -1.872,0.314l0,1.942l15.382,0l0,-1.942c-1.518,-0.073 -2.881,-0.31 -4.091,-0.711c-1.209,-0.401 -1.814,-0.966 -1.814,-1.696c0,-0.31 0.048,-0.711 0.144,-1.204c0.096,-0.492 0.268,-1.13 0.518,-1.914c0.269,-0.803 0.571,-1.678 0.907,-2.626c0.336,-0.948 0.773,-2.061 1.311,-3.338l14.316,0l3.399,8.699c0.012,0.03 0.024,0.06 0.036,0.092c-0.161,0.119 -0.329,0.237 -0.503,0.355c-0.661,0.423 -1.508,0.76 -2.539,1.012c-1.032,0.251 -1.892,0.403 -2.58,0.456l0,2.817l21.19,0l0,-2.817c-2.09,-0.106 -3.968,-0.45 -5.635,-1.032c-1.666,-0.582 -2.499,-1.402 -2.499,-2.46c0,-0.45 0.066,-1.032 0.198,-1.746c0.132,-0.714 0.37,-1.64 0.714,-2.777c0.371,-1.164 0.787,-2.434 1.25,-3.81c0.463,-1.375 1.065,-2.989 1.806,-4.841l19.721,0l4.682,12.619c0.106,0.264 0.186,0.568 0.238,0.912c0.053,0.344 0.08,0.635 0.08,0.873c0,0.582 -0.681,1.072 -2.044,1.468c-1.362,0.397 -3.075,0.662 -5.138,0.794l0,2.817l23.451,0Zm-56.864,-15.865l-6.193,-15.045l-6.078,15.045l12.271,0Zm34.167,-7.15l-8.532,-21.824l-8.373,21.824l16.905,0Z"})):"addContainer"===e?T("svg",{width:20,height:20,viewBox:"0 0 64 64",fillRule:"evenodd"},T("path",{d:"M41.454,57.126l0,6.409c-6.088,0.286 -12.82,0.286 -18.908,0l0,-6.409c5.957,0.366 12.951,0.366 18.908,0Zm-33.93,-8.899c0.458,3.226 1.086,5.568 1.883,6.366c0.798,0.797 3.14,1.425 6.366,1.883l0,6.592c-6.084,-0.578 -10.706,-1.519 -12.015,-2.826c-1.307,-1.309 -2.248,-5.931 -2.826,-12.015l6.592,0Zm55.544,0c-0.578,6.084 -1.519,10.706 -2.826,12.015c-1.309,1.307 -5.931,2.248 -12.015,2.826l0,-6.592c3.226,-0.458 5.568,-1.086 6.366,-1.883c0.797,-0.798 1.425,-3.14 1.883,-6.366l6.592,0Zm0.467,-25.681c0.286,6.088 0.286,12.82 0,18.908l-6.409,0c0.366,-5.957 0.366,-12.951 0,-18.908l6.409,0Zm-56.661,0c-0.366,5.957 -0.366,12.951 0,18.908l-6.409,0c-0.286,-6.088 -0.286,-12.82 0,-18.908l6.409,0Zm41.353,-21.614c6.084,0.578 10.706,1.519 12.015,2.826c1.307,1.309 2.248,5.931 2.826,12.015l-6.592,0c-0.458,-3.226 -1.086,-5.568 -1.883,-6.366c-0.798,-0.797 -3.14,-1.425 -6.366,-1.883l0,-6.592Zm-32.454,0l0,6.592c-3.226,0.458 -5.568,1.086 -6.366,1.883c-0.797,0.798 -1.425,3.14 -1.883,6.366l-6.592,0c0.578,-6.084 1.519,-10.706 2.826,-12.015c1.309,-1.307 5.931,-2.248 12.015,-2.826Zm6.773,-0.467c6.088,-0.286 12.82,-0.286 18.908,0l0,6.409c-5.957,-0.366 -12.951,-0.366 -18.908,0l0,-6.409Z"}),T("path",{d:"M18.03,29.037l11.007,0l0,-11.007l6.773,0l0,11.007l11.007,0l0,6.773l-11.007,0l0,11.007l-6.773,0l0,-11.007l-11.007,0l0,-6.773Z"})):"gradient"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},T("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"documentation"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.755 6.245c8.327 8.326 8.327 92.184 0 100.51-8.326 8.327-92.184 8.327-100.51 0-8.327-8.326-8.327-92.184 0-100.51 8.326-8.327 92.184-8.327 100.51 0zm-92.661 93.896C9.279 84 9.781 23.714 15.834 17.661c2.491-2.491 19.588-4.132 26.354-4.712 4.748-.408 10.115.671 14.243 1.23 4.128-.559 9.495-1.638 14.243-1.23 6.766.58 23.863 2.221 26.354 4.712 6.053 6.053 6.791 66.339 1.976 82.48-4.729-1.977-19.708-3.436-26.784-3.853-5.234-.308-11.129.739-15.671 1.354-4.543-.615-10.437-1.662-15.672-1.354-7.075.417-22.054 1.876-26.783 3.853z"}),T("path",{d:"M50.188 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM50.277 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 73.799c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0z"}),T("path",{d:"M89.909 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM89.998 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM89.998 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0z"})):"layout"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.719 6.238c8.362 8.362 8.362 92.208 0 100.57-8.362 8.287-92.208 8.287-100.495 0-8.362-8.362-8.362-92.208 0-100.57 8.287-8.286 92.133-8.286 100.495 0zm-9.417 9.417c6.78 6.78 6.78 74.957 0 81.737-6.78 6.78-74.956 6.78-81.661 0-6.78-6.78-6.78-74.957 0-81.737 6.705-6.78 74.881-6.78 81.661 0z"}),T("path",{d:"M93.988 48.877c.602 17.477-.754 37.893-3.993 41.132-3.164 3.164-22.75 4.52-40.002 4.068v-45.2h43.995zm-75.108 0h23.58v44.899c-9.718-.603-17.553-1.808-19.512-3.767-3.24-3.24-4.595-23.655-4.068-41.132zm.377-7.533c.678-9.19 1.883-16.498 3.691-18.306 5.575-5.575 61.472-5.575 67.047 0 1.808 1.808 3.013 9.115 3.691 18.306h-74.43z"})):"shapes"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.756,6.244C115.081,14.571 115.081,98.429 106.756,106.756C98.429,115.081 14.571,115.081 6.244,106.756C-2.081,98.429 -2.081,14.571 6.244,6.244C14.571,-2.081 98.429,-2.081 106.756,6.244ZM67.875,88.052C67.875,86.977 67.003,86.105 65.928,86.105L47.072,86.105C45.997,86.105 45.125,86.977 45.125,88.052L45.125,91.948C45.125,93.023 45.997,93.896 47.072,93.896L65.928,93.896C67.003,93.896 67.875,93.023 67.875,91.948L67.875,88.052ZM57.899,31.409L59.305,31.409C60.853,31.409 62.11,30.152 62.11,28.604L62.11,28.089L73.263,57.543C73.757,58.333 73.731,59.161 73.731,59.403C73.729,62.659 65.231,69.414 65.375,83.611L47.625,83.611C47.769,69.414 39.271,62.659 39.269,59.403C39.269,59.161 39.243,58.333 39.737,57.543L50.89,28.089L50.89,28.604C50.89,30.152 52.147,31.409 53.695,31.409L55.101,31.409C55.111,35.738 55.142,50.367 55.098,54.109C55.093,54.494 54.907,54.988 54.68,55.45C52.915,56.169 51.669,57.903 51.669,59.925C51.669,62.592 53.834,64.756 56.5,64.756C59.166,64.756 61.331,62.592 61.331,59.925C61.331,57.903 60.085,56.169 58.32,55.45C58.093,54.988 57.907,54.494 57.902,54.109C57.858,50.367 57.889,35.738 57.899,31.409ZM52.227,19.451L52.227,18.881C52.227,17.702 53.185,16.745 54.364,16.745L58.636,16.745C59.815,16.745 60.773,17.702 60.773,18.881L60.773,19.451L88.831,19.451C89.457,17.867 91.002,16.745 92.807,16.745C95.165,16.745 97.08,18.66 97.08,21.018C97.08,23.376 95.165,25.29 92.807,25.29C91.03,25.29 89.505,24.203 88.861,22.658L71.798,22.658C83.83,28.003 92.531,39.501 93.898,53.148L94.93,53.148C96.109,53.148 97.067,54.105 97.067,55.284L97.067,59.557C97.067,60.736 96.109,61.693 94.93,61.693L90.657,61.693C89.478,61.693 88.521,60.736 88.521,59.557L88.521,55.284C88.521,54.105 89.478,53.148 90.657,53.148L90.922,53.148C89.19,37.24 76.627,24.564 60.773,22.659L60.773,23.154C60.773,24.333 59.815,25.29 58.636,25.29L54.364,25.29C53.185,25.29 52.227,24.333 52.227,23.154L52.227,22.688C36.484,24.689 24.036,37.318 22.312,53.148L22.329,53.148C23.508,53.148 24.466,54.105 24.466,55.284L24.466,59.557C24.466,60.736 23.508,61.693 22.329,61.693L18.056,61.693C16.877,61.693 15.92,60.736 15.92,59.557L15.92,55.284C15.92,54.105 16.877,53.148 18.056,53.148L19.336,53.148C20.703,39.501 29.405,28.003 41.437,22.658L24.139,22.658C23.495,24.203 21.97,25.29 20.193,25.29C17.835,25.29 15.92,23.376 15.92,21.018C15.92,18.66 17.835,16.745 20.193,16.745C21.998,16.745 23.543,17.867 24.169,19.451L52.227,19.451Z"})):void 0}a(18);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var S=wp.element,B=S.Component,D=S.Fragment,E=wp.i18n.__,j=wp.components,R=j.Tooltip,M=j.Button,z=wp.hooks.applyFilters,x=function(e){f()(a,e);var t=C(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.onClick,a=e.selectedDevice;return Object(l.createElement)(D,null,Object(l.createElement)("div",{className:"gb-responsive-tabs"},Object(l.createElement)(R,{text:E("Show options for all devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Desktop"===a,onClick:function(){t("Desktop")}},E("Desktop","generateblocks"))),Object(l.createElement)(R,{text:E("Show options for tablet devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Tablet"===a,onClick:function(){t("Tablet")}},E("Tablet","generateblocks"))),Object(l.createElement)(R,{text:E("Show options for mobile devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Mobile"===a,onClick:function(){t("Mobile")}},E("Mobile","generateblocks")))),z("generateblocks.editor.controls","","afterResponsiveTabs",this.props,this.state))}}]),a}(B);a(19);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var P=wp.element.Component,A=wp.i18n,U=A.__,H=A.sprintf,N=A._x,F=wp.components,_=F.ButtonGroup,I=F.Button,G=F.Tooltip,V=function(e){f()(a,e);var t=L(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.label,a=e.value,i=e.onClick,r=e.units;return Object(l.createElement)("div",{className:"components-gblocks-units-control-header__units"},Object(l.createElement)("div",{className:"components-gblocks-units-control-label__units"},t),Object(l.createElement)("div",{className:"components-gblocks-control__units"},Object(l.createElement)(_,{className:"components-gblocks-control-buttons__units","aria-label":U("Select Units","generateblocks")},r.map((function(e){var t=e;return"px"===e&&(t=N("Pixel","A size unit for CSS markup","generateblocks")),"em"===e&&(t=N("Em","A size unit for CSS markup","generateblocks")),"%"===e&&(t=N("Percentage","A size unit for CSS markup","generateblocks")),"deg"===e&&(t=N("Degree","A size unit for CSS markup","generateblocks")),Object(l.createElement)(G -/* translators: Unit type (px, em, %) */,{text:H(U("%s Units","generateblocks"),t),key:e},Object(l.createElement)(I,{key:e,className:"components-gblocks-control-button__units--"+e,isSmall:!0,isPrimary:a===e,"aria-pressed":a===e -/* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":H(U("%s Units","generateblocks"),t),onClick:function(){return i(e)}},e))})))))}}]),a}(P),q=a(12),W=a.n(q);function Z(e){for(var t="",a=0,l=Object.entries(e);a0&&(t+=o)}}return t}function K(e,t){return!(!e&&0!==e)&&e+t}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Y=wp.element.Component,Q=wp.hooks.applyFilters,X=function(e){f()(a,e);var t=J(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Q("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGap,i=e.verticalGap,r=e.verticalAlignment,n=e.horizontalAlignment,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":r,"justify-content":n,"margin-left":"-"+a/2+"px","margin-right":"-"+a/2+"px"}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a/2+"px","padding-right":a/2+"px","margin-bottom":K(i,"px")}],o=Q("generateblocks.editor.mainCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(Y);function $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ee=wp.element.Component,te=wp.hooks.applyFilters,ae=function(e){f()(a,e);var t=$(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=te("generateblocks.editor.desktopCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ee);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ie=wp.element.Component,re=wp.hooks.applyFilters,ne=function(e){f()(a,e);var t=le(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=re("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapTablet,i=e.verticalGapTablet,r=e.verticalAlignmentTablet,n=e.horizontalAlignmentTablet,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=re("generateblocks.editor.tabletCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(ie);function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ce=wp.element.Component,se=wp.hooks.applyFilters,ge=function(e){f()(a,e);var t=oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=se("generateblocks.editor.tabletOnlyCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ce);function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var be=wp.element.Component,de=wp.hooks.applyFilters,pe=function(e){f()(a,e);var t=ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=de("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapMobile,i=e.verticalGapMobile,r=e.verticalAlignmentMobile,n=e.horizontalAlignmentMobile,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=de("generateblocks.editor.mobileCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(be),fe=a(11),he=a.n(fe);function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ke=wp.hooks.applyFilters,ye=function(e){f()(a,e);var t=me(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.children;return ke(t,a||"",this.props)}}]),a}(wp.element.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ve=wp.components.PanelBody,Te=wp.element.Component,Oe=wp.hooks.applyFilters,Ce=function(e){f()(a,e);var t=we(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=void 0!==t&&t,i=e.initialOpen,r=void 0!==i&&i,n=e.icon,o=e.className,c=e.id,s=e.state,g=e.showPanel,u=void 0===g||g,b=e.children;if(!Oe("generateblocks.editor.showPanel",u,c,this.props))return null;var d=!0;return""===b&&(d=!1),"object"===he()(b)&&(d=Object.values(b).some((function(e){return null!==e&&!1!==e&&""!==e}))),d?Object(l.createElement)(ye,{name:"generateblocks.panel."+c,props:this.props,state:s},a?Object(l.createElement)(ve,{title:a,initialOpen:r,icon:n,className:o},Oe("generateblocks.editor.panelContents",b,c,this.props)):Object(l.createElement)(ve,null,Oe("generateblocks.editor.panelContents",b,c,this.props))):null}}]),a}(Te);function Se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Be=wp.i18n.__,De=wp.components,Ee=De.TextControl,je=De.SelectControl,Re=De.Placeholder,Me=De.Button,ze=De.ToolbarGroup,xe=De.ToolbarButton,Le=wp.element,Pe=Le.Fragment,Ae=Le.Component,Ue=wp.blockEditor,He=Ue.InspectorControls,Ne=Ue.InnerBlocks,Fe=Ue.BlockControls,_e=Ue.InspectorAdvancedControls,Ie=wp.blocks.createBlock,Ge=wp.hooks.applyFilters,Ve=wp.data,qe=Ve.withSelect,We=Ve.withDispatch,Ze=wp.compose.compose,Ke=/[\s#]/g,Je=[],Ye=function(e){f()(a,e);var t=Se(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedLayout:!1,selectedDevice:"Desktop"},e.onLayoutSelect=e.onLayoutSelect.bind(d()(e)),e.getColumnsFromLayout=e.getColumnsFromLayout.bind(d()(e)),e.getLayoutsSelector=e.getLayoutsSelector.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Je.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Je.push(e)):Je.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Je.push(e)),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId;t.columns;if(this.state.selectedLayout){var i=this.getColumnsFromLayout(this.state.selectedLayout);i.forEach((function(e){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",e),void 0,l,!1)})),a({columns:i.length}),this.setState({selectedLayout:!1})}else{var r=wp.data.select("core/block-editor").getBlocksByClientId(l)[0];if(r)a({columns:r.innerBlocks.length})}}},{key:"getColumnsFromLayout",value:function(e){var t=this,a=[],l=e.split("-"),i=0;return l.forEach((function(){var e={isGrid:!0,gridId:t.props.attributes.uniqueId,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"};e.width=Number(l[i]),i++,a.push(e)})),a}},{key:"getLayoutsSelector",value:function(){var e=this;return Object(l.createElement)(Re,{label:Be("Grid","generateblocks"),instructions:Be("Select one layout to get started.","generateblocks"),className:"gb-select-layout"},Object(l.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16.66-16.66-16.66-16.66-16.66-16.66"].map((function(t){var a=e.getColumnsFromLayout(t);return Object(l.createElement)("button",{key:"layout-".concat(t),className:"gb-grid-wrapper-layout-preview-btn",onClick:function(){return e.onLayoutSelect(t)}},a.map((function(e,a){return Object(l.createElement)("div",{key:"layout-".concat(t,"-col-").concat(a),className:v()("gb-col","gb-col-".concat(e.width))})})))}))))}},{key:"onLayoutSelect",value:function(e){this.setState({selectedLayout:e})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.columns,d=i.horizontalGap,p=i.verticalGap,f=i.verticalAlignment,h=i.horizontalGapTablet,m=i.verticalGapTablet,k=i.verticalAlignmentTablet,y=i.horizontalGapMobile,w=i.verticalGapMobile,T=i.verticalAlignmentMobile,C=i.horizontalAlignment,S=i.horizontalAlignmentTablet,B=i.horizontalAlignmentMobile,D=d||0===d?d:"",E=p||0===p?p:"",j=d||0===d?d:"",R=p||0===p?p:"";h&&(j=h),m&&(R=m);var M={className:v()((e={"gb-grid-wrapper":!0},o()(e,"gb-grid-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return M=Ge("generateblocks.frontend.htmlAttributes",M,"generateblocks/grid",i),Object(l.createElement)(Pe,null,Object(l.createElement)(Fe,null,Object(l.createElement)(ze,null,Object(l.createElement)(xe,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:O("addContainer"),label:Be("Add Grid Item","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",{isGrid:!0,gridId:s,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"}),void 0,c)},showTooltip:!0}))),Object(l.createElement)(He,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{id:"gridLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:d||0===d?d:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGap:e})},onBlur:function(){!d&&generateBlocksDefaults.gridContainer.horizontalGap?n({horizontalGap:0}):n({horizontalGap:parseFloat(d)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGap:generateBlocksDefaults.gridContainer.horizontalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:p||0===p?p:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGap:e})},onBlur:function(){!p&&generateBlocksDefaults.gridContainer.verticalGap?n({verticalGap:0}):n({verticalGap:parseFloat(p)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGap:generateBlocksDefaults.gridContainer.verticalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),value:f,help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:C,options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignment:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:h||0===h?h:"",min:"0",placeholder:D,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapTablet:e})},onBlur:function(){!h&&generateBlocksDefaults.gridContainer.horizontalGapTablet?n({horizontalGapTablet:0}):n({horizontalGapTablet:parseFloat(h)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapTablet:generateBlocksDefaults.gridContainer.horizontalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:m||0===m?m:"",min:"0",placeholder:E,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapTablet:e})},onBlur:function(){!m&&generateBlocksDefaults.gridContainer.verticalGapTablet?n({verticalGapTablet:0}):n({verticalGapTablet:parseFloat(m)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapTablet:generateBlocksDefaults.gridContainer.verticalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:k,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:S,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:y||0===y?y:"",min:"0",placeholder:j,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapMobile:e})},onBlur:function(){!y&&generateBlocksDefaults.gridContainer.horizontalGapMobile?n({horizontalGapMobile:0}):n({horizontalGapMobile:parseFloat(y)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapMobile:generateBlocksDefaults.gridContainer.horizontalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:w||0===w?w:"",min:"0",placeholder:R,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapMobile:e})},onBlur:function(){!w&&generateBlocksDefaults.gridContainer.verticalGapMobile?n({verticalGapMobile:0}):n({verticalGapMobile:parseFloat(w)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapMobile:generateBlocksDefaults.gridContainer.verticalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:T,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:B,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentMobile:e})}})),Ge("generateblocks.editor.controls","","gridLayout",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Be("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"gridDocumentation",state:this.state}),Object(l.createElement)("p",null,Be("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/grid/",target:"_blank",rel:"noreferrer noopener"},Be("Visit our documentation","generateblocks")),Ge("generateblocks.editor.controls","","gridDocumentation",this.props,this.state))),Object(l.createElement)(_e,null,Object(l.createElement)(Ee,{label:Be("HTML Anchor"),help:Be("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(Ke,"-"),n({anchor:e})}})),Object(l.createElement)(X,this.props),this.props.deviceType&&Object(l.createElement)(Pe,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(ae,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(ne,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ge,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(pe,this.props)),Object(l.createElement)("div",M,b>0||this.state.selectedLayout?Object(l.createElement)(Pe,null,Object(l.createElement)(Ne,{allowedBlocks:["generateblocks/container"],renderAppender:!1})):this.getLayoutsSelector()))}}]),a}(Ae),Qe=Ze([We((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),qe((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Ye),Xe={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function $e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function et(e){for(var t=1;t #block-"+t]=[{height:"100%"}]),ae&&"pseudo-element"===F.selector&&(ne[".gb-container-"+a+":before"]=[{content:'""',"background-image":le,"background-repeat":F.repeat,"background-position":F.position,"background-size":F.size,"background-attachment":F.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}],void 0!==F.opacity&&1!==F.opacity&&ne[".gb-container-"+a+":before"].push({opacity:F.opacity})),L&&"pseudo-element"===P&&(ne[".gb-container-"+a+":after"]=[{content:'""',"background-image":ie,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),ne[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:U}],ne[".gb-container-"+a+" a:hover"]=[{color:H}],ne[".gb-container-"+a+" > .gb-inside-container"]=[{padding:Ta(u,b,d,p,f),width:!(!s||i)&&"100%"}],(re||0===re)&&ne[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":re,position:"relative"}),"contained"!==o||i||ne[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":K(ee,"px"),"margin-left":"auto","margin-right":"auto"}),ne[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:K(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],ne[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&K(ee,"px")}],ne[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],ne["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],$.length&&(ne[".gb-container-"+a].push({position:"relative"}),ne[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],$.forEach((function(e,t){var l=[],i=t+1;"top"===$[t].location&&l.push("scaleY(-1)"),$[t].flipHorizontally&&(l.push("scaleX(-1)"),ne[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:Ct($[t].color,$[t].colorOpacity),"z-index":$[t].zindex}],"top"!==$[t].location&&"bottom"!==$[t].location||ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===$[t].location&&ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===$[t].location&&ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=$[t].width+"%";100===$[t].width&&(r="calc("+r+" + 1.3px)"),ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:K($[t].height,"px"),width:r}],"top"!==$[t].location&&"bottom"!==$[t].location||ne[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),ne=Da("generateblocks.editor.mainCSS",ne,this.props,"container"),Object(l.createElement)("style",null,Z(ne))}}]),a}(Ba);function ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ra=wp.element.Component,Ma=wp.hooks.applyFilters,za=function(e){f()(a,e);var t=ja(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Ma("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Ma("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,Z(i))}}]),a}(Ra);function xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var La=wp.element.Component,Pa=wp.hooks.applyFilters,Aa=function(e){f()(a,e);var t=xa(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Pa("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,u=e.paddingLeftTablet,b=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,w=e.borderSizeBottomTablet,v=e.borderSizeLeftTablet,T=e.borderRadiusTopRightTablet,O=e.borderRadiusBottomRightTablet,C=e.borderRadiusBottomLeftTablet,S=e.borderRadiusTopLeftTablet,B=e.borderRadiusUnit,D=e.verticalAlignmentTablet,E=e.alignmentTablet,j=e.fontSizeTablet,R=e.fontSizeUnit,M=e.shapeDividers,z=[];return z[".gb-container-"+a]=[{"border-top-left-radius":K(S,B),"border-top-right-radius":K(T,B),"border-bottom-right-radius":K(O,B),"border-bottom-left-radius":K(C,B),"margin-top":K(d,m),"margin-right":K(p,m),"margin-bottom":K(f,m),"margin-left":K(h,m),"text-align":E,"font-size":K(j,R),"min-height":K(n,o)}],(k||y||w||v)&&z[".gb-container-"+a].push({"border-top-width":K(k,"px"),"border-right-width":K(y,"px"),"border-bottom-width":K(w,"px"),"border-left-width":K(v,"px"),"border-style":"solid"}),n&&!i&&z[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==D?D:null}),i&&"inherit"!==D&&z[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":D}),z[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":K(c,b),"padding-right":K(s,b),"padding-bottom":K(g,b),"padding-left":K(u,b),width:!(!n||i)&&"100%"}],z[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:K(r,"%")}],M.length&&M.forEach((function(e,t){z[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:K(M[t].heightTablet,"px"),width:K(M[t].widthTablet,"%")}]})),z=Pa("generateblocks.editor.tabletCSS",z,this.props,"container"),Object(l.createElement)("style",null,Z(z))}}]),a}(La);function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ha=wp.element.Component,Na=wp.hooks.applyFilters,Fa=function(e){f()(a,e);var t=Ua(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Na("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Na("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,Z(a))}}]),a}(Ha);function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ia=wp.element.Component,Ga=wp.hooks.applyFilters,Va=function(e){f()(a,e);var t=_a(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Ga("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,u=e.paddingLeftMobile,b=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,w=e.borderSizeBottomMobile,v=e.borderSizeLeftMobile,T=e.borderRadiusTopRightMobile,O=e.borderRadiusBottomRightMobile,C=e.borderRadiusBottomLeftMobile,S=e.borderRadiusTopLeftMobile,B=e.borderRadiusUnit,D=e.verticalAlignmentMobile,E=e.removeVerticalGapMobile,j=e.alignmentMobile,R=e.fontSizeMobile,M=e.fontSizeUnit,z=e.orderMobile,x=e.shapeDividers,L=e.bgImage,P=e.bgOptions,A=[];return A[".gb-container-"+a]=[{"border-top-left-radius":K(S,B),"border-top-right-radius":K(T,B),"border-bottom-right-radius":K(O,B),"border-bottom-left-radius":K(C,B),"margin-top":K(d,m),"margin-right":K(p,m),"margin-bottom":K(f,m),"margin-left":K(h,m),"text-align":j,"font-size":K(R,M),"min-height":K(n,o)}],(k||y||w||v)&&A[".gb-container-"+a].push({"border-top-width":K(k,"px"),"border-right-width":K(y,"px"),"border-bottom-width":K(w,"px"),"border-left-width":K(v,"px"),"border-style":"solid"}),"inherit"!==D&&n&&!i&&A[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":D}),i&&"inherit"!==D&&A[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":D}),A[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":K(c,b),"padding-right":K(s,b),"padding-bottom":K(g,b),"padding-left":K(u,b),width:!(!n||i)&&"100%"}],A[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:K(r,"%"),order:z}],E&&(A[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),x.length&&x.forEach((function(e,t){A[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:K(x[t].heightMobile,"px"),width:K(x[t].widthMobile,"%")}]})),L&&"fixed"===P.attachment&&("element"===P.selector&&A[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===P.selector&&(A[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),A=Ga("generateblocks.editor.mobileCSS",A,this.props,"container"),Object(l.createElement)("style",null,Z(A))}}]),a}(Ia);function qa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Wa(e){for(var t=1;t0&&Object(l.createElement)(gl,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:ye,initialTabName:vl("generateblocks.editor.containerBackgroundInitialTab","",this.props,this.state)},(function(e){return Object(l.createElement)("div",null,"image"===e.name&&Object(l.createElement)(bl,null,Object(l.createElement)(il,{id:"gblocks-background-image-upload",label:Ja("Image URL","generateblocks")},Object(l.createElement)("div",{className:"gblocks-bg-image-wrapper"},Object(l.createElement)(ll,{type:"text",value:U?U.image.url:"",onChange:function(e){n(e?{bgImage:{id:"",image:{url:e}}}:{bgImage:null})}}),Object(l.createElement)("div",{className:"gblocks-background-image-action-buttons"},Object(l.createElement)(ml,{title:Ja("Set background image","generateblocks"),onSelect:function(e){var t=generateBlocksDefaults.container.bgImageSize;void 0===e.sizes[t]&&(t="full"),n({bgImage:{id:e.id,image:e.sizes[t]}})},onClose:function(){document.querySelector(".gblocks-bg-image-wrapper input").focus()},allowedTypes:["image"],value:U?U.id:"",modalClass:"editor-gb-container-background__media-modal",render:function(e){var t=e.open;return Object(l.createElement)(cl,{text:Ja("Open the Media Library","generateblocks")},Object(l.createElement)($a,{onClick:t,className:"is-secondary is-small"},Ja("Browse","generateblocks")))}}),vl("generateblocks.editor.backgroundImageActions","",t.props,t.state)))),!!U&&Object(l.createElement)("div",{className:"section-bg-settings"},H.overlay?Object(l.createElement)(bl,null,Object(l.createElement)(tl,{label:Ja("Background Color Overlay","generateblocks"),checked:!!H.overlay,onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{overlay:e})})}}),Object(l.createElement)(rl,{className:"gblocks-option-notice",status:"info",isDismissible:!1},Ja("The background color overlay option is deprecated. Toggle this option to use the new method.","generateblocks"))):Object(l.createElement)(bl,null,void 0!==U.id&&U.id&&Object(l.createElement)(al,{label:Ja("Image Size","generateblocks"),value:N,options:he,onChange:function(e){n({bgImageSize:e})}}),Object(l.createElement)(al,{label:Ja("Selector","generateblocks"),value:H.selector,options:[{label:Ja("Element","generateblocks"),value:"element"},{label:Ja("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{selector:e})})}}),Object(l.createElement)(Xa,{label:Ja("Image Opacity","generateblocks"),value:H.opacity,onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{opacity:e,selector:"pseudo-element"})})},min:0,max:1,step:.1,initialPosition:generateBlocksDefaults.container.bgOptions.opacity}),1!==H.opacity&&"pseudo-element"!==H.selector&&Object(l.createElement)(rl,{className:"gblocks-option-notice",status:"info",isDismissible:!1},Ja("Your selector must be set to Pseudo Element to use opacity.","generateblocks"))),Object(l.createElement)(ll,{label:Ja("Size","generateblocks"),value:H.size,onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{size:e})})}}),Object(l.createElement)(ll,{label:Ja("Position","generateblocks"),value:H.position,onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{position:e})})}}),Object(l.createElement)(al,{label:Ja("Repeat","generateblocks"),value:H.repeat,options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"}],onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{repeat:e})})}}),Object(l.createElement)(al,{label:Ja("Attachment","generateblocks"),value:H.attachment,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{attachment:e})})}}))),"gradient"===e.name&&Object(l.createElement)(ka,r()({},t.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorStopTwo:"gradientColorStopTwo",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",defaultColorOne:generateBlocksDefaults.container.gradientColorOne,defaultColorTwo:generateBlocksDefaults.container.gradientColorTwo})),vl("generateblocks.editor.containerBackgroundTabBody","",e,t.props,t.state))})),vl("generateblocks.editor.controls","","containerBackground",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Shapes","generateblocks"),initialOpen:!1,icon:O("shapes"),className:"gblocks-panel-label",id:"containerShapes",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!i.shapeDividers.length)}),Object(l.createElement)(il,{className:"gb-icon-chooser gb-shape-chooser"},re.map((function(e,a){var i=a+1;return Object(l.createElement)(bl,{key:a},Object(l.createElement)("div",{className:"gblocks-shape-container"},Object(l.createElement)("div",{className:v()(o()({"gblocks-shape-toggle-preview":!0},"gblocks-shape-toggle-preview-".concat(i),!0)),style:{backgroundColor:M}},void 0!==fe[re[a].shape]&&Object(l.createElement)("div",{className:"gblocks-shape-divider-preview",style:{color:re[a].color},dangerouslySetInnerHTML:{__html:va(fe[re[a].shape].icon)}})), +!function(e){var t={};function a(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(l,i,function(t){return e[t]}.bind(null,i));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=48)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var a=0,l=new Array(t);a1?a-1:0),i=1;i/gm),z=i(/^data-[\-\w.\u00B7-\uFFFF]/),L=i(/^aria-[\-\w]+$/),P=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F=i(/^(?:\w+script|data):/i),A=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function H(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:N(),a=function(t){return e(t)};if(a.version="2.2.4",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var i=t.document,r=t.document,n=t.DocumentFragment,o=t.HTMLTemplateElement,c=t.Node,s=t.NodeFilter,v=t.NamedNodeMap,G=void 0===v?t.NamedNodeMap||t.MozNamedAttrMap:v,V=t.Text,q=t.Comment,W=t.DOMParser,Z=t.trustedTypes;if("function"==typeof o){var K=r.createElement("template");K.content&&K.content.ownerDocument&&(r=K.content.ownerDocument)}var J=I(Z,i),Y=J&&Be?J.createHTML(""):"",Q=r,X=Q.implementation,$=Q.createNodeIterator,ee=Q.getElementsByTagName,te=Q.createDocumentFragment,ae=i.importNode,le={};try{le=O(r).documentMode?r.documentMode:{}}catch(e){}var ie={};a.isSupported=X&&void 0!==X.createHTMLDocument&&9!==le;var re=x,ne=M,oe=z,ce=L,se=F,ge=A,be=P,ue=null,de=w({},[].concat(H(j),H(T),H(C),H(_),H(S))),pe=null,fe=w({},[].concat(H(B),H(D),H(E),H(R))),he=null,me=null,ke=!0,ye=!0,ve=!1,we=!1,Oe=!1,je=!1,Te=!1,Ce=!1,_e=!1,Se=!0,Be=!1,De=!0,Ee=!0,Re=!1,xe={},Me=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),ze=null,Le=w({},["audio","video","img","source","image","track"]),Pe=null,Fe=w({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ae=null,Ue=r.createElement("form"),He=function(e){Ae&&Ae===e||(e&&"object"===(void 0===e?"undefined":U(e))||(e={}),e=O(e),ue="ALLOWED_TAGS"in e?w({},e.ALLOWED_TAGS):de,pe="ALLOWED_ATTR"in e?w({},e.ALLOWED_ATTR):fe,Pe="ADD_URI_SAFE_ATTR"in e?w(O(Fe),e.ADD_URI_SAFE_ATTR):Fe,ze="ADD_DATA_URI_TAGS"in e?w(O(Le),e.ADD_DATA_URI_TAGS):Le,he="FORBID_TAGS"in e?w({},e.FORBID_TAGS):{},me="FORBID_ATTR"in e?w({},e.FORBID_ATTR):{},xe="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ye=!1!==e.ALLOW_DATA_ATTR,ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,we=e.SAFE_FOR_TEMPLATES||!1,Oe=e.WHOLE_DOCUMENT||!1,Ce=e.RETURN_DOM||!1,_e=e.RETURN_DOM_FRAGMENT||!1,Se=!1!==e.RETURN_DOM_IMPORT,Be=e.RETURN_TRUSTED_TYPE||!1,Te=e.FORCE_BODY||!1,De=!1!==e.SANITIZE_DOM,Ee=!1!==e.KEEP_CONTENT,Re=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||be,we&&(ye=!1),_e&&(Ce=!0),xe&&(ue=w({},[].concat(H(S))),pe=[],!0===xe.html&&(w(ue,j),w(pe,B)),!0===xe.svg&&(w(ue,T),w(pe,D),w(pe,R)),!0===xe.svgFilters&&(w(ue,C),w(pe,D),w(pe,R)),!0===xe.mathMl&&(w(ue,_),w(pe,E),w(pe,R))),e.ADD_TAGS&&(ue===de&&(ue=O(ue)),w(ue,e.ADD_TAGS)),e.ADD_ATTR&&(pe===fe&&(pe=O(pe)),w(pe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&w(Pe,e.ADD_URI_SAFE_ATTR),Ee&&(ue["#text"]=!0),Oe&&w(ue,["html","head","body"]),ue.table&&(w(ue,["tbody"]),delete he.tbody),l&&l(e),Ae=e)},Ne=function(e){u(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=Y}catch(t){e.remove()}}},Ie=function(e,t){try{u(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){u(a.removed,{attribute:null,from:t})}t.removeAttribute(e)},Ge=function(e){var t=void 0,a=void 0;if(Te)e=""+e;else{var l=p(e,/^[\r\n\t ]+/);a=l&&l[0]}var i=J?J.createHTML(e):e;try{t=(new W).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var n=(t=X.createHTMLDocument("")).body;n.parentNode.removeChild(n.parentNode.firstElementChild),n.outerHTML=i}return e&&a&&t.body.insertBefore(r.createTextNode(a),t.body.childNodes[0]||null),ee.call(t,Oe?"html":"body")[0]},Ve=function(e){return $.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,(function(){return s.FILTER_ACCEPT}),!1)},qe=function(e){return!(e instanceof V||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof G&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},We=function(e){return"object"===(void 0===c?"undefined":U(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":U(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ze=function(e,t,l){ie[e]&&g(ie[e],(function(e){e.call(a,t,l,Ae)}))},Ke=function(e){var t=void 0;if(Ze("beforeSanitizeElements",e,null),qe(e))return Ne(e),!0;if(p(e.nodeName,/[\u0080-\uFFFF]/))return Ne(e),!0;var l=d(e.nodeName);if(Ze("uponSanitizeElement",e,{tagName:l,allowedTags:ue}),!We(e.firstElementChild)&&(!We(e.content)||!We(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return Ne(e),!0;if(!ue[l]||he[l]){if(Ee&&!Me[l]&&"function"==typeof e.insertAdjacentHTML)try{var i=e.innerHTML;e.insertAdjacentHTML("AfterEnd",J?J.createHTML(i):i)}catch(e){}return Ne(e),!0}return"noscript"!==l&&"noembed"!==l||!k(/<\/no(script|embed)/i,e.innerHTML)?"math"===l&&We(e.firstElementChild)&&e.querySelectorAll(":not("+_.join("):not(")+")").length>0||"svg"===l&&e.querySelectorAll("p, br, table, form, noscript").length>0?(Ne(e),!0):(we&&3===e.nodeType&&(t=e.textContent,t=f(t,re," "),t=f(t,ne," "),e.textContent!==t&&(u(a.removed,{element:e.cloneNode()}),e.textContent=t)),Ze("afterSanitizeElements",e,null),!1):(Ne(e),!0)},Je=function(e,t,a){if(De&&("id"===t||"name"===t)&&(a in r||a in Ue))return!1;if(ye&&k(oe,t));else if(ke&&k(ce,t));else{if(!pe[t]||me[t])return!1;if(Pe[t]);else if(k(be,f(a,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==h(a,"data:")||!ze[e])if(ve&&!k(se,f(a,ge,"")));else if(a)return!1}return!0},Ye=function(e){var t=void 0,l=void 0,i=void 0,r=void 0;Ze("beforeSanitizeAttributes",e,null);var n=e.attributes;if(n){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(r=n.length;r--;){var c=t=n[r],s=c.name,g=c.namespaceURI;if(l=m(t.value),i=d(s),o.attrName=i,o.attrValue=l,o.keepAttr=!0,o.forceKeepAttr=void 0,Ze("uponSanitizeAttribute",e,o),l=o.attrValue,!o.forceKeepAttr&&(Ie(s,e),o.keepAttr))if(k(/\/>/i,l))Ie(s,e);else{we&&(l=f(l,re," "),l=f(l,ne," "));var u=e.nodeName.toLowerCase();if(Je(u,i,l))try{g?e.setAttributeNS(g,s,l):e.setAttribute(s,l),b(a.removed)}catch(e){}}}Ze("afterSanitizeAttributes",e,null)}},Qe=function e(t){var a=void 0,l=Ve(t);for(Ze("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)Ze("uponSanitizeShadowNode",a,null),Ke(a)||(a.content instanceof n&&e(a.content),Ye(a));Ze("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e,l){var r=void 0,o=void 0,s=void 0,g=void 0,b=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!We(e)){if("function"!=typeof e.toString)throw y("toString is not a function");if("string"!=typeof(e=e.toString()))throw y("dirty is not a string, aborting")}if(!a.isSupported){if("object"===U(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(We(e))return t.toStaticHTML(e.outerHTML)}return e}if(je||He(l),a.removed=[],"string"==typeof e&&(Re=!1),Re);else if(e instanceof c)1===(o=(r=Ge("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Ce&&!we&&!Oe&&-1===e.indexOf("<"))return J&&Be?J.createHTML(e):e;if(!(r=Ge(e)))return Ce?null:Y}r&&Te&&Ne(r.firstChild);for(var u=Ve(Re?e:r);s=u.nextNode();)3===s.nodeType&&s===g||Ke(s)||(s.content instanceof n&&Qe(s.content),Ye(s),g=s);if(g=null,Re)return e;if(Ce){if(_e)for(b=te.call(r.ownerDocument);r.firstChild;)b.appendChild(r.firstChild);else b=r;return Se&&(b=ae.call(i,b,!0)),b}var d=Oe?r.outerHTML:r.innerHTML;return we&&(d=f(d,re," "),d=f(d,ne," ")),J&&Be?J.createHTML(d):d},a.setConfig=function(e){He(e),je=!0},a.clearConfig=function(){Ae=null,je=!1},a.isValidAttribute=function(e,t,a){Ae||He({});var l=d(e),i=d(t);return Je(l,i,a)},a.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],u(ie[e],t))},a.removeHook=function(e){ie[e]&&b(ie[e])},a.removeHooks=function(e){ie[e]&&(ie[e]=[])},a.removeAllHooks=function(){ie={}},a}()}()},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var a=[],l=!0,i=!1,r=void 0;try{for(var n,o=e[Symbol.iterator]();!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){var l=a(24);e.exports=function(e){if(Array.isArray(e))return l(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,function(e,t,a){"use strict";a.r(t);var l=a(0),i=(a(26),a(6)),r=a.n(i),n=a(5),o=a.n(n),c=a(7),s=a.n(c),g=a(8),b=a.n(g),u=a(13),d=a.n(u),p=a(9),f=a.n(p),h=a(10),m=a.n(h),k=a(4),y=a.n(k),v=a(12),w=a.n(v),O=wp.element.createElement;function j(e){return"tabs-desktop"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},O("path",{d:"M18.95 4H4.55C3.55589 4 2.75 4.76751 2.75 5.71429V14.2857C2.75 15.2325 3.55589 16 4.55 16H18.95C19.9441 16 20.75 15.2325 20.75 14.2857V5.71429C20.75 4.76751 19.9441 4 18.95 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),O("path",{d:"M1.75 18C1.19772 18 0.75 18.4477 0.75 19C0.75 19.5523 1.19772 20 1.75 20H21.75C22.3023 20 22.75 19.5523 22.75 19C22.75 18.4477 22.3023 18 21.75 18H1.75ZM9 18.8C8.86193 18.8 8.75 18.9119 8.75 19.05C8.75 19.1881 8.86193 19.3 9 19.3H14.5C14.6381 19.3 14.75 19.1881 14.75 19.05C14.75 18.9119 14.6381 18.8 14.5 18.8H9Z",stroke:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):"tabs-tablet"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24"},O("path",{d:"M16.6429 4H7.35714C6.33147 4 5.5 4.71634 5.5 5.6V18.4C5.5 19.2837 6.33147 20 7.35714 20H16.6429C17.6685 20 18.5 19.2837 18.5 18.4V5.6C18.5 4.71634 17.6685 4 16.6429 4Z"}),O("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24"},O("path",{d:"M15.5714 4H8.42857C7.63959 4 7 4.71634 7 5.6V18.4C7 19.2837 7.63959 20 8.42857 20H15.5714C16.3604 20 17 19.2837 17 18.4V5.6C17 4.71634 16.3604 4 15.5714 4Z"}),O("path",{d:"M12 17.5H12.01"})):"sync"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24"},O("path",{d:"m7.34133533 6.23855964v-1.98499625c-2.17404351.03150788-4.03300825 1.38634659-4.85221305 3.27681921-.31507877.72468117-.44111028 1.51237809-.4096024 2.33158289.06301575 1.13428361.47261815 2.20555141 1.16579145 3.05626411.37809452.4411102.28357089 1.1027757-.18904726 1.4493623-.44111028.3150788-1.07126782.2205551-1.41785447-.1890473-.85071268-1.0397599-1.38634658-2.3315829-1.54388597-3.7179294-.12603151-1.00825211-.03150788-2.01650417.25206302-2.9302326.88222055-3.02475619 3.6864216-5.26181546 6.99474868-5.29332334v-1.98499624c0-.09452363.12603151-.15753939.22055514-.09452363l4.09602403 2.99324831c.0630157.06301575.0630157.15753938 0 .18904726l-4.09602403 2.99324831c-.09452363.06301575-.22055514 0-.22055514-.09452363zm.22055514 13.17029256c.09452363.0630158.22055514 0 .22055514-.0945236v-1.9849963c3.30832709-.0315078 6.11252809-2.2685671 6.99474869-5.2933233.252063-.9137284.3780945-1.8904726.252063-2.93023256-.1575394-1.38634658-.7246812-2.67816954-1.543886-3.71792948-.3465866-.44111028-.9767441-.53563391-1.4178544-.18904726-.4726182.34658665-.5671418 1.00825206-.1890473 1.44936234.6931733.85071268 1.1027757 1.89047262 1.1657915 3.05626407.0315078.81920479-.1260315 1.63840959-.4096024 2.33158289-.787697 1.8904726-2.6466617 3.2453113-4.85221309 3.2768192v-1.9849962c0-.0945237-.12603151-.1575394-.22055514-.0945237l-4.096024 2.9932483c-.06301576.0630158-.06301576.1575394 0 .1890473z",transform:"translate(4 2)"})):"headline"===e?O("svg",{width:24,height:24,viewBox:"0 0 20 20",style:{padding:"1px"}},O("path",{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4",fill:"#1e72bd"})):"grid"===e?O("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},O("path",{d:"M20 .6c0-.3-.2-.6-.5-.6H.5C.2 0 0 .3 0 .6v4.6c0 .3.2.6.5.6h19c.3 0 .5-.3.5-.6V.6zM6.7 7.7c0-.3-.2-.6-.5-.6H.5c-.3 0-.5.3-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.3.5-.6l.1-4.6zM19.9 7.7c0-.3-.2-.6-.6-.6H8.6c-.4 0-.6.3-.6.6v4.5c0 .3.2.6.6.6h10.8c.3 0 .6-.3.6-.6l-.1-4.5z",fill:"#1d72ba"}),O("path",{d:"M20 14.8c0-.3-.2-.6-.5-.6h-5.6c-.3 0-.5.2-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.2.5-.6v-4.6zM12 14.8c0-.3-.2-.5-.5-.5H.5c-.3 0-.5.2-.5.5v4.6c0 .4.2.6.5.6h11c.3 0 .5-.2.5-.5v-4.7z",fill:"#1d72ba"})):"container"===e?O("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},O("path",{d:"M2.8 3.4c0-.4.3-.7.7-.7h1.2V0H3.4C1.5 0 0 1.5 0 3.4v1.2h2.8V3.4zM0 7.4h2.8v5.3H0zM17.2 7.4H20v5.3h-2.8zM17.2 16.6c0 .4-.3.7-.7.7h-1.2V20h1.2c1.9 0 3.4-1.5 3.4-3.4v-1.2h-2.8v1.2h.1zM7.4 0h5.3v2.8H7.4zM3.4 17.2c-.4 0-.7-.3-.7-.7v-1.2H0v1.2c0 2 1.5 3.5 3.4 3.5h1.2v-2.8H3.4zM7.4 17.2h5.3V20H7.4zM16.6 2.8c.4 0 .7.3.7.7v1.2H20V3.4C20 1.5 18.5 0 16.6 0h-1.2v2.8h1.2z",fill:"#1e72bd"})):"button"===e?O("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},O("path",{d:"M19.2 0H.8C.4 0 0 .4 0 .8v6.4c0 .4.4.8.8.8h18.4c.4 0 .8-.4.8-.8V.8c0-.4-.4-.8-.8-.8zM18.4 12H1.6c-.9 0-1.6.7-1.6 1.6v4.8c0 .9.7 1.6 1.6 1.6h16.8c.9 0 1.6-.7 1.6-1.6v-4.8c0-.9-.7-1.6-1.6-1.6zm.4 6.4c0 .2-.2.4-.4.4H1.6c-.2 0-.4-.2-.4-.4v-4.8c0-.2.2-.4.4-.4h16.8c.2 0 .4.2.4.4v4.8z",fill:"#1e72bd"})):"paragraph"===e?O("svg",{width:20,height:20,viewBox:"0 0 20 20"},O("path",{d:"M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71A.984.984 0 0 0 15 2z"})):"spacing"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),O("path",{d:"M40.452,77.705c7.802,1.393 23.794,1.393 31.596,0l13.635,13.635c-12.215,3.213 -46.652,3.213 -58.866,0l13.635,-13.635Zm50.888,-50.888c3.213,12.215 3.213,46.653 0,58.866l-13.635,-13.635c1.393,-7.801 1.393,-23.794 0,-31.596l13.635,-13.635Zm-70.18,0l13.635,13.635c-1.393,7.802 -1.393,23.794 0,31.596l-13.635,13.635c-3.213,-12.213 -3.213,-46.651 0,-58.866Zm5.657,-5.657c12.214,-3.213 46.652,-3.213 58.866,0l-13.635,13.635c-7.801,-1.393 -23.795,-1.393 -31.596,0l-13.635,-13.635Z"})):"advanced"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,37.215c6.632,2.124 6.632,23.512 0,25.636c-6.632,2.124 -73.42,2.124 -80.052,0c-6.632,-2.124 -6.632,-23.512 0,-25.636c6.632,-2.124 73.42,-2.124 80.052,0Z"}),O("path",{d:"M48.61,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"}),O("path",{d:"M90.955,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"})):"backgrounds"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M1.491,87.777l37.79,-37.79l31.352,31.352c2.412,2.171 5.656,0 5.656,0l17.248,-17.247l13.186,13.186l4.796,4.797c-0.971,12.199 -2.726,21.685 -5.249,24.208c-8.29,8.289 -91.776,8.289 -100.066,0c-2.113,-2.113 -3.687,-9.113 -4.713,-18.506Z"}),O("path",{d:"M0.631,77.323c-1.742,-27.728 0.125,-65.658 5.573,-71.106c8.29,-8.289 91.776,-8.289 100.066,0c5.07,5.07 7.039,38.265 5.89,65.185l-15.795,-15.795c-2.412,-2.172 -5.657,0 -5.657,0l-17.247,17.246l-31.351,-31.351c-0.731,-0.658 -1.036,-1 -2.619,-1.166c-0.263,0 -0.477,-0.075 -1.245,0.131c-0.912,0.244 -1.793,1.035 -1.793,1.035l-35.822,35.821Zm76.434,-59.584c7.115,0 12.891,5.776 12.891,12.89c0,7.114 -5.776,12.89 -12.891,12.89c-7.114,0 -12.89,-5.776 -12.89,-12.89c0,-7.114 5.776,-12.89 12.89,-12.89Z"})):"colors"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradients"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M112.426,48.746c0.503,25.204 -1.545,52.939 -6.143,57.537c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.289,-8.288 91.748,-8.289 100.061,-0.004c0,0 0.005,0.004 0.005,0.004c3.691,3.692 5.739,22.295 6.143,42.529Zm-16.154,-32.526c-6.656,-6.628 -73.418,-6.627 -80.048,0.004c-6.631,6.63 -6.632,73.392 -0.004,80.048l80.052,-80.052Z"})):"icons"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),O("path",{d:"M89.605,22.895c5.527,5.526 5.527,61.184 0,66.71c-5.526,5.527 -61.184,5.527 -66.71,0c-5.527,-5.526 -5.527,-61.184 0,-66.71c5.526,-5.527 61.184,-5.527 66.71,0Zm-21.066,62.31l0,-2.731c-0.648,-0.074 -1.272,-0.199 -1.87,-0.374c-0.599,-0.174 -1.148,-0.374 -1.646,-0.598c-0.699,-0.299 -1.235,-0.755 -1.609,-1.366c-0.374,-0.611 -0.561,-1.353 -0.561,-2.226l0,-29.703l-0.561,-0.561l-18.331,0.972l0,2.731c0.748,0.075 1.577,0.25 2.488,0.524c0.91,0.274 1.589,0.561 2.038,0.86c0.599,0.399 1.098,0.929 1.497,1.59c0.399,0.661 0.598,1.428 0.598,2.301l0,21.773c0,0.923 -0.162,1.665 -0.486,2.226c-0.324,0.561 -0.885,0.991 -1.683,1.29c-0.449,0.175 -0.986,0.3 -1.609,0.374c-0.624,0.075 -1.26,0.138 -1.908,0.187l0,2.731l23.643,0Zm-12.978,-59.459c4.76,0 8.625,3.864 8.625,8.625c0,4.76 -3.865,8.625 -8.625,8.625c-4.76,0 -8.625,-3.865 -8.625,-8.625c0,-4.761 3.865,-8.625 8.625,-8.625Z"})):"typography"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-8.783,78.583l0,-2.817c-0.661,-0.026 -1.481,-0.165 -2.46,-0.417c-0.979,-0.251 -1.773,-0.562 -2.381,-0.932c-0.9,-0.609 -1.601,-1.23 -2.103,-1.865c-0.503,-0.635 -0.953,-1.468 -1.349,-2.5l-18.769,-48.569l-3.175,0c-2.672,6.878 -5.714,14.721 -9.126,23.53c-3.266,8.43 -6.265,16.06 -8.998,22.891l-11.672,-28.684l-2.304,0c-1.939,4.742 -4.148,10.149 -6.625,16.222c-2.477,6.072 -4.743,11.543 -6.798,16.412c-0.403,0.949 -0.816,1.692 -1.238,2.23c-0.423,0.538 -1.018,1.053 -1.786,1.545c-0.48,0.292 -1.095,0.524 -1.844,0.698c-0.749,0.173 -1.373,0.278 -1.872,0.314l0,1.942l15.382,0l0,-1.942c-1.518,-0.073 -2.881,-0.31 -4.091,-0.711c-1.209,-0.401 -1.814,-0.966 -1.814,-1.696c0,-0.31 0.048,-0.711 0.144,-1.204c0.096,-0.492 0.268,-1.13 0.518,-1.914c0.269,-0.803 0.571,-1.678 0.907,-2.626c0.336,-0.948 0.773,-2.061 1.311,-3.338l14.316,0l3.399,8.699c0.012,0.03 0.024,0.06 0.036,0.092c-0.161,0.119 -0.329,0.237 -0.503,0.355c-0.661,0.423 -1.508,0.76 -2.539,1.012c-1.032,0.251 -1.892,0.403 -2.58,0.456l0,2.817l21.19,0l0,-2.817c-2.09,-0.106 -3.968,-0.45 -5.635,-1.032c-1.666,-0.582 -2.499,-1.402 -2.499,-2.46c0,-0.45 0.066,-1.032 0.198,-1.746c0.132,-0.714 0.37,-1.64 0.714,-2.777c0.371,-1.164 0.787,-2.434 1.25,-3.81c0.463,-1.375 1.065,-2.989 1.806,-4.841l19.721,0l4.682,12.619c0.106,0.264 0.186,0.568 0.238,0.912c0.053,0.344 0.08,0.635 0.08,0.873c0,0.582 -0.681,1.072 -2.044,1.468c-1.362,0.397 -3.075,0.662 -5.138,0.794l0,2.817l23.451,0Zm-56.864,-15.865l-6.193,-15.045l-6.078,15.045l12.271,0Zm34.167,-7.15l-8.532,-21.824l-8.373,21.824l16.905,0Z"})):"addContainer"===e?O("svg",{width:20,height:20,viewBox:"0 0 64 64",fillRule:"evenodd"},O("path",{d:"M41.454,57.126l0,6.409c-6.088,0.286 -12.82,0.286 -18.908,0l0,-6.409c5.957,0.366 12.951,0.366 18.908,0Zm-33.93,-8.899c0.458,3.226 1.086,5.568 1.883,6.366c0.798,0.797 3.14,1.425 6.366,1.883l0,6.592c-6.084,-0.578 -10.706,-1.519 -12.015,-2.826c-1.307,-1.309 -2.248,-5.931 -2.826,-12.015l6.592,0Zm55.544,0c-0.578,6.084 -1.519,10.706 -2.826,12.015c-1.309,1.307 -5.931,2.248 -12.015,2.826l0,-6.592c3.226,-0.458 5.568,-1.086 6.366,-1.883c0.797,-0.798 1.425,-3.14 1.883,-6.366l6.592,0Zm0.467,-25.681c0.286,6.088 0.286,12.82 0,18.908l-6.409,0c0.366,-5.957 0.366,-12.951 0,-18.908l6.409,0Zm-56.661,0c-0.366,5.957 -0.366,12.951 0,18.908l-6.409,0c-0.286,-6.088 -0.286,-12.82 0,-18.908l6.409,0Zm41.353,-21.614c6.084,0.578 10.706,1.519 12.015,2.826c1.307,1.309 2.248,5.931 2.826,12.015l-6.592,0c-0.458,-3.226 -1.086,-5.568 -1.883,-6.366c-0.798,-0.797 -3.14,-1.425 -6.366,-1.883l0,-6.592Zm-32.454,0l0,6.592c-3.226,0.458 -5.568,1.086 -6.366,1.883c-0.797,0.798 -1.425,3.14 -1.883,6.366l-6.592,0c0.578,-6.084 1.519,-10.706 2.826,-12.015c1.309,-1.307 5.931,-2.248 12.015,-2.826Zm6.773,-0.467c6.088,-0.286 12.82,-0.286 18.908,0l0,6.409c-5.957,-0.366 -12.951,-0.366 -18.908,0l0,-6.409Z"}),O("path",{d:"M18.03,29.037l11.007,0l0,-11.007l6.773,0l0,11.007l11.007,0l0,6.773l-11.007,0l0,11.007l-6.773,0l0,-11.007l-11.007,0l0,-6.773Z"})):"gradient"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},O("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"documentation"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.755 6.245c8.327 8.326 8.327 92.184 0 100.51-8.326 8.327-92.184 8.327-100.51 0-8.327-8.326-8.327-92.184 0-100.51 8.326-8.327 92.184-8.327 100.51 0zm-92.661 93.896C9.279 84 9.781 23.714 15.834 17.661c2.491-2.491 19.588-4.132 26.354-4.712 4.748-.408 10.115.671 14.243 1.23 4.128-.559 9.495-1.638 14.243-1.23 6.766.58 23.863 2.221 26.354 4.712 6.053 6.053 6.791 66.339 1.976 82.48-4.729-1.977-19.708-3.436-26.784-3.853-5.234-.308-11.129.739-15.671 1.354-4.543-.615-10.437-1.662-15.672-1.354-7.075.417-22.054 1.876-26.783 3.853z"}),O("path",{d:"M50.188 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM50.277 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 73.799c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0z"}),O("path",{d:"M89.909 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM89.998 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM89.998 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0z"})):"layout"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.719 6.238c8.362 8.362 8.362 92.208 0 100.57-8.362 8.287-92.208 8.287-100.495 0-8.362-8.362-8.362-92.208 0-100.57 8.287-8.286 92.133-8.286 100.495 0zm-9.417 9.417c6.78 6.78 6.78 74.957 0 81.737-6.78 6.78-74.956 6.78-81.661 0-6.78-6.78-6.78-74.957 0-81.737 6.705-6.78 74.881-6.78 81.661 0z"}),O("path",{d:"M93.988 48.877c.602 17.477-.754 37.893-3.993 41.132-3.164 3.164-22.75 4.52-40.002 4.068v-45.2h43.995zm-75.108 0h23.58v44.899c-9.718-.603-17.553-1.808-19.512-3.767-3.24-3.24-4.595-23.655-4.068-41.132zm.377-7.533c.678-9.19 1.883-16.498 3.691-18.306 5.575-5.575 61.472-5.575 67.047 0 1.808 1.808 3.013 9.115 3.691 18.306h-74.43z"})):"shapes"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.756,6.244C115.081,14.571 115.081,98.429 106.756,106.756C98.429,115.081 14.571,115.081 6.244,106.756C-2.081,98.429 -2.081,14.571 6.244,6.244C14.571,-2.081 98.429,-2.081 106.756,6.244ZM67.875,88.052C67.875,86.977 67.003,86.105 65.928,86.105L47.072,86.105C45.997,86.105 45.125,86.977 45.125,88.052L45.125,91.948C45.125,93.023 45.997,93.896 47.072,93.896L65.928,93.896C67.003,93.896 67.875,93.023 67.875,91.948L67.875,88.052ZM57.899,31.409L59.305,31.409C60.853,31.409 62.11,30.152 62.11,28.604L62.11,28.089L73.263,57.543C73.757,58.333 73.731,59.161 73.731,59.403C73.729,62.659 65.231,69.414 65.375,83.611L47.625,83.611C47.769,69.414 39.271,62.659 39.269,59.403C39.269,59.161 39.243,58.333 39.737,57.543L50.89,28.089L50.89,28.604C50.89,30.152 52.147,31.409 53.695,31.409L55.101,31.409C55.111,35.738 55.142,50.367 55.098,54.109C55.093,54.494 54.907,54.988 54.68,55.45C52.915,56.169 51.669,57.903 51.669,59.925C51.669,62.592 53.834,64.756 56.5,64.756C59.166,64.756 61.331,62.592 61.331,59.925C61.331,57.903 60.085,56.169 58.32,55.45C58.093,54.988 57.907,54.494 57.902,54.109C57.858,50.367 57.889,35.738 57.899,31.409ZM52.227,19.451L52.227,18.881C52.227,17.702 53.185,16.745 54.364,16.745L58.636,16.745C59.815,16.745 60.773,17.702 60.773,18.881L60.773,19.451L88.831,19.451C89.457,17.867 91.002,16.745 92.807,16.745C95.165,16.745 97.08,18.66 97.08,21.018C97.08,23.376 95.165,25.29 92.807,25.29C91.03,25.29 89.505,24.203 88.861,22.658L71.798,22.658C83.83,28.003 92.531,39.501 93.898,53.148L94.93,53.148C96.109,53.148 97.067,54.105 97.067,55.284L97.067,59.557C97.067,60.736 96.109,61.693 94.93,61.693L90.657,61.693C89.478,61.693 88.521,60.736 88.521,59.557L88.521,55.284C88.521,54.105 89.478,53.148 90.657,53.148L90.922,53.148C89.19,37.24 76.627,24.564 60.773,22.659L60.773,23.154C60.773,24.333 59.815,25.29 58.636,25.29L54.364,25.29C53.185,25.29 52.227,24.333 52.227,23.154L52.227,22.688C36.484,24.689 24.036,37.318 22.312,53.148L22.329,53.148C23.508,53.148 24.466,54.105 24.466,55.284L24.466,59.557C24.466,60.736 23.508,61.693 22.329,61.693L18.056,61.693C16.877,61.693 15.92,60.736 15.92,59.557L15.92,55.284C15.92,54.105 16.877,53.148 18.056,53.148L19.336,53.148C20.703,39.501 29.405,28.003 41.437,22.658L24.139,22.658C23.495,24.203 21.97,25.29 20.193,25.29C17.835,25.29 15.92,23.376 15.92,21.018C15.92,18.66 17.835,16.745 20.193,16.745C21.998,16.745 23.543,17.867 24.169,19.451L52.227,19.451Z"})):void 0}a(27);var T=a(1),C=a(2),_=a(3);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var B=function(e){f()(a,e);var t=S(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.onClick,a=e.selectedDevice;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"gb-responsive-tabs"},Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Show options for all devices","generateblocks")},Object(l.createElement)(C.Button,{isPressed:"Desktop"===a,onClick:function(){t("Desktop")}},Object(T.__)("Desktop","generateblocks"))),Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Show options for tablet devices","generateblocks")},Object(l.createElement)(C.Button,{isPressed:"Tablet"===a,onClick:function(){t("Tablet")}},Object(T.__)("Tablet","generateblocks"))),Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Show options for mobile devices","generateblocks")},Object(l.createElement)(C.Button,{isPressed:"Mobile"===a,onClick:function(){t("Mobile")}},Object(T.__)("Mobile","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","afterResponsiveTabs",this.props,this.state))}}]),a}(l.Component);a(28);function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var E=function(e){f()(a,e);var t=D(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.label,a=e.value,i=e.onClick,r=e.units;return Object(l.createElement)("div",{className:"components-gblocks-units-control-header__units"},Object(l.createElement)("div",{className:"components-gblocks-units-control-label__units"},t),Object(l.createElement)("div",{className:"components-gblocks-control__units"},Object(l.createElement)(C.ButtonGroup,{className:"components-gblocks-control-buttons__units","aria-label":Object(T.__)("Select Units","generateblocks")},r.map((function(e){var t=e;return"px"===e&&(t=Object(T._x)("Pixel","A size unit for CSS markup","generateblocks")),"em"===e&&(t=Object(T._x)("Em","A size unit for CSS markup","generateblocks")),"%"===e&&(t=Object(T._x)("Percentage","A size unit for CSS markup","generateblocks")),"deg"===e&&(t=Object(T._x)("Degree","A size unit for CSS markup","generateblocks")),Object(l.createElement)(C.Tooltip +/* translators: Unit type (px, em, %) */,{text:Object(T.sprintf)(Object(T.__)("%s Units","generateblocks"),t),key:e},Object(l.createElement)(C.Button,{key:e,className:"components-gblocks-control-button__units--"+e,isSmall:!0,isPrimary:a===e,"aria-pressed":a===e +/* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Units","generateblocks"),t),onClick:function(){return i(e)}},e))})))))}}]),a}(l.Component),R=a(19),x=a.n(R);function M(e){for(var t="",a=0,l=Object.entries(e);a0&&(t+=o)}}return t}function z(e,t){return!(!e&&0!==e)&&e+t}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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var P=function(e){f()(a,e);var t=L(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGap,i=e.verticalGap,r=e.verticalAlignment,n=e.horizontalAlignment,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":r,"justify-content":n,"margin-left":"-"+a/2+"px","margin-right":"-"+a/2+"px"}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a/2+"px","padding-right":a/2+"px","margin-bottom":z(i,"px")}],o=Object(_.applyFilters)("generateblocks.editor.mainCSS",o,this.props,"grid"),Object(l.createElement)("style",null,M(o))}}]),a}(l.Component);function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var A=function(e){f()(a,e);var t=F(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"grid"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var H=function(e){f()(a,e);var t=U(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapTablet,i=e.verticalGapTablet,r=e.verticalAlignmentTablet,n=e.horizontalAlignmentTablet,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?z(i,"px"):null}],o=Object(_.applyFilters)("generateblocks.editor.tabletCSS",o,this.props,"grid"),Object(l.createElement)("style",null,M(o))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var I=function(e){f()(a,e);var t=N(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"grid"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var V=function(e){f()(a,e);var t=G(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapMobile,i=e.verticalGapMobile,r=e.verticalAlignmentMobile,n=e.horizontalAlignmentMobile,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?z(i,"px"):null}],o=Object(_.applyFilters)("generateblocks.editor.mobileCSS",o,this.props,"grid"),Object(l.createElement)("style",null,M(o))}}]),a}(l.Component),q=a(18),W=a.n(q);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var K=function(e){f()(a,e);var t=Z(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.children;return Object(_.applyFilters)(t,a||"",this.props)}}]),a}(l.Component);function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Y=function(e){f()(a,e);var t=J(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=void 0!==t&&t,i=e.initialOpen,r=void 0!==i&&i,n=e.icon,o=e.className,c=e.id,s=e.state,g=e.showPanel,b=void 0===g||g,u=e.children;if(!Object(_.applyFilters)("generateblocks.editor.showPanel",b,c,this.props))return null;var d=!0;return""===u&&(d=!1),"object"===W()(u)&&(d=Object.values(u).some((function(e){return null!==e&&!1!==e&&""!==e}))),d?Object(l.createElement)(K,{name:"generateblocks.panel."+c,props:this.props,state:s},a?Object(l.createElement)(C.PanelBody,{title:a,initialOpen:r,icon:n,className:o},Object(_.applyFilters)("generateblocks.editor.panelContents",u,c,this.props)):Object(l.createElement)(C.PanelBody,null,Object(_.applyFilters)("generateblocks.editor.panelContents",u,c,this.props))):null}}]),a}(l.Component),Q=a(11),X=a(14),$=a(15),ee=a(17);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ae=/[\s#]/g,le=[],ie=function(e){f()(a,e);var t=te(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedLayout:!1,selectedDevice:"Desktop"},e.onLayoutSelect=e.onLayoutSelect.bind(d()(e)),e.getColumnsFromLayout=e.getColumnsFromLayout.bind(d()(e)),e.getLayoutsSelector=e.getLayoutsSelector.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?le.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),le.push(e)):le.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),le.push(e)),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId;t.columns;if(this.state.selectedLayout){var i=this.getColumnsFromLayout(this.state.selectedLayout);i.forEach((function(e){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/container",e),void 0,l,!1)})),a({columns:i.length}),this.setState({selectedLayout:!1})}else{var r=wp.data.select("core/block-editor").getBlocksByClientId(l)[0];if(r)a({columns:r.innerBlocks.length})}}},{key:"getColumnsFromLayout",value:function(e){var t=this,a=[],l=e.split("-"),i=0;return l.forEach((function(){var e={isGrid:!0,gridId:t.props.attributes.uniqueId,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"};e.width=Number(l[i]),i++,a.push(e)})),a}},{key:"getLayoutsSelector",value:function(){var e=this;return Object(l.createElement)(C.Placeholder,{label:Object(T.__)("Grid","generateblocks"),instructions:Object(T.__)("Select one layout to get started.","generateblocks"),className:"gb-select-layout"},Object(l.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16.66-16.66-16.66-16.66-16.66-16.66"].map((function(t){var a=e.getColumnsFromLayout(t);return Object(l.createElement)("button",{key:"layout-".concat(t),className:"gb-grid-wrapper-layout-preview-btn",onClick:function(){return e.onLayoutSelect(t)}},a.map((function(e,a){return Object(l.createElement)("div",{key:"layout-".concat(t,"-col-").concat(a),className:w()("gb-col","gb-col-".concat(e.width))})})))}))))}},{key:"onLayoutSelect",value:function(e){this.setState({selectedLayout:e})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.columns,d=i.horizontalGap,p=i.verticalGap,f=i.verticalAlignment,h=i.horizontalGapTablet,m=i.verticalGapTablet,k=i.verticalAlignmentTablet,y=i.horizontalGapMobile,v=i.verticalGapMobile,O=i.verticalAlignmentMobile,S=i.horizontalAlignment,D=i.horizontalAlignmentTablet,R=i.horizontalAlignmentMobile,x=d||0===d?d:"",M=p||0===p?p:"",z=d||0===d?d:"",L=p||0===p?p:"";h&&(z=h),m&&(L=m);var F={className:w()((e={"gb-grid-wrapper":!0},o()(e,"gb-grid-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return F=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",F,"generateblocks/grid",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:j("addContainer"),label:Object(T.__)("Add Grid Item","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/container",{isGrid:!0,gridId:s,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"}),void 0,c)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{id:"gridLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:d||0===d?d:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGap:e})},onBlur:function(){!d&&generateBlocksDefaults.gridContainer.horizontalGap?n({horizontalGap:0}):n({horizontalGap:parseFloat(d)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGap:generateBlocksDefaults.gridContainer.horizontalGap})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(E,{label:Object(T.__)("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:p||0===p?p:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGap:e})},onBlur:function(){!p&&generateBlocksDefaults.gridContainer.verticalGap?n({verticalGap:0}):n({verticalGap:parseFloat(p)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGap:generateBlocksDefaults.gridContainer.verticalGap})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),value:f,help:Object(T.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Horizontal Alignment","generateblocks"),value:S,options:[{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Left","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignment:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:h||0===h?h:"",min:"0",placeholder:x,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapTablet:e})},onBlur:function(){!h&&generateBlocksDefaults.gridContainer.horizontalGapTablet?n({horizontalGapTablet:0}):n({horizontalGapTablet:parseFloat(h)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapTablet:generateBlocksDefaults.gridContainer.horizontalGapTablet})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(E,{label:Object(T.__)("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:m||0===m?m:"",min:"0",placeholder:M,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapTablet:e})},onBlur:function(){!m&&generateBlocksDefaults.gridContainer.verticalGapTablet?n({verticalGapTablet:0}):n({verticalGapTablet:parseFloat(m)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapTablet:generateBlocksDefaults.gridContainer.verticalGapTablet})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),help:Object(T.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:k,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Horizontal Alignment","generateblocks"),value:D,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Left","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:y||0===y?y:"",min:"0",placeholder:z,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapMobile:e})},onBlur:function(){!y&&generateBlocksDefaults.gridContainer.horizontalGapMobile?n({horizontalGapMobile:0}):n({horizontalGapMobile:parseFloat(y)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapMobile:generateBlocksDefaults.gridContainer.horizontalGapMobile})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(E,{label:Object(T.__)("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:v||0===v?v:"",min:"0",placeholder:L,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapMobile:e})},onBlur:function(){!v&&generateBlocksDefaults.gridContainer.verticalGapMobile?n({verticalGapMobile:0}):n({verticalGapMobile:parseFloat(v)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapMobile:generateBlocksDefaults.gridContainer.verticalGapMobile})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),help:Object(T.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:O,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Horizontal Alignment","generateblocks"),value:R,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Left","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","gridLayout",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"gridDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/grid/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","gridDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(ae,"-"),n({anchor:e})}})),Object(l.createElement)(P,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(A,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(H,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(I,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(V,this.props)),Object(l.createElement)("div",F,u>0||this.state.selectedLayout?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/container"],renderAppender:!1})):this.getLayoutsSelector()))}}]),a}(l.Component),re=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(ie),ne={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function oe(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function ce(e){for(var t=1;t #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t0&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:Re,initialTabName:Object(_.applyFilters)("generateblocks.editor.containerBackgroundInitialTab","",this.props,this.state)},(function(e){return Object(l.createElement)("div",null,"image"===e.name&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.BaseControl,{id:"gblocks-background-image-upload",label:Object(T.__)("Image URL","generateblocks")},Object(l.createElement)("div",{className:"gblocks-bg-image-wrapper"},Object(l.createElement)(C.TextControl,{type:"text",value:N?N.image.url:"",onChange:function(e){n(e?{bgImage:{id:"",image:{url:e}}}:{bgImage:null})}}),Object(l.createElement)("div",{className:"gblocks-background-image-action-buttons"},Object(l.createElement)(Q.MediaUpload,{title:Object(T.__)("Set background image","generateblocks"),onSelect:function(e){var t=generateBlocksDefaults.container.bgImageSize;void 0===e.sizes[t]&&(t="full"),n({bgImage:{id:e.id,image:e.sizes[t]}})},onClose:function(){document.querySelector(".gblocks-bg-image-wrapper input").focus()},allowedTypes:["image"],value:N?N.id:"",modalClass:"editor-gb-container-background__media-modal",render:function(e){var t=e.open;return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Open the Media Library","generateblocks")},Object(l.createElement)(C.Button,{onClick:t,className:"is-secondary is-small"},Object(T.__)("Browse","generateblocks")))}}),Object(_.applyFilters)("generateblocks.editor.backgroundImageActions","",t.props,t.state)))),!!N&&Object(l.createElement)("div",{className:"section-bg-settings"},I.overlay?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Background Color Overlay","generateblocks"),checked:!!I.overlay,onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{overlay:e})})}}),Object(l.createElement)(C.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},Object(T.__)("The background color overlay option is deprecated. Toggle this option to use the new method.","generateblocks"))):Object(l.createElement)(l.Fragment,null,void 0!==N.id&&N.id&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Image Size","generateblocks"),value:G,options:Se,onChange:function(e){n({bgImageSize:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Selector","generateblocks"),value:I.selector,options:[{label:Object(T.__)("Element","generateblocks"),value:"element"},{label:Object(T.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{selector:e})})}}),Object(l.createElement)(C.RangeControl,{label:Object(T.__)("Image Opacity","generateblocks"),value:I.opacity,onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{opacity:e,selector:"pseudo-element"})})},min:0,max:1,step:.1,initialPosition:generateBlocksDefaults.container.bgOptions.opacity}),1!==I.opacity&&"pseudo-element"!==I.selector&&Object(l.createElement)(C.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},Object(T.__)("Your selector must be set to Pseudo Element to use opacity.","generateblocks"))),Object(l.createElement)(C.TextControl,{label:Object(T.__)("Size","generateblocks"),value:I.size,onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{size:e})})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("Position","generateblocks"),value:I.position,onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{position:e})})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Repeat","generateblocks"),value:I.repeat,options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"}],onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{repeat:e})})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Attachment","generateblocks"),value:I.attachment,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{attachment:e})})}}))),"gradient"===e.name&&Object(l.createElement)(Ce,r()({},t.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorStopTwo:"gradientColorStopTwo",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",defaultColorOne:generateBlocksDefaults.container.gradientColorOne,defaultColorTwo:generateBlocksDefaults.container.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.containerBackgroundTabBody","",e,t.props,t.state))})),Object(_.applyFilters)("generateblocks.editor.controls","","containerBackground",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Shapes","generateblocks"),initialOpen:!1,icon:j("shapes"),className:"gblocks-panel-label",id:"containerShapes",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!i.shapeDividers.length)}),Object(l.createElement)(C.BaseControl,{className:"gb-icon-chooser gb-shape-chooser"},ge.map((function(e,a){var i=a+1;return Object(l.createElement)(l.Fragment,{key:a},Object(l.createElement)("div",{className:"gblocks-shape-container"},Object(l.createElement)("div",{className:w()(o()({"gblocks-shape-toggle-preview":!0},"gblocks-shape-toggle-preview-".concat(i),!0)),style:{backgroundColor:P}},void 0!==_e[ge[a].shape]&&Object(l.createElement)("div",{className:"gblocks-shape-divider-preview",style:{color:ge[a].color},dangerouslySetInnerHTML:{__html:Be(_e[ge[a].shape].icon)}})), /* translators: Shape number */ -Ya(Ja("Shape %s","generateblocks"),i),Object(l.createElement)(bl,null,Object(l.createElement)(sl,{renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return Object(l.createElement)(cl,{text:Ja("Edit Shape","generateblocks")},Object(l.createElement)($a,{className:"gblocks-shape-dropdown",isSecondary:!t||void 0,isPrimary:!!t||void 0,icon:"admin-tools",onClick:a,"aria-expanded":t}))},renderContent:function(){return Object(l.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===t.getDeviceType()&&Object(l.createElement)(bl,null,Object(l.createElement)(il,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map((function(e,t){var i=generateBlocksInfo.svgShapes[e].svgs;return Object(l.createElement)(nl,{title:generateBlocksInfo.svgShapes[e].group,initialOpen:i.hasOwnProperty(re[a].shape),key:t},Object(l.createElement)(ol,null,Object(l.createElement)(il,null,Object(l.createElement)("ul",{className:"gblocks-icon-chooser gblocks-shape-chooser"},Object.keys(i).map((function(e,t){return Object(l.createElement)("li",{key:"editor-pblock-types-list-item-".concat(t)},Object(l.createElement)(cl,{text:i[e].label},Object(l.createElement)($a,{className:v()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":re[a].shape===e}),onClick:function(){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{shape:e}),n({shapeDividers:t})}},"string"==typeof i[e].icon?Object(l.createElement)(bl,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:va(i[e].icon)}})):Object(l.createElement)(bl,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},i[e].icon)))))}))))))}))),Object(l.createElement)(At,{label:Ja("Color","generateblocks"),value:re[a].color,alpha:!0,valueOpacity:re[a].colorOpacity,onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{color:e}),n({shapeDividers:t})},onOpacityChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{colorOpacity:e}),n({shapeDividers:t})}}),Object(l.createElement)(al,{label:Ja("Location","generateblocks"),value:re[a].location,options:[{label:Ja("Top","generateblocks"),value:"top"},{label:Ja("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{location:e}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].height?re[a].height:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{height:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].width?re[a].width:"",min:"100",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{width:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(tl,{label:Ja("Flip Horizontally","generateblocks"),checked:!!re[a].flipHorizontally,onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{flipHorizontally:e}),n({shapeDividers:t})}}),Object(l.createElement)(ll,{label:Ja("z-index","generateblocks"),type:"number",min:"0",value:re[a].zindex||0===re[a].zindex?re[a].zindex:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{zindex:e}),n({shapeDividers:t})},onBlur:function(){var e=vt()(re);e[a]=Wa(Wa({},e[a]),{},{zindex:parseFloat(re[a].zindex)}),n({shapeDividers:e})},onClick:function(e){e.currentTarget.focus()}})),"Tablet"===t.getDeviceType()&&Object(l.createElement)(bl,null,Object(l.createElement)(V,{label:Ja("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].heightTablet?re[a].heightTablet:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{heightTablet:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].widthTablet?re[a].widthTablet:"",min:"100",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{widthTablet:parseFloat(e)}),n({shapeDividers:t})}})),"Mobile"===t.getDeviceType()&&Object(l.createElement)(bl,null,Object(l.createElement)(V,{label:Ja("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].heightMobile?re[a].heightMobile:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{heightMobile:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].widthMobile?re[a].widthMobile:"",min:"100",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{widthMobile:parseFloat(e)}),n({shapeDividers:t})}})))}})),"Desktop"===t.getDeviceType()&&Object(l.createElement)(cl,{text:Ja("Delete Shape","generateblocks")},Object(l.createElement)($a,{className:"gblocks-remove-shape",onClick:function(){window.confirm(Ja("This will permanently delete this shape.","generateblocks"))&&function(e){var t=vt()(re);t.splice(e,1),n({shapeDividers:t})}(a)},icon:"no-alt"}))))})),Object(l.createElement)("div",{className:"gblocks-add-new-shape"},Object(l.createElement)($a,{isSecondary:!0,onClick:function(){var e=vt()(re);e.push({shape:generateBlocksStyling.container.shapeDividers.shape,color:generateBlocksStyling.container.shapeDividers.color,colorOpacity:generateBlocksStyling.container.shapeDividers.colorOpacity,location:generateBlocksStyling.container.shapeDividers.location,height:generateBlocksStyling.container.shapeDividers.height,heightTablet:generateBlocksStyling.container.shapeDividers.heightTablet,heightMobile:generateBlocksStyling.container.shapeDividers.heightMobile,width:generateBlocksStyling.container.shapeDividers.width,widthTablet:generateBlocksStyling.container.shapeDividers.widthTablet,widthMobile:generateBlocksStyling.container.shapeDividers.widthMobile,flipHorizontally:generateBlocksStyling.container.shapeDividers.flipHorizontally,zindex:generateBlocksStyling.container.shapeDividers.zindex}),n({shapeDividers:e})}.bind(this)},Ja("Add Shape","generateblocks")))),vl("generateblocks.editor.controls","","containerShapeDivider",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Documentation","generateblocks"),initialOpen:!1,icon:O("documentation"),className:"gblocks-panel-label",id:"containerDocumentation",state:this.state}),Object(l.createElement)("p",null,Ja("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/container/",target:"_blank",rel:"noreferrer noopener"},Ja("Visit our documentation","generateblocks")),vl("generateblocks.editor.controls","","containerDocumentation",this.props,this.state))),Object(l.createElement)(yl,null,Object(l.createElement)(ll,{label:Ja("HTML Anchor"),help:Ja("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(Bl,"-"),n({anchor:e})}})),Object(l.createElement)(Ea,this.props),this.props.deviceType&&Object(l.createElement)(bl,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(za,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Aa,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Fa,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Va,this.props)),ee&&te&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+ee.replace(/ /g,"+")+ge}),Object(l.createElement)(Ot,{tagName:d,htmlAttrs:me},vl("generateblocks.frontend.afterContainerOpen","",i),Object(l.createElement)("div",{className:v()({"gb-inside-container":!0})},vl("generateblocks.frontend.insideContainer","",i),Object(l.createElement)(hl,{templateLock:!1,renderAppender:c?void 0:function(){return Object(l.createElement)(hl.ButtonBlockAppender,null)}})),Object(l.createElement)(bl,null,!!i.shapeDividers.length&&Object(l.createElement)("div",{className:"gb-shapes"},i.shapeDividers.map((function(e,t){var a=t+1;return Object(l.createElement)(bl,{key:t},void 0!==fe[re[t].shape]&&Object(l.createElement)("div",{className:v()(o()({"gb-shape":!0},"gb-shape-".concat(a),!0)),dangerouslySetInnerHTML:{__html:va(fe[re[t].shape].icon)}}))})))),vl("generateblocks.frontend.beforeContainerClose","",i)))}}]),a}(dl),jl=Sl([Cl((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Ol((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType,a=e("core").getMedia,l=(0,e("core/editor").getEditedPostAttribute)("featured_media");return t?{media:l?a(l):null,deviceType:t()}:{media:l?a(l):null,deviceType:null}}))])(El),Rl={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isGrid:{type:"boolean",default:!1},gridId:{type:"string",default:""},tagName:{type:"string",default:generateBlocksDefaults.container.tagName},width:{type:"number",default:generateBlocksDefaults.container.width},widthTablet:{type:"number",default:generateBlocksDefaults.container.widthTablet},widthMobile:{type:"number",default:generateBlocksDefaults.container.widthMobile},orderTablet:{type:"number",default:generateBlocksDefaults.container.orderTablet},orderMobile:{type:"number",default:generateBlocksDefaults.container.orderMobile},outerContainer:{type:"string",default:generateBlocksDefaults.container.outerContainer},innerContainer:{type:"string",default:generateBlocksDefaults.container.innerContainer},containerWidth:{type:"number",default:generateBlocksDefaults.container.containerWidth},minHeight:{type:"number",default:generateBlocksDefaults.container.minHeight},minHeightUnit:{type:"string",default:generateBlocksDefaults.container.minHeightUnit},minHeightTablet:{type:"number",default:generateBlocksDefaults.container.minHeightTablet},minHeightUnitTablet:{type:"string",default:generateBlocksDefaults.container.minHeightUnitTablet},minHeightMobile:{type:"number",default:generateBlocksDefaults.container.minHeightMobile},minHeightUnitMobile:{type:"string",default:generateBlocksDefaults.container.minHeightUnitMobile},paddingTop:{type:"string",default:generateBlocksDefaults.container.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.container.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.container.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.container.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.container.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},paddingTopTablet:{type:"string",default:generateBlocksDefaults.container.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.container.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.container.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.container.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.container.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.container.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.container.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.container.paddingLeftMobile},marginTop:{type:"string",default:generateBlocksDefaults.container.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.container.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.container.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.container.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.container.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.container.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.container.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.container.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.container.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.container.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.container.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.container.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.container.marginLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.container.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.container.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.container.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.container.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.container.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftMobile},borderColor:{type:"string",default:generateBlocksDefaults.container.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.container.borderColorOpacity},backgroundColor:{type:"string",default:generateBlocksDefaults.container.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.container.backgroundColorOpacity},gradient:{type:"boolean",default:generateBlocksDefaults.container.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.container.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.container.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.container.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.container.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.container.gradientColorStopTwo},gradientSelector:{type:"string",default:"element"},textColor:{type:"string",default:generateBlocksDefaults.container.textColor},linkColor:{type:"string",default:generateBlocksDefaults.container.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.container.linkColorHover},bgImage:{type:"object",default:generateBlocksDefaults.container.bgImage},bgOptions:{type:"object",default:{selector:generateBlocksDefaults.container.bgOptions.selector,opacity:generateBlocksDefaults.container.bgOptions.opacity,overlay:generateBlocksDefaults.container.bgOptions.overlay,position:generateBlocksDefaults.container.bgOptions.position,size:generateBlocksDefaults.container.bgOptions.size,repeat:generateBlocksDefaults.container.bgOptions.repeat,attachment:generateBlocksDefaults.container.bgOptions.attachment}},bgImageSize:{type:"string",default:generateBlocksDefaults.container.bgImageSize},verticalAlignment:{type:"string",default:generateBlocksDefaults.container.verticalAlignment},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentTablet},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentMobile},zindex:{type:"number",default:generateBlocksDefaults.container.zindex},innerZindex:{type:"number",default:generateBlocksDefaults.container.innerZindex},removeVerticalGap:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGap},removeVerticalGapTablet:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapTablet},removeVerticalGapMobile:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapMobile},alignment:{type:"string",default:generateBlocksDefaults.container.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.container.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.container.alignmentMobile},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.container.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.container.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.container.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.container.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.container.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.container.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.container.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.container.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.container.fontSizeUnit},textTransform:{type:"string",default:""},align:{type:"string",default:""},shapeDividers:{type:"array",default:[]},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};generateBlocksInfo.hasCustomFields&&Object.assign(Rl,{fullWidthContent:{type:"string",source:"meta",meta:"_generate-full-width-content"}});var Ml=Rl;function zl(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function xl(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Fl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=Gl("generateblocks.editor.mainCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(Il);function ql(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Wl=wp.element.Component,Zl=wp.hooks.applyFilters,Kl=function(e){f()(a,e);var t=ql(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Zl("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,Z(e))}}]),a}(Wl);function Jl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yl=wp.element.Component,Ql=wp.hooks.applyFilters,Xl=function(e){f()(a,e);var t=Jl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Ql("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":K(i,c),"margin-right":K(r,c),"margin-bottom":K(n,c),"margin-left":K(o,c),"justify-content":Fl(a),"flex-direction":!!s&&"column","align-items":!!s&&Fl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Fl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=Ql("generateblocks.editor.tabletCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(Yl);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ei=wp.element.Component,ti=wp.hooks.applyFilters,ai=function(e){f()(a,e);var t=$l(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=ti("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,Z(e))}}]),a}(ei);function li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ii=wp.element.Component,ri=wp.hooks.applyFilters,ni=function(e){f()(a,e);var t=li(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=ri("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":K(i,c),"margin-right":K(r,c),"margin-bottom":K(n,c),"margin-left":K(o,c),"justify-content":Fl(a),"flex-direction":!!s&&"column","align-items":!!s&&Fl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Fl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=ri("generateblocks.editor.mobileCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(ii);function oi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ci=wp.i18n.__,si=wp.components,gi=si.Tooltip,ui=si.Button,bi=si.ToggleControl,di=si.ToolbarGroup,pi=si.ToolbarButton,fi=si.TextControl,hi=wp.element,mi=hi.Fragment,ki=hi.Component,yi=wp.blockEditor,wi=yi.InspectorControls,vi=yi.InnerBlocks,Ti=yi.AlignmentToolbar,Oi=yi.BlockControls,Ci=yi.InspectorAdvancedControls,Si=wp.blocks,Bi=Si.createBlock,Di=Si.cloneBlock,Ei=wp.hooks.applyFilters,ji=wp.data,Ri=ji.withSelect,Mi=ji.withDispatch,zi=wp.compose.compose,xi=/[\s#]/g,Li=[],Pi=[{icon:"editor-alignleft",title:ci("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:ci("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:ci("Align Buttons Right","generateblocks"),align:"right"}],Ai=function(e){f()(a,e);var t=oi(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Li.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Li.push(e)):Li.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Li.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Bi("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,w=i.fillHorizontalSpaceMobile,T={className:v()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return T=Ei("generateblocks.frontend.htmlAttributes",T,"generateblocks/button-container",i),Object(l.createElement)(mi,null,Object(l.createElement)(Oi,null,Object(l.createElement)(di,null,Object(l.createElement)(pi,{className:"gblocks-add-new-button",icon:"insert",label:ci("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Di(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Bi("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ti,{value:b,alignmentControls:Pi,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Ti,{value:d,alignmentControls:Pi,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Ti,{value:p,alignmentControls:Pi,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(wi,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{title:ci("Spacing","generateblocks"),initialOpen:!0,icon:O("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(mi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:ci("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(bi,{label:ci("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(bi,{label:ci("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(mi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:ci("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(bi,{label:ci("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(bi,{label:ci("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(mi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:ci("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(bi,{label:ci("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(bi,{label:ci("Fill Horizontal Space","generateblocks"),checked:!!w,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Ei("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:ci("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,ci("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},ci("Visit our documentation","generateblocks")),Ei("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Ci,null,Object(l.createElement)(fi,{label:ci("HTML Anchor"),help:ci("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(xi,"-"),n({anchor:e})}})),Object(l.createElement)(Vl,this.props),this.props.deviceType&&Object(l.createElement)(mi,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Kl,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Xl,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ai,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(ni,this.props)),Object(l.createElement)("div",T,Object(l.createElement)(vi,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(gi,{text:ci("Add Button","generateblocks")},Object(l.createElement)(ui,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Bi("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(ki),Ui=zi([Mi((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Ri((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Ai),Hi={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Ni(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Fi(e){for(var t=1;t0?Z.join(" "):null,"aria-label":C||null,id:d||null};return J=cn("generateblocks.frontend.htmlAttributes",J,"generateblocks/button",i),Object(l.createElement)($r,null,Object(l.createElement)(nn,null,Object(l.createElement)(Jr,null,Object(l.createElement)(Yr,{className:"gblocks-add-new-button",icon:"insert",label:qr("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=on(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(an,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{title:qr("Typography","generateblocks"),initialOpen:!1,icon:O("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!T||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)($r,null,Object(l.createElement)(na,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)($r,null,Object(l.createElement)(na,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)($r,null,Object(l.createElement)(na,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),cn("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:qr("Spacing","generateblocks"),initialOpen:!1,icon:O("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)($r,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:qr("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:qr("T-Left","generateblocks"),labelRight:qr("T-Right","generateblocks"),labelBottom:qr("B-Right","generateblocks"),labelLeft:qr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)($r,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:qr("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:qr("T-Left","generateblocks"),labelRight:qr("T-Right","generateblocks"),labelBottom:qr("B-Right","generateblocks"),labelLeft:qr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)($r,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:qr("T-Left","generateblocks"),labelRight:qr("T-Right","generateblocks"),labelBottom:qr("B-Right","generateblocks"),labelLeft:qr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),cn("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:qr("Colors","generateblocks"),initialOpen:!1,icon:O("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Zr,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:qr("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:qr("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)($r,null,Object(l.createElement)(At,{label:qr("Background Color","generateblocks"),value:S,alpha:!0,valueOpacity:B,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(At,{label:qr("Text Color","generateblocks"),value:D,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(At,{label:qr("Border Color","generateblocks"),value:P,alpha:!0,valueOpacity:A,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),cn("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)($r,null,Object(l.createElement)(At,{label:qr("Background Color","generateblocks"),value:E,alpha:!0,valueOpacity:j,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(At,{label:qr("Text Color","generateblocks"),value:R,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(At,{label:qr("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),cn("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),cn("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:qr("Background Gradient","generateblocks"),initialOpen:!1,icon:O("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ka,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),cn("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:qr("Icon","generateblocks"),initialOpen:!1,icon:O("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(dr,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:qr("Left","generateblocks"),value:"left"},{label:qr("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)($r,null,!T&&Object(l.createElement)($r,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:qr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Kr,{type:"number",value:N||"",step:"em"===I?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(N)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Qr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},qr("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)($r,null,!T&&Object(l.createElement)($r,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:qr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Kr,{type:"number",value:F||"",step:"em"===I?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(F)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Qr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},qr("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)($r,null,!T&&Object(l.createElement)($r,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:qr("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:qr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Kr,{type:"number",value:_||"",step:"em"===I?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(_)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Qr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},qr("Reset","generateblocks")))),cn("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:qr("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,qr("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},qr("Visit our documentation","generateblocks")),cn("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(ln,null,Object(l.createElement)(Kr,{label:qr("HTML Anchor"),help:qr("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(dn,"-"),n({anchor:e})}}),Object(l.createElement)(Kr,{label:qr("ARIA Label","generateblocks"),help:qr("Helpful to people using screen readers.","generateblocks"),value:C,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dr,this.props),this.props.deviceType&&Object(l.createElement)($r,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Mr,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Pr,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Nr,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Gr,this.props)),M&&z&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+M.replace(/ /g,"+")+K}),Object(l.createElement)(Ot,{tagName:f?"a":"span",htmlAttrs:J},!!y&&Object(l.createElement)($r,null,"left"===w&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(y)}}),!T&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(rn,{placeholder:qr("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===w&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(y)}})),!y&&!T&&Object(l.createElement)(rn,{placeholder:qr("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(Or,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(en),hn=bn([un((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),gn((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(fn),mn=wp.blockEditor.RichText,kn=wp.hooks.applyFilters,yn={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function wn(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function vn(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Tn("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(d)}}),!f&&Object(l.createElement)(On.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(d)}}))}}],Sn=wp.i18n.__;(0,wp.blocks.registerBlockType)("generateblocks/button",{title:Sn("Button","generateblocks"),description:Sn("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:O("button"),category:"generateblocks",keywords:[Sn("button"),Sn("buttons"),Sn("generate")],attributes:yn,supports:{className:!1,inserter:!1,reusable:!1},edit:hn,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,u=a.relSponsored,b=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),u&&m.push("sponsored");var k={className:v()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!b),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=kn("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(Ot,{tagName:c?"a":"span",htmlAttrs:k},!!b&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(b)}}),!p&&Object(l.createElement)(mn.Content,{value:n,tagName:b?"span":null,className:b?"gb-button-text":null}),!!b&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(b)}}))},deprecated:Cn});a(35);function Bn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Dn=wp.element.Component,En=wp.hooks.applyFilters,jn=function(e){f()(a,e);var t=Bn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=En("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,u=e.borderColorOpacity,b=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,w=e.lineHeightUnit,v=e.letterSpacing,T=e.marginTop,O=e.marginRight,C=e.marginBottom,S=e.marginLeft,B=e.marginUnit,D=e.paddingTop,E=e.paddingRight,j=e.paddingBottom,R=e.paddingLeft,M=e.paddingUnit,z=e.borderSizeTop,x=e.borderSizeRight,L=e.borderSizeBottom,P=e.borderSizeLeft,A=e.borderRadiusTopRight,U=e.borderRadiusBottomRight,H=e.borderRadiusBottomLeft,N=e.borderRadiusTopLeft,F=e.borderRadiusUnit,_=e.icon,I=e.iconColor,G=e.iconColorOpacity,V=e.iconLocation,q=e.iconVerticalAlignment,W=e.iconPaddingTop,J=e.iconPaddingRight,Y=e.iconPaddingBottom,Q=e.iconPaddingLeft,X=e.iconPaddingUnit,$=e.iconSize,ee=e.iconSizeUnit,te=e.inlineWidth,ae=e.removeText,le="",ie="inline-block";d&&p&&(le=", "+p);var re=i+".gb-headline-"+a,ne=[];return ne[".editor-styles-wrapper "+re]=[{color:c,"font-family":d+le,"font-weight":f,"text-transform":k,"text-align":r,"font-size":K(h,m),"line-height":K(y,w),"letter-spacing":K(v,"em"),display:!!_&&"flex","align-items":Fl("inline"===V?q:r),"justify-content":Fl(r),"flex-direction":!(!_||"above"!==V)&&"column"}],ne[".editor-styles-wrapper .gb-container "+re]=[{color:c}],_&&(ie="inline-flex"),ne[".editor-styles-wrapper "+re].push({"background-color":Ct(n,o),color:c,display:!!te&&ie,"margin-top":K(T,B),"margin-right":K(O,B),"margin-bottom":K(C,B),"margin-left":K(S,B),padding:Ta(D,E,j,R,M),"border-radius":Ta(N,A,U,H,F)}),(z||x||L||P)&&ne[".editor-styles-wrapper "+re].push({"border-width":Ta(z,x,L,P,"px"),"border-style":"solid","border-color":Ct(g,u)}),ne[".editor-styles-wrapper "+re+" a"]=[{color:s}],ne[re+" .gb-icon"]=[{padding:!ae&&Ta(W,J,Y,Q,X),"align-self":!(!_||"above"!==V)&&Fl(r),color:Ct(I,G),display:!(!_||"above"!==V)&&"inline"}],ne[re+" .gb-icon svg"]=[{width:K($,ee),height:K($,ee)}],ne[re+" .gb-highlight"]=[{color:b}],ne["#block-"+t]=[{display:!!te&&"inline-flex"}],ne=En("generateblocks.editor.mainCSS",ne,this.props,"headline"),Object(l.createElement)("style",null,Z(ne))}}]),a}(Dn);function Rn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Mn=wp.element.Component,zn=wp.hooks.applyFilters,xn=function(e){f()(a,e);var t=Rn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=zn("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,Z(e))}}]),a}(Mn);function Ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pn=wp.element.Component,An=wp.hooks.applyFilters,Un=function(e){f()(a,e);var t=Ln(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=An("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,u=e.marginTopTablet,b=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,w=e.paddingUnit,v=e.borderSizeTopTablet,T=e.borderSizeRightTablet,O=e.borderSizeBottomTablet,C=e.borderSizeLeftTablet,S=e.borderRadiusTopRightTablet,B=e.borderRadiusBottomRightTablet,D=e.borderRadiusBottomLeftTablet,E=e.borderRadiusTopLeftTablet,j=e.borderRadiusUnit,R=e.icon,M=e.iconLocationTablet,z=e.iconVerticalAlignmentTablet,x=e.iconPaddingTopTablet,L=e.iconPaddingRightTablet,P=e.iconPaddingBottomTablet,A=e.iconPaddingLeftTablet,U=e.iconPaddingUnit,H=e.iconSizeTablet,N=e.iconSizeUnit,F=e.inlineWidthTablet,_=e.removeText,I=i+".gb-headline-"+a,G="inline-block",V=[];return V[".editor-styles-wrapper "+I]=[{"text-align":r,"font-size":K(n,o),"line-height":K(c,s),"letter-spacing":K(g,"em"),display:!!R&&"flex","align-items":Fl("inline"===M?z:r),"justify-content":Fl(r),"flex-direction":!(!R||"above"!==M)&&"column","margin-top":K(u,f)+" !important","margin-right":K(b,f)+" !important","margin-bottom":K(d,f)+" !important","margin-left":K(p,f)+" !important","padding-top":K(h,w),"padding-right":K(m,w),"padding-bottom":K(k,w),"padding-left":K(y,w),"border-top-left-radius":K(E,j),"border-top-right-radius":K(S,j),"border-bottom-right-radius":K(B,j),"border-bottom-left-radius":K(D,j)}],R&&(G="inline-flex",V[".editor-styles-wrapper "+I].push({display:!!F&&G})),(v||T||O||C)&&V[".editor-styles-wrapper "+I].push({"border-top-width":K(v,"px"),"border-right-width":K(T,"px"),"border-bottom-width":K(O,"px"),"border-left-width":K(C,"px"),"border-style":"solid"}),V[I+" .gb-icon"]=[{"padding-top":!_&&K(x,U),"padding-right":!_&&K(L,U),"padding-bottom":!_&&K(P,U),"padding-left":!_&&K(A,U),"align-self":!(!R||"above"!==M)&&Fl(r),display:!(!R||"above"!==M)&&"inline"}],V[I+" .gb-icon svg"]=[{width:K(H,N),height:K(H,N)}],V["#block-"+t]=[{display:!!F&&"inline-flex"}],V=An("generateblocks.editor.tabletCSS",V,this.props,"text"),Object(l.createElement)("style",null,Z(V))}}]),a}(Pn);function Hn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Nn=wp.element.Component,Fn=wp.hooks.applyFilters,_n=function(e){f()(a,e);var t=Hn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Fn("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,Z(e))}}]),a}(Nn);function In(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Gn=wp.element.Component,Vn=wp.hooks.applyFilters,qn=function(e){f()(a,e);var t=In(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=Vn("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,u=e.marginTopMobile,b=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,w=e.paddingUnit,v=e.borderSizeTopMobile,T=e.borderSizeRightMobile,O=e.borderSizeBottomMobile,C=e.borderSizeLeftMobile,S=e.borderRadiusTopRightMobile,B=e.borderRadiusBottomRightMobile,D=e.borderRadiusBottomLeftMobile,E=e.borderRadiusTopLeftMobile,j=e.borderRadiusUnit,R=e.icon,M=e.iconLocationMobile,z=e.iconVerticalAlignmentMobile,x=e.iconPaddingTopMobile,L=e.iconPaddingRightMobile,P=e.iconPaddingBottomMobile,A=e.iconPaddingLeftMobile,U=e.iconPaddingUnit,H=e.iconSizeMobile,N=e.iconSizeUnit,F=e.inlineWidthMobile,_=e.removeText,I=i+".gb-headline-"+a,G="inline-block",V=[];return V[".editor-styles-wrapper "+I]=[{"text-align":r,"font-size":K(n,o),"line-height":K(c,s),"letter-spacing":K(g,"em"),display:!!R&&"flex","align-items":Fl("inline"===M?z:r),"justify-content":Fl(r),"flex-direction":!(!R||"above"!==M)&&"column","margin-top":K(u,f)+" !important","margin-right":K(b,f)+" !important","margin-bottom":K(d,f)+" !important","margin-left":K(p,f)+" !important","padding-top":K(h,w),"padding-right":K(m,w),"padding-bottom":K(k,w),"padding-left":K(y,w),"border-top-left-radius":K(E,j),"border-top-right-radius":K(S,j),"border-bottom-right-radius":K(B,j),"border-bottom-left-radius":K(D,j)}],R&&(G="inline-flex",V[".editor-styles-wrapper "+I].push({display:!!F&&G})),(v||T||O||C)&&V[".editor-styles-wrapper "+I].push({"border-top-width":K(v,"px"),"border-right-width":K(T,"px"),"border-bottom-width":K(O,"px"),"border-left-width":K(C,"px"),"border-style":"solid"}),V[I+" .gb-icon"]=[{"padding-top":!_&&K(x,U),"padding-right":!_&&K(L,U),"padding-bottom":!_&&K(P,U),"padding-left":!_&&K(A,U),"align-self":!(!R||"above"!==M)&&Fl(r),display:!(!R||"above"!==M)&&"inline"}],V[I+" .gb-icon svg"]=[{width:K(H,N),height:K(H,N)}],V["#block-"+t]=[{display:!!F&&"inline-flex"}],V=Vn("generateblocks.editor.mobileCSS",V,this.props,"headline"),Object(l.createElement)("style",null,Z(V))}}]),a}(Gn),Wn=wp.i18n.__,Zn=wp.element.Fragment,Kn=wp.richText,Jn=Kn.toggleFormat,Yn=Kn.registerFormatType,Qn=wp.blockEditor,Xn=Qn.RichTextToolbarButton,$n=Qn.RichTextShortcut,eo=wp.data.withSelect,to=wp.compose.ifCondition,ao=wp.compose.compose,lo=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),io=ao(eo((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),to((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Jn(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(Zn,null,Object(l.createElement)($n,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Xn,{icon:lo,title:Wn("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))}));Yn("generateblocks/mark",{title:Wn("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:io});var ro=wp.components,no=ro.Path,oo=ro.SVG;function co(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(oo,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(no,{d:a[t]}))}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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var go=wp.i18n,uo=go.__,bo=go.sprintf,po=wp.components,fo=po.TextControl,ho=po.ToolbarGroup,mo=po.SelectControl,ko=po.ToggleControl,yo=po.Button,wo=wp.element,vo=wo.Fragment,To=wo.Component,Oo=wp.blockEditor,Co=Oo.InspectorControls,So=Oo.RichText,Bo=Oo.BlockControls,Do=Oo.AlignmentToolbar,Eo=Oo.InspectorAdvancedControls,jo=wp.hooks.applyFilters,Ro=wp.data,Mo=Ro.withSelect,zo=Ro.withDispatch,xo=wp.compose.compose,Lo=/[\s#]/g,Po=[],Ao=function(e){f()(a,e);var t=so(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Po.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Po.push(e)):Po.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Po.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,u=i.className,b=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,w=i.linkColor,T=i.linkColorHover,C=i.borderColor,S=i.borderColorOpacity,B=i.highlightTextColor,D=i.fontFamily,E=i.googleFont,j=i.googleFontVariants,R=i.marginTop,M=i.marginRight,z=i.marginBottom,L=i.marginLeft,P=i.icon,A=i.hasIcon,U=i.iconColor,H=i.iconColorOpacity,N=i.iconLocation,F=i.iconLocationTablet,_=i.iconLocationMobile,I=i.iconVerticalAlignment,G=i.iconVerticalAlignmentTablet,q=i.iconVerticalAlignmentMobile,W=i.iconSize,Z=i.iconSizeTablet,K=i.iconSizeMobile,J=i.iconSizeUnit,Y=i.inlineWidth,Q=i.inlineWidthTablet,X=i.inlineWidthMobile,$=i.removeText,ee=i.ariaLabel,te="";j&&(te=":"+j);var ae="";ae=Z||0===Z?Z:W||0===W?W:"";var le={className:v()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!A),o()(e,u,void 0!==u),e)),id:g||null};return le=jo("generateblocks.frontend.htmlAttributes",le,"generateblocks/headline",i),Object(l.createElement)(vo,null,Object(l.createElement)(Bo,null,Object(l.createElement)(ho,{isCollapsed:!0,icon:Object(l.createElement)(co,{level:d}),label:uo("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(co,{level:"h1"}),title:bo(// translators: %s: heading level e.g: "1", "2", "3" -uo("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(co,{level:"h2"}),title:bo(// translators: %s: heading level e.g: "1", "2", "3" -uo("Heading %s","generateblocks"),"2"),onClick:function(){n({element:"h2"})}},{isActive:"h3"===d,icon:Object(l.createElement)(co,{level:"h3"}),title:bo(// translators: %s: heading level e.g: "1", "2", "3" -uo("Heading %s","generateblocks"),"3"),onClick:function(){n({element:"h3"})}},{isActive:"h4"===d,icon:Object(l.createElement)(co,{level:"h4"}),title:bo(// translators: %s: heading level e.g: "1", "2", "3" -uo("Heading %s","generateblocks"),"4"),onClick:function(){n({element:"h4"})}},{isActive:"h5"===d,icon:Object(l.createElement)(co,{level:"h5"}),title:bo(// translators: %s: heading level e.g: "1", "2", "3" -uo("Heading %s","generateblocks"),"5"),onClick:function(){n({element:"h5"})}},{isActive:"h6"===d,icon:Object(l.createElement)(co,{level:"h6"}),title:bo(// translators: %s: heading level e.g: "1", "2", "3" -uo("Heading %s","generateblocks"),"6"),onClick:function(){n({element:"h6"})}},{isActive:"p"===d,icon:Object(l.createElement)(co,{level:"p"}),title:uo("Paragraph","generateblocks"),onClick:function(){n({element:"p"})}},{isActive:"div"===d,icon:Object(l.createElement)(co,{level:"div"}),title:uo("Div","generateblocks"),onClick:function(){n({element:"div"})}}]}),"Desktop"===this.getDeviceType()&&!Y&&Object(l.createElement)(Do,{value:p,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&!Q&&Object(l.createElement)(Do,{value:f,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&!X&&Object(l.createElement)(Do,{value:h,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Co,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{id:"headlineElement",state:this.state,showPanel:"Desktop"===this.getDeviceType()}),Object(l.createElement)(mo,{label:uo("Element","generateblocks"),value:d,options:[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"paragraph",value:"p"},{label:"div",value:"div"}],onChange:function(e){n({element:e}),R||M||z||L||n("p"===e?{marginUnit:"em"}:{marginUnit:generateBlocksDefaults.headline.marginUnit})}}),jo("generateblocks.editor.controls","","headlineElement",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:uo("Typography","generateblocks"),initialOpen:!1,icon:O("typography"),className:"gblocks-panel-label",id:"headlineTypography",state:this.state,showPanel:!$||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(vo,null,Object(l.createElement)(na,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,fontSizePlaceholder:c,defaultFontSize:generateBlocksDefaults.headline.fontSize,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeight,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(vo,null,Object(l.createElement)(na,r()({},this.props,{device:"Tablet",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightTablet,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(vo,null,Object(l.createElement)(na,r()({},this.props,{device:"Mobile",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightMobile,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingMobile}))),jo("generateblocks.editor.controls","","headlineTypography",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:uo("Spacing","generateblocks"),initialOpen:!1,icon:O("spacing"),className:"gblocks-panel-label",id:"headlineSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(vo,null,Object(l.createElement)(ko,{label:uo("Inline Width","generateblocks"),checked:!!Y,onChange:function(e){n({inlineWidth:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:uo("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:uo("T-Left","generateblocks"),labelRight:uo("T-Right","generateblocks"),labelBottom:uo("B-Right","generateblocks"),labelLeft:uo("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(vo,null,Object(l.createElement)(ko,{label:uo("Inline Width","generateblocks"),checked:!!Q,onChange:function(e){n({inlineWidthTablet:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:uo("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:uo("T-Left","generateblocks"),labelRight:uo("T-Right","generateblocks"),labelBottom:uo("B-Right","generateblocks"),labelLeft:uo("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(vo,null,Object(l.createElement)(ko,{label:uo("Inline Width","generateblocks"),checked:!!X,onChange:function(e){n({inlineWidthMobile:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:uo("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:uo("T-Left","generateblocks"),labelRight:uo("T-Right","generateblocks"),labelBottom:uo("B-Right","generateblocks"),labelLeft:uo("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),jo("generateblocks.editor.controls","","headlineSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:uo("Colors","generateblocks"),initialOpen:!1,icon:O("colors"),className:"gblocks-panel-label",id:"headlineColors",state:this.state,showPanel:"Desktop"===this.getDeviceType()||!1}),Object(l.createElement)(At,{label:uo("Background Color","generateblocks"),value:m,alpha:!0,valueOpacity:k,attrOpacity:"backgroundColorOpacity",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(At,{label:uo("Text Color","generateblocks"),value:y,alpha:!1,onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(At,{label:uo("Link Color","generateblocks"),value:w,alpha:!1,onChange:function(e){return n({linkColor:e})}}),Object(l.createElement)(At,{label:uo("Link Color Hover","generateblocks"),value:T,alpha:!1,onChange:function(e){return n({linkColorHover:e})}}),Object(l.createElement)(At,{label:uo("Border Color","generateblocks"),value:C,alpha:!0,valueOpacity:S,attrOpacity:"borderColorOpacity",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),P&&Object(l.createElement)(At,{label:uo("Icon Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"iconColorOpacity",onChange:function(e){return n({iconColor:e})},onOpacityChange:function(e){return n({iconColorOpacity:e})}}),Object(l.createElement)(At,{label:uo("Highlight Text","generateblocks"),value:B,alpha:!1,onChange:function(e){return n({highlightTextColor:e})}})),Object(l.createElement)(Ce,r()({},this.props,{title:uo("Icon","generateblocks"),initialOpen:!1,icon:O("icons"),className:"gblocks-panel-label",id:"headlineIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!P)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(dr,r()({},this.props,{attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel"})),"Desktop"===this.getDeviceType()&&!!P&&Object(l.createElement)(vo,null,!$&&Object(l.createElement)(vo,null,Object(l.createElement)(mo,{label:uo("Icon Location","generateblocks"),value:N,options:[{label:uo("Inline","generateblocks"),value:"inline"},{label:uo("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocation:e,iconPaddingRight:"inline"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":""})}}),"inline"===N&&Object(l.createElement)(mo,{label:uo("Icon Alignment","generateblocks"),value:I,options:[{label:uo("Top","generateblocks"),value:"top"},{label:uo("Center","generateblocks"),value:"center"},{label:uo("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignment:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(V,{label:uo("Icon Size","generateblocks"),value:J,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(fo,{type:"number",value:W||0===W?W:"",step:"em"===J?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(W)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(yo,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.headline.iconSize})}},uo("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!P&&Object(l.createElement)(vo,null,!$&&Object(l.createElement)(vo,null,Object(l.createElement)(mo,{label:uo("Icon Location","generateblocks"),value:F,options:[{label:uo("Inherit","generateblocks"),value:""},{label:uo("Inline","generateblocks"),value:"inline"},{label:uo("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":""})}}),"inline"===F&&Object(l.createElement)(mo,{label:uo("Icon Alignment","generateblocks"),value:G,options:[{label:uo("Inherit","generateblocks"),value:""},{label:uo("Top","generateblocks"),value:"top"},{label:uo("Center","generateblocks"),value:"center"},{label:uo("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentTablet:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(V,{label:uo("Icon Size","generateblocks"),value:J,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(fo,{type:"number",value:Z||0===Z?Z:"",step:"em"===J?.1:1,placeholder:W||0===W?W:"",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(Z)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(yo,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.headline.iconSizeTablet})}},uo("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!P&&Object(l.createElement)(vo,null,!$&&Object(l.createElement)(vo,null,Object(l.createElement)(mo,{label:uo("Icon Location","generateblocks"),value:_,options:[{label:uo("Inherit","generateblocks"),value:""},{label:uo("Inline","generateblocks"),value:"inline"},{label:uo("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":""})}}),"inline"===_&&Object(l.createElement)(mo,{label:uo("Icon Alignment","generateblocks"),value:q,options:[{label:uo("Inherit","generateblocks"),value:""},{label:uo("Top","generateblocks"),value:"top"},{label:uo("Center","generateblocks"),value:"center"},{label:uo("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentMobile:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:uo("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(V,{label:uo("Icon Size","generateblocks"),value:J,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(fo,{type:"number",value:K||0===K?K:"",step:"em"===J?.1:1,placeholder:ae,onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(K)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(yo,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.headline.iconSizeMobile})}},uo("Reset","generateblocks")))),jo("generateblocks.editor.controls","","headlineIcon",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:uo("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"headlineDocumentation",state:this.state}),Object(l.createElement)("p",null,uo("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/headline/",target:"_blank",rel:"noreferrer noopener"},uo("Visit our documentation","generateblocks")),jo("generateblocks.editor.controls","","headlineDocumentation",this.props,this.state))),Object(l.createElement)(Eo,null,Object(l.createElement)(fo,{label:uo("HTML Anchor"),help:uo("Anchors lets you link directly to a section on a page.","generateblocks"),value:g||"",onChange:function(e){e=e.replace(Lo,"-"),n({anchor:e})}})),Object(l.createElement)(jn,this.props),this.props.deviceType&&Object(l.createElement)(vo,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(xn,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Un,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(_n,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(qn,this.props)),D&&E&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+D.replace(/ /g,"+")+te}),Object(l.createElement)(Ot,{tagName:d,htmlAttrs:le},A&&Object(l.createElement)(vo,null,Object(l.createElement)("span",{className:"gb-icon","aria-label":$&&ee?ee:void 0,dangerouslySetInnerHTML:{__html:va(P)}}),!$&&Object(l.createElement)("span",{className:"gb-headline-text"},Object(l.createElement)(So,{tagName:"span",value:b,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0}))),!A&&!$&&Object(l.createElement)(So,{tagName:"span",value:b,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0})))}}]),a}(To),Uo=xo([zo((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Mo((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Ao),Ho=wp.blockEditor.RichText,No=wp.hooks.applyFilters,Fo={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},content:{type:"string",source:"html",selector:".gb-headline-text"},element:{type:"string",default:"h2"},alignment:{type:"string",default:generateBlocksDefaults.headline.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.headline.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.headline.alignmentMobile},backgroundColor:{type:"string",default:generateBlocksDefaults.headline.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.headline.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.headline.textColor},linkColor:{type:"string",default:generateBlocksDefaults.headline.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.headline.linkColorHover},borderColor:{type:"string",default:generateBlocksDefaults.headline.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.headline.borderColorOpacity},highlightTextColor:{type:"string",default:generateBlocksDefaults.headline.highlightTextColor},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.headline.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.headline.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.headline.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.headline.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.headline.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.headline.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.headline.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.headline.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.headline.fontSizeUnit},textTransform:{type:"string",default:""},lineHeight:{type:"number",default:generateBlocksDefaults.headline.lineHeight},lineHeightTablet:{type:"number",default:generateBlocksDefaults.headline.lineHeightTablet},lineHeightMobile:{type:"number",default:generateBlocksDefaults.headline.lineHeightMobile},lineHeightUnit:{type:"string",default:generateBlocksDefaults.headline.lineHeightUnit},letterSpacing:{type:"number",default:generateBlocksDefaults.headline.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.headline.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.headline.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.headline.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.headline.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.headline.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.headline.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.headline.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.headline.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.headline.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.headline.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.headline.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.headline.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.headline.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.headline.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.headline.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.headline.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.headline.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.headline.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.headline.paddingLeft},paddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.paddingLeftMobile},paddingUnit:{type:"string",default:generateBlocksDefaults.headline.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},borderSizeTop:{type:"string",default:generateBlocksDefaults.headline.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.headline.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.headline.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftMobile},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:generateBlocksDefaults.headline.iconColor},iconColorOpacity:{type:"number",default:generateBlocksDefaults.headline.iconColorOpacity},customIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.headline.iconLocation},iconLocationTablet:{type:"string",default:generateBlocksDefaults.headline.iconLocationTablet},iconLocationMobile:{type:"string",default:generateBlocksDefaults.headline.iconLocationMobile},iconVerticalAlignment:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignment},iconVerticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentTablet},iconVerticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentMobile},iconPaddingTop:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.headline.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.headline.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.headline.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.headline.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.headline.iconSizeUnit},inlineWidth:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidth},inlineWidthTablet:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthTablet},inlineWidthMobile:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthMobile},removeText:{type:"boolean",default:generateBlocksDefaults.headline.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.headline.ariaLabel},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}},_o=wp.blocks.createBlock,Io={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return _o("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return _o("generateblocks/headline",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return _o("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return _o("core/heading",{content:t})}}]};function Go(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Vo(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie="",re="inline-block";d&&p&&(ie=", "+p);var ne=i+".gb-headline-"+a,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:c,"font-family":d+ie,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:c}],V&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":he(n,o),color:c,display:!!ae&&re,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:s}],oe[ne+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],oe[ne+" .gb-highlight"]=[{color:u}],oe["#block-"+t]=[{display:!!ae&&"inline-flex"}],oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" +Object(T.__)("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(oa,{level:"h2"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" +Object(T.__)("Heading %s","generateblocks"),"2"),onClick:function(){n({element:"h2"})}},{isActive:"h3"===d,icon:Object(l.createElement)(oa,{level:"h3"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" +Object(T.__)("Heading %s","generateblocks"),"3"),onClick:function(){n({element:"h3"})}},{isActive:"h4"===d,icon:Object(l.createElement)(oa,{level:"h4"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" +Object(T.__)("Heading %s","generateblocks"),"4"),onClick:function(){n({element:"h4"})}},{isActive:"h5"===d,icon:Object(l.createElement)(oa,{level:"h5"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" +Object(T.__)("Heading %s","generateblocks"),"5"),onClick:function(){n({element:"h5"})}},{isActive:"h6"===d,icon:Object(l.createElement)(oa,{level:"h6"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" +Object(T.__)("Heading %s","generateblocks"),"6"),onClick:function(){n({element:"h6"})}},{isActive:"p"===d,icon:Object(l.createElement)(oa,{level:"p"}),title:Object(T.__)("Paragraph","generateblocks"),onClick:function(){n({element:"p"})}},{isActive:"div"===d,icon:Object(l.createElement)(oa,{level:"div"}),title:Object(T.__)("Div","generateblocks"),onClick:function(){n({element:"div"})}}]}),"Desktop"===this.getDeviceType()&&!te&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&!ae&&Object(l.createElement)(Q.AlignmentToolbar,{value:f,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&!le&&Object(l.createElement)(Q.AlignmentToolbar,{value:h,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{id:"headlineElement",state:this.state,showPanel:"Desktop"===this.getDeviceType()}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Element","generateblocks"),value:d,options:[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"paragraph",value:"p"},{label:"div",value:"div"}],onChange:function(e){n({element:e}),L||P||F||A||n("p"===e?{marginUnit:"em"}:{marginUnit:generateBlocksDefaults.headline.marginUnit})}}),Object(_.applyFilters)("generateblocks.editor.controls","","headlineElement",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"headlineTypography",state:this.state,showPanel:!ie||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,fontSizePlaceholder:c,defaultFontSize:generateBlocksDefaults.headline.fontSize,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeight,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightTablet,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightMobile,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"headlineSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!te,onChange:function(e){n({inlineWidth:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!ae,onChange:function(e){n({inlineWidthTablet:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!le,onChange:function(e){n({inlineWidthMobile:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"headlineColors",state:this.state,showPanel:"Desktop"===this.getDeviceType()||!1}),Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:m,alpha:!0,valueOpacity:k,attrOpacity:"backgroundColorOpacity",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:y,alpha:!1,onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Link Color","generateblocks"),value:v,alpha:!1,onChange:function(e){return n({linkColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Link Color Hover","generateblocks"),value:O,alpha:!1,onChange:function(e){return n({linkColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:S,alpha:!0,valueOpacity:D,attrOpacity:"borderColorOpacity",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),U&&Object(l.createElement)(ke,{label:Object(T.__)("Icon Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"iconColorOpacity",onChange:function(e){return n({iconColor:e})},onOpacityChange:function(e){return n({iconColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Highlight Text","generateblocks"),value:R,alpha:!1,onChange:function(e){return n({highlightTextColor:e})}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"headlineIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!U)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel"})),"Desktop"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:G,options:[{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocation:e,iconPaddingRight:"inline"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":""})}}),"inline"===G&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:W,options:[{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignment:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:J||0===J?J:"",step:"em"===ee?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(J)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.headline.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:V,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":""})}}),"inline"===V&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:Z,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentTablet:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:X||0===X?X:"",step:"em"===ee?.1:1,placeholder:J||0===J?J:"",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(X)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.headline.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:q,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":""})}}),"inline"===q&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:K,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentMobile:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:$||0===$?$:"",step:"em"===ee?.1:1,placeholder:oe,onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat($)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.headline.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"headlineDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/headline/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","headlineDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:g||"",onChange:function(e){e=e.replace(sa,"-"),n({anchor:e})}})),Object(l.createElement)(Kt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Yt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Xt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ea,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(aa,this.props)),x&&M&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+x.replace(/ /g,"+")+ne}),Object(l.createElement)(fe,{tagName:d,htmlAttrs:ce},H&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"gb-icon","aria-label":ie&&re?re:void 0,dangerouslySetInnerHTML:{__html:Be(U)}}),!ie&&Object(l.createElement)("span",{className:"gb-headline-text"},Object(l.createElement)(Q.RichText,{tagName:"span",value:u,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0}))),!H&&!ie&&Object(l.createElement)(Q.RichText,{tagName:"span",value:u,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0})))}}]),a}(l.Component),ua=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(ba),da={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},content:{type:"string",source:"html",selector:".gb-headline-text"},element:{type:"string",default:"h2"},alignment:{type:"string",default:generateBlocksDefaults.headline.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.headline.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.headline.alignmentMobile},backgroundColor:{type:"string",default:generateBlocksDefaults.headline.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.headline.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.headline.textColor},linkColor:{type:"string",default:generateBlocksDefaults.headline.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.headline.linkColorHover},borderColor:{type:"string",default:generateBlocksDefaults.headline.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.headline.borderColorOpacity},highlightTextColor:{type:"string",default:generateBlocksDefaults.headline.highlightTextColor},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.headline.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.headline.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.headline.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.headline.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.headline.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.headline.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.headline.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.headline.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.headline.fontSizeUnit},textTransform:{type:"string",default:""},lineHeight:{type:"number",default:generateBlocksDefaults.headline.lineHeight},lineHeightTablet:{type:"number",default:generateBlocksDefaults.headline.lineHeightTablet},lineHeightMobile:{type:"number",default:generateBlocksDefaults.headline.lineHeightMobile},lineHeightUnit:{type:"string",default:generateBlocksDefaults.headline.lineHeightUnit},letterSpacing:{type:"number",default:generateBlocksDefaults.headline.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.headline.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.headline.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.headline.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.headline.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.headline.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.headline.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.headline.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.headline.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.headline.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.headline.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.headline.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.headline.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.headline.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.headline.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.headline.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.headline.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.headline.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.headline.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.headline.paddingLeft},paddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.paddingLeftMobile},paddingUnit:{type:"string",default:generateBlocksDefaults.headline.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},borderSizeTop:{type:"string",default:generateBlocksDefaults.headline.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.headline.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.headline.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftMobile},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:generateBlocksDefaults.headline.iconColor},iconColorOpacity:{type:"number",default:generateBlocksDefaults.headline.iconColorOpacity},customIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.headline.iconLocation},iconLocationTablet:{type:"string",default:generateBlocksDefaults.headline.iconLocationTablet},iconLocationMobile:{type:"string",default:generateBlocksDefaults.headline.iconLocationMobile},iconVerticalAlignment:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignment},iconVerticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentTablet},iconVerticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentMobile},iconPaddingTop:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.headline.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.headline.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.headline.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.headline.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.headline.iconSizeUnit},inlineWidth:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidth},inlineWidthTablet:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthTablet},inlineWidthMobile:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthMobile},removeText:{type:"boolean",default:generateBlocksDefaults.headline.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.headline.ariaLabel},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}},pa={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(X.createBlock)("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(X.createBlock)("generateblocks/headline",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(X.createBlock)("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(X.createBlock)("core/heading",{content:t})}}]};function fa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function ha(e){for(var t=1;t array('wp-element', 'wp-polyfill'), 'version' => '21009385e1d715f417aa77ddaeee3daf'); \ No newline at end of file + array('wp-api-fetch', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '200c4b070e7005aa58cb28d0a8027694'); \ No newline at end of file diff --git a/dist/dashboard.js b/dist/dashboard.js index a92ddf77c..3e4b1b588 100644 --- a/dist/dashboard.js +++ b/dist/dashboard.js @@ -1 +1 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=37)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},,function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n Date: Thu, 17 Dec 2020 20:55:37 -0800 Subject: [PATCH 18/53] Remove tabs from Backgrounds panel --- src/blocks/container/edit.js | 493 ++++++++++++++++------------------- 1 file changed, 226 insertions(+), 267 deletions(-) diff --git a/src/blocks/container/edit.js b/src/blocks/container/edit.js index a1566eda7..3d5350550 100644 --- a/src/blocks/container/edit.js +++ b/src/blocks/container/edit.js @@ -37,7 +37,6 @@ import { PanelRow, Tooltip, Dropdown, - TabPanel, } from '@wordpress/components'; import { @@ -403,23 +402,6 @@ class GenerateBlockContainer extends Component { htmlAttributes = applyFilters( 'generateblocks.frontend.htmlAttributes', htmlAttributes, 'generateblocks/container', attributes ); - let containerTabs = []; - - if ( 'Desktop' === this.getDeviceType() ) { - containerTabs = [ - { - name: 'image', - title: __( 'Image', 'generateblocks' ), - }, - { - name: 'gradient', - title: __( 'Gradient', 'generateblocks' ), - }, - ]; - } - - const containerTabsOutput = applyFilters( 'generateblocks.editor.containerTabOptions', containerTabs ); - return ( @@ -1324,266 +1306,243 @@ class GenerateBlockContainer extends Component { initialOpen={ false } icon={ getIcon( 'gradients' ) } className={ 'gblocks-panel-label' } - id={ 'containerBackgroundGradient' } + id={ 'containerBackground' } state={ this.state } > - { containerTabsOutput.length > 0 && - + - { - ( tab ) => { - return ( -
- { 'image' === tab.name && - - -
- { - if ( ! value ) { - setAttributes( { - bgImage: null, - } ); - } else { - setAttributes( { - bgImage: { - id: '', - image: { - url: value, - }, - }, - } ); - } - } } - /> +
+ { + if ( ! value ) { + setAttributes( { + bgImage: null, + } ); + } else { + setAttributes( { + bgImage: { + id: '', + image: { + url: value, + }, + }, + } ); + } + } } + /> -
- { - let size = generateBlocksDefaults.container.bgImageSize; +
+ { + let size = generateBlocksDefaults.container.bgImageSize; - if ( 'undefined' === typeof media.sizes[ size ] ) { - size = 'full'; - } + if ( 'undefined' === typeof media.sizes[ size ] ) { + size = 'full'; + } - setAttributes( { - bgImage: { - id: media.id, - image: media.sizes[ size ], - }, - } ); - } } - onClose={ () => { - document.querySelector( '.gblocks-bg-image-wrapper input' ).focus(); - } } - allowedTypes={ [ 'image' ] } - value={ !! bgImage ? bgImage.id : '' } - modalClass="editor-gb-container-background__media-modal" - render={ ( { open } ) => ( - - - - ) } - /> + setAttributes( { + bgImage: { + id: media.id, + image: media.sizes[ size ], + }, + } ); + } } + onClose={ () => { + document.querySelector( '.gblocks-bg-image-wrapper input' ).focus(); + } } + allowedTypes={ [ 'image' ] } + value={ !! bgImage ? bgImage.id : '' } + modalClass="editor-gb-container-background__media-modal" + render={ ( { open } ) => ( + + + + ) } + /> - { applyFilters( 'generateblocks.editor.backgroundImageActions', '', this.props, this.state ) } -
-
- - - { !! bgImage && ( -
- { !! bgOptions.overlay ? ( // This option is deprecated, so only show it if it's in use. - - { - setAttributes( { - bgOptions: { - ...bgOptions, - overlay: nextOverlay, - }, - } ); - } } - /> - - - { __( 'The background color overlay option is deprecated. Toggle this option to use the new method.', 'generateblocks' ) } - - - ) : ( // These options is only for people not using the deprecated overlay option. - - { 'undefined' !== typeof bgImage.id && bgImage.id && - { - setAttributes( { - bgImageSize: value, - } ); - } } - /> - } + { applyFilters( 'generateblocks.editor.backgroundImageActions', '', this.props, this.state ) } +
+
+ - { - setAttributes( { - bgOptions: { - ...bgOptions, - selector: value, - }, - } ); - } } - /> - - { - setAttributes( { - bgOptions: { - ...bgOptions, - opacity: value, - selector: 'pseudo-element', - }, - } ); - } } - min={ 0 } - max={ 1 } - step={ 0.1 } - initialPosition={ generateBlocksDefaults.container.bgOptions.opacity } - /> - - { 1 !== bgOptions.opacity && 'pseudo-element' !== bgOptions.selector && - - { __( 'Your selector must be set to Pseudo Element to use opacity.', 'generateblocks' ) } - - } - - ) } - - { - setAttributes( { - bgOptions: { - ...bgOptions, - size: nextSize, - }, - } ); - } } - /> - - { - setAttributes( { - bgOptions: { - ...bgOptions, - position: nextPosition, - }, - } ); - } } - /> - - { - setAttributes( { - bgOptions: { - ...bgOptions, - repeat: nextRepeat, - }, - } ); - } } - /> - - { - setAttributes( { - bgOptions: { - ...bgOptions, - attachment: nextAttachment, - }, - } ); - } } - /> -
- ) } -
- } + { !! bgImage && ( + + { !! bgOptions.overlay ? ( // This option is deprecated, so only show it if it's in use. + + { + setAttributes( { + bgOptions: { + ...bgOptions, + overlay: nextOverlay, + }, + } ); + } } + /> - { 'gradient' === tab.name && - - } + + { __( 'The background color overlay option is deprecated. Toggle this option to use the new method.', 'generateblocks' ) } + + + ) : ( // These options is only for people not using the deprecated overlay option. + + { 'undefined' !== typeof bgImage.id && bgImage.id && + { + setAttributes( { + bgImageSize: value, + } ); + } } + /> + } - { applyFilters( 'generateblocks.editor.containerBackgroundTabBody', '', tab, this.props, this.state ) } -
- ); - } - } -
- } + { + setAttributes( { + bgOptions: { + ...bgOptions, + selector: value, + }, + } ); + } } + /> + + { + setAttributes( { + bgOptions: { + ...bgOptions, + opacity: value, + selector: 'pseudo-element', + }, + } ); + } } + min={ 0 } + max={ 1 } + step={ 0.1 } + initialPosition={ generateBlocksDefaults.container.bgOptions.opacity } + /> + + { 1 !== bgOptions.opacity && 'pseudo-element' !== bgOptions.selector && + + { __( 'Your selector must be set to Pseudo Element to use opacity.', 'generateblocks' ) } + + } +
+ ) } + + { + setAttributes( { + bgOptions: { + ...bgOptions, + size: nextSize, + }, + } ); + } } + /> + + { + setAttributes( { + bgOptions: { + ...bgOptions, + position: nextPosition, + }, + } ); + } } + /> + + { + setAttributes( { + bgOptions: { + ...bgOptions, + repeat: nextRepeat, + }, + } ); + } } + /> + + { + setAttributes( { + bgOptions: { + ...bgOptions, + attachment: nextAttachment, + }, + } ); + } } + /> + + ) } + + - { applyFilters( 'generateblocks.editor.controls', '', 'containerBackground', this.props, this.state ) } + { applyFilters( 'generateblocks.editor.controls', '', 'containerBackground', this.props, this.state ) } + Date: Thu, 17 Dec 2020 20:55:53 -0800 Subject: [PATCH 19/53] Set inner content z-index when using pseudo gradient --- src/components/gradient/index.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/gradient/index.js b/src/components/gradient/index.js index 96ba0bf5b..4890cf687 100644 --- a/src/components/gradient/index.js +++ b/src/components/gradient/index.js @@ -46,6 +46,7 @@ class GradientControl extends Component { const { gradientSelector, + innerZindex, } = attributes; const selectorHelp = 'element' === gradientSelector ? __( 'Displays behind the background image.', 'generateblocks' ) : __( 'Displays in front of the background image.', 'generateblocks' ); @@ -74,9 +75,16 @@ class GradientControl extends Component { { label: __( 'Pseudo Element', 'generateblocks' ), value: 'pseudo-element' }, ] } onChange={ ( value ) => { - setAttributes( { - gradientSelector: value, - } ); + if ( 'pseudo-element' === value && ! innerZindex ) { + setAttributes( { + gradientSelector: value, + innerZindex: 1, + } ); + } else { + setAttributes( { + gradientSelector: value, + } ); + } } } /> } From b4eccd15c2f8ad086bf55951f36d7c4d3f805f39 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Thu, 17 Dec 2020 20:55:59 -0800 Subject: [PATCH 20/53] Update dist --- dist/blocks.asset.php | 2 +- dist/blocks.js | 2 +- dist/dashboard.asset.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index b640d997c..7360026dc 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '7abda06de5247b62232e556dbfeadae1'); \ No newline at end of file + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '00e6b3a67bde4e0dbd7221d3504e0fc0'); \ No newline at end of file diff --git a/dist/blocks.js b/dist/blocks.js index fa393f951..c06073aec 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -4,7 +4,7 @@ /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Top","generateblocks"),r),value:a[c]?a[c]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:M,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeRight(a):e.onReset("attrRight")},onBlur:function(){q||""!==a[s]||""===B[s]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeRight("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Right","generateblocks"),r),value:a[s]?a[s]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:z,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeBottom(a):e.onReset("attrBottom")},onBlur:function(){q||""!==a[g]||""===B[g]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeBottom("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Bottom","generateblocks"),r),value:a[g]?a[g]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:L,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeLeft(a):e.onReset("attrLeft")},onBlur:function(){q||""!==a[b]||""===B[b]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeLeft("0"))},onClick:function(e){e.currentTarget.focus()} -/* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Left","generateblocks"),r),value:a[b]?a[b]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)(C.Tooltip,{text:a[u]?Object(T.__)("Unsync","generateblocks"):Object(T.__)("Sync","generateblocks")},Object(l.createElement)(C.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":Object(T.__)("Sync Units","generateblocks"),isPrimary:!!a[u]&&a[u],"aria-pressed":!!a[u]&&a[u],onClick:function(t){return e.syncUnits(t,"")},isSmall:!0},(a[u],j("sync"))))),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__input-labels"},Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},f),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},m),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},y),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},O),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"}))))}}]),a}(l.Component),we=(a(38),{Roboto:{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Open Sans":{weight:["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Lato:{weight:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Montserrat:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Source Sans Pro":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Roboto Condensed":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Oswald:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},"Roboto Mono":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"monospace"},Raleway:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Poppins:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Roboto Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Merriweather:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"serif"},"PT Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Ubuntu:{weight:["300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},"Playfair Display":{weight:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},Muli:{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Open Sans Condensed":{weight:["300","300italic","700"],fallback:"sans-serif"},"PT Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},Lora:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Slabo 27px":{weight:["regular"],fallback:"serif"},Nunito:{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans JP":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Work Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},Rubik:{weight:["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Noto Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fira Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Titillium Web":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],fallback:"sans-serif"},Quicksand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Noto Sans KR":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nanum Gothic":{weight:["regular","700","800"],fallback:"sans-serif"},Mukta:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Noto Sans TC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nunito Sans":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Heebo:{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Sans Narrow":{weight:["regular","700"],fallback:"sans-serif"},Arimo:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Inconsolata:{weight:["regular","700"],fallback:"monospace"},Barlow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Oxygen:{weight:["300","regular","700"],fallback:"sans-serif"},Dosis:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Bitter:{weight:["regular","italic","700"],fallback:"serif"},"Libre Baskerville":{weight:["regular","italic","700"],fallback:"serif"},"Crimson Text":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},"Libre Franklin":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Karla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Josefin Sans":{weight:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},Cabin:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Anton:{weight:["regular"],fallback:"sans-serif"},"Source Code Pro":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"monospace"},Hind:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Abel:{weight:["regular"],fallback:"sans-serif"},Amiri:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fjalla One":{weight:["regular"],fallback:"sans-serif"},Lobster:{weight:["regular"],fallback:"display"},Pacifico:{weight:["regular"],fallback:"handwriting"},"Indie Flower":{weight:["regular"],fallback:"handwriting"},"Exo 2":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Dancing Script":{weight:["regular","500","600","700"],fallback:"handwriting"},"Source Serif Pro":{weight:["regular","600","700"],fallback:"serif"},Arvo:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Hind Siliguri":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Varela Round":{weight:["regular"],fallback:"sans-serif"},"Merriweather Sans":{weight:["300","300italic","regular","italic","700","700italic","800","800italic"],fallback:"sans-serif"},Cairo:{weight:["200","300","regular","600","700","900"],fallback:"sans-serif"},"Yanone Kaffeesatz":{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Overpass:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Shadows Into Light":{weight:["regular"],fallback:"handwriting"},"Barlow Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"IBM Plex Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Comfortaa:{weight:["300","regular","500","600","700"],fallback:"display"},Asap:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Prompt:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Kanit:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Questrial:{weight:["regular"],fallback:"sans-serif"},Martel:{weight:["200","300","regular","600","700","800","900"],fallback:"serif"},"Archivo Narrow":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Abril Fatface":{weight:["regular"],fallback:"display"},"Amatic SC":{weight:["regular","700"],fallback:"handwriting"},Acme:{weight:["regular"],fallback:"sans-serif"},Catamaran:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Fira Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"EB Garamond":{weight:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],fallback:"serif"},"Bree Serif":{weight:["regular"],fallback:"serif"},"Zilla Slab":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Noto Sans SC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Cormorant Garamond":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Hind Madurai":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Teko:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Righteous:{weight:["regular"],fallback:"display"},Signika:{weight:["300","regular","600","700"],fallback:"sans-serif"},Play:{weight:["regular","700"],fallback:"sans-serif"},Domine:{weight:["regular","700"],fallback:"serif"},Exo:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Russo One":{weight:["regular"],fallback:"sans-serif"},Cinzel:{weight:["regular","700","900"],fallback:"serif"},"PT Sans Caption":{weight:["regular","700"],fallback:"sans-serif"},Rajdhani:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Maven Pro":{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Fredoka One":{weight:["regular"],fallback:"display"},"IBM Plex Serif":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Ubuntu Condensed":{weight:["regular"],fallback:"sans-serif"},"Patua One":{weight:["regular"],fallback:"display"},Caveat:{weight:["regular","700"],fallback:"handwriting"},"Permanent Marker":{weight:["regular"],fallback:"handwriting"},Assistant:{weight:["200","300","regular","600","700","800"],fallback:"sans-serif"},ABeeZee:{weight:["regular","italic"],fallback:"sans-serif"},Vollkorn:{weight:["regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"serif"},"Crete Round":{weight:["regular","italic"],fallback:"serif"},"Special Elite":{weight:["regular"],fallback:"display"},Rokkitt:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Bangers:{weight:["regular"],fallback:"display"},"Francois One":{weight:["regular"],fallback:"sans-serif"},"Barlow Semi Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Alegreya Sans":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Satisfy:{weight:["regular"],fallback:"handwriting"},Tajawal:{weight:["200","300","regular","500","700","800","900"],fallback:"sans-serif"},"Bebas Neue":{weight:["regular"],fallback:"display"},"Patrick Hand":{weight:["regular"],fallback:"handwriting"},Cuprum:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Viga:{weight:["regular"],fallback:"sans-serif"},Courgette:{weight:["regular"],fallback:"handwriting"},"Ropa Sans":{weight:["regular","italic"],fallback:"sans-serif"},"Noto Serif JP":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Gochi Hand":{weight:["regular"],fallback:"handwriting"},Alegreya:{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Luckiest Guy":{weight:["regular"],fallback:"display"},"Noticia Text":{weight:["regular","italic","700","700italic"],fallback:"serif"},Tinos:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Passion One":{weight:["regular","700","900"],fallback:"display"},"Alfa Slab One":{weight:["regular"],fallback:"display"},"Nanum Myeongjo":{weight:["regular","700","800"],fallback:"serif"},Monda:{weight:["regular","700"],fallback:"sans-serif"},"Lobster Two":{weight:["regular","italic","700","700italic"],fallback:"display"},Kalam:{weight:["300","regular","700"],fallback:"handwriting"},"Kaushan Script":{weight:["regular"],fallback:"handwriting"},"Archivo Black":{weight:["regular"],fallback:"sans-serif"},Cardo:{weight:["regular","italic","700"],fallback:"serif"},Archivo:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Great Vibes":{weight:["regular"],fallback:"handwriting"},Volkhov:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Quattrocento Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"News Cycle":{weight:["regular","700"],fallback:"sans-serif"},"Pathway Gothic One":{weight:["regular"],fallback:"sans-serif"},Sacramento:{weight:["regular"],fallback:"handwriting"},"Frank Ruhl Libre":{weight:["300","regular","500","700","900"],fallback:"serif"},Yantramanav:{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},Cantarell:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Istok Web":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Didact Gothic":{weight:["regular"],fallback:"sans-serif"},"Concert One":{weight:["regular"],fallback:"display"},Taviraj:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Old Standard TT":{weight:["regular","italic","700"],fallback:"serif"},"Montserrat Alternates":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Economica:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Changa:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Fira Sans Extra Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Gloria Hallelujah":{weight:["regular"],fallback:"handwriting"},Parisienne:{weight:["regular"],fallback:"handwriting"},Orbitron:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Asap Condensed":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Playfair Display SC":{weight:["regular","italic","700","700italic","900","900italic"],fallback:"serif"},Chivo:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Sriracha:{weight:["regular"],fallback:"handwriting"},"Hind Vadodara":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"DM Sans":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Prata:{weight:["regular"],fallback:"serif"},Quattrocento:{weight:["regular","700"],fallback:"serif"},Cookie:{weight:["regular"],fallback:"handwriting"},"Poiret One":{weight:["regular"],fallback:"display"},Handlee:{weight:["regular"],fallback:"handwriting"},Sarabun:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},BenchNine:{weight:["300","regular","700"],fallback:"sans-serif"},Merienda:{weight:["regular","700"],fallback:"handwriting"},"M PLUS 1p":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Mono":{weight:["regular"],fallback:"monospace"},Lalezar:{weight:["regular"],fallback:"display"},Sanchez:{weight:["regular","italic"],fallback:"serif"},Lemonada:{weight:["300","regular","500","600","700"],fallback:"display"},"Markazi Text":{weight:["regular","500","600","700"],fallback:"serif"},Neuton:{weight:["200","300","regular","italic","700","800"],fallback:"serif"},"Hind Guntur":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Josefin Slab":{weight:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"serif"},Philosopher:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Advent Pro":{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Do Hyeon":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Mincho":{weight:["regular"],fallback:"sans-serif"},Ruda:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Vidaloka:{weight:["regular"],fallback:"serif"},Ultra:{weight:["regular"],fallback:"serif"},Neucha:{weight:["regular"],fallback:"handwriting"},Arapey:{weight:["regular","italic"],fallback:"serif"},Gudea:{weight:["regular","italic","700"],fallback:"sans-serif"},"Paytone One":{weight:["regular"],fallback:"sans-serif"},Kreon:{weight:["300","regular","500","600","700"],fallback:"serif"},"M PLUS Rounded 1c":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"Pragati Narrow":{weight:["regular","700"],fallback:"sans-serif"},"Press Start 2P":{weight:["regular"],fallback:"display"},"Hammersmith One":{weight:["regular"],fallback:"sans-serif"},"Gentium Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Monoton:{weight:["regular"],fallback:"display"},Alef:{weight:["regular","700"],fallback:"sans-serif"},Alice:{weight:["regular"],fallback:"serif"},Aclonica:{weight:["regular"],fallback:"sans-serif"},"Sigmar One":{weight:["regular"],fallback:"display"},Spectral:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Marck Script":{weight:["regular"],fallback:"handwriting"},Electrolize:{weight:["regular"],fallback:"sans-serif"},Actor:{weight:["regular"],fallback:"sans-serif"},"Architects Daughter":{weight:["regular"],fallback:"handwriting"},Adamina:{weight:["regular"],fallback:"serif"},"Pontano Sans":{weight:["regular"],fallback:"sans-serif"},Audiowide:{weight:["regular"],fallback:"display"},Inter:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Cabin Condensed":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Unica One":{weight:["regular"],fallback:"display"},Yellowtail:{weight:["regular"],fallback:"handwriting"},"El Messiri":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Squada One":{weight:["regular"],fallback:"display"},Staatliches:{weight:["regular"],fallback:"display"},Amaranth:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Enriqueta:{weight:["regular","500","600","700"],fallback:"serif"},Mitr:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Glegoo:{weight:["regular","700"],fallback:"serif"},"Bowlby One SC":{weight:["regular"],fallback:"display"},Basic:{weight:["regular"],fallback:"sans-serif"},"Nanum Gothic Coding":{weight:["regular","700"],fallback:"monospace"},Sarala:{weight:["regular","700"],fallback:"sans-serif"},"Bad Script":{weight:["regular"],fallback:"handwriting"},"Homemade Apple":{weight:["regular"],fallback:"handwriting"},Tangerine:{weight:["regular","700"],fallback:"handwriting"},Cormorant:{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Oleo Script":{weight:["regular","700"],fallback:"display"},Karma:{weight:["300","regular","500","600","700"],fallback:"serif"},"Julius Sans One":{weight:["regular"],fallback:"sans-serif"},"Carter One":{weight:["regular"],fallback:"display"},Khand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Nanum Pen Script":{weight:["regular"],fallback:"handwriting"},Cambay:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Fugaz One":{weight:["regular"],fallback:"display"},"Shadows Into Light Two":{weight:["regular"],fallback:"handwriting"},Coda:{weight:["regular","800"],fallback:"display"},"Signika Negative":{weight:["300","regular","600","700"],fallback:"sans-serif"},Pridi:{weight:["200","300","regular","500","600","700"],fallback:"serif"},Playball:{weight:["regular"],fallback:"display"},Saira:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Rock Salt":{weight:["regular"],fallback:"handwriting"},"Gothic A1":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Gentium Book Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Allura:{weight:["regular"],fallback:"handwriting"},"Yeseva One":{weight:["regular"],fallback:"display"},"DM Serif Text":{weight:["regular","italic"],fallback:"serif"},Lusitana:{weight:["regular","700"],fallback:"serif"},Jura:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Average:{weight:["regular"],fallback:"serif"},Yrsa:{weight:["300","regular","500","600","700"],fallback:"serif"},"Sorts Mill Goudy":{weight:["regular","italic"],fallback:"serif"},"Cantata One":{weight:["regular"],fallback:"serif"},Armata:{weight:["regular"],fallback:"sans-serif"},Scada:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Abhaya Libre":{weight:["regular","500","600","700","800"],fallback:"serif"},Damion:{weight:["regular"],fallback:"handwriting"},Marmelad:{weight:["regular"],fallback:"sans-serif"},Varela:{weight:["regular"],fallback:"sans-serif"},Quantico:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Covered By Your Grace":{weight:["regular"],fallback:"handwriting"},"PT Serif Caption":{weight:["regular","italic"],fallback:"serif"},Ramabhadra:{weight:["regular"],fallback:"sans-serif"},Unna:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Encode Sans":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Arsenal:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Black Han Sans":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Gothic":{weight:["regular"],fallback:"sans-serif"},"Ubuntu Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Pinyon Script":{weight:["regular"],fallback:"handwriting"},"Black Ops One":{weight:["regular"],fallback:"display"},Marcellus:{weight:["regular"],fallback:"serif"},"Fauna One":{weight:["regular"],fallback:"serif"},"Lilita One":{weight:["regular"],fallback:"display"},Sintony:{weight:["regular","700"],fallback:"sans-serif"},Khula:{weight:["300","regular","600","700","800"],fallback:"sans-serif"},Jaldi:{weight:["regular","700"],fallback:"sans-serif"},"Rubik Mono One":{weight:["regular"],fallback:"sans-serif"},Allan:{weight:["regular","700"],fallback:"display"},"Reenie Beanie":{weight:["regular"],fallback:"handwriting"},"Alex Brush":{weight:["regular"],fallback:"handwriting"},"Mr Dafoe":{weight:["regular"],fallback:"handwriting"},Palanquin:{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Encode Sans Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Antic:{weight:["regular"],fallback:"sans-serif"},Knewave:{weight:["regular"],fallback:"display"},"Caveat Brush":{weight:["regular"],fallback:"handwriting"},Rambla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Spinnaker:{weight:["regular"],fallback:"sans-serif"},"IBM Plex Mono":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"monospace"},Michroma:{weight:["regular"],fallback:"sans-serif"},"Nothing You Could Do":{weight:["regular"],fallback:"handwriting"},"Kelly Slab":{weight:["regular"],fallback:"display"},Boogaloo:{weight:["regular"],fallback:"display"},Chewy:{weight:["regular"],fallback:"display"},"ZCOOL XiaoWei":{weight:["regular"],fallback:"serif"},Rancho:{weight:["regular"],fallback:"handwriting"},"Noto Serif SC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Pangolin:{weight:["regular"],fallback:"handwriting"},"Fira Mono":{weight:["regular","500","700"],fallback:"monospace"},Forum:{weight:["regular"],fallback:"display"},"Antic Slab":{weight:["regular"],fallback:"serif"},"Alegreya Sans SC":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Anonymous Pro":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Lateef:{weight:["regular"],fallback:"handwriting"},"Annie Use Your Telescope":{weight:["regular"],fallback:"handwriting"},"Noto Sans HK":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Martel Sans":{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},"Chakra Petch":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Rufina:{weight:["regular","700"],fallback:"serif"},"Bai Jamjuree":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Scheherazade:{weight:["regular","700"],fallback:"serif"},Share:{weight:["regular","italic","700","700italic"],fallback:"display"},"Tenor Sans":{weight:["regular"],fallback:"sans-serif"},"DM Serif Display":{weight:["regular","italic"],fallback:"serif"},VT323:{weight:["regular"],fallback:"monospace"},"Share Tech Mono":{weight:["regular"],fallback:"monospace"},Mali:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"handwriting"},Cousine:{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Cinzel Decorative":{weight:["regular","700","900"],fallback:"display"},Overlock:{weight:["regular","italic","700","700italic","900","900italic"],fallback:"display"},"Arbutus Slab":{weight:["regular"],fallback:"serif"},"Reem Kufi":{weight:["regular"],fallback:"sans-serif"},"Cabin Sketch":{weight:["regular","700"],fallback:"display"},"Saira Extra Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Eczar:{weight:["regular","500","600","700","800"],fallback:"serif"},"Leckerli One":{weight:["regular"],fallback:"handwriting"},Krub:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Berkshire Swash":{weight:["regular"],fallback:"handwriting"},"Fredericka the Great":{weight:["regular"],fallback:"display"},"Saira Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Overpass Mono":{weight:["300","regular","600","700"],fallback:"monospace"},Itim:{weight:["regular"],fallback:"handwriting"},Rasa:{weight:["300","regular","500","600","700"],fallback:"serif"},Bevan:{weight:["regular"],fallback:"display"},"Arima Madurai":{weight:["100","200","300","regular","500","700","800","900"],fallback:"display"},Italianno:{weight:["regular"],fallback:"handwriting"},"Coda Caption":{weight:["800"],fallback:"sans-serif"},Shrikhand:{weight:["regular"],fallback:"display"},"Just Another Hand":{weight:["regular"],fallback:"handwriting"},"Saira Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Almarai:{weight:["300","regular","700","800"],fallback:"sans-serif"},"Mukta Malar":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Oranienbaum:{weight:["regular"],fallback:"serif"},Nobile:{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Candal:{weight:["regular"],fallback:"sans-serif"},"Six Caps":{weight:["regular"],fallback:"sans-serif"},"Space Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Capriola:{weight:["regular"],fallback:"sans-serif"},Biryani:{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},Halant:{weight:["300","regular","500","600","700"],fallback:"serif"},Allerta:{weight:["regular"],fallback:"sans-serif"},Trirong:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},Mallanna:{weight:["regular"],fallback:"sans-serif"},Aldrich:{weight:["regular"],fallback:"sans-serif"},Aleo:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Suez One":{weight:["regular"],fallback:"serif"},Caudex:{weight:["regular","italic","700","700italic"],fallback:"serif"},Niconne:{weight:["regular"],fallback:"handwriting"},"Mrs Saint Delafield":{weight:["regular"],fallback:"handwriting"},Gruppo:{weight:["regular"],fallback:"display"},"Miriam Libre":{weight:["regular","700"],fallback:"sans-serif"},"Contrail One":{weight:["regular"],fallback:"display"},"Days One":{weight:["regular"],fallback:"sans-serif"},"Allerta Stencil":{weight:["regular"],fallback:"sans-serif"},"Average Sans":{weight:["regular"],fallback:"sans-serif"},"Coming Soon":{weight:["regular"],fallback:"handwriting"},Pattaya:{weight:["regular"],fallback:"sans-serif"},"Londrina Solid":{weight:["100","300","regular","900"],fallback:"display"},Bungee:{weight:["regular"],fallback:"display"},Coustard:{weight:["regular","900"],fallback:"serif"},"Marcellus SC":{weight:["regular"],fallback:"serif"},"Racing Sans One":{weight:["regular"],fallback:"display"},Bentham:{weight:["regular"],fallback:"serif"},"Bungee Inline":{weight:["regular"],fallback:"display"},Magra:{weight:["regular","700"],fallback:"sans-serif"},Judson:{weight:["regular","italic","700"],fallback:"serif"},Rochester:{weight:["regular"],fallback:"handwriting"},"Grand Hotel":{weight:["regular"],fallback:"handwriting"},Gelasio:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Yesteryear:{weight:["regular"],fallback:"handwriting"},Syncopate:{weight:["regular","700"],fallback:"sans-serif"},Hanuman:{weight:["regular","700"],fallback:"serif"},"Kosugi Maru":{weight:["regular"],fallback:"sans-serif"},Copse:{weight:["regular"],fallback:"serif"},Mada:{weight:["200","300","regular","500","600","700","900"],fallback:"sans-serif"},"Titan One":{weight:["regular"],fallback:"display"},"Noto Serif TC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Kameron:{weight:["regular","700"],fallback:"serif"},Telex:{weight:["regular"],fallback:"sans-serif"},Norican:{weight:["regular"],fallback:"handwriting"},Maitree:{weight:["200","300","regular","500","600","700"],fallback:"serif"},"IM Fell Double Pica":{weight:["regular","italic"],fallback:"serif"},Molengo:{weight:["regular"],fallback:"sans-serif"},Sunflower:{weight:["300","500","700"],fallback:"sans-serif"},"Alegreya SC":{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Red Hat Display":{weight:["regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},Jua:{weight:["regular"],fallback:"sans-serif"},Ovo:{weight:["regular"],fallback:"serif"},"IBM Plex Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Nixie One":{weight:["regular"],fallback:"display"},Aladin:{weight:["regular"],fallback:"handwriting"},Arizonia:{weight:["regular"],fallback:"handwriting"},"Bubblegum Sans":{weight:["regular"],fallback:"display"},"Changa One":{weight:["regular","italic"],fallback:"display"},"Lexend Deca":{weight:["regular"],fallback:"sans-serif"},Sofia:{weight:["regular"],fallback:"handwriting"},"Jockey One":{weight:["regular"],fallback:"sans-serif"},Suranna:{weight:["regular"],fallback:"serif"},Amethysta:{weight:["regular"],fallback:"serif"},Schoolbell:{weight:["regular"],fallback:"handwriting"},"Nanum Brush Script":{weight:["regular"],fallback:"handwriting"},"Cedarville Cursive":{weight:["regular"],fallback:"handwriting"},"Cutive Mono":{weight:["regular"],fallback:"monospace"},Delius:{weight:["regular"],fallback:"handwriting"},"Raleway Dots":{weight:["regular"],fallback:"display"},Graduate:{weight:["regular"],fallback:"display"},Lustria:{weight:["regular"],fallback:"serif"},"Mukta Vaani":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Kadwa:{weight:["regular","700"],fallback:"serif"},"Rozha One":{weight:["regular"],fallback:"serif"},Buenard:{weight:["regular","700"],fallback:"serif"},Cambo:{weight:["regular"],fallback:"serif"},Marvel:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Krona One":{weight:["regular"],fallback:"sans-serif"},"Carrois Gothic":{weight:["regular"],fallback:"sans-serif"},Carme:{weight:["regular"],fallback:"sans-serif"},"Slabo 13px":{weight:["regular"],fallback:"serif"},Lemon:{weight:["regular"],fallback:"display"},"Love Ya Like A Sister":{weight:["regular"],fallback:"display"},Rosario:{weight:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},"Merienda One":{weight:["regular"],fallback:"handwriting"},"Public Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Petit Formal Script":{weight:["regular"],fallback:"handwriting"},"Ceviche One":{weight:["regular"],fallback:"display"},Voltaire:{weight:["regular"],fallback:"sans-serif"},Fresca:{weight:["regular"],fallback:"sans-serif"},"Averia Serif Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Rye:{weight:["regular"],fallback:"display"},"Noto Serif KR":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Chelsea Market":{weight:["regular"],fallback:"display"},Calligraffitti:{weight:["regular"],fallback:"handwriting"},"Freckle Face":{weight:["regular"],fallback:"display"},"Duru Sans":{weight:["regular"],fallback:"sans-serif"},Trocchi:{weight:["regular"],fallback:"serif"},Metrophobic:{weight:["regular"],fallback:"sans-serif"},Mate:{weight:["regular","italic"],fallback:"serif"},Harmattan:{weight:["regular"],fallback:"sans-serif"},"Gilda Display":{weight:["regular"],fallback:"serif"},"Cormorant Infant":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Spartan:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Oxygen Mono":{weight:["regular"],fallback:"monospace"},Chonburi:{weight:["regular"],fallback:"display"},"Goudy Bookletter 1911":{weight:["regular"],fallback:"serif"},Sansita:{weight:["regular","italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Emilys Candy":{weight:["regular"],fallback:"display"},Amiko:{weight:["regular","600","700"],fallback:"sans-serif"},Kristi:{weight:["regular"],fallback:"handwriting"},"Palanquin Dark":{weight:["regular","500","600","700"],fallback:"sans-serif"},Lekton:{weight:["regular","italic","700"],fallback:"sans-serif"},Cutive:{weight:["regular"],fallback:"serif"},"Herr Von Muellerhoff":{weight:["regular"],fallback:"handwriting"},"GFS Didot":{weight:["regular"],fallback:"serif"},Radley:{weight:["regular","italic"],fallback:"serif"},"Sue Ellen Francisco":{weight:["regular"],fallback:"handwriting"},Pompiere:{weight:["regular"],fallback:"display"},Gabriela:{weight:["regular"],fallback:"serif"},Niramit:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Seaweed Script":{weight:["regular"],fallback:"display"},"Sedgwick Ave":{weight:["regular"],fallback:"handwriting"},Federo:{weight:["regular"],fallback:"sans-serif"},McLaren:{weight:["regular"],fallback:"display"},"IM Fell DW Pica":{weight:["regular","italic"],fallback:"serif"},Sniglet:{weight:["regular","800"],fallback:"display"},"Mr De Haviland":{weight:["regular"],fallback:"handwriting"},Shojumaru:{weight:["regular"],fallback:"display"},Poly:{weight:["regular","italic"],fallback:"serif"},Belleza:{weight:["regular"],fallback:"sans-serif"},Faustina:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"IM Fell English":{weight:["regular","italic"],fallback:"serif"},"Rammetto One":{weight:["regular"],fallback:"display"},Amita:{weight:["regular","700"],fallback:"handwriting"},Inder:{weight:["regular"],fallback:"sans-serif"},"Antic Didone":{weight:["regular"],fallback:"serif"},"Alike Angular":{weight:["regular"],fallback:"serif"},Montez:{weight:["regular"],fallback:"handwriting"},K2D:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},UnifrakturMaguntia:{weight:["regular"],fallback:"display"},Gurajada:{weight:["regular"],fallback:"serif"},"Proza Libre":{weight:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Athiti:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Andada:{weight:["regular"],fallback:"serif"},"Liu Jian Mao Cao":{weight:["regular"],fallback:"handwriting"},Megrim:{weight:["regular"],fallback:"display"},"Vast Shadow":{weight:["regular"],fallback:"display"},Wallpoet:{weight:["regular"],fallback:"display"},Unkempt:{weight:["regular","700"],fallback:"display"},"Fanwood Text":{weight:["regular","italic"],fallback:"serif"},"Doppio One":{weight:["regular"],fallback:"sans-serif"},"Comic Neue":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"handwriting"},Corben:{weight:["regular","700"],fallback:"display"},Frijole:{weight:["regular"],fallback:"display"},Balthazar:{weight:["regular"],fallback:"serif"},Mirza:{weight:["regular","500","600","700"],fallback:"display"},"IM Fell French Canon SC":{weight:["regular"],fallback:"serif"},Brawler:{weight:["regular"],fallback:"serif"},"Oleo Script Swash Caps":{weight:["regular","700"],fallback:"display"},Mandali:{weight:["regular"],fallback:"sans-serif"},Convergence:{weight:["regular"],fallback:"sans-serif"},Fondamento:{weight:["regular","italic"],fallback:"handwriting"},Alike:{weight:["regular"],fallback:"serif"},Baumans:{weight:["regular"],fallback:"display"},Esteban:{weight:["regular"],fallback:"serif"},"Gravitas One":{weight:["regular"],fallback:"display"},Anaheim:{weight:["regular"],fallback:"sans-serif"},"Wendy One":{weight:["regular"],fallback:"sans-serif"},"Stardos Stencil":{weight:["regular","700"],fallback:"display"},"Spicy Rice":{weight:["regular"],fallback:"display"},Rakkas:{weight:["regular"],fallback:"display"},"La Belle Aurore":{weight:["regular"],fallback:"handwriting"},"Secular One":{weight:["regular"],fallback:"sans-serif"},Belgrano:{weight:["regular"],fallback:"serif"},"Bungee Shade":{weight:["regular"],fallback:"display"},"Crafty Girls":{weight:["regular"],fallback:"handwriting"},Battambang:{weight:["regular","700"],fallback:"display"},Quando:{weight:["regular"],fallback:"serif"},"Mouse Memoirs":{weight:["regular"],fallback:"sans-serif"},Gugi:{weight:["regular"],fallback:"display"},"Faster One":{weight:["regular"],fallback:"display"},"B612 Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Limelight:{weight:["regular"],fallback:"display"},"Short Stack":{weight:["regular"],fallback:"handwriting"},"Mountains of Christmas":{weight:["regular","700"],fallback:"display"},"Share Tech":{weight:["regular"],fallback:"sans-serif"},Laila:{weight:["300","regular","500","600","700"],fallback:"serif"},Literata:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Cormorant SC":{weight:["300","regular","500","600","700"],fallback:"serif"},"Fjord One":{weight:["regular"],fallback:"serif"},Podkova:{weight:["regular","500","600","700","800"],fallback:"serif"},Homenaje:{weight:["regular"],fallback:"sans-serif"},"Walter Turncoat":{weight:["regular"],fallback:"handwriting"},Sen:{weight:["regular","700","800"],fallback:"sans-serif"},"Patrick Hand SC":{weight:["regular"],fallback:"handwriting"},Voces:{weight:["regular"],fallback:"display"},Qwigley:{weight:["regular"],fallback:"handwriting"},"Happy Monkey":{weight:["regular"],fallback:"display"},"Rouge Script":{weight:["regular"],fallback:"handwriting"},"Baloo Chettan 2":{weight:["regular","500","600","700","800"],fallback:"display"},NTR:{weight:["regular"],fallback:"sans-serif"},Skranji:{weight:["regular","700"],fallback:"display"},Strait:{weight:["regular"],fallback:"sans-serif"},"Dawning of a New Day":{weight:["regular"],fallback:"handwriting"},Iceland:{weight:["regular"],fallback:"display"},"Expletus Sans":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"display"},"Montserrat Subrayada":{weight:["regular","700"],fallback:"sans-serif"},Oregano:{weight:["regular","italic"],fallback:"display"},"Give You Glory":{weight:["regular"],fallback:"handwriting"},Alata:{weight:["regular"],fallback:"sans-serif"},Puritan:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Mako:{weight:["regular"],fallback:"sans-serif"},Andika:{weight:["regular"],fallback:"sans-serif"},"Cormorant Upright":{weight:["300","regular","500","600","700"],fallback:"serif"},Zeyada:{weight:["regular"],fallback:"handwriting"},"Bowlby One":{weight:["regular"],fallback:"display"},"Aref Ruqaa":{weight:["regular","700"],fallback:"serif"},Numans:{weight:["regular"],fallback:"sans-serif"},Kurale:{weight:["regular"],fallback:"serif"},Spirax:{weight:["regular"],fallback:"display"},"Clicker Script":{weight:["regular"],fallback:"handwriting"},"Waiting for the Sunrise":{weight:["regular"],fallback:"handwriting"},"Holtwood One SC":{weight:["regular"],fallback:"serif"},Katibeh:{weight:["regular"],fallback:"display"},"Carrois Gothic SC":{weight:["regular"],fallback:"sans-serif"},Livvic:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},Eater:{weight:["regular"],fallback:"display"},"Fontdiner Swanky":{weight:["regular"],fallback:"display"},"Finger Paint":{weight:["regular"],fallback:"display"},Bellefair:{weight:["regular"],fallback:"serif"},"Wire One":{weight:["regular"],fallback:"sans-serif"},Kosugi:{weight:["regular"],fallback:"sans-serif"},Charm:{weight:["regular","700"],fallback:"handwriting"},"Delius Swash Caps":{weight:["regular"],fallback:"handwriting"},"Vesper Libre":{weight:["regular","500","700","900"],fallback:"serif"},"Red Hat Text":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Gafata:{weight:["regular"],fallback:"sans-serif"},"Averia Sans Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Denk One":{weight:["regular"],fallback:"sans-serif"},Geo:{weight:["regular","italic"],fallback:"sans-serif"},Tauri:{weight:["regular"],fallback:"sans-serif"},"Cherry Swash":{weight:["regular","700"],fallback:"display"},Codystar:{weight:["300","regular"],fallback:"display"},"Cantora One":{weight:["regular"],fallback:"sans-serif"},"Encode Sans Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Nova Square":{weight:["regular"],fallback:"display"},BioRhyme:{weight:["200","300","regular","700","800"],fallback:"serif"},Timmana:{weight:["regular"],fallback:"sans-serif"},Atma:{weight:["300","regular","500","600","700"],fallback:"display"},Tienne:{weight:["regular","700","900"],fallback:"serif"},Meddon:{weight:["regular"],fallback:"handwriting"},Galada:{weight:["regular"],fallback:"display"},Padauk:{weight:["regular","700"],fallback:"sans-serif"},"Loved by the King":{weight:["regular"],fallback:"handwriting"},"The Girl Next Door":{weight:["regular"],fallback:"handwriting"},"Darker Grotesque":{weight:["300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Life Savers":{weight:["regular","700","800"],fallback:"display"},Bilbo:{weight:["regular"],fallback:"handwriting"},Shanti:{weight:["regular"],fallback:"sans-serif"},"Headland One":{weight:["regular"],fallback:"serif"},"Euphoria Script":{weight:["regular"],fallback:"handwriting"},Imprima:{weight:["regular"],fallback:"sans-serif"},"Aguafina Script":{weight:["regular"],fallback:"handwriting"},"Baloo 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Over the Rainbow":{weight:["regular"],fallback:"handwriting"},Sarpanch:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Orienta:{weight:["regular"],fallback:"sans-serif"},"Spectral SC":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Port Lligat Sans":{weight:["regular"],fallback:"sans-serif"},Artifika:{weight:["regular"],fallback:"serif"},Ledger:{weight:["regular"],fallback:"serif"},Ruluko:{weight:["regular"],fallback:"sans-serif"},Sail:{weight:["regular"],fallback:"display"},Alatsi:{weight:["regular"],fallback:"sans-serif"},"Sonsie One":{weight:["regular"],fallback:"display"},"Bilbo Swash Caps":{weight:["regular"],fallback:"handwriting"},Slackey:{weight:["regular"],fallback:"display"},Salsa:{weight:["regular"],fallback:"display"},Rationale:{weight:["regular"],fallback:"sans-serif"},"Hepta Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Nosifer:{weight:["regular"],fallback:"display"},Dekko:{weight:["regular"],fallback:"handwriting"},"Encode Sans Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Lily Script One":{weight:["regular"],fallback:"display"},"Zilla Slab Highlight":{weight:["regular","700"],fallback:"display"},Dokdo:{weight:["regular"],fallback:"handwriting"},"Kotta One":{weight:["regular"],fallback:"serif"},"Macondo Swash Caps":{weight:["regular"],fallback:"display"},"Encode Sans Semi Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Prosto One":{weight:["regular"],fallback:"display"},"Trade Winds":{weight:["regular"],fallback:"display"},Farsan:{weight:["regular"],fallback:"display"},Manuale:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},Creepster:{weight:["regular"],fallback:"display"},"Medula One":{weight:["regular"],fallback:"display"},Ranchers:{weight:["regular"],fallback:"display"},"David Libre":{weight:["regular","500","700"],fallback:"serif"},"Libre Barcode 39":{weight:["regular"],fallback:"display"},"Vampiro One":{weight:["regular"],fallback:"display"},Metamorphous:{weight:["regular"],fallback:"display"},"Bubbler One":{weight:["regular"],fallback:"sans-serif"},"Nova Mono":{weight:["regular"],fallback:"monospace"},"Princess Sofia":{weight:["regular"],fallback:"handwriting"},"Just Me Again Down Here":{weight:["regular"],fallback:"handwriting"},Notable:{weight:["regular"],fallback:"sans-serif"},"Fascinate Inline":{weight:["regular"],fallback:"display"},Vibur:{weight:["regular"],fallback:"handwriting"},"Vollkorn SC":{weight:["regular","600","700","900"],fallback:"serif"},Crushed:{weight:["regular"],fallback:"display"},Sumana:{weight:["regular","700"],fallback:"serif"},Elsie:{weight:["regular","900"],fallback:"display"},Ranga:{weight:["regular","700"],fallback:"display"},"Port Lligat Slab":{weight:["regular"],fallback:"serif"},Amarante:{weight:["regular"],fallback:"display"},"Ruslan Display":{weight:["regular"],fallback:"display"},"Germania One":{weight:["regular"],fallback:"display"},"Sirin Stencil":{weight:["regular"],fallback:"display"},Pavanam:{weight:["regular"],fallback:"sans-serif"},Peralta:{weight:["regular"],fallback:"display"},"Scope One":{weight:["regular"],fallback:"serif"},Jomolhari:{weight:["regular"],fallback:"serif"},Kranky:{weight:["regular"],fallback:"display"},"Yatra One":{weight:["regular"],fallback:"display"},"Jacques Francois Shadow":{weight:["regular"],fallback:"display"},Ribeye:{weight:["regular"],fallback:"display"},"Averia Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Saira Stencil One":{weight:["regular"],fallback:"display"},"Cherry Cream Soda":{weight:["regular"],fallback:"display"},"Mukta Mahee":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Srisakdi:{weight:["regular","700"],fallback:"display"},Trochut:{weight:["regular","italic","700"],fallback:"display"},Coiny:{weight:["regular"],fallback:"display"},"Ma Shan Zheng":{weight:["regular"],fallback:"handwriting"},Asul:{weight:["regular","700"],fallback:"sans-serif"},Ewert:{weight:["regular"],fallback:"display"},Arya:{weight:["regular","700"],fallback:"sans-serif"},"Hanalei Fill":{weight:["regular"],fallback:"display"},Grenze:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Ribeye Marrow":{weight:["regular"],fallback:"display"},"IM Fell English SC":{weight:["regular"],fallback:"serif"},"Chau Philomene One":{weight:["regular","italic"],fallback:"sans-serif"},Sarina:{weight:["regular"],fallback:"display"},Chicle:{weight:["regular"],fallback:"display"},Manjari:{weight:["100","regular","700"],fallback:"sans-serif"},Montaga:{weight:["regular"],fallback:"serif"},Italiana:{weight:["regular"],fallback:"serif"},Akronim:{weight:["regular"],fallback:"display"},Habibi:{weight:["regular"],fallback:"serif"},Englebert:{weight:["regular"],fallback:"sans-serif"},Dynalight:{weight:["regular"],fallback:"display"},"Mate SC":{weight:["regular"],fallback:"serif"},"Henny Penny":{weight:["regular"],fallback:"display"},"Sree Krushnadevaraya":{weight:["regular"],fallback:"serif"},Engagement:{weight:["regular"],fallback:"handwriting"},Girassol:{weight:["regular"],fallback:"display"},"Kite One":{weight:["regular"],fallback:"sans-serif"},"Ibarra Real Nova":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},Gaegu:{weight:["300","regular","700"],fallback:"handwriting"},Fenix:{weight:["regular"],fallback:"serif"},"Pirata One":{weight:["regular"],fallback:"display"},"Tulpen One":{weight:["regular"],fallback:"display"},"IM Fell Great Primer":{weight:["regular","italic"],fallback:"serif"},Chathura:{weight:["100","300","regular","700","800"],fallback:"sans-serif"},Unlock:{weight:["regular"],fallback:"display"},"Nova Round":{weight:["regular"],fallback:"display"},Sura:{weight:["regular","700"],fallback:"serif"},"Kumar One":{weight:["regular"],fallback:"display"},Baskervville:{weight:["regular","italic"],fallback:"serif"},Quintessential:{weight:["regular"],fallback:"handwriting"},Milonga:{weight:["regular"],fallback:"display"},Bayon:{weight:["regular"],fallback:"display"},"Be Vietnam":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},"Crimson Pro":{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},B612:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"League Script":{weight:["regular"],fallback:"handwriting"},"Inknut Antiqua":{weight:["300","regular","500","600","700","800","900"],fallback:"serif"},Mogra:{weight:["regular"],fallback:"display"},"Mystery Quest":{weight:["regular"],fallback:"display"},"Monsieur La Doulaise":{weight:["regular"],fallback:"handwriting"},Vibes:{weight:["regular"],fallback:"display"},Rosarivo:{weight:["regular","italic"],fallback:"serif"},"Uncial Antiqua":{weight:["regular"],fallback:"display"},Dorsa:{weight:["regular"],fallback:"sans-serif"},Almendra:{weight:["regular","italic","700","700italic"],fallback:"serif"},Diplomata:{weight:["regular"],fallback:"display"},Simonetta:{weight:["regular","italic","900","900italic"],fallback:"display"},"New Rocker":{weight:["regular"],fallback:"display"},Snippet:{weight:["regular"],fallback:"sans-serif"},Petrona:{weight:["regular"],fallback:"serif"},Ramaraja:{weight:["regular"],fallback:"serif"},"Averia Gruesa Libre":{weight:["regular"],fallback:"display"},"Baloo Bhaina 2":{weight:["regular","500","600","700","800"],fallback:"display"},Kodchasan:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Meera Inimai":{weight:["regular"],fallback:"sans-serif"},Flamenco:{weight:["300","regular"],fallback:"display"},Khmer:{weight:["regular"],fallback:"display"},Paprika:{weight:["regular"],fallback:"display"},Koulen:{weight:["regular"],fallback:"display"},Mansalva:{weight:["regular"],fallback:"handwriting"},"Lovers Quarrel":{weight:["regular"],fallback:"handwriting"},Condiment:{weight:["regular"],fallback:"handwriting"},"Baloo Thambi 2":{weight:["regular","500","600","700","800"],fallback:"display"},Stoke:{weight:["300","regular"],fallback:"serif"},Barrio:{weight:["regular"],fallback:"display"},Barriecito:{weight:["regular"],fallback:"display"},"Donegal One":{weight:["regular"],fallback:"serif"},Kavoon:{weight:["regular"],fallback:"display"},"Big Shoulders Display":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Mina:{weight:["regular","700"],fallback:"sans-serif"},"Big Shoulders Text":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Prociono:{weight:["regular"],fallback:"serif"},"Text Me One":{weight:["regular"],fallback:"sans-serif"},"IM Fell French Canon":{weight:["regular","italic"],fallback:"serif"},"Overlock SC":{weight:["regular"],fallback:"display"},Cagliostro:{weight:["regular"],fallback:"sans-serif"},"Marko One":{weight:["regular"],fallback:"serif"},"Swanky and Moo Moo":{weight:["regular"],fallback:"handwriting"},"Maiden Orange":{weight:["regular"],fallback:"display"},Blinker:{weight:["100","200","300","regular","600","700","800","900"],fallback:"sans-serif"},Miniver:{weight:["regular"],fallback:"display"},Angkor:{weight:["regular"],fallback:"display"},Chango:{weight:["regular"],fallback:"display"},Thasadith:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Modak:{weight:["regular"],fallback:"display"},Junge:{weight:["regular"],fallback:"serif"},"Stint Ultra Condensed":{weight:["regular"],fallback:"display"},Stalemate:{weight:["regular"],fallback:"handwriting"},Tillana:{weight:["regular","500","600","700","800"],fallback:"handwriting"},UnifrakturCook:{weight:["700"],fallback:"display"},"Rum Raisin":{weight:["regular"],fallback:"sans-serif"},Farro:{weight:["300","regular","500","700"],fallback:"sans-serif"},"Delius Unicase":{weight:["regular","700"],fallback:"handwriting"},Sancreek:{weight:["regular"],fallback:"display"},Julee:{weight:["regular"],fallback:"handwriting"},Margarine:{weight:["regular"],fallback:"display"},"Lakki Reddy":{weight:["regular"],fallback:"handwriting"},"Stint Ultra Expanded":{weight:["regular"],fallback:"display"},"Bigshot One":{weight:["regular"],fallback:"display"},Griffy:{weight:["regular"],fallback:"display"},Moul:{weight:["regular"],fallback:"display"},"Diplomata SC":{weight:["regular"],fallback:"display"},Oxanium:{weight:["200","300","regular","500","600","700","800"],fallback:"display"},Offside:{weight:["regular"],fallback:"display"},"Fira Code":{weight:["300","regular","500","600","700"],fallback:"monospace"},"Eagle Lake":{weight:["regular"],fallback:"handwriting"},Flavors:{weight:["regular"],fallback:"display"},"Londrina Outline":{weight:["regular"],fallback:"display"},Tomorrow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Nokora:{weight:["regular","700"],fallback:"serif"},Calistoga:{weight:["regular"],fallback:"display"},Gotu:{weight:["regular"],fallback:"sans-serif"},"Della Respira":{weight:["regular"],fallback:"serif"},"Cormorant Unicase":{weight:["300","regular","500","600","700"],fallback:"serif"},"Libre Caslon Text":{weight:["regular","italic","700"],fallback:"serif"},Buda:{weight:["300"],fallback:"display"},Asar:{weight:["regular"],fallback:"serif"},"Poller One":{weight:["regular"],fallback:"display"},"Autour One":{weight:["regular"],fallback:"display"},"Nova Slim":{weight:["regular"],fallback:"display"},Underdog:{weight:["regular"],fallback:"display"},Redressed:{weight:["regular"],fallback:"handwriting"},"Yeon Sung":{weight:["regular"],fallback:"display"},Content:{weight:["regular","700"],fallback:"display"},Kantumruy:{weight:["300","regular","700"],fallback:"sans-serif"},"Baloo Paaji 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Jim Nightshade":{weight:["regular"],fallback:"handwriting"},"Glass Antiqua":{weight:["regular"],fallback:"display"},"Snowburst One":{weight:["regular"],fallback:"display"},"Gamja Flower":{weight:["regular"],fallback:"handwriting"},Revalia:{weight:["regular"],fallback:"display"},"Metal Mania":{weight:["regular"],fallback:"display"},Charmonman:{weight:["regular","700"],fallback:"handwriting"},"IM Fell DW Pica SC":{weight:["regular"],fallback:"serif"},Inika:{weight:["regular","700"],fallback:"serif"},"Elsie Swash Caps":{weight:["regular","900"],fallback:"display"},Wellfleet:{weight:["regular"],fallback:"display"},"Chela One":{weight:["regular"],fallback:"display"},"Rhodium Libre":{weight:["regular"],fallback:"serif"},"Mrs Sheppards":{weight:["regular"],fallback:"handwriting"},"Sedgwick Ave Display":{weight:["regular"],fallback:"handwriting"},"Modern Antiqua":{weight:["regular"],fallback:"display"},"Ravi Prakash":{weight:["regular"],fallback:"display"},Galdeano:{weight:["regular"],fallback:"sans-serif"},Oldenburg:{weight:["regular"],fallback:"display"},Arbutus:{weight:["regular"],fallback:"display"},"Poor Story":{weight:["regular"],fallback:"display"},"Hi Melody":{weight:["regular"],fallback:"handwriting"},"Joti One":{weight:["regular"],fallback:"display"},"Nova Flat":{weight:["regular"],fallback:"display"},"ZCOOL QingKe HuangYou":{weight:["regular"],fallback:"display"},"Linden Hill":{weight:["regular","italic"],fallback:"serif"},Bokor:{weight:["regular"],fallback:"display"},"Courier Prime":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Trykker:{weight:["regular"],fallback:"serif"},KoHo:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Song Myung":{weight:["regular"],fallback:"serif"},Ruthie:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended Text":{weight:["regular"],fallback:"display"},Chilanka:{weight:["regular"],fallback:"handwriting"},Fahkwang:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Felipa:{weight:["regular"],fallback:"handwriting"},Monofett:{weight:["regular"],fallback:"display"},"Odibee Sans":{weight:["regular"],fallback:"display"},Smythe:{weight:["regular"],fallback:"display"},"Major Mono Display":{weight:["regular"],fallback:"monospace"},Jomhuria:{weight:["regular"],fallback:"display"},"Croissant One":{weight:["regular"],fallback:"display"},Dangrek:{weight:["regular"],fallback:"display"},"Original Surfer":{weight:["regular"],fallback:"display"},Bahiana:{weight:["regular"],fallback:"display"},Gorditas:{weight:["regular","700"],fallback:"display"},"Odor Mean Chey":{weight:["regular"],fallback:"display"},Iceberg:{weight:["regular"],fallback:"display"},MedievalSharp:{weight:["regular"],fallback:"display"},"Caesar Dressing":{weight:["regular"],fallback:"display"},Sahitya:{weight:["regular","700"],fallback:"serif"},Stylish:{weight:["regular"],fallback:"sans-serif"},"Nova Cut":{weight:["regular"],fallback:"display"},"Purple Purse":{weight:["regular"],fallback:"display"},Devonshire:{weight:["regular"],fallback:"handwriting"},Smokum:{weight:["regular"],fallback:"display"},"Almendra Display":{weight:["regular"],fallback:"display"},Galindo:{weight:["regular"],fallback:"display"},Preahvihear:{weight:["regular"],fallback:"display"},Siemreap:{weight:["regular"],fallback:"display"},"Irish Grover":{weight:["regular"],fallback:"display"},Gupter:{weight:["regular","500","700"],fallback:"serif"},"Meie Script":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128":{weight:["regular"],fallback:"display"},"Keania One":{weight:["regular"],fallback:"display"},"GFS Neohellenic":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Cute Font":{weight:["regular"],fallback:"display"},"Londrina Shadow":{weight:["regular"],fallback:"display"},"East Sea Dokdo":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended":{weight:["regular"],fallback:"display"},Risque:{weight:["regular"],fallback:"display"},Lancelot:{weight:["regular"],fallback:"display"},"Libre Caslon Display":{weight:["regular"],fallback:"serif"},Plaster:{weight:["regular"],fallback:"display"},"Goblin One":{weight:["regular"],fallback:"display"},Asset:{weight:["regular"],fallback:"display"},"Almendra SC":{weight:["regular"],fallback:"serif"},"Jacques Francois":{weight:["regular"],fallback:"serif"},"Jolly Lodger":{weight:["regular"],fallback:"display"},"Lexend Exa":{weight:["regular"],fallback:"sans-serif"},Molle:{weight:["italic"],fallback:"handwriting"},Kavivanar:{weight:["regular"],fallback:"handwriting"},"Kirang Haerang":{weight:["regular"],fallback:"display"},Piedra:{weight:["regular"],fallback:"display"},"Atomic Age":{weight:["regular"],fallback:"display"},"Kulim Park":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Libre Barcode 39 Text":{weight:["regular"],fallback:"display"},"IM Fell Great Primer SC":{weight:["regular"],fallback:"serif"},"Tenali Ramakrishna":{weight:["regular"],fallback:"sans-serif"},Butcherman:{weight:["regular"],fallback:"display"},"Dr Sugiyama":{weight:["regular"],fallback:"handwriting"},"Geostar Fill":{weight:["regular"],fallback:"display"},Romanesco:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128 Text":{weight:["regular"],fallback:"display"},Sunshiney:{weight:["regular"],fallback:"handwriting"},"Kumar One Outline":{weight:["regular"],fallback:"display"},Peddana:{weight:["regular"],fallback:"serif"},"Baloo Bhai 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Kdam Thmor":{weight:["regular"],fallback:"display"},"Ruge Boogie":{weight:["regular"],fallback:"handwriting"},Freehand:{weight:["regular"],fallback:"display"},Bonbon:{weight:["regular"],fallback:"handwriting"},Caladea:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Single Day":{weight:["regular"],fallback:"display"},"Baloo Tamma 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Inria Sans":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Hanalei:{weight:["regular"],fallback:"display"},"Emblema One":{weight:["regular"],fallback:"display"},"Seymour One":{weight:["regular"],fallback:"sans-serif"},"Miss Fajardose":{weight:["regular"],fallback:"handwriting"},Sevillana:{weight:["regular"],fallback:"display"},"Inria Serif":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Bungee Outline":{weight:["regular"],fallback:"display"},Metal:{weight:["regular"],fallback:"display"},"IM Fell Double Pica SC":{weight:["regular"],fallback:"serif"},"Lexend Giga":{weight:["regular"],fallback:"sans-serif"},"ZCOOL KuaiLe":{weight:["regular"],fallback:"display"},Astloch:{weight:["regular","700"],fallback:"display"},"Mr Bedfort":{weight:["regular"],fallback:"handwriting"},Macondo:{weight:["regular"],fallback:"display"},"Butterfly Kids":{weight:["regular"],fallback:"handwriting"},"Supermercado One":{weight:["regular"],fallback:"display"},Fruktur:{weight:["regular"],fallback:"display"},Taprom:{weight:["regular"],fallback:"display"},Lacquer:{weight:["regular"],fallback:"display"},"Black And White Picture":{weight:["regular"],fallback:"sans-serif"},"Bigelow Rules":{weight:["regular"],fallback:"display"},"Beth Ellen":{weight:["regular"],fallback:"handwriting"},"Sofadi One":{weight:["regular"],fallback:"display"},Combo:{weight:["regular"],fallback:"display"},Bellota:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Federant:{weight:["regular"],fallback:"display"},"Miltonian Tattoo":{weight:["regular"],fallback:"display"},"Londrina Sketch":{weight:["regular"],fallback:"display"},Suwannaphum:{weight:["regular"],fallback:"display"},"Bungee Hairline":{weight:["regular"],fallback:"display"},Fascinate:{weight:["regular"],fallback:"display"},"Erica One":{weight:["regular"],fallback:"display"},"Nova Oval":{weight:["regular"],fallback:"display"},"Baloo Da 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Sulphur Point":{weight:["300","regular","700"],fallback:"sans-serif"},Aubrey:{weight:["regular"],fallback:"display"},Gidugu:{weight:["regular"],fallback:"sans-serif"},"Bellota Text":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Nova Script":{weight:["regular"],fallback:"display"},Miltonian:{weight:["regular"],fallback:"display"},Gayathri:{weight:["100","regular","700"],fallback:"sans-serif"},Geostar:{weight:["regular"],fallback:"display"},Moulpali:{weight:["regular"],fallback:"display"},"Passero One":{weight:["regular"],fallback:"display"},"Stalinist One":{weight:["regular"],fallback:"display"},"Long Cang":{weight:["regular"],fallback:"handwriting"},Solway:{weight:["300","regular","500","700","800"],fallback:"serif"},"Zhi Mang Xing":{weight:["regular"],fallback:"handwriting"},"Baloo Tammudu 2":{weight:["regular","500","600","700","800"],fallback:"display"},Chenla:{weight:["regular"],fallback:"display"},Suravaram:{weight:["regular"],fallback:"serif"},Fasthand:{weight:["regular"],fallback:"serif"},Kenia:{weight:["regular"],fallback:"display"},Dhurjati:{weight:["regular"],fallback:"sans-serif"},"Lexend Tera":{weight:["regular"],fallback:"sans-serif"},"BioRhyme Expanded":{weight:["200","300","regular","700","800"],fallback:"serif"},"Turret Road":{weight:["200","300","regular","500","700","800"],fallback:"display"},Warnes:{weight:["regular"],fallback:"display"},"Viaoda Libre":{weight:["regular"],fallback:"display"},"Lexend Mega":{weight:["regular"],fallback:"sans-serif"},Bahianita:{weight:["regular"],fallback:"display"},Manrope:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Lexend Zetta":{weight:["regular"],fallback:"sans-serif"},"Lexend Peta":{weight:["regular"],fallback:"sans-serif"}});function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var je=function(e){f()(a,e);var t=Oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.setAttributes,i=t.attributes,r=t.device,n=void 0===r?"":r,c=t.showFontSize,s=void 0!==c&&c,g=t.showFontFamily,b=void 0!==g&&g,u=t.showFontWeight,d=void 0!==u&&u,p=t.showTextTransform,f=void 0!==p&&p,h=t.showLineHeight,m=void 0!==h&&h,k=t.showLetterSpacing,y=void 0!==k&&k,v=t.disableAdvancedToggle,w=void 0!==v&&v,O=t.fontSizePlaceholder,j=void 0===O?"17":O,_=[{value:"",label:Object(T.__)("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(we).slice(0,20).forEach((function(e){_.push({value:e,label:e})})),_.push({value:"other",label:Object(T.__)("Other","generateblocks")});var S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],B=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"uppercase",label:Object(T.__)("Uppercase","generateblocks")},{value:"lowercase",label:Object(T.__)("Lowercase","generateblocks")},{value:"capitalize",label:Object(T.__)("Capitalize","generateblocks")},{value:"initial",label:Object(T.__)("Normal","generateblocks")}];void 0!==we[i.fontFamily]&&void 0!==we[i.fontFamily].weight&&(S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")}],we[i.fontFamily].weight.filter((function(e){var t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e)})).forEach((function(e){S.push({value:e,label:e})})));var D=function(e){"other"===e&&(e="");i.fontWeight;a({fontFamily:e}),i.fontWeight&&Object.values(S).indexOf(i.fontWeight),void 0!==we[e]?a({googleFont:!0,fontFamilyFallback:we[e].fallback,googleFontVariants:we[e].weight.join(", ")}):a({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})},R=function(e){a({fontFamily:e.target.value}),D(e.target.value)},x=function(e,t){return i[e+t]},M=function(e,t){return e+t},z=i.showAdvancedTypography;w&&(z=!0);var L=j;"Tablet"===n&&i.fontSize&&(L=i.fontSize),"Mobile"===n&&(i.fontSizeTablet?L=i.fontSizeTablet:i.fontSize&&(L=i.fontSize));var P="";return"Tablet"===n&&i.lineHeight&&(P=i.lineHeight),"Mobile"===n&&(i.lineHeightTablet?P=i.lineHeightTablet:i.lineHeight&&(P=i.lineHeight)),Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-gblocks-typography-weight-transform"},d&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Weight","generateblocks"),value:i.fontWeight,options:S,onChange:function(e){a({fontWeight:e})},className:"components-base-control"}),f&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Transform","generateblocks"),value:i.textTransform,options:B,onChange:function(e){a({textTransform:e})},className:"components-base-control"})),!w&&Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Show Advanced Typography","generateblocks"),checked:!!i.showAdvancedTypography,onChange:function(e){a({showAdvancedTypography:e})}}),b&&z&&Object(l.createElement)(C.BaseControl,{className:"gblocks-font-family-shortcuts"},Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Font Family","generateblocks")),Object(l.createElement)("select",{className:"components-select-control__input components-select-control__input--gblocks-fontfamily",onChange:R,onBlur:R},_.map((function(e,t){return Object(l.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))),b&&z&&Object(l.createElement)(C.TextControl,{value:i.fontFamily,placeholder:Object(T.__)("Enter font name","generateblocks"),onChange:function(e){return D(e)}}),b&&""!==i.fontFamily&&z&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Google Font","generateblocks"),checked:!!i.googleFont,onChange:function(e){a({googleFont:e}),e&&void 0!==we[i.fontFamily]&&a({fontFamilyFallback:we[i.fontFamily].fallback,googleFontVariants:we[i.fontFamily].weight.join(", ")})}}),!!i.googleFont&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Variants","generateblocks"),value:i.googleFontVariants,placeholder:Object(T.__)("300, 400, 400i","generateblocks"),onChange:function(e){a({googleFontVariants:e})}})),b&&z&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Font Family Fallback","generateblocks"),value:i.fontFamilyFallback,placeholder:Object(T.__)("sans-serif","generateblocks"),onChange:function(e){a({fontFamilyFallback:e})}}),s&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Font Size","generateblocks"),value:i.fontSizeUnit,units:["px","em","%"],onClick:function(e){a({fontSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("fontSize",n)||"",placeholder:L,onChange:function(e){var t=M("fontSize",n);a(o()({},t,parseFloat(e)))},min:1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("fontSize",n);a(o()({},t,e.props.defaultFontSize))}},Object(T.__)("Reset","generateblocks")))),m&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Line Height","generateblocks"),value:i.lineHeightUnit,units:["px","em","%"],onClick:function(e){a({lineHeightUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("lineHeight",n)||0===x("lineHeight",n)?x("lineHeight",n):"",placeholder:P,onChange:function(e){var t=M("lineHeight",n);a(o()({},t,e))},onBlur:function(){var e=M("lineHeight",n);a(o()({},e,parseFloat(x("lineHeight",n))))},onClick:function(e){e.currentTarget.focus()},min:0,step:.1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("lineHeight",n);a(o()({},t,e.props.defaultLineHeight))}},Object(T.__)("Reset","generateblocks")))),y&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Letter Spacing","generateblocks"),value:"em",units:["em"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("letterSpacing",n)||"",placeholder:"0.01",onChange:function(e){var t=M("letterSpacing",n);a(o()({},t,e))},onBlur:function(){var e=M("letterSpacing",n);a(o()({},e,parseFloat(x("letterSpacing",n))))},onClick:function(e){e.currentTarget.focus()},min:-1,step:.01,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("letterSpacing",n);a(o()({},t,e.props.defaultLetterSpacing))}},Object(T.__)("Reset","generateblocks")))))}}]),a}(l.Component);a(39);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ce=function(e){f()(a,e);var t=Te(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrGradient,n=t.attrGradientDirection,c=t.attrGradientColorOne,s=t.attrGradientColorOneOpacity,g=t.attrGradientColorStopOne,b=t.attrGradientColorTwo,u=t.attrGradientColorTwoOpacity,d=t.attrGradientColorStopTwo,p=t.defaultColorOne,f=t.defaultColorTwo,h=a.gradientSelector,m="element"===h?Object(T.__)("Displays behind the background image.","generateblocks"):Object(T.__)("Displays in front of the background image.","generateblocks");return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Use Gradient","generateblocks"),checked:!!a[r],onChange:function(t){i(o()({},e.props.attrGradient,t))}}),!!a[r]&&Object(l.createElement)(l.Fragment,null,void 0!==h&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Selector","generateblocks"),help:m,value:h,options:[{label:Object(T.__)("Element","generateblocks"),value:"element"},{label:Object(T.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){i({gradientSelector:e})}}),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Direction","generateblocks")),Object(l.createElement)(C.RangeControl,{value:a[n]?a[n]:1,onChange:function(e){i(o()({},n,e))},min:0,max:360,step:1,initialPosition:90})),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color One","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[c],alpha:!0,valueOpacity:a[s],attrOpacity:"gradientColorOneOpacity",onChange:function(e){return i(o()({},c,e))},onOpacityChange:function(e){return i(o()({},s,e))},onClear:function(){return i(o()({},c,p))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[g]||0===a[g]?a[g]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},g,e))},onBlur:function(){(a[g]||0===a[g])&&i(o()({},g,parseFloat(a[g])))},onClick:function(e){e.currentTarget.focus()}}))),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color Two","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[b],alpha:!0,valueOpacity:a[u],attrOpacity:"gradientColorTwoOpacity",onChange:function(e){return i(o()({},b,e))},onOpacityChange:function(e){return i(o()({},u,e))},onClear:function(){return i(o()({},b,f))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[d]||0===a[d]?a[d]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},d,e))},onBlur:function(){(a[d]||0===a[d])&&i(o()({},d,parseFloat(a[d])))},onClick:function(e){e.currentTarget.focus()}})))))}}]),a}(l.Component),_e=a(25),Se=a.n(_e);function Be(e){return Se.a.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}function De(e,t,a,l,i){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+i+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+i+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+i+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+i+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}function Ee(e,t){var a=t.attributes,l=a.backgroundColor,i=a.backgroundColorOpacity,r=a.bgImage,n=a.gradient,o=a.bgOptions,c=a.gradientColorOne,s=a.gradientColorOneOpacity,g=a.gradientColorTwo,b=a.gradientColorTwoOpacity,u=a.gradientColorStopOne,d=a.gradientColorStopTwo,p=a.gradientDirection,f="";if(n){var h="",m="";c&&""!==u&&(h=" "+u+"%"),g&&""!==d&&(m=" "+d+"%"),f="linear-gradient("+p+"deg, "+he(c,s)+h+", "+he(g,b)+m+")"}if("gradient"===e)return f;var k=!1,y=he(l,i);if(r){var v=r.image.url;v=Object(_.applyFilters)("generateblocks.editor.bgImageURL",v,t),"element"===o.selector&&(y||n)&&void 0!==o.overlay&&o.overlay?n?k=f+", url("+v+")":y&&(k="linear-gradient(0deg, "+y+", "+y+"), url("+v+")"):k="url("+v+")"}return k}function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var xe=function(e){f()(a,e);var t=Re(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.width,n=e.outerContainer,o=e.innerContainer,c=e.containerWidth,s=e.minHeight,g=e.minHeightUnit,b=e.paddingTop,u=e.paddingRight,d=e.paddingBottom,p=e.paddingLeft,f=e.paddingUnit,h=e.marginTop,m=e.marginRight,k=e.marginBottom,y=e.marginLeft,v=e.marginUnit,w=e.borderSizeTop,O=e.borderSizeRight,j=e.borderSizeBottom,T=e.borderSizeLeft,C=e.borderRadiusTopRight,S=e.borderRadiusBottomRight,B=e.borderRadiusBottomLeft,D=e.borderRadiusTopLeft,E=e.borderRadiusUnit,R=e.borderColor,x=e.borderColorOpacity,L=e.backgroundColor,P=e.backgroundColorOpacity,F=e.gradient,A=e.gradientSelector,U=e.textColor,H=e.linkColor,N=e.linkColorHover,I=e.bgImage,G=e.bgOptions,V=e.verticalAlignment,q=e.zindex,W=e.innerZindex,Z=e.alignment,K=e.fontFamily,J=e.fontFamilyFallback,Y=e.fontWeight,Q=e.fontSize,X=e.fontSizeUnit,$=e.textTransform,ee=e.shapeDividers,te=c;te||(te=generateBlocksDefaults.container.containerWidth);var ae="";K&&J&&(ae=", "+J);var le=!!I,ie=Ee("image",this.props),re=Ee("gradient",this.props),ne=W;!ne&&le&&"pseudo-element"===G.selector&&(ne=1);var oe=[];return oe[".gb-container-"+a]=[{"background-color":he(L,P),color:U,"border-radius":De(D,C,S,B,E),margin:De(h,m,k,y,v),"z-index":q,"text-align":Z,"font-family":K+ae,"font-weight":Y,"text-transform":$,"font-size":z(Q,X),"min-height":z(s,g)}],le&&"element"===G.selector&&ie?oe[".gb-container-"+a].push({"background-image":ie,"background-size":G.size,"background-position":G.position,"background-repeat":G.repeat,"background-attachment":G.attachment}):F&&"element"===A&&oe[".gb-container-"+a].push({"background-image":re}),(le&&"pseudo-element"===G.selector||q||F&&"pseudo-element"===A)&&oe[".gb-container-"+a].push({position:"relative"}),(le&&"pseudo-element"===G.selector||F&&"pseudo-element"===A)&&(oe[".gb-container-"+a].push({overflow:"hidden"}),oe[".gb-container-"+a+" .block-list-appender"]=[{"z-index":10}]),oe[".editor-styles-wrapper .gb-container-"+a+" h1,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h2,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h3,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h4,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h5,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h6"]=[{color:U}],(w||O||j||T)&&oe[".gb-container-"+a].push({"border-width":De(w,O,j,T,"px"),"border-style":"solid","border-color":he(R,x)}),s&&!i&&oe[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":V}),i&&(oe[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":V}),oe[".block-editor-block-list__layout > #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t0&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:Re,initialTabName:Object(_.applyFilters)("generateblocks.editor.containerBackgroundInitialTab","",this.props,this.state)},(function(e){return Object(l.createElement)("div",null,"image"===e.name&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.BaseControl,{id:"gblocks-background-image-upload",label:Object(T.__)("Image URL","generateblocks")},Object(l.createElement)("div",{className:"gblocks-bg-image-wrapper"},Object(l.createElement)(C.TextControl,{type:"text",value:N?N.image.url:"",onChange:function(e){n(e?{bgImage:{id:"",image:{url:e}}}:{bgImage:null})}}),Object(l.createElement)("div",{className:"gblocks-background-image-action-buttons"},Object(l.createElement)(Q.MediaUpload,{title:Object(T.__)("Set background image","generateblocks"),onSelect:function(e){var t=generateBlocksDefaults.container.bgImageSize;void 0===e.sizes[t]&&(t="full"),n({bgImage:{id:e.id,image:e.sizes[t]}})},onClose:function(){document.querySelector(".gblocks-bg-image-wrapper input").focus()},allowedTypes:["image"],value:N?N.id:"",modalClass:"editor-gb-container-background__media-modal",render:function(e){var t=e.open;return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Open the Media Library","generateblocks")},Object(l.createElement)(C.Button,{onClick:t,className:"is-secondary is-small"},Object(T.__)("Browse","generateblocks")))}}),Object(_.applyFilters)("generateblocks.editor.backgroundImageActions","",t.props,t.state)))),!!N&&Object(l.createElement)("div",{className:"section-bg-settings"},I.overlay?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Background Color Overlay","generateblocks"),checked:!!I.overlay,onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{overlay:e})})}}),Object(l.createElement)(C.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},Object(T.__)("The background color overlay option is deprecated. Toggle this option to use the new method.","generateblocks"))):Object(l.createElement)(l.Fragment,null,void 0!==N.id&&N.id&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Image Size","generateblocks"),value:G,options:Se,onChange:function(e){n({bgImageSize:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Selector","generateblocks"),value:I.selector,options:[{label:Object(T.__)("Element","generateblocks"),value:"element"},{label:Object(T.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{selector:e})})}}),Object(l.createElement)(C.RangeControl,{label:Object(T.__)("Image Opacity","generateblocks"),value:I.opacity,onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{opacity:e,selector:"pseudo-element"})})},min:0,max:1,step:.1,initialPosition:generateBlocksDefaults.container.bgOptions.opacity}),1!==I.opacity&&"pseudo-element"!==I.selector&&Object(l.createElement)(C.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},Object(T.__)("Your selector must be set to Pseudo Element to use opacity.","generateblocks"))),Object(l.createElement)(C.TextControl,{label:Object(T.__)("Size","generateblocks"),value:I.size,onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{size:e})})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("Position","generateblocks"),value:I.position,onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{position:e})})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Repeat","generateblocks"),value:I.repeat,options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"}],onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{repeat:e})})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Attachment","generateblocks"),value:I.attachment,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{attachment:e})})}}))),"gradient"===e.name&&Object(l.createElement)(Ce,r()({},t.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorStopTwo:"gradientColorStopTwo",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",defaultColorOne:generateBlocksDefaults.container.gradientColorOne,defaultColorTwo:generateBlocksDefaults.container.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.containerBackgroundTabBody","",e,t.props,t.state))})),Object(_.applyFilters)("generateblocks.editor.controls","","containerBackground",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Shapes","generateblocks"),initialOpen:!1,icon:j("shapes"),className:"gblocks-panel-label",id:"containerShapes",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!i.shapeDividers.length)}),Object(l.createElement)(C.BaseControl,{className:"gb-icon-chooser gb-shape-chooser"},ge.map((function(e,a){var i=a+1;return Object(l.createElement)(l.Fragment,{key:a},Object(l.createElement)("div",{className:"gblocks-shape-container"},Object(l.createElement)("div",{className:w()(o()({"gblocks-shape-toggle-preview":!0},"gblocks-shape-toggle-preview-".concat(i),!0)),style:{backgroundColor:P}},void 0!==_e[ge[a].shape]&&Object(l.createElement)("div",{className:"gblocks-shape-divider-preview",style:{color:ge[a].color},dangerouslySetInnerHTML:{__html:Be(_e[ge[a].shape].icon)}})), +/* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Left","generateblocks"),r),value:a[b]?a[b]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)(C.Tooltip,{text:a[u]?Object(T.__)("Unsync","generateblocks"):Object(T.__)("Sync","generateblocks")},Object(l.createElement)(C.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":Object(T.__)("Sync Units","generateblocks"),isPrimary:!!a[u]&&a[u],"aria-pressed":!!a[u]&&a[u],onClick:function(t){return e.syncUnits(t,"")},isSmall:!0},(a[u],j("sync"))))),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__input-labels"},Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},f),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},m),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},y),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},O),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"}))))}}]),a}(l.Component),we=(a(38),{Roboto:{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Open Sans":{weight:["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Lato:{weight:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Montserrat:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Source Sans Pro":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Roboto Condensed":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Oswald:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},"Roboto Mono":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"monospace"},Raleway:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Poppins:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Roboto Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Merriweather:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"serif"},"PT Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Ubuntu:{weight:["300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},"Playfair Display":{weight:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},Muli:{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Open Sans Condensed":{weight:["300","300italic","700"],fallback:"sans-serif"},"PT Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},Lora:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Slabo 27px":{weight:["regular"],fallback:"serif"},Nunito:{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans JP":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Work Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},Rubik:{weight:["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Noto Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fira Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Titillium Web":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],fallback:"sans-serif"},Quicksand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Noto Sans KR":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nanum Gothic":{weight:["regular","700","800"],fallback:"sans-serif"},Mukta:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Noto Sans TC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nunito Sans":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Heebo:{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Sans Narrow":{weight:["regular","700"],fallback:"sans-serif"},Arimo:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Inconsolata:{weight:["regular","700"],fallback:"monospace"},Barlow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Oxygen:{weight:["300","regular","700"],fallback:"sans-serif"},Dosis:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Bitter:{weight:["regular","italic","700"],fallback:"serif"},"Libre Baskerville":{weight:["regular","italic","700"],fallback:"serif"},"Crimson Text":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},"Libre Franklin":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Karla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Josefin Sans":{weight:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},Cabin:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Anton:{weight:["regular"],fallback:"sans-serif"},"Source Code Pro":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"monospace"},Hind:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Abel:{weight:["regular"],fallback:"sans-serif"},Amiri:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fjalla One":{weight:["regular"],fallback:"sans-serif"},Lobster:{weight:["regular"],fallback:"display"},Pacifico:{weight:["regular"],fallback:"handwriting"},"Indie Flower":{weight:["regular"],fallback:"handwriting"},"Exo 2":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Dancing Script":{weight:["regular","500","600","700"],fallback:"handwriting"},"Source Serif Pro":{weight:["regular","600","700"],fallback:"serif"},Arvo:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Hind Siliguri":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Varela Round":{weight:["regular"],fallback:"sans-serif"},"Merriweather Sans":{weight:["300","300italic","regular","italic","700","700italic","800","800italic"],fallback:"sans-serif"},Cairo:{weight:["200","300","regular","600","700","900"],fallback:"sans-serif"},"Yanone Kaffeesatz":{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Overpass:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Shadows Into Light":{weight:["regular"],fallback:"handwriting"},"Barlow Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"IBM Plex Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Comfortaa:{weight:["300","regular","500","600","700"],fallback:"display"},Asap:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Prompt:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Kanit:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Questrial:{weight:["regular"],fallback:"sans-serif"},Martel:{weight:["200","300","regular","600","700","800","900"],fallback:"serif"},"Archivo Narrow":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Abril Fatface":{weight:["regular"],fallback:"display"},"Amatic SC":{weight:["regular","700"],fallback:"handwriting"},Acme:{weight:["regular"],fallback:"sans-serif"},Catamaran:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Fira Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"EB Garamond":{weight:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],fallback:"serif"},"Bree Serif":{weight:["regular"],fallback:"serif"},"Zilla Slab":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Noto Sans SC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Cormorant Garamond":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Hind Madurai":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Teko:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Righteous:{weight:["regular"],fallback:"display"},Signika:{weight:["300","regular","600","700"],fallback:"sans-serif"},Play:{weight:["regular","700"],fallback:"sans-serif"},Domine:{weight:["regular","700"],fallback:"serif"},Exo:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Russo One":{weight:["regular"],fallback:"sans-serif"},Cinzel:{weight:["regular","700","900"],fallback:"serif"},"PT Sans Caption":{weight:["regular","700"],fallback:"sans-serif"},Rajdhani:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Maven Pro":{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Fredoka One":{weight:["regular"],fallback:"display"},"IBM Plex Serif":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Ubuntu Condensed":{weight:["regular"],fallback:"sans-serif"},"Patua One":{weight:["regular"],fallback:"display"},Caveat:{weight:["regular","700"],fallback:"handwriting"},"Permanent Marker":{weight:["regular"],fallback:"handwriting"},Assistant:{weight:["200","300","regular","600","700","800"],fallback:"sans-serif"},ABeeZee:{weight:["regular","italic"],fallback:"sans-serif"},Vollkorn:{weight:["regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"serif"},"Crete Round":{weight:["regular","italic"],fallback:"serif"},"Special Elite":{weight:["regular"],fallback:"display"},Rokkitt:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Bangers:{weight:["regular"],fallback:"display"},"Francois One":{weight:["regular"],fallback:"sans-serif"},"Barlow Semi Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Alegreya Sans":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Satisfy:{weight:["regular"],fallback:"handwriting"},Tajawal:{weight:["200","300","regular","500","700","800","900"],fallback:"sans-serif"},"Bebas Neue":{weight:["regular"],fallback:"display"},"Patrick Hand":{weight:["regular"],fallback:"handwriting"},Cuprum:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Viga:{weight:["regular"],fallback:"sans-serif"},Courgette:{weight:["regular"],fallback:"handwriting"},"Ropa Sans":{weight:["regular","italic"],fallback:"sans-serif"},"Noto Serif JP":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Gochi Hand":{weight:["regular"],fallback:"handwriting"},Alegreya:{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Luckiest Guy":{weight:["regular"],fallback:"display"},"Noticia Text":{weight:["regular","italic","700","700italic"],fallback:"serif"},Tinos:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Passion One":{weight:["regular","700","900"],fallback:"display"},"Alfa Slab One":{weight:["regular"],fallback:"display"},"Nanum Myeongjo":{weight:["regular","700","800"],fallback:"serif"},Monda:{weight:["regular","700"],fallback:"sans-serif"},"Lobster Two":{weight:["regular","italic","700","700italic"],fallback:"display"},Kalam:{weight:["300","regular","700"],fallback:"handwriting"},"Kaushan Script":{weight:["regular"],fallback:"handwriting"},"Archivo Black":{weight:["regular"],fallback:"sans-serif"},Cardo:{weight:["regular","italic","700"],fallback:"serif"},Archivo:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Great Vibes":{weight:["regular"],fallback:"handwriting"},Volkhov:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Quattrocento Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"News Cycle":{weight:["regular","700"],fallback:"sans-serif"},"Pathway Gothic One":{weight:["regular"],fallback:"sans-serif"},Sacramento:{weight:["regular"],fallback:"handwriting"},"Frank Ruhl Libre":{weight:["300","regular","500","700","900"],fallback:"serif"},Yantramanav:{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},Cantarell:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Istok Web":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Didact Gothic":{weight:["regular"],fallback:"sans-serif"},"Concert One":{weight:["regular"],fallback:"display"},Taviraj:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Old Standard TT":{weight:["regular","italic","700"],fallback:"serif"},"Montserrat Alternates":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Economica:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Changa:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Fira Sans Extra Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Gloria Hallelujah":{weight:["regular"],fallback:"handwriting"},Parisienne:{weight:["regular"],fallback:"handwriting"},Orbitron:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Asap Condensed":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Playfair Display SC":{weight:["regular","italic","700","700italic","900","900italic"],fallback:"serif"},Chivo:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Sriracha:{weight:["regular"],fallback:"handwriting"},"Hind Vadodara":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"DM Sans":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Prata:{weight:["regular"],fallback:"serif"},Quattrocento:{weight:["regular","700"],fallback:"serif"},Cookie:{weight:["regular"],fallback:"handwriting"},"Poiret One":{weight:["regular"],fallback:"display"},Handlee:{weight:["regular"],fallback:"handwriting"},Sarabun:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},BenchNine:{weight:["300","regular","700"],fallback:"sans-serif"},Merienda:{weight:["regular","700"],fallback:"handwriting"},"M PLUS 1p":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Mono":{weight:["regular"],fallback:"monospace"},Lalezar:{weight:["regular"],fallback:"display"},Sanchez:{weight:["regular","italic"],fallback:"serif"},Lemonada:{weight:["300","regular","500","600","700"],fallback:"display"},"Markazi Text":{weight:["regular","500","600","700"],fallback:"serif"},Neuton:{weight:["200","300","regular","italic","700","800"],fallback:"serif"},"Hind Guntur":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Josefin Slab":{weight:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"serif"},Philosopher:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Advent Pro":{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Do Hyeon":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Mincho":{weight:["regular"],fallback:"sans-serif"},Ruda:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Vidaloka:{weight:["regular"],fallback:"serif"},Ultra:{weight:["regular"],fallback:"serif"},Neucha:{weight:["regular"],fallback:"handwriting"},Arapey:{weight:["regular","italic"],fallback:"serif"},Gudea:{weight:["regular","italic","700"],fallback:"sans-serif"},"Paytone One":{weight:["regular"],fallback:"sans-serif"},Kreon:{weight:["300","regular","500","600","700"],fallback:"serif"},"M PLUS Rounded 1c":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"Pragati Narrow":{weight:["regular","700"],fallback:"sans-serif"},"Press Start 2P":{weight:["regular"],fallback:"display"},"Hammersmith One":{weight:["regular"],fallback:"sans-serif"},"Gentium Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Monoton:{weight:["regular"],fallback:"display"},Alef:{weight:["regular","700"],fallback:"sans-serif"},Alice:{weight:["regular"],fallback:"serif"},Aclonica:{weight:["regular"],fallback:"sans-serif"},"Sigmar One":{weight:["regular"],fallback:"display"},Spectral:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Marck Script":{weight:["regular"],fallback:"handwriting"},Electrolize:{weight:["regular"],fallback:"sans-serif"},Actor:{weight:["regular"],fallback:"sans-serif"},"Architects Daughter":{weight:["regular"],fallback:"handwriting"},Adamina:{weight:["regular"],fallback:"serif"},"Pontano Sans":{weight:["regular"],fallback:"sans-serif"},Audiowide:{weight:["regular"],fallback:"display"},Inter:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Cabin Condensed":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Unica One":{weight:["regular"],fallback:"display"},Yellowtail:{weight:["regular"],fallback:"handwriting"},"El Messiri":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Squada One":{weight:["regular"],fallback:"display"},Staatliches:{weight:["regular"],fallback:"display"},Amaranth:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Enriqueta:{weight:["regular","500","600","700"],fallback:"serif"},Mitr:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Glegoo:{weight:["regular","700"],fallback:"serif"},"Bowlby One SC":{weight:["regular"],fallback:"display"},Basic:{weight:["regular"],fallback:"sans-serif"},"Nanum Gothic Coding":{weight:["regular","700"],fallback:"monospace"},Sarala:{weight:["regular","700"],fallback:"sans-serif"},"Bad Script":{weight:["regular"],fallback:"handwriting"},"Homemade Apple":{weight:["regular"],fallback:"handwriting"},Tangerine:{weight:["regular","700"],fallback:"handwriting"},Cormorant:{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Oleo Script":{weight:["regular","700"],fallback:"display"},Karma:{weight:["300","regular","500","600","700"],fallback:"serif"},"Julius Sans One":{weight:["regular"],fallback:"sans-serif"},"Carter One":{weight:["regular"],fallback:"display"},Khand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Nanum Pen Script":{weight:["regular"],fallback:"handwriting"},Cambay:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Fugaz One":{weight:["regular"],fallback:"display"},"Shadows Into Light Two":{weight:["regular"],fallback:"handwriting"},Coda:{weight:["regular","800"],fallback:"display"},"Signika Negative":{weight:["300","regular","600","700"],fallback:"sans-serif"},Pridi:{weight:["200","300","regular","500","600","700"],fallback:"serif"},Playball:{weight:["regular"],fallback:"display"},Saira:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Rock Salt":{weight:["regular"],fallback:"handwriting"},"Gothic A1":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Gentium Book Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Allura:{weight:["regular"],fallback:"handwriting"},"Yeseva One":{weight:["regular"],fallback:"display"},"DM Serif Text":{weight:["regular","italic"],fallback:"serif"},Lusitana:{weight:["regular","700"],fallback:"serif"},Jura:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Average:{weight:["regular"],fallback:"serif"},Yrsa:{weight:["300","regular","500","600","700"],fallback:"serif"},"Sorts Mill Goudy":{weight:["regular","italic"],fallback:"serif"},"Cantata One":{weight:["regular"],fallback:"serif"},Armata:{weight:["regular"],fallback:"sans-serif"},Scada:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Abhaya Libre":{weight:["regular","500","600","700","800"],fallback:"serif"},Damion:{weight:["regular"],fallback:"handwriting"},Marmelad:{weight:["regular"],fallback:"sans-serif"},Varela:{weight:["regular"],fallback:"sans-serif"},Quantico:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Covered By Your Grace":{weight:["regular"],fallback:"handwriting"},"PT Serif Caption":{weight:["regular","italic"],fallback:"serif"},Ramabhadra:{weight:["regular"],fallback:"sans-serif"},Unna:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Encode Sans":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Arsenal:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Black Han Sans":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Gothic":{weight:["regular"],fallback:"sans-serif"},"Ubuntu Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Pinyon Script":{weight:["regular"],fallback:"handwriting"},"Black Ops One":{weight:["regular"],fallback:"display"},Marcellus:{weight:["regular"],fallback:"serif"},"Fauna One":{weight:["regular"],fallback:"serif"},"Lilita One":{weight:["regular"],fallback:"display"},Sintony:{weight:["regular","700"],fallback:"sans-serif"},Khula:{weight:["300","regular","600","700","800"],fallback:"sans-serif"},Jaldi:{weight:["regular","700"],fallback:"sans-serif"},"Rubik Mono One":{weight:["regular"],fallback:"sans-serif"},Allan:{weight:["regular","700"],fallback:"display"},"Reenie Beanie":{weight:["regular"],fallback:"handwriting"},"Alex Brush":{weight:["regular"],fallback:"handwriting"},"Mr Dafoe":{weight:["regular"],fallback:"handwriting"},Palanquin:{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Encode Sans Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Antic:{weight:["regular"],fallback:"sans-serif"},Knewave:{weight:["regular"],fallback:"display"},"Caveat Brush":{weight:["regular"],fallback:"handwriting"},Rambla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Spinnaker:{weight:["regular"],fallback:"sans-serif"},"IBM Plex Mono":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"monospace"},Michroma:{weight:["regular"],fallback:"sans-serif"},"Nothing You Could Do":{weight:["regular"],fallback:"handwriting"},"Kelly Slab":{weight:["regular"],fallback:"display"},Boogaloo:{weight:["regular"],fallback:"display"},Chewy:{weight:["regular"],fallback:"display"},"ZCOOL XiaoWei":{weight:["regular"],fallback:"serif"},Rancho:{weight:["regular"],fallback:"handwriting"},"Noto Serif SC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Pangolin:{weight:["regular"],fallback:"handwriting"},"Fira Mono":{weight:["regular","500","700"],fallback:"monospace"},Forum:{weight:["regular"],fallback:"display"},"Antic Slab":{weight:["regular"],fallback:"serif"},"Alegreya Sans SC":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Anonymous Pro":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Lateef:{weight:["regular"],fallback:"handwriting"},"Annie Use Your Telescope":{weight:["regular"],fallback:"handwriting"},"Noto Sans HK":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Martel Sans":{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},"Chakra Petch":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Rufina:{weight:["regular","700"],fallback:"serif"},"Bai Jamjuree":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Scheherazade:{weight:["regular","700"],fallback:"serif"},Share:{weight:["regular","italic","700","700italic"],fallback:"display"},"Tenor Sans":{weight:["regular"],fallback:"sans-serif"},"DM Serif Display":{weight:["regular","italic"],fallback:"serif"},VT323:{weight:["regular"],fallback:"monospace"},"Share Tech Mono":{weight:["regular"],fallback:"monospace"},Mali:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"handwriting"},Cousine:{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Cinzel Decorative":{weight:["regular","700","900"],fallback:"display"},Overlock:{weight:["regular","italic","700","700italic","900","900italic"],fallback:"display"},"Arbutus Slab":{weight:["regular"],fallback:"serif"},"Reem Kufi":{weight:["regular"],fallback:"sans-serif"},"Cabin Sketch":{weight:["regular","700"],fallback:"display"},"Saira Extra Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Eczar:{weight:["regular","500","600","700","800"],fallback:"serif"},"Leckerli One":{weight:["regular"],fallback:"handwriting"},Krub:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Berkshire Swash":{weight:["regular"],fallback:"handwriting"},"Fredericka the Great":{weight:["regular"],fallback:"display"},"Saira Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Overpass Mono":{weight:["300","regular","600","700"],fallback:"monospace"},Itim:{weight:["regular"],fallback:"handwriting"},Rasa:{weight:["300","regular","500","600","700"],fallback:"serif"},Bevan:{weight:["regular"],fallback:"display"},"Arima Madurai":{weight:["100","200","300","regular","500","700","800","900"],fallback:"display"},Italianno:{weight:["regular"],fallback:"handwriting"},"Coda Caption":{weight:["800"],fallback:"sans-serif"},Shrikhand:{weight:["regular"],fallback:"display"},"Just Another Hand":{weight:["regular"],fallback:"handwriting"},"Saira Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Almarai:{weight:["300","regular","700","800"],fallback:"sans-serif"},"Mukta Malar":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Oranienbaum:{weight:["regular"],fallback:"serif"},Nobile:{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Candal:{weight:["regular"],fallback:"sans-serif"},"Six Caps":{weight:["regular"],fallback:"sans-serif"},"Space Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Capriola:{weight:["regular"],fallback:"sans-serif"},Biryani:{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},Halant:{weight:["300","regular","500","600","700"],fallback:"serif"},Allerta:{weight:["regular"],fallback:"sans-serif"},Trirong:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},Mallanna:{weight:["regular"],fallback:"sans-serif"},Aldrich:{weight:["regular"],fallback:"sans-serif"},Aleo:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Suez One":{weight:["regular"],fallback:"serif"},Caudex:{weight:["regular","italic","700","700italic"],fallback:"serif"},Niconne:{weight:["regular"],fallback:"handwriting"},"Mrs Saint Delafield":{weight:["regular"],fallback:"handwriting"},Gruppo:{weight:["regular"],fallback:"display"},"Miriam Libre":{weight:["regular","700"],fallback:"sans-serif"},"Contrail One":{weight:["regular"],fallback:"display"},"Days One":{weight:["regular"],fallback:"sans-serif"},"Allerta Stencil":{weight:["regular"],fallback:"sans-serif"},"Average Sans":{weight:["regular"],fallback:"sans-serif"},"Coming Soon":{weight:["regular"],fallback:"handwriting"},Pattaya:{weight:["regular"],fallback:"sans-serif"},"Londrina Solid":{weight:["100","300","regular","900"],fallback:"display"},Bungee:{weight:["regular"],fallback:"display"},Coustard:{weight:["regular","900"],fallback:"serif"},"Marcellus SC":{weight:["regular"],fallback:"serif"},"Racing Sans One":{weight:["regular"],fallback:"display"},Bentham:{weight:["regular"],fallback:"serif"},"Bungee Inline":{weight:["regular"],fallback:"display"},Magra:{weight:["regular","700"],fallback:"sans-serif"},Judson:{weight:["regular","italic","700"],fallback:"serif"},Rochester:{weight:["regular"],fallback:"handwriting"},"Grand Hotel":{weight:["regular"],fallback:"handwriting"},Gelasio:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Yesteryear:{weight:["regular"],fallback:"handwriting"},Syncopate:{weight:["regular","700"],fallback:"sans-serif"},Hanuman:{weight:["regular","700"],fallback:"serif"},"Kosugi Maru":{weight:["regular"],fallback:"sans-serif"},Copse:{weight:["regular"],fallback:"serif"},Mada:{weight:["200","300","regular","500","600","700","900"],fallback:"sans-serif"},"Titan One":{weight:["regular"],fallback:"display"},"Noto Serif TC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Kameron:{weight:["regular","700"],fallback:"serif"},Telex:{weight:["regular"],fallback:"sans-serif"},Norican:{weight:["regular"],fallback:"handwriting"},Maitree:{weight:["200","300","regular","500","600","700"],fallback:"serif"},"IM Fell Double Pica":{weight:["regular","italic"],fallback:"serif"},Molengo:{weight:["regular"],fallback:"sans-serif"},Sunflower:{weight:["300","500","700"],fallback:"sans-serif"},"Alegreya SC":{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Red Hat Display":{weight:["regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},Jua:{weight:["regular"],fallback:"sans-serif"},Ovo:{weight:["regular"],fallback:"serif"},"IBM Plex Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Nixie One":{weight:["regular"],fallback:"display"},Aladin:{weight:["regular"],fallback:"handwriting"},Arizonia:{weight:["regular"],fallback:"handwriting"},"Bubblegum Sans":{weight:["regular"],fallback:"display"},"Changa One":{weight:["regular","italic"],fallback:"display"},"Lexend Deca":{weight:["regular"],fallback:"sans-serif"},Sofia:{weight:["regular"],fallback:"handwriting"},"Jockey One":{weight:["regular"],fallback:"sans-serif"},Suranna:{weight:["regular"],fallback:"serif"},Amethysta:{weight:["regular"],fallback:"serif"},Schoolbell:{weight:["regular"],fallback:"handwriting"},"Nanum Brush Script":{weight:["regular"],fallback:"handwriting"},"Cedarville Cursive":{weight:["regular"],fallback:"handwriting"},"Cutive Mono":{weight:["regular"],fallback:"monospace"},Delius:{weight:["regular"],fallback:"handwriting"},"Raleway Dots":{weight:["regular"],fallback:"display"},Graduate:{weight:["regular"],fallback:"display"},Lustria:{weight:["regular"],fallback:"serif"},"Mukta Vaani":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Kadwa:{weight:["regular","700"],fallback:"serif"},"Rozha One":{weight:["regular"],fallback:"serif"},Buenard:{weight:["regular","700"],fallback:"serif"},Cambo:{weight:["regular"],fallback:"serif"},Marvel:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Krona One":{weight:["regular"],fallback:"sans-serif"},"Carrois Gothic":{weight:["regular"],fallback:"sans-serif"},Carme:{weight:["regular"],fallback:"sans-serif"},"Slabo 13px":{weight:["regular"],fallback:"serif"},Lemon:{weight:["regular"],fallback:"display"},"Love Ya Like A Sister":{weight:["regular"],fallback:"display"},Rosario:{weight:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},"Merienda One":{weight:["regular"],fallback:"handwriting"},"Public Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Petit Formal Script":{weight:["regular"],fallback:"handwriting"},"Ceviche One":{weight:["regular"],fallback:"display"},Voltaire:{weight:["regular"],fallback:"sans-serif"},Fresca:{weight:["regular"],fallback:"sans-serif"},"Averia Serif Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Rye:{weight:["regular"],fallback:"display"},"Noto Serif KR":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Chelsea Market":{weight:["regular"],fallback:"display"},Calligraffitti:{weight:["regular"],fallback:"handwriting"},"Freckle Face":{weight:["regular"],fallback:"display"},"Duru Sans":{weight:["regular"],fallback:"sans-serif"},Trocchi:{weight:["regular"],fallback:"serif"},Metrophobic:{weight:["regular"],fallback:"sans-serif"},Mate:{weight:["regular","italic"],fallback:"serif"},Harmattan:{weight:["regular"],fallback:"sans-serif"},"Gilda Display":{weight:["regular"],fallback:"serif"},"Cormorant Infant":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Spartan:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Oxygen Mono":{weight:["regular"],fallback:"monospace"},Chonburi:{weight:["regular"],fallback:"display"},"Goudy Bookletter 1911":{weight:["regular"],fallback:"serif"},Sansita:{weight:["regular","italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Emilys Candy":{weight:["regular"],fallback:"display"},Amiko:{weight:["regular","600","700"],fallback:"sans-serif"},Kristi:{weight:["regular"],fallback:"handwriting"},"Palanquin Dark":{weight:["regular","500","600","700"],fallback:"sans-serif"},Lekton:{weight:["regular","italic","700"],fallback:"sans-serif"},Cutive:{weight:["regular"],fallback:"serif"},"Herr Von Muellerhoff":{weight:["regular"],fallback:"handwriting"},"GFS Didot":{weight:["regular"],fallback:"serif"},Radley:{weight:["regular","italic"],fallback:"serif"},"Sue Ellen Francisco":{weight:["regular"],fallback:"handwriting"},Pompiere:{weight:["regular"],fallback:"display"},Gabriela:{weight:["regular"],fallback:"serif"},Niramit:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Seaweed Script":{weight:["regular"],fallback:"display"},"Sedgwick Ave":{weight:["regular"],fallback:"handwriting"},Federo:{weight:["regular"],fallback:"sans-serif"},McLaren:{weight:["regular"],fallback:"display"},"IM Fell DW Pica":{weight:["regular","italic"],fallback:"serif"},Sniglet:{weight:["regular","800"],fallback:"display"},"Mr De Haviland":{weight:["regular"],fallback:"handwriting"},Shojumaru:{weight:["regular"],fallback:"display"},Poly:{weight:["regular","italic"],fallback:"serif"},Belleza:{weight:["regular"],fallback:"sans-serif"},Faustina:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"IM Fell English":{weight:["regular","italic"],fallback:"serif"},"Rammetto One":{weight:["regular"],fallback:"display"},Amita:{weight:["regular","700"],fallback:"handwriting"},Inder:{weight:["regular"],fallback:"sans-serif"},"Antic Didone":{weight:["regular"],fallback:"serif"},"Alike Angular":{weight:["regular"],fallback:"serif"},Montez:{weight:["regular"],fallback:"handwriting"},K2D:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},UnifrakturMaguntia:{weight:["regular"],fallback:"display"},Gurajada:{weight:["regular"],fallback:"serif"},"Proza Libre":{weight:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Athiti:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Andada:{weight:["regular"],fallback:"serif"},"Liu Jian Mao Cao":{weight:["regular"],fallback:"handwriting"},Megrim:{weight:["regular"],fallback:"display"},"Vast Shadow":{weight:["regular"],fallback:"display"},Wallpoet:{weight:["regular"],fallback:"display"},Unkempt:{weight:["regular","700"],fallback:"display"},"Fanwood Text":{weight:["regular","italic"],fallback:"serif"},"Doppio One":{weight:["regular"],fallback:"sans-serif"},"Comic Neue":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"handwriting"},Corben:{weight:["regular","700"],fallback:"display"},Frijole:{weight:["regular"],fallback:"display"},Balthazar:{weight:["regular"],fallback:"serif"},Mirza:{weight:["regular","500","600","700"],fallback:"display"},"IM Fell French Canon SC":{weight:["regular"],fallback:"serif"},Brawler:{weight:["regular"],fallback:"serif"},"Oleo Script Swash Caps":{weight:["regular","700"],fallback:"display"},Mandali:{weight:["regular"],fallback:"sans-serif"},Convergence:{weight:["regular"],fallback:"sans-serif"},Fondamento:{weight:["regular","italic"],fallback:"handwriting"},Alike:{weight:["regular"],fallback:"serif"},Baumans:{weight:["regular"],fallback:"display"},Esteban:{weight:["regular"],fallback:"serif"},"Gravitas One":{weight:["regular"],fallback:"display"},Anaheim:{weight:["regular"],fallback:"sans-serif"},"Wendy One":{weight:["regular"],fallback:"sans-serif"},"Stardos Stencil":{weight:["regular","700"],fallback:"display"},"Spicy Rice":{weight:["regular"],fallback:"display"},Rakkas:{weight:["regular"],fallback:"display"},"La Belle Aurore":{weight:["regular"],fallback:"handwriting"},"Secular One":{weight:["regular"],fallback:"sans-serif"},Belgrano:{weight:["regular"],fallback:"serif"},"Bungee Shade":{weight:["regular"],fallback:"display"},"Crafty Girls":{weight:["regular"],fallback:"handwriting"},Battambang:{weight:["regular","700"],fallback:"display"},Quando:{weight:["regular"],fallback:"serif"},"Mouse Memoirs":{weight:["regular"],fallback:"sans-serif"},Gugi:{weight:["regular"],fallback:"display"},"Faster One":{weight:["regular"],fallback:"display"},"B612 Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Limelight:{weight:["regular"],fallback:"display"},"Short Stack":{weight:["regular"],fallback:"handwriting"},"Mountains of Christmas":{weight:["regular","700"],fallback:"display"},"Share Tech":{weight:["regular"],fallback:"sans-serif"},Laila:{weight:["300","regular","500","600","700"],fallback:"serif"},Literata:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Cormorant SC":{weight:["300","regular","500","600","700"],fallback:"serif"},"Fjord One":{weight:["regular"],fallback:"serif"},Podkova:{weight:["regular","500","600","700","800"],fallback:"serif"},Homenaje:{weight:["regular"],fallback:"sans-serif"},"Walter Turncoat":{weight:["regular"],fallback:"handwriting"},Sen:{weight:["regular","700","800"],fallback:"sans-serif"},"Patrick Hand SC":{weight:["regular"],fallback:"handwriting"},Voces:{weight:["regular"],fallback:"display"},Qwigley:{weight:["regular"],fallback:"handwriting"},"Happy Monkey":{weight:["regular"],fallback:"display"},"Rouge Script":{weight:["regular"],fallback:"handwriting"},"Baloo Chettan 2":{weight:["regular","500","600","700","800"],fallback:"display"},NTR:{weight:["regular"],fallback:"sans-serif"},Skranji:{weight:["regular","700"],fallback:"display"},Strait:{weight:["regular"],fallback:"sans-serif"},"Dawning of a New Day":{weight:["regular"],fallback:"handwriting"},Iceland:{weight:["regular"],fallback:"display"},"Expletus Sans":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"display"},"Montserrat Subrayada":{weight:["regular","700"],fallback:"sans-serif"},Oregano:{weight:["regular","italic"],fallback:"display"},"Give You Glory":{weight:["regular"],fallback:"handwriting"},Alata:{weight:["regular"],fallback:"sans-serif"},Puritan:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Mako:{weight:["regular"],fallback:"sans-serif"},Andika:{weight:["regular"],fallback:"sans-serif"},"Cormorant Upright":{weight:["300","regular","500","600","700"],fallback:"serif"},Zeyada:{weight:["regular"],fallback:"handwriting"},"Bowlby One":{weight:["regular"],fallback:"display"},"Aref Ruqaa":{weight:["regular","700"],fallback:"serif"},Numans:{weight:["regular"],fallback:"sans-serif"},Kurale:{weight:["regular"],fallback:"serif"},Spirax:{weight:["regular"],fallback:"display"},"Clicker Script":{weight:["regular"],fallback:"handwriting"},"Waiting for the Sunrise":{weight:["regular"],fallback:"handwriting"},"Holtwood One SC":{weight:["regular"],fallback:"serif"},Katibeh:{weight:["regular"],fallback:"display"},"Carrois Gothic SC":{weight:["regular"],fallback:"sans-serif"},Livvic:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},Eater:{weight:["regular"],fallback:"display"},"Fontdiner Swanky":{weight:["regular"],fallback:"display"},"Finger Paint":{weight:["regular"],fallback:"display"},Bellefair:{weight:["regular"],fallback:"serif"},"Wire One":{weight:["regular"],fallback:"sans-serif"},Kosugi:{weight:["regular"],fallback:"sans-serif"},Charm:{weight:["regular","700"],fallback:"handwriting"},"Delius Swash Caps":{weight:["regular"],fallback:"handwriting"},"Vesper Libre":{weight:["regular","500","700","900"],fallback:"serif"},"Red Hat Text":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Gafata:{weight:["regular"],fallback:"sans-serif"},"Averia Sans Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Denk One":{weight:["regular"],fallback:"sans-serif"},Geo:{weight:["regular","italic"],fallback:"sans-serif"},Tauri:{weight:["regular"],fallback:"sans-serif"},"Cherry Swash":{weight:["regular","700"],fallback:"display"},Codystar:{weight:["300","regular"],fallback:"display"},"Cantora One":{weight:["regular"],fallback:"sans-serif"},"Encode Sans Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Nova Square":{weight:["regular"],fallback:"display"},BioRhyme:{weight:["200","300","regular","700","800"],fallback:"serif"},Timmana:{weight:["regular"],fallback:"sans-serif"},Atma:{weight:["300","regular","500","600","700"],fallback:"display"},Tienne:{weight:["regular","700","900"],fallback:"serif"},Meddon:{weight:["regular"],fallback:"handwriting"},Galada:{weight:["regular"],fallback:"display"},Padauk:{weight:["regular","700"],fallback:"sans-serif"},"Loved by the King":{weight:["regular"],fallback:"handwriting"},"The Girl Next Door":{weight:["regular"],fallback:"handwriting"},"Darker Grotesque":{weight:["300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Life Savers":{weight:["regular","700","800"],fallback:"display"},Bilbo:{weight:["regular"],fallback:"handwriting"},Shanti:{weight:["regular"],fallback:"sans-serif"},"Headland One":{weight:["regular"],fallback:"serif"},"Euphoria Script":{weight:["regular"],fallback:"handwriting"},Imprima:{weight:["regular"],fallback:"sans-serif"},"Aguafina Script":{weight:["regular"],fallback:"handwriting"},"Baloo 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Over the Rainbow":{weight:["regular"],fallback:"handwriting"},Sarpanch:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Orienta:{weight:["regular"],fallback:"sans-serif"},"Spectral SC":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Port Lligat Sans":{weight:["regular"],fallback:"sans-serif"},Artifika:{weight:["regular"],fallback:"serif"},Ledger:{weight:["regular"],fallback:"serif"},Ruluko:{weight:["regular"],fallback:"sans-serif"},Sail:{weight:["regular"],fallback:"display"},Alatsi:{weight:["regular"],fallback:"sans-serif"},"Sonsie One":{weight:["regular"],fallback:"display"},"Bilbo Swash Caps":{weight:["regular"],fallback:"handwriting"},Slackey:{weight:["regular"],fallback:"display"},Salsa:{weight:["regular"],fallback:"display"},Rationale:{weight:["regular"],fallback:"sans-serif"},"Hepta Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Nosifer:{weight:["regular"],fallback:"display"},Dekko:{weight:["regular"],fallback:"handwriting"},"Encode Sans Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Lily Script One":{weight:["regular"],fallback:"display"},"Zilla Slab Highlight":{weight:["regular","700"],fallback:"display"},Dokdo:{weight:["regular"],fallback:"handwriting"},"Kotta One":{weight:["regular"],fallback:"serif"},"Macondo Swash Caps":{weight:["regular"],fallback:"display"},"Encode Sans Semi Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Prosto One":{weight:["regular"],fallback:"display"},"Trade Winds":{weight:["regular"],fallback:"display"},Farsan:{weight:["regular"],fallback:"display"},Manuale:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},Creepster:{weight:["regular"],fallback:"display"},"Medula One":{weight:["regular"],fallback:"display"},Ranchers:{weight:["regular"],fallback:"display"},"David Libre":{weight:["regular","500","700"],fallback:"serif"},"Libre Barcode 39":{weight:["regular"],fallback:"display"},"Vampiro One":{weight:["regular"],fallback:"display"},Metamorphous:{weight:["regular"],fallback:"display"},"Bubbler One":{weight:["regular"],fallback:"sans-serif"},"Nova Mono":{weight:["regular"],fallback:"monospace"},"Princess Sofia":{weight:["regular"],fallback:"handwriting"},"Just Me Again Down Here":{weight:["regular"],fallback:"handwriting"},Notable:{weight:["regular"],fallback:"sans-serif"},"Fascinate Inline":{weight:["regular"],fallback:"display"},Vibur:{weight:["regular"],fallback:"handwriting"},"Vollkorn SC":{weight:["regular","600","700","900"],fallback:"serif"},Crushed:{weight:["regular"],fallback:"display"},Sumana:{weight:["regular","700"],fallback:"serif"},Elsie:{weight:["regular","900"],fallback:"display"},Ranga:{weight:["regular","700"],fallback:"display"},"Port Lligat Slab":{weight:["regular"],fallback:"serif"},Amarante:{weight:["regular"],fallback:"display"},"Ruslan Display":{weight:["regular"],fallback:"display"},"Germania One":{weight:["regular"],fallback:"display"},"Sirin Stencil":{weight:["regular"],fallback:"display"},Pavanam:{weight:["regular"],fallback:"sans-serif"},Peralta:{weight:["regular"],fallback:"display"},"Scope One":{weight:["regular"],fallback:"serif"},Jomolhari:{weight:["regular"],fallback:"serif"},Kranky:{weight:["regular"],fallback:"display"},"Yatra One":{weight:["regular"],fallback:"display"},"Jacques Francois Shadow":{weight:["regular"],fallback:"display"},Ribeye:{weight:["regular"],fallback:"display"},"Averia Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Saira Stencil One":{weight:["regular"],fallback:"display"},"Cherry Cream Soda":{weight:["regular"],fallback:"display"},"Mukta Mahee":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Srisakdi:{weight:["regular","700"],fallback:"display"},Trochut:{weight:["regular","italic","700"],fallback:"display"},Coiny:{weight:["regular"],fallback:"display"},"Ma Shan Zheng":{weight:["regular"],fallback:"handwriting"},Asul:{weight:["regular","700"],fallback:"sans-serif"},Ewert:{weight:["regular"],fallback:"display"},Arya:{weight:["regular","700"],fallback:"sans-serif"},"Hanalei Fill":{weight:["regular"],fallback:"display"},Grenze:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Ribeye Marrow":{weight:["regular"],fallback:"display"},"IM Fell English SC":{weight:["regular"],fallback:"serif"},"Chau Philomene One":{weight:["regular","italic"],fallback:"sans-serif"},Sarina:{weight:["regular"],fallback:"display"},Chicle:{weight:["regular"],fallback:"display"},Manjari:{weight:["100","regular","700"],fallback:"sans-serif"},Montaga:{weight:["regular"],fallback:"serif"},Italiana:{weight:["regular"],fallback:"serif"},Akronim:{weight:["regular"],fallback:"display"},Habibi:{weight:["regular"],fallback:"serif"},Englebert:{weight:["regular"],fallback:"sans-serif"},Dynalight:{weight:["regular"],fallback:"display"},"Mate SC":{weight:["regular"],fallback:"serif"},"Henny Penny":{weight:["regular"],fallback:"display"},"Sree Krushnadevaraya":{weight:["regular"],fallback:"serif"},Engagement:{weight:["regular"],fallback:"handwriting"},Girassol:{weight:["regular"],fallback:"display"},"Kite One":{weight:["regular"],fallback:"sans-serif"},"Ibarra Real Nova":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},Gaegu:{weight:["300","regular","700"],fallback:"handwriting"},Fenix:{weight:["regular"],fallback:"serif"},"Pirata One":{weight:["regular"],fallback:"display"},"Tulpen One":{weight:["regular"],fallback:"display"},"IM Fell Great Primer":{weight:["regular","italic"],fallback:"serif"},Chathura:{weight:["100","300","regular","700","800"],fallback:"sans-serif"},Unlock:{weight:["regular"],fallback:"display"},"Nova Round":{weight:["regular"],fallback:"display"},Sura:{weight:["regular","700"],fallback:"serif"},"Kumar One":{weight:["regular"],fallback:"display"},Baskervville:{weight:["regular","italic"],fallback:"serif"},Quintessential:{weight:["regular"],fallback:"handwriting"},Milonga:{weight:["regular"],fallback:"display"},Bayon:{weight:["regular"],fallback:"display"},"Be Vietnam":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},"Crimson Pro":{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},B612:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"League Script":{weight:["regular"],fallback:"handwriting"},"Inknut Antiqua":{weight:["300","regular","500","600","700","800","900"],fallback:"serif"},Mogra:{weight:["regular"],fallback:"display"},"Mystery Quest":{weight:["regular"],fallback:"display"},"Monsieur La Doulaise":{weight:["regular"],fallback:"handwriting"},Vibes:{weight:["regular"],fallback:"display"},Rosarivo:{weight:["regular","italic"],fallback:"serif"},"Uncial Antiqua":{weight:["regular"],fallback:"display"},Dorsa:{weight:["regular"],fallback:"sans-serif"},Almendra:{weight:["regular","italic","700","700italic"],fallback:"serif"},Diplomata:{weight:["regular"],fallback:"display"},Simonetta:{weight:["regular","italic","900","900italic"],fallback:"display"},"New Rocker":{weight:["regular"],fallback:"display"},Snippet:{weight:["regular"],fallback:"sans-serif"},Petrona:{weight:["regular"],fallback:"serif"},Ramaraja:{weight:["regular"],fallback:"serif"},"Averia Gruesa Libre":{weight:["regular"],fallback:"display"},"Baloo Bhaina 2":{weight:["regular","500","600","700","800"],fallback:"display"},Kodchasan:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Meera Inimai":{weight:["regular"],fallback:"sans-serif"},Flamenco:{weight:["300","regular"],fallback:"display"},Khmer:{weight:["regular"],fallback:"display"},Paprika:{weight:["regular"],fallback:"display"},Koulen:{weight:["regular"],fallback:"display"},Mansalva:{weight:["regular"],fallback:"handwriting"},"Lovers Quarrel":{weight:["regular"],fallback:"handwriting"},Condiment:{weight:["regular"],fallback:"handwriting"},"Baloo Thambi 2":{weight:["regular","500","600","700","800"],fallback:"display"},Stoke:{weight:["300","regular"],fallback:"serif"},Barrio:{weight:["regular"],fallback:"display"},Barriecito:{weight:["regular"],fallback:"display"},"Donegal One":{weight:["regular"],fallback:"serif"},Kavoon:{weight:["regular"],fallback:"display"},"Big Shoulders Display":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Mina:{weight:["regular","700"],fallback:"sans-serif"},"Big Shoulders Text":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Prociono:{weight:["regular"],fallback:"serif"},"Text Me One":{weight:["regular"],fallback:"sans-serif"},"IM Fell French Canon":{weight:["regular","italic"],fallback:"serif"},"Overlock SC":{weight:["regular"],fallback:"display"},Cagliostro:{weight:["regular"],fallback:"sans-serif"},"Marko One":{weight:["regular"],fallback:"serif"},"Swanky and Moo Moo":{weight:["regular"],fallback:"handwriting"},"Maiden Orange":{weight:["regular"],fallback:"display"},Blinker:{weight:["100","200","300","regular","600","700","800","900"],fallback:"sans-serif"},Miniver:{weight:["regular"],fallback:"display"},Angkor:{weight:["regular"],fallback:"display"},Chango:{weight:["regular"],fallback:"display"},Thasadith:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Modak:{weight:["regular"],fallback:"display"},Junge:{weight:["regular"],fallback:"serif"},"Stint Ultra Condensed":{weight:["regular"],fallback:"display"},Stalemate:{weight:["regular"],fallback:"handwriting"},Tillana:{weight:["regular","500","600","700","800"],fallback:"handwriting"},UnifrakturCook:{weight:["700"],fallback:"display"},"Rum Raisin":{weight:["regular"],fallback:"sans-serif"},Farro:{weight:["300","regular","500","700"],fallback:"sans-serif"},"Delius Unicase":{weight:["regular","700"],fallback:"handwriting"},Sancreek:{weight:["regular"],fallback:"display"},Julee:{weight:["regular"],fallback:"handwriting"},Margarine:{weight:["regular"],fallback:"display"},"Lakki Reddy":{weight:["regular"],fallback:"handwriting"},"Stint Ultra Expanded":{weight:["regular"],fallback:"display"},"Bigshot One":{weight:["regular"],fallback:"display"},Griffy:{weight:["regular"],fallback:"display"},Moul:{weight:["regular"],fallback:"display"},"Diplomata SC":{weight:["regular"],fallback:"display"},Oxanium:{weight:["200","300","regular","500","600","700","800"],fallback:"display"},Offside:{weight:["regular"],fallback:"display"},"Fira Code":{weight:["300","regular","500","600","700"],fallback:"monospace"},"Eagle Lake":{weight:["regular"],fallback:"handwriting"},Flavors:{weight:["regular"],fallback:"display"},"Londrina Outline":{weight:["regular"],fallback:"display"},Tomorrow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Nokora:{weight:["regular","700"],fallback:"serif"},Calistoga:{weight:["regular"],fallback:"display"},Gotu:{weight:["regular"],fallback:"sans-serif"},"Della Respira":{weight:["regular"],fallback:"serif"},"Cormorant Unicase":{weight:["300","regular","500","600","700"],fallback:"serif"},"Libre Caslon Text":{weight:["regular","italic","700"],fallback:"serif"},Buda:{weight:["300"],fallback:"display"},Asar:{weight:["regular"],fallback:"serif"},"Poller One":{weight:["regular"],fallback:"display"},"Autour One":{weight:["regular"],fallback:"display"},"Nova Slim":{weight:["regular"],fallback:"display"},Underdog:{weight:["regular"],fallback:"display"},Redressed:{weight:["regular"],fallback:"handwriting"},"Yeon Sung":{weight:["regular"],fallback:"display"},Content:{weight:["regular","700"],fallback:"display"},Kantumruy:{weight:["300","regular","700"],fallback:"sans-serif"},"Baloo Paaji 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Jim Nightshade":{weight:["regular"],fallback:"handwriting"},"Glass Antiqua":{weight:["regular"],fallback:"display"},"Snowburst One":{weight:["regular"],fallback:"display"},"Gamja Flower":{weight:["regular"],fallback:"handwriting"},Revalia:{weight:["regular"],fallback:"display"},"Metal Mania":{weight:["regular"],fallback:"display"},Charmonman:{weight:["regular","700"],fallback:"handwriting"},"IM Fell DW Pica SC":{weight:["regular"],fallback:"serif"},Inika:{weight:["regular","700"],fallback:"serif"},"Elsie Swash Caps":{weight:["regular","900"],fallback:"display"},Wellfleet:{weight:["regular"],fallback:"display"},"Chela One":{weight:["regular"],fallback:"display"},"Rhodium Libre":{weight:["regular"],fallback:"serif"},"Mrs Sheppards":{weight:["regular"],fallback:"handwriting"},"Sedgwick Ave Display":{weight:["regular"],fallback:"handwriting"},"Modern Antiqua":{weight:["regular"],fallback:"display"},"Ravi Prakash":{weight:["regular"],fallback:"display"},Galdeano:{weight:["regular"],fallback:"sans-serif"},Oldenburg:{weight:["regular"],fallback:"display"},Arbutus:{weight:["regular"],fallback:"display"},"Poor Story":{weight:["regular"],fallback:"display"},"Hi Melody":{weight:["regular"],fallback:"handwriting"},"Joti One":{weight:["regular"],fallback:"display"},"Nova Flat":{weight:["regular"],fallback:"display"},"ZCOOL QingKe HuangYou":{weight:["regular"],fallback:"display"},"Linden Hill":{weight:["regular","italic"],fallback:"serif"},Bokor:{weight:["regular"],fallback:"display"},"Courier Prime":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Trykker:{weight:["regular"],fallback:"serif"},KoHo:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Song Myung":{weight:["regular"],fallback:"serif"},Ruthie:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended Text":{weight:["regular"],fallback:"display"},Chilanka:{weight:["regular"],fallback:"handwriting"},Fahkwang:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Felipa:{weight:["regular"],fallback:"handwriting"},Monofett:{weight:["regular"],fallback:"display"},"Odibee Sans":{weight:["regular"],fallback:"display"},Smythe:{weight:["regular"],fallback:"display"},"Major Mono Display":{weight:["regular"],fallback:"monospace"},Jomhuria:{weight:["regular"],fallback:"display"},"Croissant One":{weight:["regular"],fallback:"display"},Dangrek:{weight:["regular"],fallback:"display"},"Original Surfer":{weight:["regular"],fallback:"display"},Bahiana:{weight:["regular"],fallback:"display"},Gorditas:{weight:["regular","700"],fallback:"display"},"Odor Mean Chey":{weight:["regular"],fallback:"display"},Iceberg:{weight:["regular"],fallback:"display"},MedievalSharp:{weight:["regular"],fallback:"display"},"Caesar Dressing":{weight:["regular"],fallback:"display"},Sahitya:{weight:["regular","700"],fallback:"serif"},Stylish:{weight:["regular"],fallback:"sans-serif"},"Nova Cut":{weight:["regular"],fallback:"display"},"Purple Purse":{weight:["regular"],fallback:"display"},Devonshire:{weight:["regular"],fallback:"handwriting"},Smokum:{weight:["regular"],fallback:"display"},"Almendra Display":{weight:["regular"],fallback:"display"},Galindo:{weight:["regular"],fallback:"display"},Preahvihear:{weight:["regular"],fallback:"display"},Siemreap:{weight:["regular"],fallback:"display"},"Irish Grover":{weight:["regular"],fallback:"display"},Gupter:{weight:["regular","500","700"],fallback:"serif"},"Meie Script":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128":{weight:["regular"],fallback:"display"},"Keania One":{weight:["regular"],fallback:"display"},"GFS Neohellenic":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Cute Font":{weight:["regular"],fallback:"display"},"Londrina Shadow":{weight:["regular"],fallback:"display"},"East Sea Dokdo":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended":{weight:["regular"],fallback:"display"},Risque:{weight:["regular"],fallback:"display"},Lancelot:{weight:["regular"],fallback:"display"},"Libre Caslon Display":{weight:["regular"],fallback:"serif"},Plaster:{weight:["regular"],fallback:"display"},"Goblin One":{weight:["regular"],fallback:"display"},Asset:{weight:["regular"],fallback:"display"},"Almendra SC":{weight:["regular"],fallback:"serif"},"Jacques Francois":{weight:["regular"],fallback:"serif"},"Jolly Lodger":{weight:["regular"],fallback:"display"},"Lexend Exa":{weight:["regular"],fallback:"sans-serif"},Molle:{weight:["italic"],fallback:"handwriting"},Kavivanar:{weight:["regular"],fallback:"handwriting"},"Kirang Haerang":{weight:["regular"],fallback:"display"},Piedra:{weight:["regular"],fallback:"display"},"Atomic Age":{weight:["regular"],fallback:"display"},"Kulim Park":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Libre Barcode 39 Text":{weight:["regular"],fallback:"display"},"IM Fell Great Primer SC":{weight:["regular"],fallback:"serif"},"Tenali Ramakrishna":{weight:["regular"],fallback:"sans-serif"},Butcherman:{weight:["regular"],fallback:"display"},"Dr Sugiyama":{weight:["regular"],fallback:"handwriting"},"Geostar Fill":{weight:["regular"],fallback:"display"},Romanesco:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128 Text":{weight:["regular"],fallback:"display"},Sunshiney:{weight:["regular"],fallback:"handwriting"},"Kumar One Outline":{weight:["regular"],fallback:"display"},Peddana:{weight:["regular"],fallback:"serif"},"Baloo Bhai 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Kdam Thmor":{weight:["regular"],fallback:"display"},"Ruge Boogie":{weight:["regular"],fallback:"handwriting"},Freehand:{weight:["regular"],fallback:"display"},Bonbon:{weight:["regular"],fallback:"handwriting"},Caladea:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Single Day":{weight:["regular"],fallback:"display"},"Baloo Tamma 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Inria Sans":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Hanalei:{weight:["regular"],fallback:"display"},"Emblema One":{weight:["regular"],fallback:"display"},"Seymour One":{weight:["regular"],fallback:"sans-serif"},"Miss Fajardose":{weight:["regular"],fallback:"handwriting"},Sevillana:{weight:["regular"],fallback:"display"},"Inria Serif":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Bungee Outline":{weight:["regular"],fallback:"display"},Metal:{weight:["regular"],fallback:"display"},"IM Fell Double Pica SC":{weight:["regular"],fallback:"serif"},"Lexend Giga":{weight:["regular"],fallback:"sans-serif"},"ZCOOL KuaiLe":{weight:["regular"],fallback:"display"},Astloch:{weight:["regular","700"],fallback:"display"},"Mr Bedfort":{weight:["regular"],fallback:"handwriting"},Macondo:{weight:["regular"],fallback:"display"},"Butterfly Kids":{weight:["regular"],fallback:"handwriting"},"Supermercado One":{weight:["regular"],fallback:"display"},Fruktur:{weight:["regular"],fallback:"display"},Taprom:{weight:["regular"],fallback:"display"},Lacquer:{weight:["regular"],fallback:"display"},"Black And White Picture":{weight:["regular"],fallback:"sans-serif"},"Bigelow Rules":{weight:["regular"],fallback:"display"},"Beth Ellen":{weight:["regular"],fallback:"handwriting"},"Sofadi One":{weight:["regular"],fallback:"display"},Combo:{weight:["regular"],fallback:"display"},Bellota:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Federant:{weight:["regular"],fallback:"display"},"Miltonian Tattoo":{weight:["regular"],fallback:"display"},"Londrina Sketch":{weight:["regular"],fallback:"display"},Suwannaphum:{weight:["regular"],fallback:"display"},"Bungee Hairline":{weight:["regular"],fallback:"display"},Fascinate:{weight:["regular"],fallback:"display"},"Erica One":{weight:["regular"],fallback:"display"},"Nova Oval":{weight:["regular"],fallback:"display"},"Baloo Da 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Sulphur Point":{weight:["300","regular","700"],fallback:"sans-serif"},Aubrey:{weight:["regular"],fallback:"display"},Gidugu:{weight:["regular"],fallback:"sans-serif"},"Bellota Text":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Nova Script":{weight:["regular"],fallback:"display"},Miltonian:{weight:["regular"],fallback:"display"},Gayathri:{weight:["100","regular","700"],fallback:"sans-serif"},Geostar:{weight:["regular"],fallback:"display"},Moulpali:{weight:["regular"],fallback:"display"},"Passero One":{weight:["regular"],fallback:"display"},"Stalinist One":{weight:["regular"],fallback:"display"},"Long Cang":{weight:["regular"],fallback:"handwriting"},Solway:{weight:["300","regular","500","700","800"],fallback:"serif"},"Zhi Mang Xing":{weight:["regular"],fallback:"handwriting"},"Baloo Tammudu 2":{weight:["regular","500","600","700","800"],fallback:"display"},Chenla:{weight:["regular"],fallback:"display"},Suravaram:{weight:["regular"],fallback:"serif"},Fasthand:{weight:["regular"],fallback:"serif"},Kenia:{weight:["regular"],fallback:"display"},Dhurjati:{weight:["regular"],fallback:"sans-serif"},"Lexend Tera":{weight:["regular"],fallback:"sans-serif"},"BioRhyme Expanded":{weight:["200","300","regular","700","800"],fallback:"serif"},"Turret Road":{weight:["200","300","regular","500","700","800"],fallback:"display"},Warnes:{weight:["regular"],fallback:"display"},"Viaoda Libre":{weight:["regular"],fallback:"display"},"Lexend Mega":{weight:["regular"],fallback:"sans-serif"},Bahianita:{weight:["regular"],fallback:"display"},Manrope:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Lexend Zetta":{weight:["regular"],fallback:"sans-serif"},"Lexend Peta":{weight:["regular"],fallback:"sans-serif"}});function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var je=function(e){f()(a,e);var t=Oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.setAttributes,i=t.attributes,r=t.device,n=void 0===r?"":r,c=t.showFontSize,s=void 0!==c&&c,g=t.showFontFamily,b=void 0!==g&&g,u=t.showFontWeight,d=void 0!==u&&u,p=t.showTextTransform,f=void 0!==p&&p,h=t.showLineHeight,m=void 0!==h&&h,k=t.showLetterSpacing,y=void 0!==k&&k,v=t.disableAdvancedToggle,w=void 0!==v&&v,O=t.fontSizePlaceholder,j=void 0===O?"17":O,_=[{value:"",label:Object(T.__)("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(we).slice(0,20).forEach((function(e){_.push({value:e,label:e})})),_.push({value:"other",label:Object(T.__)("Other","generateblocks")});var S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],B=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"uppercase",label:Object(T.__)("Uppercase","generateblocks")},{value:"lowercase",label:Object(T.__)("Lowercase","generateblocks")},{value:"capitalize",label:Object(T.__)("Capitalize","generateblocks")},{value:"initial",label:Object(T.__)("Normal","generateblocks")}];void 0!==we[i.fontFamily]&&void 0!==we[i.fontFamily].weight&&(S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")}],we[i.fontFamily].weight.filter((function(e){var t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e)})).forEach((function(e){S.push({value:e,label:e})})));var D=function(e){"other"===e&&(e="");i.fontWeight;a({fontFamily:e}),i.fontWeight&&Object.values(S).indexOf(i.fontWeight),void 0!==we[e]?a({googleFont:!0,fontFamilyFallback:we[e].fallback,googleFontVariants:we[e].weight.join(", ")}):a({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})},R=function(e){a({fontFamily:e.target.value}),D(e.target.value)},x=function(e,t){return i[e+t]},M=function(e,t){return e+t},z=i.showAdvancedTypography;w&&(z=!0);var L=j;"Tablet"===n&&i.fontSize&&(L=i.fontSize),"Mobile"===n&&(i.fontSizeTablet?L=i.fontSizeTablet:i.fontSize&&(L=i.fontSize));var P="";return"Tablet"===n&&i.lineHeight&&(P=i.lineHeight),"Mobile"===n&&(i.lineHeightTablet?P=i.lineHeightTablet:i.lineHeight&&(P=i.lineHeight)),Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-gblocks-typography-weight-transform"},d&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Weight","generateblocks"),value:i.fontWeight,options:S,onChange:function(e){a({fontWeight:e})},className:"components-base-control"}),f&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Transform","generateblocks"),value:i.textTransform,options:B,onChange:function(e){a({textTransform:e})},className:"components-base-control"})),!w&&Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Show Advanced Typography","generateblocks"),checked:!!i.showAdvancedTypography,onChange:function(e){a({showAdvancedTypography:e})}}),b&&z&&Object(l.createElement)(C.BaseControl,{className:"gblocks-font-family-shortcuts"},Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Font Family","generateblocks")),Object(l.createElement)("select",{className:"components-select-control__input components-select-control__input--gblocks-fontfamily",onChange:R,onBlur:R},_.map((function(e,t){return Object(l.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))),b&&z&&Object(l.createElement)(C.TextControl,{value:i.fontFamily,placeholder:Object(T.__)("Enter font name","generateblocks"),onChange:function(e){return D(e)}}),b&&""!==i.fontFamily&&z&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Google Font","generateblocks"),checked:!!i.googleFont,onChange:function(e){a({googleFont:e}),e&&void 0!==we[i.fontFamily]&&a({fontFamilyFallback:we[i.fontFamily].fallback,googleFontVariants:we[i.fontFamily].weight.join(", ")})}}),!!i.googleFont&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Variants","generateblocks"),value:i.googleFontVariants,placeholder:Object(T.__)("300, 400, 400i","generateblocks"),onChange:function(e){a({googleFontVariants:e})}})),b&&z&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Font Family Fallback","generateblocks"),value:i.fontFamilyFallback,placeholder:Object(T.__)("sans-serif","generateblocks"),onChange:function(e){a({fontFamilyFallback:e})}}),s&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Font Size","generateblocks"),value:i.fontSizeUnit,units:["px","em","%"],onClick:function(e){a({fontSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("fontSize",n)||"",placeholder:L,onChange:function(e){var t=M("fontSize",n);a(o()({},t,parseFloat(e)))},min:1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("fontSize",n);a(o()({},t,e.props.defaultFontSize))}},Object(T.__)("Reset","generateblocks")))),m&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Line Height","generateblocks"),value:i.lineHeightUnit,units:["px","em","%"],onClick:function(e){a({lineHeightUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("lineHeight",n)||0===x("lineHeight",n)?x("lineHeight",n):"",placeholder:P,onChange:function(e){var t=M("lineHeight",n);a(o()({},t,e))},onBlur:function(){var e=M("lineHeight",n);a(o()({},e,parseFloat(x("lineHeight",n))))},onClick:function(e){e.currentTarget.focus()},min:0,step:.1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("lineHeight",n);a(o()({},t,e.props.defaultLineHeight))}},Object(T.__)("Reset","generateblocks")))),y&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Letter Spacing","generateblocks"),value:"em",units:["em"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("letterSpacing",n)||"",placeholder:"0.01",onChange:function(e){var t=M("letterSpacing",n);a(o()({},t,e))},onBlur:function(){var e=M("letterSpacing",n);a(o()({},e,parseFloat(x("letterSpacing",n))))},onClick:function(e){e.currentTarget.focus()},min:-1,step:.01,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("letterSpacing",n);a(o()({},t,e.props.defaultLetterSpacing))}},Object(T.__)("Reset","generateblocks")))))}}]),a}(l.Component);a(39);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ce=function(e){f()(a,e);var t=Te(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrGradient,n=t.attrGradientDirection,c=t.attrGradientColorOne,s=t.attrGradientColorOneOpacity,g=t.attrGradientColorStopOne,b=t.attrGradientColorTwo,u=t.attrGradientColorTwoOpacity,d=t.attrGradientColorStopTwo,p=t.defaultColorOne,f=t.defaultColorTwo,h=a.gradientSelector,m=a.innerZindex,k="element"===h?Object(T.__)("Displays behind the background image.","generateblocks"):Object(T.__)("Displays in front of the background image.","generateblocks");return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Use Gradient","generateblocks"),checked:!!a[r],onChange:function(t){i(o()({},e.props.attrGradient,t))}}),!!a[r]&&Object(l.createElement)(l.Fragment,null,void 0!==h&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Selector","generateblocks"),help:k,value:h,options:[{label:Object(T.__)("Element","generateblocks"),value:"element"},{label:Object(T.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){i("pseudo-element"!==e||m?{gradientSelector:e}:{gradientSelector:e,innerZindex:1})}}),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Direction","generateblocks")),Object(l.createElement)(C.RangeControl,{value:a[n]?a[n]:1,onChange:function(e){i(o()({},n,e))},min:0,max:360,step:1,initialPosition:90})),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color One","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[c],alpha:!0,valueOpacity:a[s],attrOpacity:"gradientColorOneOpacity",onChange:function(e){return i(o()({},c,e))},onOpacityChange:function(e){return i(o()({},s,e))},onClear:function(){return i(o()({},c,p))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[g]||0===a[g]?a[g]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},g,e))},onBlur:function(){(a[g]||0===a[g])&&i(o()({},g,parseFloat(a[g])))},onClick:function(e){e.currentTarget.focus()}}))),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color Two","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[b],alpha:!0,valueOpacity:a[u],attrOpacity:"gradientColorTwoOpacity",onChange:function(e){return i(o()({},b,e))},onOpacityChange:function(e){return i(o()({},u,e))},onClear:function(){return i(o()({},b,f))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[d]||0===a[d]?a[d]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},d,e))},onBlur:function(){(a[d]||0===a[d])&&i(o()({},d,parseFloat(a[d])))},onClick:function(e){e.currentTarget.focus()}})))))}}]),a}(l.Component),_e=a(25),Se=a.n(_e);function Be(e){return Se.a.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}function De(e,t,a,l,i){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+i+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+i+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+i+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+i+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}function Ee(e,t){var a=t.attributes,l=a.backgroundColor,i=a.backgroundColorOpacity,r=a.bgImage,n=a.gradient,o=a.bgOptions,c=a.gradientColorOne,s=a.gradientColorOneOpacity,g=a.gradientColorTwo,b=a.gradientColorTwoOpacity,u=a.gradientColorStopOne,d=a.gradientColorStopTwo,p=a.gradientDirection,f="";if(n){var h="",m="";c&&""!==u&&(h=" "+u+"%"),g&&""!==d&&(m=" "+d+"%"),f="linear-gradient("+p+"deg, "+he(c,s)+h+", "+he(g,b)+m+")"}if("gradient"===e)return f;var k=!1,y=he(l,i);if(r){var v=r.image.url;v=Object(_.applyFilters)("generateblocks.editor.bgImageURL",v,t),"element"===o.selector&&(y||n)&&void 0!==o.overlay&&o.overlay?n?k=f+", url("+v+")":y&&(k="linear-gradient(0deg, "+y+", "+y+"), url("+v+")"):k="url("+v+")"}return k}function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var xe=function(e){f()(a,e);var t=Re(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.width,n=e.outerContainer,o=e.innerContainer,c=e.containerWidth,s=e.minHeight,g=e.minHeightUnit,b=e.paddingTop,u=e.paddingRight,d=e.paddingBottom,p=e.paddingLeft,f=e.paddingUnit,h=e.marginTop,m=e.marginRight,k=e.marginBottom,y=e.marginLeft,v=e.marginUnit,w=e.borderSizeTop,O=e.borderSizeRight,j=e.borderSizeBottom,T=e.borderSizeLeft,C=e.borderRadiusTopRight,S=e.borderRadiusBottomRight,B=e.borderRadiusBottomLeft,D=e.borderRadiusTopLeft,E=e.borderRadiusUnit,R=e.borderColor,x=e.borderColorOpacity,L=e.backgroundColor,P=e.backgroundColorOpacity,F=e.gradient,A=e.gradientSelector,U=e.textColor,H=e.linkColor,N=e.linkColorHover,I=e.bgImage,G=e.bgOptions,V=e.verticalAlignment,q=e.zindex,W=e.innerZindex,Z=e.alignment,K=e.fontFamily,J=e.fontFamilyFallback,Y=e.fontWeight,Q=e.fontSize,X=e.fontSizeUnit,$=e.textTransform,ee=e.shapeDividers,te=c;te||(te=generateBlocksDefaults.container.containerWidth);var ae="";K&&J&&(ae=", "+J);var le=!!I,ie=Ee("image",this.props),re=Ee("gradient",this.props),ne=W;!ne&&le&&"pseudo-element"===G.selector&&(ne=1);var oe=[];return oe[".gb-container-"+a]=[{"background-color":he(L,P),color:U,"border-radius":De(D,C,S,B,E),margin:De(h,m,k,y,v),"z-index":q,"text-align":Z,"font-family":K+ae,"font-weight":Y,"text-transform":$,"font-size":z(Q,X),"min-height":z(s,g)}],le&&"element"===G.selector&&ie?oe[".gb-container-"+a].push({"background-image":ie,"background-size":G.size,"background-position":G.position,"background-repeat":G.repeat,"background-attachment":G.attachment}):F&&"element"===A&&oe[".gb-container-"+a].push({"background-image":re}),(le&&"pseudo-element"===G.selector||q||F&&"pseudo-element"===A)&&oe[".gb-container-"+a].push({position:"relative"}),(le&&"pseudo-element"===G.selector||F&&"pseudo-element"===A)&&(oe[".gb-container-"+a].push({overflow:"hidden"}),oe[".gb-container-"+a+" .block-list-appender"]=[{"z-index":10}]),oe[".editor-styles-wrapper .gb-container-"+a+" h1,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h2,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h3,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h4,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h5,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h6"]=[{color:U}],(w||O||j||T)&&oe[".gb-container-"+a].push({"border-width":De(w,O,j,T,"px"),"border-style":"solid","border-color":he(R,x)}),s&&!i&&oe[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":V}),i&&(oe[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":V}),oe[".block-editor-block-list__layout > #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie="",re="inline-block";d&&p&&(ie=", "+p);var ne=i+".gb-headline-"+a,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:c,"font-family":d+ie,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:c}],V&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":he(n,o),color:c,display:!!ae&&re,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:s}],oe[ne+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],oe[ne+" .gb-highlight"]=[{color:u}],oe["#block-"+t]=[{display:!!ae&&"inline-flex"}],oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(oa,{level:"h2"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" diff --git a/dist/dashboard.asset.php b/dist/dashboard.asset.php index 4d31e276b..98d40f24f 100644 --- a/dist/dashboard.asset.php +++ b/dist/dashboard.asset.php @@ -1 +1 @@ - array('wp-api-fetch', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '200c4b070e7005aa58cb28d0a8027694'); \ No newline at end of file + array('wp-api-fetch', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '9735d1fad801bad34136cecf6b9b50d0'); \ No newline at end of file From b605f2e64264da6f46714fbadfe3796d31968acc Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Sat, 19 Dec 2020 13:58:58 -0800 Subject: [PATCH 21/53] Add border-radius to pseudo background image elements --- includes/generate-css.php | 1 + src/blocks/container/css/main.js | 1 + 2 files changed, 2 insertions(+) diff --git a/includes/generate-css.php b/includes/generate-css.php index 45afbc4c3..d5520b49c 100644 --- a/includes/generate-css.php +++ b/includes/generate-css.php @@ -341,6 +341,7 @@ function generateblocks_get_dynamic_css( $content = '' ) { $css->add_property( 'bottom', '0' ); $css->add_property( 'left', '0' ); $css->add_property( 'transition', 'inherit' ); + $css->add_property( 'border-radius', generateblocks_get_shorthand_css( $settings['borderRadiusTopLeft'], $settings['borderRadiusTopRight'], $settings['borderRadiusBottomRight'], $settings['borderRadiusBottomLeft'], $settings['borderRadiusUnit'] ) ); if ( isset( $settings['bgOptions']['opacity'] ) && 1 !== $settings['bgOptions']['opacity'] ) { $css->add_property( 'opacity', $settings['bgOptions']['opacity'] ); diff --git a/src/blocks/container/css/main.js b/src/blocks/container/css/main.js index 73a9687c2..c66820100 100644 --- a/src/blocks/container/css/main.js +++ b/src/blocks/container/css/main.js @@ -199,6 +199,7 @@ export default class MainCSS extends Component { 'right': '0', // eslint-disable-line quote-props 'bottom': '0', // eslint-disable-line quote-props 'left': '0', // eslint-disable-line quote-props + 'border-radius': shorthandCSS( borderRadiusTopLeft, borderRadiusTopRight, borderRadiusBottomRight, borderRadiusBottomLeft, borderRadiusUnit ), } ]; if ( typeof bgOptions.opacity !== 'undefined' && 1 !== bgOptions.opacity ) { From d8999fb2d5dc81a5b90d2b58ee4e7beeee1cae06 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Sat, 19 Dec 2020 13:59:03 -0800 Subject: [PATCH 22/53] Update dist --- dist/blocks.asset.php | 2 +- dist/blocks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index 7360026dc..14ec5d587 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '00e6b3a67bde4e0dbd7221d3504e0fc0'); \ No newline at end of file + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '0cfebf1bc026d96d4a85104f8afb8cc5'); \ No newline at end of file diff --git a/dist/blocks.js b/dist/blocks.js index c06073aec..af3fdb66e 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -4,7 +4,7 @@ /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Top","generateblocks"),r),value:a[c]?a[c]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:M,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeRight(a):e.onReset("attrRight")},onBlur:function(){q||""!==a[s]||""===B[s]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeRight("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Right","generateblocks"),r),value:a[s]?a[s]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:z,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeBottom(a):e.onReset("attrBottom")},onBlur:function(){q||""!==a[g]||""===B[g]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeBottom("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Bottom","generateblocks"),r),value:a[g]?a[g]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:L,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeLeft(a):e.onReset("attrLeft")},onBlur:function(){q||""!==a[b]||""===B[b]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeLeft("0"))},onClick:function(e){e.currentTarget.focus()} -/* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Left","generateblocks"),r),value:a[b]?a[b]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)(C.Tooltip,{text:a[u]?Object(T.__)("Unsync","generateblocks"):Object(T.__)("Sync","generateblocks")},Object(l.createElement)(C.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":Object(T.__)("Sync Units","generateblocks"),isPrimary:!!a[u]&&a[u],"aria-pressed":!!a[u]&&a[u],onClick:function(t){return e.syncUnits(t,"")},isSmall:!0},(a[u],j("sync"))))),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__input-labels"},Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},f),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},m),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},y),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},O),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"}))))}}]),a}(l.Component),we=(a(38),{Roboto:{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Open Sans":{weight:["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Lato:{weight:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Montserrat:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Source Sans Pro":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Roboto Condensed":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Oswald:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},"Roboto Mono":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"monospace"},Raleway:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Poppins:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Roboto Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Merriweather:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"serif"},"PT Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Ubuntu:{weight:["300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},"Playfair Display":{weight:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},Muli:{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Open Sans Condensed":{weight:["300","300italic","700"],fallback:"sans-serif"},"PT Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},Lora:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Slabo 27px":{weight:["regular"],fallback:"serif"},Nunito:{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans JP":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Work Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},Rubik:{weight:["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Noto Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fira Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Titillium Web":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],fallback:"sans-serif"},Quicksand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Noto Sans KR":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nanum Gothic":{weight:["regular","700","800"],fallback:"sans-serif"},Mukta:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Noto Sans TC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nunito Sans":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Heebo:{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Sans Narrow":{weight:["regular","700"],fallback:"sans-serif"},Arimo:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Inconsolata:{weight:["regular","700"],fallback:"monospace"},Barlow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Oxygen:{weight:["300","regular","700"],fallback:"sans-serif"},Dosis:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Bitter:{weight:["regular","italic","700"],fallback:"serif"},"Libre Baskerville":{weight:["regular","italic","700"],fallback:"serif"},"Crimson Text":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},"Libre Franklin":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Karla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Josefin Sans":{weight:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},Cabin:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Anton:{weight:["regular"],fallback:"sans-serif"},"Source Code Pro":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"monospace"},Hind:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Abel:{weight:["regular"],fallback:"sans-serif"},Amiri:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fjalla One":{weight:["regular"],fallback:"sans-serif"},Lobster:{weight:["regular"],fallback:"display"},Pacifico:{weight:["regular"],fallback:"handwriting"},"Indie Flower":{weight:["regular"],fallback:"handwriting"},"Exo 2":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Dancing Script":{weight:["regular","500","600","700"],fallback:"handwriting"},"Source Serif Pro":{weight:["regular","600","700"],fallback:"serif"},Arvo:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Hind Siliguri":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Varela Round":{weight:["regular"],fallback:"sans-serif"},"Merriweather Sans":{weight:["300","300italic","regular","italic","700","700italic","800","800italic"],fallback:"sans-serif"},Cairo:{weight:["200","300","regular","600","700","900"],fallback:"sans-serif"},"Yanone Kaffeesatz":{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Overpass:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Shadows Into Light":{weight:["regular"],fallback:"handwriting"},"Barlow Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"IBM Plex Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Comfortaa:{weight:["300","regular","500","600","700"],fallback:"display"},Asap:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Prompt:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Kanit:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Questrial:{weight:["regular"],fallback:"sans-serif"},Martel:{weight:["200","300","regular","600","700","800","900"],fallback:"serif"},"Archivo Narrow":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Abril Fatface":{weight:["regular"],fallback:"display"},"Amatic SC":{weight:["regular","700"],fallback:"handwriting"},Acme:{weight:["regular"],fallback:"sans-serif"},Catamaran:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Fira Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"EB Garamond":{weight:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],fallback:"serif"},"Bree Serif":{weight:["regular"],fallback:"serif"},"Zilla Slab":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Noto Sans SC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Cormorant Garamond":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Hind Madurai":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Teko:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Righteous:{weight:["regular"],fallback:"display"},Signika:{weight:["300","regular","600","700"],fallback:"sans-serif"},Play:{weight:["regular","700"],fallback:"sans-serif"},Domine:{weight:["regular","700"],fallback:"serif"},Exo:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Russo One":{weight:["regular"],fallback:"sans-serif"},Cinzel:{weight:["regular","700","900"],fallback:"serif"},"PT Sans Caption":{weight:["regular","700"],fallback:"sans-serif"},Rajdhani:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Maven Pro":{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Fredoka One":{weight:["regular"],fallback:"display"},"IBM Plex Serif":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Ubuntu Condensed":{weight:["regular"],fallback:"sans-serif"},"Patua One":{weight:["regular"],fallback:"display"},Caveat:{weight:["regular","700"],fallback:"handwriting"},"Permanent Marker":{weight:["regular"],fallback:"handwriting"},Assistant:{weight:["200","300","regular","600","700","800"],fallback:"sans-serif"},ABeeZee:{weight:["regular","italic"],fallback:"sans-serif"},Vollkorn:{weight:["regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"serif"},"Crete Round":{weight:["regular","italic"],fallback:"serif"},"Special Elite":{weight:["regular"],fallback:"display"},Rokkitt:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Bangers:{weight:["regular"],fallback:"display"},"Francois One":{weight:["regular"],fallback:"sans-serif"},"Barlow Semi Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Alegreya Sans":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Satisfy:{weight:["regular"],fallback:"handwriting"},Tajawal:{weight:["200","300","regular","500","700","800","900"],fallback:"sans-serif"},"Bebas Neue":{weight:["regular"],fallback:"display"},"Patrick Hand":{weight:["regular"],fallback:"handwriting"},Cuprum:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Viga:{weight:["regular"],fallback:"sans-serif"},Courgette:{weight:["regular"],fallback:"handwriting"},"Ropa Sans":{weight:["regular","italic"],fallback:"sans-serif"},"Noto Serif JP":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Gochi Hand":{weight:["regular"],fallback:"handwriting"},Alegreya:{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Luckiest Guy":{weight:["regular"],fallback:"display"},"Noticia Text":{weight:["regular","italic","700","700italic"],fallback:"serif"},Tinos:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Passion One":{weight:["regular","700","900"],fallback:"display"},"Alfa Slab One":{weight:["regular"],fallback:"display"},"Nanum Myeongjo":{weight:["regular","700","800"],fallback:"serif"},Monda:{weight:["regular","700"],fallback:"sans-serif"},"Lobster Two":{weight:["regular","italic","700","700italic"],fallback:"display"},Kalam:{weight:["300","regular","700"],fallback:"handwriting"},"Kaushan Script":{weight:["regular"],fallback:"handwriting"},"Archivo Black":{weight:["regular"],fallback:"sans-serif"},Cardo:{weight:["regular","italic","700"],fallback:"serif"},Archivo:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Great Vibes":{weight:["regular"],fallback:"handwriting"},Volkhov:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Quattrocento Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"News Cycle":{weight:["regular","700"],fallback:"sans-serif"},"Pathway Gothic One":{weight:["regular"],fallback:"sans-serif"},Sacramento:{weight:["regular"],fallback:"handwriting"},"Frank Ruhl Libre":{weight:["300","regular","500","700","900"],fallback:"serif"},Yantramanav:{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},Cantarell:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Istok Web":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Didact Gothic":{weight:["regular"],fallback:"sans-serif"},"Concert One":{weight:["regular"],fallback:"display"},Taviraj:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Old Standard TT":{weight:["regular","italic","700"],fallback:"serif"},"Montserrat Alternates":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Economica:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Changa:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Fira Sans Extra Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Gloria Hallelujah":{weight:["regular"],fallback:"handwriting"},Parisienne:{weight:["regular"],fallback:"handwriting"},Orbitron:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Asap Condensed":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Playfair Display SC":{weight:["regular","italic","700","700italic","900","900italic"],fallback:"serif"},Chivo:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Sriracha:{weight:["regular"],fallback:"handwriting"},"Hind Vadodara":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"DM Sans":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Prata:{weight:["regular"],fallback:"serif"},Quattrocento:{weight:["regular","700"],fallback:"serif"},Cookie:{weight:["regular"],fallback:"handwriting"},"Poiret One":{weight:["regular"],fallback:"display"},Handlee:{weight:["regular"],fallback:"handwriting"},Sarabun:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},BenchNine:{weight:["300","regular","700"],fallback:"sans-serif"},Merienda:{weight:["regular","700"],fallback:"handwriting"},"M PLUS 1p":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Mono":{weight:["regular"],fallback:"monospace"},Lalezar:{weight:["regular"],fallback:"display"},Sanchez:{weight:["regular","italic"],fallback:"serif"},Lemonada:{weight:["300","regular","500","600","700"],fallback:"display"},"Markazi Text":{weight:["regular","500","600","700"],fallback:"serif"},Neuton:{weight:["200","300","regular","italic","700","800"],fallback:"serif"},"Hind Guntur":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Josefin Slab":{weight:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"serif"},Philosopher:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Advent Pro":{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Do Hyeon":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Mincho":{weight:["regular"],fallback:"sans-serif"},Ruda:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Vidaloka:{weight:["regular"],fallback:"serif"},Ultra:{weight:["regular"],fallback:"serif"},Neucha:{weight:["regular"],fallback:"handwriting"},Arapey:{weight:["regular","italic"],fallback:"serif"},Gudea:{weight:["regular","italic","700"],fallback:"sans-serif"},"Paytone One":{weight:["regular"],fallback:"sans-serif"},Kreon:{weight:["300","regular","500","600","700"],fallback:"serif"},"M PLUS Rounded 1c":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"Pragati Narrow":{weight:["regular","700"],fallback:"sans-serif"},"Press Start 2P":{weight:["regular"],fallback:"display"},"Hammersmith One":{weight:["regular"],fallback:"sans-serif"},"Gentium Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Monoton:{weight:["regular"],fallback:"display"},Alef:{weight:["regular","700"],fallback:"sans-serif"},Alice:{weight:["regular"],fallback:"serif"},Aclonica:{weight:["regular"],fallback:"sans-serif"},"Sigmar One":{weight:["regular"],fallback:"display"},Spectral:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Marck Script":{weight:["regular"],fallback:"handwriting"},Electrolize:{weight:["regular"],fallback:"sans-serif"},Actor:{weight:["regular"],fallback:"sans-serif"},"Architects Daughter":{weight:["regular"],fallback:"handwriting"},Adamina:{weight:["regular"],fallback:"serif"},"Pontano Sans":{weight:["regular"],fallback:"sans-serif"},Audiowide:{weight:["regular"],fallback:"display"},Inter:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Cabin Condensed":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Unica One":{weight:["regular"],fallback:"display"},Yellowtail:{weight:["regular"],fallback:"handwriting"},"El Messiri":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Squada One":{weight:["regular"],fallback:"display"},Staatliches:{weight:["regular"],fallback:"display"},Amaranth:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Enriqueta:{weight:["regular","500","600","700"],fallback:"serif"},Mitr:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Glegoo:{weight:["regular","700"],fallback:"serif"},"Bowlby One SC":{weight:["regular"],fallback:"display"},Basic:{weight:["regular"],fallback:"sans-serif"},"Nanum Gothic Coding":{weight:["regular","700"],fallback:"monospace"},Sarala:{weight:["regular","700"],fallback:"sans-serif"},"Bad Script":{weight:["regular"],fallback:"handwriting"},"Homemade Apple":{weight:["regular"],fallback:"handwriting"},Tangerine:{weight:["regular","700"],fallback:"handwriting"},Cormorant:{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Oleo Script":{weight:["regular","700"],fallback:"display"},Karma:{weight:["300","regular","500","600","700"],fallback:"serif"},"Julius Sans One":{weight:["regular"],fallback:"sans-serif"},"Carter One":{weight:["regular"],fallback:"display"},Khand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Nanum Pen Script":{weight:["regular"],fallback:"handwriting"},Cambay:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Fugaz One":{weight:["regular"],fallback:"display"},"Shadows Into Light Two":{weight:["regular"],fallback:"handwriting"},Coda:{weight:["regular","800"],fallback:"display"},"Signika Negative":{weight:["300","regular","600","700"],fallback:"sans-serif"},Pridi:{weight:["200","300","regular","500","600","700"],fallback:"serif"},Playball:{weight:["regular"],fallback:"display"},Saira:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Rock Salt":{weight:["regular"],fallback:"handwriting"},"Gothic A1":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Gentium Book Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Allura:{weight:["regular"],fallback:"handwriting"},"Yeseva One":{weight:["regular"],fallback:"display"},"DM Serif Text":{weight:["regular","italic"],fallback:"serif"},Lusitana:{weight:["regular","700"],fallback:"serif"},Jura:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Average:{weight:["regular"],fallback:"serif"},Yrsa:{weight:["300","regular","500","600","700"],fallback:"serif"},"Sorts Mill Goudy":{weight:["regular","italic"],fallback:"serif"},"Cantata One":{weight:["regular"],fallback:"serif"},Armata:{weight:["regular"],fallback:"sans-serif"},Scada:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Abhaya Libre":{weight:["regular","500","600","700","800"],fallback:"serif"},Damion:{weight:["regular"],fallback:"handwriting"},Marmelad:{weight:["regular"],fallback:"sans-serif"},Varela:{weight:["regular"],fallback:"sans-serif"},Quantico:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Covered By Your Grace":{weight:["regular"],fallback:"handwriting"},"PT Serif Caption":{weight:["regular","italic"],fallback:"serif"},Ramabhadra:{weight:["regular"],fallback:"sans-serif"},Unna:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Encode Sans":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Arsenal:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Black Han Sans":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Gothic":{weight:["regular"],fallback:"sans-serif"},"Ubuntu Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Pinyon Script":{weight:["regular"],fallback:"handwriting"},"Black Ops One":{weight:["regular"],fallback:"display"},Marcellus:{weight:["regular"],fallback:"serif"},"Fauna One":{weight:["regular"],fallback:"serif"},"Lilita One":{weight:["regular"],fallback:"display"},Sintony:{weight:["regular","700"],fallback:"sans-serif"},Khula:{weight:["300","regular","600","700","800"],fallback:"sans-serif"},Jaldi:{weight:["regular","700"],fallback:"sans-serif"},"Rubik Mono One":{weight:["regular"],fallback:"sans-serif"},Allan:{weight:["regular","700"],fallback:"display"},"Reenie Beanie":{weight:["regular"],fallback:"handwriting"},"Alex Brush":{weight:["regular"],fallback:"handwriting"},"Mr Dafoe":{weight:["regular"],fallback:"handwriting"},Palanquin:{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Encode Sans Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Antic:{weight:["regular"],fallback:"sans-serif"},Knewave:{weight:["regular"],fallback:"display"},"Caveat Brush":{weight:["regular"],fallback:"handwriting"},Rambla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Spinnaker:{weight:["regular"],fallback:"sans-serif"},"IBM Plex Mono":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"monospace"},Michroma:{weight:["regular"],fallback:"sans-serif"},"Nothing You Could Do":{weight:["regular"],fallback:"handwriting"},"Kelly Slab":{weight:["regular"],fallback:"display"},Boogaloo:{weight:["regular"],fallback:"display"},Chewy:{weight:["regular"],fallback:"display"},"ZCOOL XiaoWei":{weight:["regular"],fallback:"serif"},Rancho:{weight:["regular"],fallback:"handwriting"},"Noto Serif SC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Pangolin:{weight:["regular"],fallback:"handwriting"},"Fira Mono":{weight:["regular","500","700"],fallback:"monospace"},Forum:{weight:["regular"],fallback:"display"},"Antic Slab":{weight:["regular"],fallback:"serif"},"Alegreya Sans SC":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Anonymous Pro":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Lateef:{weight:["regular"],fallback:"handwriting"},"Annie Use Your Telescope":{weight:["regular"],fallback:"handwriting"},"Noto Sans HK":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Martel Sans":{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},"Chakra Petch":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Rufina:{weight:["regular","700"],fallback:"serif"},"Bai Jamjuree":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Scheherazade:{weight:["regular","700"],fallback:"serif"},Share:{weight:["regular","italic","700","700italic"],fallback:"display"},"Tenor Sans":{weight:["regular"],fallback:"sans-serif"},"DM Serif Display":{weight:["regular","italic"],fallback:"serif"},VT323:{weight:["regular"],fallback:"monospace"},"Share Tech Mono":{weight:["regular"],fallback:"monospace"},Mali:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"handwriting"},Cousine:{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Cinzel Decorative":{weight:["regular","700","900"],fallback:"display"},Overlock:{weight:["regular","italic","700","700italic","900","900italic"],fallback:"display"},"Arbutus Slab":{weight:["regular"],fallback:"serif"},"Reem Kufi":{weight:["regular"],fallback:"sans-serif"},"Cabin Sketch":{weight:["regular","700"],fallback:"display"},"Saira Extra Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Eczar:{weight:["regular","500","600","700","800"],fallback:"serif"},"Leckerli One":{weight:["regular"],fallback:"handwriting"},Krub:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Berkshire Swash":{weight:["regular"],fallback:"handwriting"},"Fredericka the Great":{weight:["regular"],fallback:"display"},"Saira Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Overpass Mono":{weight:["300","regular","600","700"],fallback:"monospace"},Itim:{weight:["regular"],fallback:"handwriting"},Rasa:{weight:["300","regular","500","600","700"],fallback:"serif"},Bevan:{weight:["regular"],fallback:"display"},"Arima Madurai":{weight:["100","200","300","regular","500","700","800","900"],fallback:"display"},Italianno:{weight:["regular"],fallback:"handwriting"},"Coda Caption":{weight:["800"],fallback:"sans-serif"},Shrikhand:{weight:["regular"],fallback:"display"},"Just Another Hand":{weight:["regular"],fallback:"handwriting"},"Saira Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Almarai:{weight:["300","regular","700","800"],fallback:"sans-serif"},"Mukta Malar":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Oranienbaum:{weight:["regular"],fallback:"serif"},Nobile:{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Candal:{weight:["regular"],fallback:"sans-serif"},"Six Caps":{weight:["regular"],fallback:"sans-serif"},"Space Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Capriola:{weight:["regular"],fallback:"sans-serif"},Biryani:{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},Halant:{weight:["300","regular","500","600","700"],fallback:"serif"},Allerta:{weight:["regular"],fallback:"sans-serif"},Trirong:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},Mallanna:{weight:["regular"],fallback:"sans-serif"},Aldrich:{weight:["regular"],fallback:"sans-serif"},Aleo:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Suez One":{weight:["regular"],fallback:"serif"},Caudex:{weight:["regular","italic","700","700italic"],fallback:"serif"},Niconne:{weight:["regular"],fallback:"handwriting"},"Mrs Saint Delafield":{weight:["regular"],fallback:"handwriting"},Gruppo:{weight:["regular"],fallback:"display"},"Miriam Libre":{weight:["regular","700"],fallback:"sans-serif"},"Contrail One":{weight:["regular"],fallback:"display"},"Days One":{weight:["regular"],fallback:"sans-serif"},"Allerta Stencil":{weight:["regular"],fallback:"sans-serif"},"Average Sans":{weight:["regular"],fallback:"sans-serif"},"Coming Soon":{weight:["regular"],fallback:"handwriting"},Pattaya:{weight:["regular"],fallback:"sans-serif"},"Londrina Solid":{weight:["100","300","regular","900"],fallback:"display"},Bungee:{weight:["regular"],fallback:"display"},Coustard:{weight:["regular","900"],fallback:"serif"},"Marcellus SC":{weight:["regular"],fallback:"serif"},"Racing Sans One":{weight:["regular"],fallback:"display"},Bentham:{weight:["regular"],fallback:"serif"},"Bungee Inline":{weight:["regular"],fallback:"display"},Magra:{weight:["regular","700"],fallback:"sans-serif"},Judson:{weight:["regular","italic","700"],fallback:"serif"},Rochester:{weight:["regular"],fallback:"handwriting"},"Grand Hotel":{weight:["regular"],fallback:"handwriting"},Gelasio:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Yesteryear:{weight:["regular"],fallback:"handwriting"},Syncopate:{weight:["regular","700"],fallback:"sans-serif"},Hanuman:{weight:["regular","700"],fallback:"serif"},"Kosugi Maru":{weight:["regular"],fallback:"sans-serif"},Copse:{weight:["regular"],fallback:"serif"},Mada:{weight:["200","300","regular","500","600","700","900"],fallback:"sans-serif"},"Titan One":{weight:["regular"],fallback:"display"},"Noto Serif TC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Kameron:{weight:["regular","700"],fallback:"serif"},Telex:{weight:["regular"],fallback:"sans-serif"},Norican:{weight:["regular"],fallback:"handwriting"},Maitree:{weight:["200","300","regular","500","600","700"],fallback:"serif"},"IM Fell Double Pica":{weight:["regular","italic"],fallback:"serif"},Molengo:{weight:["regular"],fallback:"sans-serif"},Sunflower:{weight:["300","500","700"],fallback:"sans-serif"},"Alegreya SC":{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Red Hat Display":{weight:["regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},Jua:{weight:["regular"],fallback:"sans-serif"},Ovo:{weight:["regular"],fallback:"serif"},"IBM Plex Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Nixie One":{weight:["regular"],fallback:"display"},Aladin:{weight:["regular"],fallback:"handwriting"},Arizonia:{weight:["regular"],fallback:"handwriting"},"Bubblegum Sans":{weight:["regular"],fallback:"display"},"Changa One":{weight:["regular","italic"],fallback:"display"},"Lexend Deca":{weight:["regular"],fallback:"sans-serif"},Sofia:{weight:["regular"],fallback:"handwriting"},"Jockey One":{weight:["regular"],fallback:"sans-serif"},Suranna:{weight:["regular"],fallback:"serif"},Amethysta:{weight:["regular"],fallback:"serif"},Schoolbell:{weight:["regular"],fallback:"handwriting"},"Nanum Brush Script":{weight:["regular"],fallback:"handwriting"},"Cedarville Cursive":{weight:["regular"],fallback:"handwriting"},"Cutive Mono":{weight:["regular"],fallback:"monospace"},Delius:{weight:["regular"],fallback:"handwriting"},"Raleway Dots":{weight:["regular"],fallback:"display"},Graduate:{weight:["regular"],fallback:"display"},Lustria:{weight:["regular"],fallback:"serif"},"Mukta Vaani":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Kadwa:{weight:["regular","700"],fallback:"serif"},"Rozha One":{weight:["regular"],fallback:"serif"},Buenard:{weight:["regular","700"],fallback:"serif"},Cambo:{weight:["regular"],fallback:"serif"},Marvel:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Krona One":{weight:["regular"],fallback:"sans-serif"},"Carrois Gothic":{weight:["regular"],fallback:"sans-serif"},Carme:{weight:["regular"],fallback:"sans-serif"},"Slabo 13px":{weight:["regular"],fallback:"serif"},Lemon:{weight:["regular"],fallback:"display"},"Love Ya Like A Sister":{weight:["regular"],fallback:"display"},Rosario:{weight:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},"Merienda One":{weight:["regular"],fallback:"handwriting"},"Public Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Petit Formal Script":{weight:["regular"],fallback:"handwriting"},"Ceviche One":{weight:["regular"],fallback:"display"},Voltaire:{weight:["regular"],fallback:"sans-serif"},Fresca:{weight:["regular"],fallback:"sans-serif"},"Averia Serif Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Rye:{weight:["regular"],fallback:"display"},"Noto Serif KR":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Chelsea Market":{weight:["regular"],fallback:"display"},Calligraffitti:{weight:["regular"],fallback:"handwriting"},"Freckle Face":{weight:["regular"],fallback:"display"},"Duru Sans":{weight:["regular"],fallback:"sans-serif"},Trocchi:{weight:["regular"],fallback:"serif"},Metrophobic:{weight:["regular"],fallback:"sans-serif"},Mate:{weight:["regular","italic"],fallback:"serif"},Harmattan:{weight:["regular"],fallback:"sans-serif"},"Gilda Display":{weight:["regular"],fallback:"serif"},"Cormorant Infant":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Spartan:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Oxygen Mono":{weight:["regular"],fallback:"monospace"},Chonburi:{weight:["regular"],fallback:"display"},"Goudy Bookletter 1911":{weight:["regular"],fallback:"serif"},Sansita:{weight:["regular","italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Emilys Candy":{weight:["regular"],fallback:"display"},Amiko:{weight:["regular","600","700"],fallback:"sans-serif"},Kristi:{weight:["regular"],fallback:"handwriting"},"Palanquin Dark":{weight:["regular","500","600","700"],fallback:"sans-serif"},Lekton:{weight:["regular","italic","700"],fallback:"sans-serif"},Cutive:{weight:["regular"],fallback:"serif"},"Herr Von Muellerhoff":{weight:["regular"],fallback:"handwriting"},"GFS Didot":{weight:["regular"],fallback:"serif"},Radley:{weight:["regular","italic"],fallback:"serif"},"Sue Ellen Francisco":{weight:["regular"],fallback:"handwriting"},Pompiere:{weight:["regular"],fallback:"display"},Gabriela:{weight:["regular"],fallback:"serif"},Niramit:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Seaweed Script":{weight:["regular"],fallback:"display"},"Sedgwick Ave":{weight:["regular"],fallback:"handwriting"},Federo:{weight:["regular"],fallback:"sans-serif"},McLaren:{weight:["regular"],fallback:"display"},"IM Fell DW Pica":{weight:["regular","italic"],fallback:"serif"},Sniglet:{weight:["regular","800"],fallback:"display"},"Mr De Haviland":{weight:["regular"],fallback:"handwriting"},Shojumaru:{weight:["regular"],fallback:"display"},Poly:{weight:["regular","italic"],fallback:"serif"},Belleza:{weight:["regular"],fallback:"sans-serif"},Faustina:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"IM Fell English":{weight:["regular","italic"],fallback:"serif"},"Rammetto One":{weight:["regular"],fallback:"display"},Amita:{weight:["regular","700"],fallback:"handwriting"},Inder:{weight:["regular"],fallback:"sans-serif"},"Antic Didone":{weight:["regular"],fallback:"serif"},"Alike Angular":{weight:["regular"],fallback:"serif"},Montez:{weight:["regular"],fallback:"handwriting"},K2D:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},UnifrakturMaguntia:{weight:["regular"],fallback:"display"},Gurajada:{weight:["regular"],fallback:"serif"},"Proza Libre":{weight:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Athiti:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Andada:{weight:["regular"],fallback:"serif"},"Liu Jian Mao Cao":{weight:["regular"],fallback:"handwriting"},Megrim:{weight:["regular"],fallback:"display"},"Vast Shadow":{weight:["regular"],fallback:"display"},Wallpoet:{weight:["regular"],fallback:"display"},Unkempt:{weight:["regular","700"],fallback:"display"},"Fanwood Text":{weight:["regular","italic"],fallback:"serif"},"Doppio One":{weight:["regular"],fallback:"sans-serif"},"Comic Neue":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"handwriting"},Corben:{weight:["regular","700"],fallback:"display"},Frijole:{weight:["regular"],fallback:"display"},Balthazar:{weight:["regular"],fallback:"serif"},Mirza:{weight:["regular","500","600","700"],fallback:"display"},"IM Fell French Canon SC":{weight:["regular"],fallback:"serif"},Brawler:{weight:["regular"],fallback:"serif"},"Oleo Script Swash Caps":{weight:["regular","700"],fallback:"display"},Mandali:{weight:["regular"],fallback:"sans-serif"},Convergence:{weight:["regular"],fallback:"sans-serif"},Fondamento:{weight:["regular","italic"],fallback:"handwriting"},Alike:{weight:["regular"],fallback:"serif"},Baumans:{weight:["regular"],fallback:"display"},Esteban:{weight:["regular"],fallback:"serif"},"Gravitas One":{weight:["regular"],fallback:"display"},Anaheim:{weight:["regular"],fallback:"sans-serif"},"Wendy One":{weight:["regular"],fallback:"sans-serif"},"Stardos Stencil":{weight:["regular","700"],fallback:"display"},"Spicy Rice":{weight:["regular"],fallback:"display"},Rakkas:{weight:["regular"],fallback:"display"},"La Belle Aurore":{weight:["regular"],fallback:"handwriting"},"Secular One":{weight:["regular"],fallback:"sans-serif"},Belgrano:{weight:["regular"],fallback:"serif"},"Bungee Shade":{weight:["regular"],fallback:"display"},"Crafty Girls":{weight:["regular"],fallback:"handwriting"},Battambang:{weight:["regular","700"],fallback:"display"},Quando:{weight:["regular"],fallback:"serif"},"Mouse Memoirs":{weight:["regular"],fallback:"sans-serif"},Gugi:{weight:["regular"],fallback:"display"},"Faster One":{weight:["regular"],fallback:"display"},"B612 Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Limelight:{weight:["regular"],fallback:"display"},"Short Stack":{weight:["regular"],fallback:"handwriting"},"Mountains of Christmas":{weight:["regular","700"],fallback:"display"},"Share Tech":{weight:["regular"],fallback:"sans-serif"},Laila:{weight:["300","regular","500","600","700"],fallback:"serif"},Literata:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Cormorant SC":{weight:["300","regular","500","600","700"],fallback:"serif"},"Fjord One":{weight:["regular"],fallback:"serif"},Podkova:{weight:["regular","500","600","700","800"],fallback:"serif"},Homenaje:{weight:["regular"],fallback:"sans-serif"},"Walter Turncoat":{weight:["regular"],fallback:"handwriting"},Sen:{weight:["regular","700","800"],fallback:"sans-serif"},"Patrick Hand SC":{weight:["regular"],fallback:"handwriting"},Voces:{weight:["regular"],fallback:"display"},Qwigley:{weight:["regular"],fallback:"handwriting"},"Happy Monkey":{weight:["regular"],fallback:"display"},"Rouge Script":{weight:["regular"],fallback:"handwriting"},"Baloo Chettan 2":{weight:["regular","500","600","700","800"],fallback:"display"},NTR:{weight:["regular"],fallback:"sans-serif"},Skranji:{weight:["regular","700"],fallback:"display"},Strait:{weight:["regular"],fallback:"sans-serif"},"Dawning of a New Day":{weight:["regular"],fallback:"handwriting"},Iceland:{weight:["regular"],fallback:"display"},"Expletus Sans":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"display"},"Montserrat Subrayada":{weight:["regular","700"],fallback:"sans-serif"},Oregano:{weight:["regular","italic"],fallback:"display"},"Give You Glory":{weight:["regular"],fallback:"handwriting"},Alata:{weight:["regular"],fallback:"sans-serif"},Puritan:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Mako:{weight:["regular"],fallback:"sans-serif"},Andika:{weight:["regular"],fallback:"sans-serif"},"Cormorant Upright":{weight:["300","regular","500","600","700"],fallback:"serif"},Zeyada:{weight:["regular"],fallback:"handwriting"},"Bowlby One":{weight:["regular"],fallback:"display"},"Aref Ruqaa":{weight:["regular","700"],fallback:"serif"},Numans:{weight:["regular"],fallback:"sans-serif"},Kurale:{weight:["regular"],fallback:"serif"},Spirax:{weight:["regular"],fallback:"display"},"Clicker Script":{weight:["regular"],fallback:"handwriting"},"Waiting for the Sunrise":{weight:["regular"],fallback:"handwriting"},"Holtwood One SC":{weight:["regular"],fallback:"serif"},Katibeh:{weight:["regular"],fallback:"display"},"Carrois Gothic SC":{weight:["regular"],fallback:"sans-serif"},Livvic:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},Eater:{weight:["regular"],fallback:"display"},"Fontdiner Swanky":{weight:["regular"],fallback:"display"},"Finger Paint":{weight:["regular"],fallback:"display"},Bellefair:{weight:["regular"],fallback:"serif"},"Wire One":{weight:["regular"],fallback:"sans-serif"},Kosugi:{weight:["regular"],fallback:"sans-serif"},Charm:{weight:["regular","700"],fallback:"handwriting"},"Delius Swash Caps":{weight:["regular"],fallback:"handwriting"},"Vesper Libre":{weight:["regular","500","700","900"],fallback:"serif"},"Red Hat Text":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Gafata:{weight:["regular"],fallback:"sans-serif"},"Averia Sans Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Denk One":{weight:["regular"],fallback:"sans-serif"},Geo:{weight:["regular","italic"],fallback:"sans-serif"},Tauri:{weight:["regular"],fallback:"sans-serif"},"Cherry Swash":{weight:["regular","700"],fallback:"display"},Codystar:{weight:["300","regular"],fallback:"display"},"Cantora One":{weight:["regular"],fallback:"sans-serif"},"Encode Sans Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Nova Square":{weight:["regular"],fallback:"display"},BioRhyme:{weight:["200","300","regular","700","800"],fallback:"serif"},Timmana:{weight:["regular"],fallback:"sans-serif"},Atma:{weight:["300","regular","500","600","700"],fallback:"display"},Tienne:{weight:["regular","700","900"],fallback:"serif"},Meddon:{weight:["regular"],fallback:"handwriting"},Galada:{weight:["regular"],fallback:"display"},Padauk:{weight:["regular","700"],fallback:"sans-serif"},"Loved by the King":{weight:["regular"],fallback:"handwriting"},"The Girl Next Door":{weight:["regular"],fallback:"handwriting"},"Darker Grotesque":{weight:["300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Life Savers":{weight:["regular","700","800"],fallback:"display"},Bilbo:{weight:["regular"],fallback:"handwriting"},Shanti:{weight:["regular"],fallback:"sans-serif"},"Headland One":{weight:["regular"],fallback:"serif"},"Euphoria Script":{weight:["regular"],fallback:"handwriting"},Imprima:{weight:["regular"],fallback:"sans-serif"},"Aguafina Script":{weight:["regular"],fallback:"handwriting"},"Baloo 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Over the Rainbow":{weight:["regular"],fallback:"handwriting"},Sarpanch:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Orienta:{weight:["regular"],fallback:"sans-serif"},"Spectral SC":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Port Lligat Sans":{weight:["regular"],fallback:"sans-serif"},Artifika:{weight:["regular"],fallback:"serif"},Ledger:{weight:["regular"],fallback:"serif"},Ruluko:{weight:["regular"],fallback:"sans-serif"},Sail:{weight:["regular"],fallback:"display"},Alatsi:{weight:["regular"],fallback:"sans-serif"},"Sonsie One":{weight:["regular"],fallback:"display"},"Bilbo Swash Caps":{weight:["regular"],fallback:"handwriting"},Slackey:{weight:["regular"],fallback:"display"},Salsa:{weight:["regular"],fallback:"display"},Rationale:{weight:["regular"],fallback:"sans-serif"},"Hepta Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Nosifer:{weight:["regular"],fallback:"display"},Dekko:{weight:["regular"],fallback:"handwriting"},"Encode Sans Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Lily Script One":{weight:["regular"],fallback:"display"},"Zilla Slab Highlight":{weight:["regular","700"],fallback:"display"},Dokdo:{weight:["regular"],fallback:"handwriting"},"Kotta One":{weight:["regular"],fallback:"serif"},"Macondo Swash Caps":{weight:["regular"],fallback:"display"},"Encode Sans Semi Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Prosto One":{weight:["regular"],fallback:"display"},"Trade Winds":{weight:["regular"],fallback:"display"},Farsan:{weight:["regular"],fallback:"display"},Manuale:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},Creepster:{weight:["regular"],fallback:"display"},"Medula One":{weight:["regular"],fallback:"display"},Ranchers:{weight:["regular"],fallback:"display"},"David Libre":{weight:["regular","500","700"],fallback:"serif"},"Libre Barcode 39":{weight:["regular"],fallback:"display"},"Vampiro One":{weight:["regular"],fallback:"display"},Metamorphous:{weight:["regular"],fallback:"display"},"Bubbler One":{weight:["regular"],fallback:"sans-serif"},"Nova Mono":{weight:["regular"],fallback:"monospace"},"Princess Sofia":{weight:["regular"],fallback:"handwriting"},"Just Me Again Down Here":{weight:["regular"],fallback:"handwriting"},Notable:{weight:["regular"],fallback:"sans-serif"},"Fascinate Inline":{weight:["regular"],fallback:"display"},Vibur:{weight:["regular"],fallback:"handwriting"},"Vollkorn SC":{weight:["regular","600","700","900"],fallback:"serif"},Crushed:{weight:["regular"],fallback:"display"},Sumana:{weight:["regular","700"],fallback:"serif"},Elsie:{weight:["regular","900"],fallback:"display"},Ranga:{weight:["regular","700"],fallback:"display"},"Port Lligat Slab":{weight:["regular"],fallback:"serif"},Amarante:{weight:["regular"],fallback:"display"},"Ruslan Display":{weight:["regular"],fallback:"display"},"Germania One":{weight:["regular"],fallback:"display"},"Sirin Stencil":{weight:["regular"],fallback:"display"},Pavanam:{weight:["regular"],fallback:"sans-serif"},Peralta:{weight:["regular"],fallback:"display"},"Scope One":{weight:["regular"],fallback:"serif"},Jomolhari:{weight:["regular"],fallback:"serif"},Kranky:{weight:["regular"],fallback:"display"},"Yatra One":{weight:["regular"],fallback:"display"},"Jacques Francois Shadow":{weight:["regular"],fallback:"display"},Ribeye:{weight:["regular"],fallback:"display"},"Averia Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Saira Stencil One":{weight:["regular"],fallback:"display"},"Cherry Cream Soda":{weight:["regular"],fallback:"display"},"Mukta Mahee":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Srisakdi:{weight:["regular","700"],fallback:"display"},Trochut:{weight:["regular","italic","700"],fallback:"display"},Coiny:{weight:["regular"],fallback:"display"},"Ma Shan Zheng":{weight:["regular"],fallback:"handwriting"},Asul:{weight:["regular","700"],fallback:"sans-serif"},Ewert:{weight:["regular"],fallback:"display"},Arya:{weight:["regular","700"],fallback:"sans-serif"},"Hanalei Fill":{weight:["regular"],fallback:"display"},Grenze:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Ribeye Marrow":{weight:["regular"],fallback:"display"},"IM Fell English SC":{weight:["regular"],fallback:"serif"},"Chau Philomene One":{weight:["regular","italic"],fallback:"sans-serif"},Sarina:{weight:["regular"],fallback:"display"},Chicle:{weight:["regular"],fallback:"display"},Manjari:{weight:["100","regular","700"],fallback:"sans-serif"},Montaga:{weight:["regular"],fallback:"serif"},Italiana:{weight:["regular"],fallback:"serif"},Akronim:{weight:["regular"],fallback:"display"},Habibi:{weight:["regular"],fallback:"serif"},Englebert:{weight:["regular"],fallback:"sans-serif"},Dynalight:{weight:["regular"],fallback:"display"},"Mate SC":{weight:["regular"],fallback:"serif"},"Henny Penny":{weight:["regular"],fallback:"display"},"Sree Krushnadevaraya":{weight:["regular"],fallback:"serif"},Engagement:{weight:["regular"],fallback:"handwriting"},Girassol:{weight:["regular"],fallback:"display"},"Kite One":{weight:["regular"],fallback:"sans-serif"},"Ibarra Real Nova":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},Gaegu:{weight:["300","regular","700"],fallback:"handwriting"},Fenix:{weight:["regular"],fallback:"serif"},"Pirata One":{weight:["regular"],fallback:"display"},"Tulpen One":{weight:["regular"],fallback:"display"},"IM Fell Great Primer":{weight:["regular","italic"],fallback:"serif"},Chathura:{weight:["100","300","regular","700","800"],fallback:"sans-serif"},Unlock:{weight:["regular"],fallback:"display"},"Nova Round":{weight:["regular"],fallback:"display"},Sura:{weight:["regular","700"],fallback:"serif"},"Kumar One":{weight:["regular"],fallback:"display"},Baskervville:{weight:["regular","italic"],fallback:"serif"},Quintessential:{weight:["regular"],fallback:"handwriting"},Milonga:{weight:["regular"],fallback:"display"},Bayon:{weight:["regular"],fallback:"display"},"Be Vietnam":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},"Crimson Pro":{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},B612:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"League Script":{weight:["regular"],fallback:"handwriting"},"Inknut Antiqua":{weight:["300","regular","500","600","700","800","900"],fallback:"serif"},Mogra:{weight:["regular"],fallback:"display"},"Mystery Quest":{weight:["regular"],fallback:"display"},"Monsieur La Doulaise":{weight:["regular"],fallback:"handwriting"},Vibes:{weight:["regular"],fallback:"display"},Rosarivo:{weight:["regular","italic"],fallback:"serif"},"Uncial Antiqua":{weight:["regular"],fallback:"display"},Dorsa:{weight:["regular"],fallback:"sans-serif"},Almendra:{weight:["regular","italic","700","700italic"],fallback:"serif"},Diplomata:{weight:["regular"],fallback:"display"},Simonetta:{weight:["regular","italic","900","900italic"],fallback:"display"},"New Rocker":{weight:["regular"],fallback:"display"},Snippet:{weight:["regular"],fallback:"sans-serif"},Petrona:{weight:["regular"],fallback:"serif"},Ramaraja:{weight:["regular"],fallback:"serif"},"Averia Gruesa Libre":{weight:["regular"],fallback:"display"},"Baloo Bhaina 2":{weight:["regular","500","600","700","800"],fallback:"display"},Kodchasan:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Meera Inimai":{weight:["regular"],fallback:"sans-serif"},Flamenco:{weight:["300","regular"],fallback:"display"},Khmer:{weight:["regular"],fallback:"display"},Paprika:{weight:["regular"],fallback:"display"},Koulen:{weight:["regular"],fallback:"display"},Mansalva:{weight:["regular"],fallback:"handwriting"},"Lovers Quarrel":{weight:["regular"],fallback:"handwriting"},Condiment:{weight:["regular"],fallback:"handwriting"},"Baloo Thambi 2":{weight:["regular","500","600","700","800"],fallback:"display"},Stoke:{weight:["300","regular"],fallback:"serif"},Barrio:{weight:["regular"],fallback:"display"},Barriecito:{weight:["regular"],fallback:"display"},"Donegal One":{weight:["regular"],fallback:"serif"},Kavoon:{weight:["regular"],fallback:"display"},"Big Shoulders Display":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Mina:{weight:["regular","700"],fallback:"sans-serif"},"Big Shoulders Text":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Prociono:{weight:["regular"],fallback:"serif"},"Text Me One":{weight:["regular"],fallback:"sans-serif"},"IM Fell French Canon":{weight:["regular","italic"],fallback:"serif"},"Overlock SC":{weight:["regular"],fallback:"display"},Cagliostro:{weight:["regular"],fallback:"sans-serif"},"Marko One":{weight:["regular"],fallback:"serif"},"Swanky and Moo Moo":{weight:["regular"],fallback:"handwriting"},"Maiden Orange":{weight:["regular"],fallback:"display"},Blinker:{weight:["100","200","300","regular","600","700","800","900"],fallback:"sans-serif"},Miniver:{weight:["regular"],fallback:"display"},Angkor:{weight:["regular"],fallback:"display"},Chango:{weight:["regular"],fallback:"display"},Thasadith:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Modak:{weight:["regular"],fallback:"display"},Junge:{weight:["regular"],fallback:"serif"},"Stint Ultra Condensed":{weight:["regular"],fallback:"display"},Stalemate:{weight:["regular"],fallback:"handwriting"},Tillana:{weight:["regular","500","600","700","800"],fallback:"handwriting"},UnifrakturCook:{weight:["700"],fallback:"display"},"Rum Raisin":{weight:["regular"],fallback:"sans-serif"},Farro:{weight:["300","regular","500","700"],fallback:"sans-serif"},"Delius Unicase":{weight:["regular","700"],fallback:"handwriting"},Sancreek:{weight:["regular"],fallback:"display"},Julee:{weight:["regular"],fallback:"handwriting"},Margarine:{weight:["regular"],fallback:"display"},"Lakki Reddy":{weight:["regular"],fallback:"handwriting"},"Stint Ultra Expanded":{weight:["regular"],fallback:"display"},"Bigshot One":{weight:["regular"],fallback:"display"},Griffy:{weight:["regular"],fallback:"display"},Moul:{weight:["regular"],fallback:"display"},"Diplomata SC":{weight:["regular"],fallback:"display"},Oxanium:{weight:["200","300","regular","500","600","700","800"],fallback:"display"},Offside:{weight:["regular"],fallback:"display"},"Fira Code":{weight:["300","regular","500","600","700"],fallback:"monospace"},"Eagle Lake":{weight:["regular"],fallback:"handwriting"},Flavors:{weight:["regular"],fallback:"display"},"Londrina Outline":{weight:["regular"],fallback:"display"},Tomorrow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Nokora:{weight:["regular","700"],fallback:"serif"},Calistoga:{weight:["regular"],fallback:"display"},Gotu:{weight:["regular"],fallback:"sans-serif"},"Della Respira":{weight:["regular"],fallback:"serif"},"Cormorant Unicase":{weight:["300","regular","500","600","700"],fallback:"serif"},"Libre Caslon Text":{weight:["regular","italic","700"],fallback:"serif"},Buda:{weight:["300"],fallback:"display"},Asar:{weight:["regular"],fallback:"serif"},"Poller One":{weight:["regular"],fallback:"display"},"Autour One":{weight:["regular"],fallback:"display"},"Nova Slim":{weight:["regular"],fallback:"display"},Underdog:{weight:["regular"],fallback:"display"},Redressed:{weight:["regular"],fallback:"handwriting"},"Yeon Sung":{weight:["regular"],fallback:"display"},Content:{weight:["regular","700"],fallback:"display"},Kantumruy:{weight:["300","regular","700"],fallback:"sans-serif"},"Baloo Paaji 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Jim Nightshade":{weight:["regular"],fallback:"handwriting"},"Glass Antiqua":{weight:["regular"],fallback:"display"},"Snowburst One":{weight:["regular"],fallback:"display"},"Gamja Flower":{weight:["regular"],fallback:"handwriting"},Revalia:{weight:["regular"],fallback:"display"},"Metal Mania":{weight:["regular"],fallback:"display"},Charmonman:{weight:["regular","700"],fallback:"handwriting"},"IM Fell DW Pica SC":{weight:["regular"],fallback:"serif"},Inika:{weight:["regular","700"],fallback:"serif"},"Elsie Swash Caps":{weight:["regular","900"],fallback:"display"},Wellfleet:{weight:["regular"],fallback:"display"},"Chela One":{weight:["regular"],fallback:"display"},"Rhodium Libre":{weight:["regular"],fallback:"serif"},"Mrs Sheppards":{weight:["regular"],fallback:"handwriting"},"Sedgwick Ave Display":{weight:["regular"],fallback:"handwriting"},"Modern Antiqua":{weight:["regular"],fallback:"display"},"Ravi Prakash":{weight:["regular"],fallback:"display"},Galdeano:{weight:["regular"],fallback:"sans-serif"},Oldenburg:{weight:["regular"],fallback:"display"},Arbutus:{weight:["regular"],fallback:"display"},"Poor Story":{weight:["regular"],fallback:"display"},"Hi Melody":{weight:["regular"],fallback:"handwriting"},"Joti One":{weight:["regular"],fallback:"display"},"Nova Flat":{weight:["regular"],fallback:"display"},"ZCOOL QingKe HuangYou":{weight:["regular"],fallback:"display"},"Linden Hill":{weight:["regular","italic"],fallback:"serif"},Bokor:{weight:["regular"],fallback:"display"},"Courier Prime":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Trykker:{weight:["regular"],fallback:"serif"},KoHo:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Song Myung":{weight:["regular"],fallback:"serif"},Ruthie:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended Text":{weight:["regular"],fallback:"display"},Chilanka:{weight:["regular"],fallback:"handwriting"},Fahkwang:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Felipa:{weight:["regular"],fallback:"handwriting"},Monofett:{weight:["regular"],fallback:"display"},"Odibee Sans":{weight:["regular"],fallback:"display"},Smythe:{weight:["regular"],fallback:"display"},"Major Mono Display":{weight:["regular"],fallback:"monospace"},Jomhuria:{weight:["regular"],fallback:"display"},"Croissant One":{weight:["regular"],fallback:"display"},Dangrek:{weight:["regular"],fallback:"display"},"Original Surfer":{weight:["regular"],fallback:"display"},Bahiana:{weight:["regular"],fallback:"display"},Gorditas:{weight:["regular","700"],fallback:"display"},"Odor Mean Chey":{weight:["regular"],fallback:"display"},Iceberg:{weight:["regular"],fallback:"display"},MedievalSharp:{weight:["regular"],fallback:"display"},"Caesar Dressing":{weight:["regular"],fallback:"display"},Sahitya:{weight:["regular","700"],fallback:"serif"},Stylish:{weight:["regular"],fallback:"sans-serif"},"Nova Cut":{weight:["regular"],fallback:"display"},"Purple Purse":{weight:["regular"],fallback:"display"},Devonshire:{weight:["regular"],fallback:"handwriting"},Smokum:{weight:["regular"],fallback:"display"},"Almendra Display":{weight:["regular"],fallback:"display"},Galindo:{weight:["regular"],fallback:"display"},Preahvihear:{weight:["regular"],fallback:"display"},Siemreap:{weight:["regular"],fallback:"display"},"Irish Grover":{weight:["regular"],fallback:"display"},Gupter:{weight:["regular","500","700"],fallback:"serif"},"Meie Script":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128":{weight:["regular"],fallback:"display"},"Keania One":{weight:["regular"],fallback:"display"},"GFS Neohellenic":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Cute Font":{weight:["regular"],fallback:"display"},"Londrina Shadow":{weight:["regular"],fallback:"display"},"East Sea Dokdo":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended":{weight:["regular"],fallback:"display"},Risque:{weight:["regular"],fallback:"display"},Lancelot:{weight:["regular"],fallback:"display"},"Libre Caslon Display":{weight:["regular"],fallback:"serif"},Plaster:{weight:["regular"],fallback:"display"},"Goblin One":{weight:["regular"],fallback:"display"},Asset:{weight:["regular"],fallback:"display"},"Almendra SC":{weight:["regular"],fallback:"serif"},"Jacques Francois":{weight:["regular"],fallback:"serif"},"Jolly Lodger":{weight:["regular"],fallback:"display"},"Lexend Exa":{weight:["regular"],fallback:"sans-serif"},Molle:{weight:["italic"],fallback:"handwriting"},Kavivanar:{weight:["regular"],fallback:"handwriting"},"Kirang Haerang":{weight:["regular"],fallback:"display"},Piedra:{weight:["regular"],fallback:"display"},"Atomic Age":{weight:["regular"],fallback:"display"},"Kulim Park":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Libre Barcode 39 Text":{weight:["regular"],fallback:"display"},"IM Fell Great Primer SC":{weight:["regular"],fallback:"serif"},"Tenali Ramakrishna":{weight:["regular"],fallback:"sans-serif"},Butcherman:{weight:["regular"],fallback:"display"},"Dr Sugiyama":{weight:["regular"],fallback:"handwriting"},"Geostar Fill":{weight:["regular"],fallback:"display"},Romanesco:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128 Text":{weight:["regular"],fallback:"display"},Sunshiney:{weight:["regular"],fallback:"handwriting"},"Kumar One Outline":{weight:["regular"],fallback:"display"},Peddana:{weight:["regular"],fallback:"serif"},"Baloo Bhai 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Kdam Thmor":{weight:["regular"],fallback:"display"},"Ruge Boogie":{weight:["regular"],fallback:"handwriting"},Freehand:{weight:["regular"],fallback:"display"},Bonbon:{weight:["regular"],fallback:"handwriting"},Caladea:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Single Day":{weight:["regular"],fallback:"display"},"Baloo Tamma 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Inria Sans":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Hanalei:{weight:["regular"],fallback:"display"},"Emblema One":{weight:["regular"],fallback:"display"},"Seymour One":{weight:["regular"],fallback:"sans-serif"},"Miss Fajardose":{weight:["regular"],fallback:"handwriting"},Sevillana:{weight:["regular"],fallback:"display"},"Inria Serif":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Bungee Outline":{weight:["regular"],fallback:"display"},Metal:{weight:["regular"],fallback:"display"},"IM Fell Double Pica SC":{weight:["regular"],fallback:"serif"},"Lexend Giga":{weight:["regular"],fallback:"sans-serif"},"ZCOOL KuaiLe":{weight:["regular"],fallback:"display"},Astloch:{weight:["regular","700"],fallback:"display"},"Mr Bedfort":{weight:["regular"],fallback:"handwriting"},Macondo:{weight:["regular"],fallback:"display"},"Butterfly Kids":{weight:["regular"],fallback:"handwriting"},"Supermercado One":{weight:["regular"],fallback:"display"},Fruktur:{weight:["regular"],fallback:"display"},Taprom:{weight:["regular"],fallback:"display"},Lacquer:{weight:["regular"],fallback:"display"},"Black And White Picture":{weight:["regular"],fallback:"sans-serif"},"Bigelow Rules":{weight:["regular"],fallback:"display"},"Beth Ellen":{weight:["regular"],fallback:"handwriting"},"Sofadi One":{weight:["regular"],fallback:"display"},Combo:{weight:["regular"],fallback:"display"},Bellota:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Federant:{weight:["regular"],fallback:"display"},"Miltonian Tattoo":{weight:["regular"],fallback:"display"},"Londrina Sketch":{weight:["regular"],fallback:"display"},Suwannaphum:{weight:["regular"],fallback:"display"},"Bungee Hairline":{weight:["regular"],fallback:"display"},Fascinate:{weight:["regular"],fallback:"display"},"Erica One":{weight:["regular"],fallback:"display"},"Nova Oval":{weight:["regular"],fallback:"display"},"Baloo Da 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Sulphur Point":{weight:["300","regular","700"],fallback:"sans-serif"},Aubrey:{weight:["regular"],fallback:"display"},Gidugu:{weight:["regular"],fallback:"sans-serif"},"Bellota Text":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Nova Script":{weight:["regular"],fallback:"display"},Miltonian:{weight:["regular"],fallback:"display"},Gayathri:{weight:["100","regular","700"],fallback:"sans-serif"},Geostar:{weight:["regular"],fallback:"display"},Moulpali:{weight:["regular"],fallback:"display"},"Passero One":{weight:["regular"],fallback:"display"},"Stalinist One":{weight:["regular"],fallback:"display"},"Long Cang":{weight:["regular"],fallback:"handwriting"},Solway:{weight:["300","regular","500","700","800"],fallback:"serif"},"Zhi Mang Xing":{weight:["regular"],fallback:"handwriting"},"Baloo Tammudu 2":{weight:["regular","500","600","700","800"],fallback:"display"},Chenla:{weight:["regular"],fallback:"display"},Suravaram:{weight:["regular"],fallback:"serif"},Fasthand:{weight:["regular"],fallback:"serif"},Kenia:{weight:["regular"],fallback:"display"},Dhurjati:{weight:["regular"],fallback:"sans-serif"},"Lexend Tera":{weight:["regular"],fallback:"sans-serif"},"BioRhyme Expanded":{weight:["200","300","regular","700","800"],fallback:"serif"},"Turret Road":{weight:["200","300","regular","500","700","800"],fallback:"display"},Warnes:{weight:["regular"],fallback:"display"},"Viaoda Libre":{weight:["regular"],fallback:"display"},"Lexend Mega":{weight:["regular"],fallback:"sans-serif"},Bahianita:{weight:["regular"],fallback:"display"},Manrope:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Lexend Zetta":{weight:["regular"],fallback:"sans-serif"},"Lexend Peta":{weight:["regular"],fallback:"sans-serif"}});function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var je=function(e){f()(a,e);var t=Oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.setAttributes,i=t.attributes,r=t.device,n=void 0===r?"":r,c=t.showFontSize,s=void 0!==c&&c,g=t.showFontFamily,b=void 0!==g&&g,u=t.showFontWeight,d=void 0!==u&&u,p=t.showTextTransform,f=void 0!==p&&p,h=t.showLineHeight,m=void 0!==h&&h,k=t.showLetterSpacing,y=void 0!==k&&k,v=t.disableAdvancedToggle,w=void 0!==v&&v,O=t.fontSizePlaceholder,j=void 0===O?"17":O,_=[{value:"",label:Object(T.__)("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(we).slice(0,20).forEach((function(e){_.push({value:e,label:e})})),_.push({value:"other",label:Object(T.__)("Other","generateblocks")});var S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],B=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"uppercase",label:Object(T.__)("Uppercase","generateblocks")},{value:"lowercase",label:Object(T.__)("Lowercase","generateblocks")},{value:"capitalize",label:Object(T.__)("Capitalize","generateblocks")},{value:"initial",label:Object(T.__)("Normal","generateblocks")}];void 0!==we[i.fontFamily]&&void 0!==we[i.fontFamily].weight&&(S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")}],we[i.fontFamily].weight.filter((function(e){var t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e)})).forEach((function(e){S.push({value:e,label:e})})));var D=function(e){"other"===e&&(e="");i.fontWeight;a({fontFamily:e}),i.fontWeight&&Object.values(S).indexOf(i.fontWeight),void 0!==we[e]?a({googleFont:!0,fontFamilyFallback:we[e].fallback,googleFontVariants:we[e].weight.join(", ")}):a({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})},R=function(e){a({fontFamily:e.target.value}),D(e.target.value)},x=function(e,t){return i[e+t]},M=function(e,t){return e+t},z=i.showAdvancedTypography;w&&(z=!0);var L=j;"Tablet"===n&&i.fontSize&&(L=i.fontSize),"Mobile"===n&&(i.fontSizeTablet?L=i.fontSizeTablet:i.fontSize&&(L=i.fontSize));var P="";return"Tablet"===n&&i.lineHeight&&(P=i.lineHeight),"Mobile"===n&&(i.lineHeightTablet?P=i.lineHeightTablet:i.lineHeight&&(P=i.lineHeight)),Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-gblocks-typography-weight-transform"},d&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Weight","generateblocks"),value:i.fontWeight,options:S,onChange:function(e){a({fontWeight:e})},className:"components-base-control"}),f&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Transform","generateblocks"),value:i.textTransform,options:B,onChange:function(e){a({textTransform:e})},className:"components-base-control"})),!w&&Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Show Advanced Typography","generateblocks"),checked:!!i.showAdvancedTypography,onChange:function(e){a({showAdvancedTypography:e})}}),b&&z&&Object(l.createElement)(C.BaseControl,{className:"gblocks-font-family-shortcuts"},Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Font Family","generateblocks")),Object(l.createElement)("select",{className:"components-select-control__input components-select-control__input--gblocks-fontfamily",onChange:R,onBlur:R},_.map((function(e,t){return Object(l.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))),b&&z&&Object(l.createElement)(C.TextControl,{value:i.fontFamily,placeholder:Object(T.__)("Enter font name","generateblocks"),onChange:function(e){return D(e)}}),b&&""!==i.fontFamily&&z&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Google Font","generateblocks"),checked:!!i.googleFont,onChange:function(e){a({googleFont:e}),e&&void 0!==we[i.fontFamily]&&a({fontFamilyFallback:we[i.fontFamily].fallback,googleFontVariants:we[i.fontFamily].weight.join(", ")})}}),!!i.googleFont&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Variants","generateblocks"),value:i.googleFontVariants,placeholder:Object(T.__)("300, 400, 400i","generateblocks"),onChange:function(e){a({googleFontVariants:e})}})),b&&z&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Font Family Fallback","generateblocks"),value:i.fontFamilyFallback,placeholder:Object(T.__)("sans-serif","generateblocks"),onChange:function(e){a({fontFamilyFallback:e})}}),s&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Font Size","generateblocks"),value:i.fontSizeUnit,units:["px","em","%"],onClick:function(e){a({fontSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("fontSize",n)||"",placeholder:L,onChange:function(e){var t=M("fontSize",n);a(o()({},t,parseFloat(e)))},min:1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("fontSize",n);a(o()({},t,e.props.defaultFontSize))}},Object(T.__)("Reset","generateblocks")))),m&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Line Height","generateblocks"),value:i.lineHeightUnit,units:["px","em","%"],onClick:function(e){a({lineHeightUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("lineHeight",n)||0===x("lineHeight",n)?x("lineHeight",n):"",placeholder:P,onChange:function(e){var t=M("lineHeight",n);a(o()({},t,e))},onBlur:function(){var e=M("lineHeight",n);a(o()({},e,parseFloat(x("lineHeight",n))))},onClick:function(e){e.currentTarget.focus()},min:0,step:.1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("lineHeight",n);a(o()({},t,e.props.defaultLineHeight))}},Object(T.__)("Reset","generateblocks")))),y&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Letter Spacing","generateblocks"),value:"em",units:["em"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("letterSpacing",n)||"",placeholder:"0.01",onChange:function(e){var t=M("letterSpacing",n);a(o()({},t,e))},onBlur:function(){var e=M("letterSpacing",n);a(o()({},e,parseFloat(x("letterSpacing",n))))},onClick:function(e){e.currentTarget.focus()},min:-1,step:.01,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("letterSpacing",n);a(o()({},t,e.props.defaultLetterSpacing))}},Object(T.__)("Reset","generateblocks")))))}}]),a}(l.Component);a(39);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ce=function(e){f()(a,e);var t=Te(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrGradient,n=t.attrGradientDirection,c=t.attrGradientColorOne,s=t.attrGradientColorOneOpacity,g=t.attrGradientColorStopOne,b=t.attrGradientColorTwo,u=t.attrGradientColorTwoOpacity,d=t.attrGradientColorStopTwo,p=t.defaultColorOne,f=t.defaultColorTwo,h=a.gradientSelector,m=a.innerZindex,k="element"===h?Object(T.__)("Displays behind the background image.","generateblocks"):Object(T.__)("Displays in front of the background image.","generateblocks");return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Use Gradient","generateblocks"),checked:!!a[r],onChange:function(t){i(o()({},e.props.attrGradient,t))}}),!!a[r]&&Object(l.createElement)(l.Fragment,null,void 0!==h&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Selector","generateblocks"),help:k,value:h,options:[{label:Object(T.__)("Element","generateblocks"),value:"element"},{label:Object(T.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){i("pseudo-element"!==e||m?{gradientSelector:e}:{gradientSelector:e,innerZindex:1})}}),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Direction","generateblocks")),Object(l.createElement)(C.RangeControl,{value:a[n]?a[n]:1,onChange:function(e){i(o()({},n,e))},min:0,max:360,step:1,initialPosition:90})),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color One","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[c],alpha:!0,valueOpacity:a[s],attrOpacity:"gradientColorOneOpacity",onChange:function(e){return i(o()({},c,e))},onOpacityChange:function(e){return i(o()({},s,e))},onClear:function(){return i(o()({},c,p))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[g]||0===a[g]?a[g]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},g,e))},onBlur:function(){(a[g]||0===a[g])&&i(o()({},g,parseFloat(a[g])))},onClick:function(e){e.currentTarget.focus()}}))),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color Two","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[b],alpha:!0,valueOpacity:a[u],attrOpacity:"gradientColorTwoOpacity",onChange:function(e){return i(o()({},b,e))},onOpacityChange:function(e){return i(o()({},u,e))},onClear:function(){return i(o()({},b,f))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[d]||0===a[d]?a[d]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},d,e))},onBlur:function(){(a[d]||0===a[d])&&i(o()({},d,parseFloat(a[d])))},onClick:function(e){e.currentTarget.focus()}})))))}}]),a}(l.Component),_e=a(25),Se=a.n(_e);function Be(e){return Se.a.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}function De(e,t,a,l,i){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+i+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+i+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+i+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+i+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}function Ee(e,t){var a=t.attributes,l=a.backgroundColor,i=a.backgroundColorOpacity,r=a.bgImage,n=a.gradient,o=a.bgOptions,c=a.gradientColorOne,s=a.gradientColorOneOpacity,g=a.gradientColorTwo,b=a.gradientColorTwoOpacity,u=a.gradientColorStopOne,d=a.gradientColorStopTwo,p=a.gradientDirection,f="";if(n){var h="",m="";c&&""!==u&&(h=" "+u+"%"),g&&""!==d&&(m=" "+d+"%"),f="linear-gradient("+p+"deg, "+he(c,s)+h+", "+he(g,b)+m+")"}if("gradient"===e)return f;var k=!1,y=he(l,i);if(r){var v=r.image.url;v=Object(_.applyFilters)("generateblocks.editor.bgImageURL",v,t),"element"===o.selector&&(y||n)&&void 0!==o.overlay&&o.overlay?n?k=f+", url("+v+")":y&&(k="linear-gradient(0deg, "+y+", "+y+"), url("+v+")"):k="url("+v+")"}return k}function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var xe=function(e){f()(a,e);var t=Re(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.width,n=e.outerContainer,o=e.innerContainer,c=e.containerWidth,s=e.minHeight,g=e.minHeightUnit,b=e.paddingTop,u=e.paddingRight,d=e.paddingBottom,p=e.paddingLeft,f=e.paddingUnit,h=e.marginTop,m=e.marginRight,k=e.marginBottom,y=e.marginLeft,v=e.marginUnit,w=e.borderSizeTop,O=e.borderSizeRight,j=e.borderSizeBottom,T=e.borderSizeLeft,C=e.borderRadiusTopRight,S=e.borderRadiusBottomRight,B=e.borderRadiusBottomLeft,D=e.borderRadiusTopLeft,E=e.borderRadiusUnit,R=e.borderColor,x=e.borderColorOpacity,L=e.backgroundColor,P=e.backgroundColorOpacity,F=e.gradient,A=e.gradientSelector,U=e.textColor,H=e.linkColor,N=e.linkColorHover,I=e.bgImage,G=e.bgOptions,V=e.verticalAlignment,q=e.zindex,W=e.innerZindex,Z=e.alignment,K=e.fontFamily,J=e.fontFamilyFallback,Y=e.fontWeight,Q=e.fontSize,X=e.fontSizeUnit,$=e.textTransform,ee=e.shapeDividers,te=c;te||(te=generateBlocksDefaults.container.containerWidth);var ae="";K&&J&&(ae=", "+J);var le=!!I,ie=Ee("image",this.props),re=Ee("gradient",this.props),ne=W;!ne&&le&&"pseudo-element"===G.selector&&(ne=1);var oe=[];return oe[".gb-container-"+a]=[{"background-color":he(L,P),color:U,"border-radius":De(D,C,S,B,E),margin:De(h,m,k,y,v),"z-index":q,"text-align":Z,"font-family":K+ae,"font-weight":Y,"text-transform":$,"font-size":z(Q,X),"min-height":z(s,g)}],le&&"element"===G.selector&&ie?oe[".gb-container-"+a].push({"background-image":ie,"background-size":G.size,"background-position":G.position,"background-repeat":G.repeat,"background-attachment":G.attachment}):F&&"element"===A&&oe[".gb-container-"+a].push({"background-image":re}),(le&&"pseudo-element"===G.selector||q||F&&"pseudo-element"===A)&&oe[".gb-container-"+a].push({position:"relative"}),(le&&"pseudo-element"===G.selector||F&&"pseudo-element"===A)&&(oe[".gb-container-"+a].push({overflow:"hidden"}),oe[".gb-container-"+a+" .block-list-appender"]=[{"z-index":10}]),oe[".editor-styles-wrapper .gb-container-"+a+" h1,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h2,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h3,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h4,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h5,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h6"]=[{color:U}],(w||O||j||T)&&oe[".gb-container-"+a].push({"border-width":De(w,O,j,T,"px"),"border-style":"solid","border-color":he(R,x)}),s&&!i&&oe[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":V}),i&&(oe[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":V}),oe[".block-editor-block-list__layout > #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":De(D,C,S,B,E)}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie="",re="inline-block";d&&p&&(ie=", "+p);var ne=i+".gb-headline-"+a,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:c,"font-family":d+ie,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:c}],V&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":he(n,o),color:c,display:!!ae&&re,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:s}],oe[ne+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],oe[ne+" .gb-highlight"]=[{color:u}],oe["#block-"+t]=[{display:!!ae&&"inline-flex"}],oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(oa,{level:"h2"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" From a127d3ed18a3aa457779d203e8add6c881f6bc43 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Tue, 22 Dec 2020 20:08:09 -0800 Subject: [PATCH 23/53] Change Element Tag label to HTML Tag Name --- src/blocks/container/edit.js | 4 ++-- src/blocks/headline/edit.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blocks/container/edit.js b/src/blocks/container/edit.js index 3d5350550..c4a73a689 100644 --- a/src/blocks/container/edit.js +++ b/src/blocks/container/edit.js @@ -528,7 +528,7 @@ class GenerateBlockContainer extends Component { } { @@ -633,7 +633,7 @@ class GenerateBlockContainer extends Component { /> { diff --git a/src/blocks/headline/edit.js b/src/blocks/headline/edit.js index 1219874d2..996b31c65 100644 --- a/src/blocks/headline/edit.js +++ b/src/blocks/headline/edit.js @@ -421,7 +421,7 @@ class GenerateBlockHeadline extends Component { showPanel={ 'Desktop' === this.getDeviceType() ? true : false } > Date: Tue, 22 Dec 2020 20:08:19 -0800 Subject: [PATCH 24/53] Add containerTagName filter --- src/blocks/container/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/container/edit.js b/src/blocks/container/edit.js index c4a73a689..b51e5d282 100644 --- a/src/blocks/container/edit.js +++ b/src/blocks/container/edit.js @@ -2033,7 +2033,7 @@ class GenerateBlockContainer extends Component { } { applyFilters( 'generateblocks.frontend.afterContainerOpen', '', attributes ) } From 6e2eb821ac117ed15dd31067899d3332527f3bc3 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Tue, 22 Dec 2020 20:26:36 -0800 Subject: [PATCH 25/53] Force inner container z-index when pseudo in use --- includes/generate-css.php | 14 +++++++++----- src/blocks/container/css/main.js | 8 ++++---- src/components/gradient/index.js | 14 +++----------- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/includes/generate-css.php b/includes/generate-css.php index d5520b49c..66527699f 100644 --- a/includes/generate-css.php +++ b/includes/generate-css.php @@ -325,6 +325,8 @@ function generateblocks_get_dynamic_css( $content = '' ) { $css->add_property( 'text-align', $settings['alignment'] ); + $innerZIndex = $settings['innerZindex']; + $css->set_selector( '.gb-container-' . $id . ':before' ); if ( $hasBgImage && 'pseudo-element' === $settings['bgOptions']['selector'] ) { @@ -346,6 +348,10 @@ function generateblocks_get_dynamic_css( $content = '' ) { if ( isset( $settings['bgOptions']['opacity'] ) && 1 !== $settings['bgOptions']['opacity'] ) { $css->add_property( 'opacity', $settings['bgOptions']['opacity'] ); } + + if ( ! $innerZIndex ) { + $innerZIndex = 1; + } } if ( $settings['gradient'] && 'pseudo-element' === $settings['gradientSelector'] ) { @@ -358,12 +364,10 @@ function generateblocks_get_dynamic_css( $content = '' ) { $css->add_property( 'right', '0' ); $css->add_property( 'bottom', '0' ); $css->add_property( 'left', '0' ); - } - - $innerZIndex = $settings['innerZindex']; - if ( ! $innerZIndex && $hasBgImage && 'pseudo-element' === $settings['bgOptions']['selector'] ) { - $innerZIndex = 1; + if ( ! $innerZIndex ) { + $innerZIndex = 1; + } } $css->set_selector( '.gb-container-' . $id . ' > .gb-inside-container' ); diff --git a/src/blocks/container/css/main.js b/src/blocks/container/css/main.js index c66820100..7eaaeb198 100644 --- a/src/blocks/container/css/main.js +++ b/src/blocks/container/css/main.js @@ -91,10 +91,6 @@ export default class MainCSS extends Component { let innerZIndexValue = innerZindex; - if ( ! innerZIndexValue && hasBgImage && 'pseudo-element' === bgOptions.selector ) { - innerZIndexValue = 1; - } - let cssObj = []; cssObj[ '.gb-container-' + uniqueId ] = [ { 'background-color': hexToRGBA( backgroundColor, backgroundColorOpacity ), @@ -145,6 +141,10 @@ export default class MainCSS extends Component { cssObj[ '.gb-container-' + uniqueId + ' .block-list-appender' ] = [ { 'z-index': 10, } ]; + + if ( ! innerZIndexValue ) { + innerZIndexValue = 1; + } } cssObj[ `.editor-styles-wrapper .gb-container-` + uniqueId + ` h1, diff --git a/src/components/gradient/index.js b/src/components/gradient/index.js index 4890cf687..96ba0bf5b 100644 --- a/src/components/gradient/index.js +++ b/src/components/gradient/index.js @@ -46,7 +46,6 @@ class GradientControl extends Component { const { gradientSelector, - innerZindex, } = attributes; const selectorHelp = 'element' === gradientSelector ? __( 'Displays behind the background image.', 'generateblocks' ) : __( 'Displays in front of the background image.', 'generateblocks' ); @@ -75,16 +74,9 @@ class GradientControl extends Component { { label: __( 'Pseudo Element', 'generateblocks' ), value: 'pseudo-element' }, ] } onChange={ ( value ) => { - if ( 'pseudo-element' === value && ! innerZindex ) { - setAttributes( { - gradientSelector: value, - innerZindex: 1, - } ); - } else { - setAttributes( { - gradientSelector: value, - } ); - } + setAttributes( { + gradientSelector: value, + } ); } } /> } From d18cdb3a282ec03ea3dbd1c2e6c5dd483397e461 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Tue, 22 Dec 2020 20:26:43 -0800 Subject: [PATCH 26/53] Update dist --- dist/blocks.asset.php | 2 +- dist/blocks.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index 14ec5d587..f96da2b4d 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '0cfebf1bc026d96d4a85104f8afb8cc5'); \ No newline at end of file + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => 'c12182fec1ea56c1e4f6482c322880cd'); \ No newline at end of file diff --git a/dist/blocks.js b/dist/blocks.js index af3fdb66e..58180e8a7 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -4,12 +4,12 @@ /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Top","generateblocks"),r),value:a[c]?a[c]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:M,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeRight(a):e.onReset("attrRight")},onBlur:function(){q||""!==a[s]||""===B[s]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeRight("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Right","generateblocks"),r),value:a[s]?a[s]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:z,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeBottom(a):e.onReset("attrBottom")},onBlur:function(){q||""!==a[g]||""===B[g]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeBottom("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Bottom","generateblocks"),r),value:a[g]?a[g]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:L,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeLeft(a):e.onReset("attrLeft")},onBlur:function(){q||""!==a[b]||""===B[b]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeLeft("0"))},onClick:function(e){e.currentTarget.focus()} -/* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Left","generateblocks"),r),value:a[b]?a[b]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)(C.Tooltip,{text:a[u]?Object(T.__)("Unsync","generateblocks"):Object(T.__)("Sync","generateblocks")},Object(l.createElement)(C.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":Object(T.__)("Sync Units","generateblocks"),isPrimary:!!a[u]&&a[u],"aria-pressed":!!a[u]&&a[u],onClick:function(t){return e.syncUnits(t,"")},isSmall:!0},(a[u],j("sync"))))),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__input-labels"},Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},f),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},m),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},y),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},O),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"}))))}}]),a}(l.Component),we=(a(38),{Roboto:{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Open Sans":{weight:["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Lato:{weight:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Montserrat:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Source Sans Pro":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Roboto Condensed":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Oswald:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},"Roboto Mono":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"monospace"},Raleway:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Poppins:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Roboto Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Merriweather:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"serif"},"PT Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Ubuntu:{weight:["300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},"Playfair Display":{weight:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},Muli:{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Open Sans Condensed":{weight:["300","300italic","700"],fallback:"sans-serif"},"PT Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},Lora:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Slabo 27px":{weight:["regular"],fallback:"serif"},Nunito:{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans JP":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Work Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},Rubik:{weight:["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Noto Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fira Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Titillium Web":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],fallback:"sans-serif"},Quicksand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Noto Sans KR":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nanum Gothic":{weight:["regular","700","800"],fallback:"sans-serif"},Mukta:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Noto Sans TC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nunito Sans":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Heebo:{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Sans Narrow":{weight:["regular","700"],fallback:"sans-serif"},Arimo:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Inconsolata:{weight:["regular","700"],fallback:"monospace"},Barlow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Oxygen:{weight:["300","regular","700"],fallback:"sans-serif"},Dosis:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Bitter:{weight:["regular","italic","700"],fallback:"serif"},"Libre Baskerville":{weight:["regular","italic","700"],fallback:"serif"},"Crimson Text":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},"Libre Franklin":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Karla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Josefin Sans":{weight:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},Cabin:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Anton:{weight:["regular"],fallback:"sans-serif"},"Source Code Pro":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"monospace"},Hind:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Abel:{weight:["regular"],fallback:"sans-serif"},Amiri:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fjalla One":{weight:["regular"],fallback:"sans-serif"},Lobster:{weight:["regular"],fallback:"display"},Pacifico:{weight:["regular"],fallback:"handwriting"},"Indie Flower":{weight:["regular"],fallback:"handwriting"},"Exo 2":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Dancing Script":{weight:["regular","500","600","700"],fallback:"handwriting"},"Source Serif Pro":{weight:["regular","600","700"],fallback:"serif"},Arvo:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Hind Siliguri":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Varela Round":{weight:["regular"],fallback:"sans-serif"},"Merriweather Sans":{weight:["300","300italic","regular","italic","700","700italic","800","800italic"],fallback:"sans-serif"},Cairo:{weight:["200","300","regular","600","700","900"],fallback:"sans-serif"},"Yanone Kaffeesatz":{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Overpass:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Shadows Into Light":{weight:["regular"],fallback:"handwriting"},"Barlow Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"IBM Plex Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Comfortaa:{weight:["300","regular","500","600","700"],fallback:"display"},Asap:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Prompt:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Kanit:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Questrial:{weight:["regular"],fallback:"sans-serif"},Martel:{weight:["200","300","regular","600","700","800","900"],fallback:"serif"},"Archivo Narrow":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Abril Fatface":{weight:["regular"],fallback:"display"},"Amatic SC":{weight:["regular","700"],fallback:"handwriting"},Acme:{weight:["regular"],fallback:"sans-serif"},Catamaran:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Fira Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"EB Garamond":{weight:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],fallback:"serif"},"Bree Serif":{weight:["regular"],fallback:"serif"},"Zilla Slab":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Noto Sans SC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Cormorant Garamond":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Hind Madurai":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Teko:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Righteous:{weight:["regular"],fallback:"display"},Signika:{weight:["300","regular","600","700"],fallback:"sans-serif"},Play:{weight:["regular","700"],fallback:"sans-serif"},Domine:{weight:["regular","700"],fallback:"serif"},Exo:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Russo One":{weight:["regular"],fallback:"sans-serif"},Cinzel:{weight:["regular","700","900"],fallback:"serif"},"PT Sans Caption":{weight:["regular","700"],fallback:"sans-serif"},Rajdhani:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Maven Pro":{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Fredoka One":{weight:["regular"],fallback:"display"},"IBM Plex Serif":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Ubuntu Condensed":{weight:["regular"],fallback:"sans-serif"},"Patua One":{weight:["regular"],fallback:"display"},Caveat:{weight:["regular","700"],fallback:"handwriting"},"Permanent Marker":{weight:["regular"],fallback:"handwriting"},Assistant:{weight:["200","300","regular","600","700","800"],fallback:"sans-serif"},ABeeZee:{weight:["regular","italic"],fallback:"sans-serif"},Vollkorn:{weight:["regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"serif"},"Crete Round":{weight:["regular","italic"],fallback:"serif"},"Special Elite":{weight:["regular"],fallback:"display"},Rokkitt:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Bangers:{weight:["regular"],fallback:"display"},"Francois One":{weight:["regular"],fallback:"sans-serif"},"Barlow Semi Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Alegreya Sans":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Satisfy:{weight:["regular"],fallback:"handwriting"},Tajawal:{weight:["200","300","regular","500","700","800","900"],fallback:"sans-serif"},"Bebas Neue":{weight:["regular"],fallback:"display"},"Patrick Hand":{weight:["regular"],fallback:"handwriting"},Cuprum:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Viga:{weight:["regular"],fallback:"sans-serif"},Courgette:{weight:["regular"],fallback:"handwriting"},"Ropa Sans":{weight:["regular","italic"],fallback:"sans-serif"},"Noto Serif JP":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Gochi Hand":{weight:["regular"],fallback:"handwriting"},Alegreya:{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Luckiest Guy":{weight:["regular"],fallback:"display"},"Noticia Text":{weight:["regular","italic","700","700italic"],fallback:"serif"},Tinos:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Passion One":{weight:["regular","700","900"],fallback:"display"},"Alfa Slab One":{weight:["regular"],fallback:"display"},"Nanum Myeongjo":{weight:["regular","700","800"],fallback:"serif"},Monda:{weight:["regular","700"],fallback:"sans-serif"},"Lobster Two":{weight:["regular","italic","700","700italic"],fallback:"display"},Kalam:{weight:["300","regular","700"],fallback:"handwriting"},"Kaushan Script":{weight:["regular"],fallback:"handwriting"},"Archivo Black":{weight:["regular"],fallback:"sans-serif"},Cardo:{weight:["regular","italic","700"],fallback:"serif"},Archivo:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Great Vibes":{weight:["regular"],fallback:"handwriting"},Volkhov:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Quattrocento Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"News Cycle":{weight:["regular","700"],fallback:"sans-serif"},"Pathway Gothic One":{weight:["regular"],fallback:"sans-serif"},Sacramento:{weight:["regular"],fallback:"handwriting"},"Frank Ruhl Libre":{weight:["300","regular","500","700","900"],fallback:"serif"},Yantramanav:{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},Cantarell:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Istok Web":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Didact Gothic":{weight:["regular"],fallback:"sans-serif"},"Concert One":{weight:["regular"],fallback:"display"},Taviraj:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Old Standard TT":{weight:["regular","italic","700"],fallback:"serif"},"Montserrat Alternates":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Economica:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Changa:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Fira Sans Extra Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Gloria Hallelujah":{weight:["regular"],fallback:"handwriting"},Parisienne:{weight:["regular"],fallback:"handwriting"},Orbitron:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Asap Condensed":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Playfair Display SC":{weight:["regular","italic","700","700italic","900","900italic"],fallback:"serif"},Chivo:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Sriracha:{weight:["regular"],fallback:"handwriting"},"Hind Vadodara":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"DM Sans":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Prata:{weight:["regular"],fallback:"serif"},Quattrocento:{weight:["regular","700"],fallback:"serif"},Cookie:{weight:["regular"],fallback:"handwriting"},"Poiret One":{weight:["regular"],fallback:"display"},Handlee:{weight:["regular"],fallback:"handwriting"},Sarabun:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},BenchNine:{weight:["300","regular","700"],fallback:"sans-serif"},Merienda:{weight:["regular","700"],fallback:"handwriting"},"M PLUS 1p":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Mono":{weight:["regular"],fallback:"monospace"},Lalezar:{weight:["regular"],fallback:"display"},Sanchez:{weight:["regular","italic"],fallback:"serif"},Lemonada:{weight:["300","regular","500","600","700"],fallback:"display"},"Markazi Text":{weight:["regular","500","600","700"],fallback:"serif"},Neuton:{weight:["200","300","regular","italic","700","800"],fallback:"serif"},"Hind Guntur":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Josefin Slab":{weight:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"serif"},Philosopher:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Advent Pro":{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Do Hyeon":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Mincho":{weight:["regular"],fallback:"sans-serif"},Ruda:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Vidaloka:{weight:["regular"],fallback:"serif"},Ultra:{weight:["regular"],fallback:"serif"},Neucha:{weight:["regular"],fallback:"handwriting"},Arapey:{weight:["regular","italic"],fallback:"serif"},Gudea:{weight:["regular","italic","700"],fallback:"sans-serif"},"Paytone One":{weight:["regular"],fallback:"sans-serif"},Kreon:{weight:["300","regular","500","600","700"],fallback:"serif"},"M PLUS Rounded 1c":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"Pragati Narrow":{weight:["regular","700"],fallback:"sans-serif"},"Press Start 2P":{weight:["regular"],fallback:"display"},"Hammersmith One":{weight:["regular"],fallback:"sans-serif"},"Gentium Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Monoton:{weight:["regular"],fallback:"display"},Alef:{weight:["regular","700"],fallback:"sans-serif"},Alice:{weight:["regular"],fallback:"serif"},Aclonica:{weight:["regular"],fallback:"sans-serif"},"Sigmar One":{weight:["regular"],fallback:"display"},Spectral:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Marck Script":{weight:["regular"],fallback:"handwriting"},Electrolize:{weight:["regular"],fallback:"sans-serif"},Actor:{weight:["regular"],fallback:"sans-serif"},"Architects Daughter":{weight:["regular"],fallback:"handwriting"},Adamina:{weight:["regular"],fallback:"serif"},"Pontano Sans":{weight:["regular"],fallback:"sans-serif"},Audiowide:{weight:["regular"],fallback:"display"},Inter:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Cabin Condensed":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Unica One":{weight:["regular"],fallback:"display"},Yellowtail:{weight:["regular"],fallback:"handwriting"},"El Messiri":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Squada One":{weight:["regular"],fallback:"display"},Staatliches:{weight:["regular"],fallback:"display"},Amaranth:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Enriqueta:{weight:["regular","500","600","700"],fallback:"serif"},Mitr:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Glegoo:{weight:["regular","700"],fallback:"serif"},"Bowlby One SC":{weight:["regular"],fallback:"display"},Basic:{weight:["regular"],fallback:"sans-serif"},"Nanum Gothic Coding":{weight:["regular","700"],fallback:"monospace"},Sarala:{weight:["regular","700"],fallback:"sans-serif"},"Bad Script":{weight:["regular"],fallback:"handwriting"},"Homemade Apple":{weight:["regular"],fallback:"handwriting"},Tangerine:{weight:["regular","700"],fallback:"handwriting"},Cormorant:{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Oleo Script":{weight:["regular","700"],fallback:"display"},Karma:{weight:["300","regular","500","600","700"],fallback:"serif"},"Julius Sans One":{weight:["regular"],fallback:"sans-serif"},"Carter One":{weight:["regular"],fallback:"display"},Khand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Nanum Pen Script":{weight:["regular"],fallback:"handwriting"},Cambay:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Fugaz One":{weight:["regular"],fallback:"display"},"Shadows Into Light Two":{weight:["regular"],fallback:"handwriting"},Coda:{weight:["regular","800"],fallback:"display"},"Signika Negative":{weight:["300","regular","600","700"],fallback:"sans-serif"},Pridi:{weight:["200","300","regular","500","600","700"],fallback:"serif"},Playball:{weight:["regular"],fallback:"display"},Saira:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Rock Salt":{weight:["regular"],fallback:"handwriting"},"Gothic A1":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Gentium Book Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Allura:{weight:["regular"],fallback:"handwriting"},"Yeseva One":{weight:["regular"],fallback:"display"},"DM Serif Text":{weight:["regular","italic"],fallback:"serif"},Lusitana:{weight:["regular","700"],fallback:"serif"},Jura:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Average:{weight:["regular"],fallback:"serif"},Yrsa:{weight:["300","regular","500","600","700"],fallback:"serif"},"Sorts Mill Goudy":{weight:["regular","italic"],fallback:"serif"},"Cantata One":{weight:["regular"],fallback:"serif"},Armata:{weight:["regular"],fallback:"sans-serif"},Scada:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Abhaya Libre":{weight:["regular","500","600","700","800"],fallback:"serif"},Damion:{weight:["regular"],fallback:"handwriting"},Marmelad:{weight:["regular"],fallback:"sans-serif"},Varela:{weight:["regular"],fallback:"sans-serif"},Quantico:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Covered By Your Grace":{weight:["regular"],fallback:"handwriting"},"PT Serif Caption":{weight:["regular","italic"],fallback:"serif"},Ramabhadra:{weight:["regular"],fallback:"sans-serif"},Unna:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Encode Sans":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Arsenal:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Black Han Sans":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Gothic":{weight:["regular"],fallback:"sans-serif"},"Ubuntu Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Pinyon Script":{weight:["regular"],fallback:"handwriting"},"Black Ops One":{weight:["regular"],fallback:"display"},Marcellus:{weight:["regular"],fallback:"serif"},"Fauna One":{weight:["regular"],fallback:"serif"},"Lilita One":{weight:["regular"],fallback:"display"},Sintony:{weight:["regular","700"],fallback:"sans-serif"},Khula:{weight:["300","regular","600","700","800"],fallback:"sans-serif"},Jaldi:{weight:["regular","700"],fallback:"sans-serif"},"Rubik Mono One":{weight:["regular"],fallback:"sans-serif"},Allan:{weight:["regular","700"],fallback:"display"},"Reenie Beanie":{weight:["regular"],fallback:"handwriting"},"Alex Brush":{weight:["regular"],fallback:"handwriting"},"Mr Dafoe":{weight:["regular"],fallback:"handwriting"},Palanquin:{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Encode Sans Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Antic:{weight:["regular"],fallback:"sans-serif"},Knewave:{weight:["regular"],fallback:"display"},"Caveat Brush":{weight:["regular"],fallback:"handwriting"},Rambla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Spinnaker:{weight:["regular"],fallback:"sans-serif"},"IBM Plex Mono":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"monospace"},Michroma:{weight:["regular"],fallback:"sans-serif"},"Nothing You Could Do":{weight:["regular"],fallback:"handwriting"},"Kelly Slab":{weight:["regular"],fallback:"display"},Boogaloo:{weight:["regular"],fallback:"display"},Chewy:{weight:["regular"],fallback:"display"},"ZCOOL XiaoWei":{weight:["regular"],fallback:"serif"},Rancho:{weight:["regular"],fallback:"handwriting"},"Noto Serif SC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Pangolin:{weight:["regular"],fallback:"handwriting"},"Fira Mono":{weight:["regular","500","700"],fallback:"monospace"},Forum:{weight:["regular"],fallback:"display"},"Antic Slab":{weight:["regular"],fallback:"serif"},"Alegreya Sans SC":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Anonymous Pro":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Lateef:{weight:["regular"],fallback:"handwriting"},"Annie Use Your Telescope":{weight:["regular"],fallback:"handwriting"},"Noto Sans HK":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Martel Sans":{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},"Chakra Petch":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Rufina:{weight:["regular","700"],fallback:"serif"},"Bai Jamjuree":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Scheherazade:{weight:["regular","700"],fallback:"serif"},Share:{weight:["regular","italic","700","700italic"],fallback:"display"},"Tenor Sans":{weight:["regular"],fallback:"sans-serif"},"DM Serif Display":{weight:["regular","italic"],fallback:"serif"},VT323:{weight:["regular"],fallback:"monospace"},"Share Tech Mono":{weight:["regular"],fallback:"monospace"},Mali:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"handwriting"},Cousine:{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Cinzel Decorative":{weight:["regular","700","900"],fallback:"display"},Overlock:{weight:["regular","italic","700","700italic","900","900italic"],fallback:"display"},"Arbutus Slab":{weight:["regular"],fallback:"serif"},"Reem Kufi":{weight:["regular"],fallback:"sans-serif"},"Cabin Sketch":{weight:["regular","700"],fallback:"display"},"Saira Extra Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Eczar:{weight:["regular","500","600","700","800"],fallback:"serif"},"Leckerli One":{weight:["regular"],fallback:"handwriting"},Krub:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Berkshire Swash":{weight:["regular"],fallback:"handwriting"},"Fredericka the Great":{weight:["regular"],fallback:"display"},"Saira Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Overpass Mono":{weight:["300","regular","600","700"],fallback:"monospace"},Itim:{weight:["regular"],fallback:"handwriting"},Rasa:{weight:["300","regular","500","600","700"],fallback:"serif"},Bevan:{weight:["regular"],fallback:"display"},"Arima Madurai":{weight:["100","200","300","regular","500","700","800","900"],fallback:"display"},Italianno:{weight:["regular"],fallback:"handwriting"},"Coda Caption":{weight:["800"],fallback:"sans-serif"},Shrikhand:{weight:["regular"],fallback:"display"},"Just Another Hand":{weight:["regular"],fallback:"handwriting"},"Saira Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Almarai:{weight:["300","regular","700","800"],fallback:"sans-serif"},"Mukta Malar":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Oranienbaum:{weight:["regular"],fallback:"serif"},Nobile:{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Candal:{weight:["regular"],fallback:"sans-serif"},"Six Caps":{weight:["regular"],fallback:"sans-serif"},"Space Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Capriola:{weight:["regular"],fallback:"sans-serif"},Biryani:{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},Halant:{weight:["300","regular","500","600","700"],fallback:"serif"},Allerta:{weight:["regular"],fallback:"sans-serif"},Trirong:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},Mallanna:{weight:["regular"],fallback:"sans-serif"},Aldrich:{weight:["regular"],fallback:"sans-serif"},Aleo:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Suez One":{weight:["regular"],fallback:"serif"},Caudex:{weight:["regular","italic","700","700italic"],fallback:"serif"},Niconne:{weight:["regular"],fallback:"handwriting"},"Mrs Saint Delafield":{weight:["regular"],fallback:"handwriting"},Gruppo:{weight:["regular"],fallback:"display"},"Miriam Libre":{weight:["regular","700"],fallback:"sans-serif"},"Contrail One":{weight:["regular"],fallback:"display"},"Days One":{weight:["regular"],fallback:"sans-serif"},"Allerta Stencil":{weight:["regular"],fallback:"sans-serif"},"Average Sans":{weight:["regular"],fallback:"sans-serif"},"Coming Soon":{weight:["regular"],fallback:"handwriting"},Pattaya:{weight:["regular"],fallback:"sans-serif"},"Londrina Solid":{weight:["100","300","regular","900"],fallback:"display"},Bungee:{weight:["regular"],fallback:"display"},Coustard:{weight:["regular","900"],fallback:"serif"},"Marcellus SC":{weight:["regular"],fallback:"serif"},"Racing Sans One":{weight:["regular"],fallback:"display"},Bentham:{weight:["regular"],fallback:"serif"},"Bungee Inline":{weight:["regular"],fallback:"display"},Magra:{weight:["regular","700"],fallback:"sans-serif"},Judson:{weight:["regular","italic","700"],fallback:"serif"},Rochester:{weight:["regular"],fallback:"handwriting"},"Grand Hotel":{weight:["regular"],fallback:"handwriting"},Gelasio:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Yesteryear:{weight:["regular"],fallback:"handwriting"},Syncopate:{weight:["regular","700"],fallback:"sans-serif"},Hanuman:{weight:["regular","700"],fallback:"serif"},"Kosugi Maru":{weight:["regular"],fallback:"sans-serif"},Copse:{weight:["regular"],fallback:"serif"},Mada:{weight:["200","300","regular","500","600","700","900"],fallback:"sans-serif"},"Titan One":{weight:["regular"],fallback:"display"},"Noto Serif TC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Kameron:{weight:["regular","700"],fallback:"serif"},Telex:{weight:["regular"],fallback:"sans-serif"},Norican:{weight:["regular"],fallback:"handwriting"},Maitree:{weight:["200","300","regular","500","600","700"],fallback:"serif"},"IM Fell Double Pica":{weight:["regular","italic"],fallback:"serif"},Molengo:{weight:["regular"],fallback:"sans-serif"},Sunflower:{weight:["300","500","700"],fallback:"sans-serif"},"Alegreya SC":{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Red Hat Display":{weight:["regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},Jua:{weight:["regular"],fallback:"sans-serif"},Ovo:{weight:["regular"],fallback:"serif"},"IBM Plex Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Nixie One":{weight:["regular"],fallback:"display"},Aladin:{weight:["regular"],fallback:"handwriting"},Arizonia:{weight:["regular"],fallback:"handwriting"},"Bubblegum Sans":{weight:["regular"],fallback:"display"},"Changa One":{weight:["regular","italic"],fallback:"display"},"Lexend Deca":{weight:["regular"],fallback:"sans-serif"},Sofia:{weight:["regular"],fallback:"handwriting"},"Jockey One":{weight:["regular"],fallback:"sans-serif"},Suranna:{weight:["regular"],fallback:"serif"},Amethysta:{weight:["regular"],fallback:"serif"},Schoolbell:{weight:["regular"],fallback:"handwriting"},"Nanum Brush Script":{weight:["regular"],fallback:"handwriting"},"Cedarville Cursive":{weight:["regular"],fallback:"handwriting"},"Cutive Mono":{weight:["regular"],fallback:"monospace"},Delius:{weight:["regular"],fallback:"handwriting"},"Raleway Dots":{weight:["regular"],fallback:"display"},Graduate:{weight:["regular"],fallback:"display"},Lustria:{weight:["regular"],fallback:"serif"},"Mukta Vaani":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Kadwa:{weight:["regular","700"],fallback:"serif"},"Rozha One":{weight:["regular"],fallback:"serif"},Buenard:{weight:["regular","700"],fallback:"serif"},Cambo:{weight:["regular"],fallback:"serif"},Marvel:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Krona One":{weight:["regular"],fallback:"sans-serif"},"Carrois Gothic":{weight:["regular"],fallback:"sans-serif"},Carme:{weight:["regular"],fallback:"sans-serif"},"Slabo 13px":{weight:["regular"],fallback:"serif"},Lemon:{weight:["regular"],fallback:"display"},"Love Ya Like A Sister":{weight:["regular"],fallback:"display"},Rosario:{weight:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},"Merienda One":{weight:["regular"],fallback:"handwriting"},"Public Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Petit Formal Script":{weight:["regular"],fallback:"handwriting"},"Ceviche One":{weight:["regular"],fallback:"display"},Voltaire:{weight:["regular"],fallback:"sans-serif"},Fresca:{weight:["regular"],fallback:"sans-serif"},"Averia Serif Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Rye:{weight:["regular"],fallback:"display"},"Noto Serif KR":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Chelsea Market":{weight:["regular"],fallback:"display"},Calligraffitti:{weight:["regular"],fallback:"handwriting"},"Freckle Face":{weight:["regular"],fallback:"display"},"Duru Sans":{weight:["regular"],fallback:"sans-serif"},Trocchi:{weight:["regular"],fallback:"serif"},Metrophobic:{weight:["regular"],fallback:"sans-serif"},Mate:{weight:["regular","italic"],fallback:"serif"},Harmattan:{weight:["regular"],fallback:"sans-serif"},"Gilda Display":{weight:["regular"],fallback:"serif"},"Cormorant Infant":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Spartan:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Oxygen Mono":{weight:["regular"],fallback:"monospace"},Chonburi:{weight:["regular"],fallback:"display"},"Goudy Bookletter 1911":{weight:["regular"],fallback:"serif"},Sansita:{weight:["regular","italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Emilys Candy":{weight:["regular"],fallback:"display"},Amiko:{weight:["regular","600","700"],fallback:"sans-serif"},Kristi:{weight:["regular"],fallback:"handwriting"},"Palanquin Dark":{weight:["regular","500","600","700"],fallback:"sans-serif"},Lekton:{weight:["regular","italic","700"],fallback:"sans-serif"},Cutive:{weight:["regular"],fallback:"serif"},"Herr Von Muellerhoff":{weight:["regular"],fallback:"handwriting"},"GFS Didot":{weight:["regular"],fallback:"serif"},Radley:{weight:["regular","italic"],fallback:"serif"},"Sue Ellen Francisco":{weight:["regular"],fallback:"handwriting"},Pompiere:{weight:["regular"],fallback:"display"},Gabriela:{weight:["regular"],fallback:"serif"},Niramit:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Seaweed Script":{weight:["regular"],fallback:"display"},"Sedgwick Ave":{weight:["regular"],fallback:"handwriting"},Federo:{weight:["regular"],fallback:"sans-serif"},McLaren:{weight:["regular"],fallback:"display"},"IM Fell DW Pica":{weight:["regular","italic"],fallback:"serif"},Sniglet:{weight:["regular","800"],fallback:"display"},"Mr De Haviland":{weight:["regular"],fallback:"handwriting"},Shojumaru:{weight:["regular"],fallback:"display"},Poly:{weight:["regular","italic"],fallback:"serif"},Belleza:{weight:["regular"],fallback:"sans-serif"},Faustina:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"IM Fell English":{weight:["regular","italic"],fallback:"serif"},"Rammetto One":{weight:["regular"],fallback:"display"},Amita:{weight:["regular","700"],fallback:"handwriting"},Inder:{weight:["regular"],fallback:"sans-serif"},"Antic Didone":{weight:["regular"],fallback:"serif"},"Alike Angular":{weight:["regular"],fallback:"serif"},Montez:{weight:["regular"],fallback:"handwriting"},K2D:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},UnifrakturMaguntia:{weight:["regular"],fallback:"display"},Gurajada:{weight:["regular"],fallback:"serif"},"Proza Libre":{weight:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Athiti:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Andada:{weight:["regular"],fallback:"serif"},"Liu Jian Mao Cao":{weight:["regular"],fallback:"handwriting"},Megrim:{weight:["regular"],fallback:"display"},"Vast Shadow":{weight:["regular"],fallback:"display"},Wallpoet:{weight:["regular"],fallback:"display"},Unkempt:{weight:["regular","700"],fallback:"display"},"Fanwood Text":{weight:["regular","italic"],fallback:"serif"},"Doppio One":{weight:["regular"],fallback:"sans-serif"},"Comic Neue":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"handwriting"},Corben:{weight:["regular","700"],fallback:"display"},Frijole:{weight:["regular"],fallback:"display"},Balthazar:{weight:["regular"],fallback:"serif"},Mirza:{weight:["regular","500","600","700"],fallback:"display"},"IM Fell French Canon SC":{weight:["regular"],fallback:"serif"},Brawler:{weight:["regular"],fallback:"serif"},"Oleo Script Swash Caps":{weight:["regular","700"],fallback:"display"},Mandali:{weight:["regular"],fallback:"sans-serif"},Convergence:{weight:["regular"],fallback:"sans-serif"},Fondamento:{weight:["regular","italic"],fallback:"handwriting"},Alike:{weight:["regular"],fallback:"serif"},Baumans:{weight:["regular"],fallback:"display"},Esteban:{weight:["regular"],fallback:"serif"},"Gravitas One":{weight:["regular"],fallback:"display"},Anaheim:{weight:["regular"],fallback:"sans-serif"},"Wendy One":{weight:["regular"],fallback:"sans-serif"},"Stardos Stencil":{weight:["regular","700"],fallback:"display"},"Spicy Rice":{weight:["regular"],fallback:"display"},Rakkas:{weight:["regular"],fallback:"display"},"La Belle Aurore":{weight:["regular"],fallback:"handwriting"},"Secular One":{weight:["regular"],fallback:"sans-serif"},Belgrano:{weight:["regular"],fallback:"serif"},"Bungee Shade":{weight:["regular"],fallback:"display"},"Crafty Girls":{weight:["regular"],fallback:"handwriting"},Battambang:{weight:["regular","700"],fallback:"display"},Quando:{weight:["regular"],fallback:"serif"},"Mouse Memoirs":{weight:["regular"],fallback:"sans-serif"},Gugi:{weight:["regular"],fallback:"display"},"Faster One":{weight:["regular"],fallback:"display"},"B612 Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Limelight:{weight:["regular"],fallback:"display"},"Short Stack":{weight:["regular"],fallback:"handwriting"},"Mountains of Christmas":{weight:["regular","700"],fallback:"display"},"Share Tech":{weight:["regular"],fallback:"sans-serif"},Laila:{weight:["300","regular","500","600","700"],fallback:"serif"},Literata:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Cormorant SC":{weight:["300","regular","500","600","700"],fallback:"serif"},"Fjord One":{weight:["regular"],fallback:"serif"},Podkova:{weight:["regular","500","600","700","800"],fallback:"serif"},Homenaje:{weight:["regular"],fallback:"sans-serif"},"Walter Turncoat":{weight:["regular"],fallback:"handwriting"},Sen:{weight:["regular","700","800"],fallback:"sans-serif"},"Patrick Hand SC":{weight:["regular"],fallback:"handwriting"},Voces:{weight:["regular"],fallback:"display"},Qwigley:{weight:["regular"],fallback:"handwriting"},"Happy Monkey":{weight:["regular"],fallback:"display"},"Rouge Script":{weight:["regular"],fallback:"handwriting"},"Baloo Chettan 2":{weight:["regular","500","600","700","800"],fallback:"display"},NTR:{weight:["regular"],fallback:"sans-serif"},Skranji:{weight:["regular","700"],fallback:"display"},Strait:{weight:["regular"],fallback:"sans-serif"},"Dawning of a New Day":{weight:["regular"],fallback:"handwriting"},Iceland:{weight:["regular"],fallback:"display"},"Expletus Sans":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"display"},"Montserrat Subrayada":{weight:["regular","700"],fallback:"sans-serif"},Oregano:{weight:["regular","italic"],fallback:"display"},"Give You Glory":{weight:["regular"],fallback:"handwriting"},Alata:{weight:["regular"],fallback:"sans-serif"},Puritan:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Mako:{weight:["regular"],fallback:"sans-serif"},Andika:{weight:["regular"],fallback:"sans-serif"},"Cormorant Upright":{weight:["300","regular","500","600","700"],fallback:"serif"},Zeyada:{weight:["regular"],fallback:"handwriting"},"Bowlby One":{weight:["regular"],fallback:"display"},"Aref Ruqaa":{weight:["regular","700"],fallback:"serif"},Numans:{weight:["regular"],fallback:"sans-serif"},Kurale:{weight:["regular"],fallback:"serif"},Spirax:{weight:["regular"],fallback:"display"},"Clicker Script":{weight:["regular"],fallback:"handwriting"},"Waiting for the Sunrise":{weight:["regular"],fallback:"handwriting"},"Holtwood One SC":{weight:["regular"],fallback:"serif"},Katibeh:{weight:["regular"],fallback:"display"},"Carrois Gothic SC":{weight:["regular"],fallback:"sans-serif"},Livvic:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},Eater:{weight:["regular"],fallback:"display"},"Fontdiner Swanky":{weight:["regular"],fallback:"display"},"Finger Paint":{weight:["regular"],fallback:"display"},Bellefair:{weight:["regular"],fallback:"serif"},"Wire One":{weight:["regular"],fallback:"sans-serif"},Kosugi:{weight:["regular"],fallback:"sans-serif"},Charm:{weight:["regular","700"],fallback:"handwriting"},"Delius Swash Caps":{weight:["regular"],fallback:"handwriting"},"Vesper Libre":{weight:["regular","500","700","900"],fallback:"serif"},"Red Hat Text":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Gafata:{weight:["regular"],fallback:"sans-serif"},"Averia Sans Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Denk One":{weight:["regular"],fallback:"sans-serif"},Geo:{weight:["regular","italic"],fallback:"sans-serif"},Tauri:{weight:["regular"],fallback:"sans-serif"},"Cherry Swash":{weight:["regular","700"],fallback:"display"},Codystar:{weight:["300","regular"],fallback:"display"},"Cantora One":{weight:["regular"],fallback:"sans-serif"},"Encode Sans Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Nova Square":{weight:["regular"],fallback:"display"},BioRhyme:{weight:["200","300","regular","700","800"],fallback:"serif"},Timmana:{weight:["regular"],fallback:"sans-serif"},Atma:{weight:["300","regular","500","600","700"],fallback:"display"},Tienne:{weight:["regular","700","900"],fallback:"serif"},Meddon:{weight:["regular"],fallback:"handwriting"},Galada:{weight:["regular"],fallback:"display"},Padauk:{weight:["regular","700"],fallback:"sans-serif"},"Loved by the King":{weight:["regular"],fallback:"handwriting"},"The Girl Next Door":{weight:["regular"],fallback:"handwriting"},"Darker Grotesque":{weight:["300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Life Savers":{weight:["regular","700","800"],fallback:"display"},Bilbo:{weight:["regular"],fallback:"handwriting"},Shanti:{weight:["regular"],fallback:"sans-serif"},"Headland One":{weight:["regular"],fallback:"serif"},"Euphoria Script":{weight:["regular"],fallback:"handwriting"},Imprima:{weight:["regular"],fallback:"sans-serif"},"Aguafina Script":{weight:["regular"],fallback:"handwriting"},"Baloo 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Over the Rainbow":{weight:["regular"],fallback:"handwriting"},Sarpanch:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Orienta:{weight:["regular"],fallback:"sans-serif"},"Spectral SC":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Port Lligat Sans":{weight:["regular"],fallback:"sans-serif"},Artifika:{weight:["regular"],fallback:"serif"},Ledger:{weight:["regular"],fallback:"serif"},Ruluko:{weight:["regular"],fallback:"sans-serif"},Sail:{weight:["regular"],fallback:"display"},Alatsi:{weight:["regular"],fallback:"sans-serif"},"Sonsie One":{weight:["regular"],fallback:"display"},"Bilbo Swash Caps":{weight:["regular"],fallback:"handwriting"},Slackey:{weight:["regular"],fallback:"display"},Salsa:{weight:["regular"],fallback:"display"},Rationale:{weight:["regular"],fallback:"sans-serif"},"Hepta Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Nosifer:{weight:["regular"],fallback:"display"},Dekko:{weight:["regular"],fallback:"handwriting"},"Encode Sans Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Lily Script One":{weight:["regular"],fallback:"display"},"Zilla Slab Highlight":{weight:["regular","700"],fallback:"display"},Dokdo:{weight:["regular"],fallback:"handwriting"},"Kotta One":{weight:["regular"],fallback:"serif"},"Macondo Swash Caps":{weight:["regular"],fallback:"display"},"Encode Sans Semi Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Prosto One":{weight:["regular"],fallback:"display"},"Trade Winds":{weight:["regular"],fallback:"display"},Farsan:{weight:["regular"],fallback:"display"},Manuale:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},Creepster:{weight:["regular"],fallback:"display"},"Medula One":{weight:["regular"],fallback:"display"},Ranchers:{weight:["regular"],fallback:"display"},"David Libre":{weight:["regular","500","700"],fallback:"serif"},"Libre Barcode 39":{weight:["regular"],fallback:"display"},"Vampiro One":{weight:["regular"],fallback:"display"},Metamorphous:{weight:["regular"],fallback:"display"},"Bubbler One":{weight:["regular"],fallback:"sans-serif"},"Nova Mono":{weight:["regular"],fallback:"monospace"},"Princess Sofia":{weight:["regular"],fallback:"handwriting"},"Just Me Again Down Here":{weight:["regular"],fallback:"handwriting"},Notable:{weight:["regular"],fallback:"sans-serif"},"Fascinate Inline":{weight:["regular"],fallback:"display"},Vibur:{weight:["regular"],fallback:"handwriting"},"Vollkorn SC":{weight:["regular","600","700","900"],fallback:"serif"},Crushed:{weight:["regular"],fallback:"display"},Sumana:{weight:["regular","700"],fallback:"serif"},Elsie:{weight:["regular","900"],fallback:"display"},Ranga:{weight:["regular","700"],fallback:"display"},"Port Lligat Slab":{weight:["regular"],fallback:"serif"},Amarante:{weight:["regular"],fallback:"display"},"Ruslan Display":{weight:["regular"],fallback:"display"},"Germania One":{weight:["regular"],fallback:"display"},"Sirin Stencil":{weight:["regular"],fallback:"display"},Pavanam:{weight:["regular"],fallback:"sans-serif"},Peralta:{weight:["regular"],fallback:"display"},"Scope One":{weight:["regular"],fallback:"serif"},Jomolhari:{weight:["regular"],fallback:"serif"},Kranky:{weight:["regular"],fallback:"display"},"Yatra One":{weight:["regular"],fallback:"display"},"Jacques Francois Shadow":{weight:["regular"],fallback:"display"},Ribeye:{weight:["regular"],fallback:"display"},"Averia Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Saira Stencil One":{weight:["regular"],fallback:"display"},"Cherry Cream Soda":{weight:["regular"],fallback:"display"},"Mukta Mahee":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Srisakdi:{weight:["regular","700"],fallback:"display"},Trochut:{weight:["regular","italic","700"],fallback:"display"},Coiny:{weight:["regular"],fallback:"display"},"Ma Shan Zheng":{weight:["regular"],fallback:"handwriting"},Asul:{weight:["regular","700"],fallback:"sans-serif"},Ewert:{weight:["regular"],fallback:"display"},Arya:{weight:["regular","700"],fallback:"sans-serif"},"Hanalei Fill":{weight:["regular"],fallback:"display"},Grenze:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Ribeye Marrow":{weight:["regular"],fallback:"display"},"IM Fell English SC":{weight:["regular"],fallback:"serif"},"Chau Philomene One":{weight:["regular","italic"],fallback:"sans-serif"},Sarina:{weight:["regular"],fallback:"display"},Chicle:{weight:["regular"],fallback:"display"},Manjari:{weight:["100","regular","700"],fallback:"sans-serif"},Montaga:{weight:["regular"],fallback:"serif"},Italiana:{weight:["regular"],fallback:"serif"},Akronim:{weight:["regular"],fallback:"display"},Habibi:{weight:["regular"],fallback:"serif"},Englebert:{weight:["regular"],fallback:"sans-serif"},Dynalight:{weight:["regular"],fallback:"display"},"Mate SC":{weight:["regular"],fallback:"serif"},"Henny Penny":{weight:["regular"],fallback:"display"},"Sree Krushnadevaraya":{weight:["regular"],fallback:"serif"},Engagement:{weight:["regular"],fallback:"handwriting"},Girassol:{weight:["regular"],fallback:"display"},"Kite One":{weight:["regular"],fallback:"sans-serif"},"Ibarra Real Nova":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},Gaegu:{weight:["300","regular","700"],fallback:"handwriting"},Fenix:{weight:["regular"],fallback:"serif"},"Pirata One":{weight:["regular"],fallback:"display"},"Tulpen One":{weight:["regular"],fallback:"display"},"IM Fell Great Primer":{weight:["regular","italic"],fallback:"serif"},Chathura:{weight:["100","300","regular","700","800"],fallback:"sans-serif"},Unlock:{weight:["regular"],fallback:"display"},"Nova Round":{weight:["regular"],fallback:"display"},Sura:{weight:["regular","700"],fallback:"serif"},"Kumar One":{weight:["regular"],fallback:"display"},Baskervville:{weight:["regular","italic"],fallback:"serif"},Quintessential:{weight:["regular"],fallback:"handwriting"},Milonga:{weight:["regular"],fallback:"display"},Bayon:{weight:["regular"],fallback:"display"},"Be Vietnam":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},"Crimson Pro":{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},B612:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"League Script":{weight:["regular"],fallback:"handwriting"},"Inknut Antiqua":{weight:["300","regular","500","600","700","800","900"],fallback:"serif"},Mogra:{weight:["regular"],fallback:"display"},"Mystery Quest":{weight:["regular"],fallback:"display"},"Monsieur La Doulaise":{weight:["regular"],fallback:"handwriting"},Vibes:{weight:["regular"],fallback:"display"},Rosarivo:{weight:["regular","italic"],fallback:"serif"},"Uncial Antiqua":{weight:["regular"],fallback:"display"},Dorsa:{weight:["regular"],fallback:"sans-serif"},Almendra:{weight:["regular","italic","700","700italic"],fallback:"serif"},Diplomata:{weight:["regular"],fallback:"display"},Simonetta:{weight:["regular","italic","900","900italic"],fallback:"display"},"New Rocker":{weight:["regular"],fallback:"display"},Snippet:{weight:["regular"],fallback:"sans-serif"},Petrona:{weight:["regular"],fallback:"serif"},Ramaraja:{weight:["regular"],fallback:"serif"},"Averia Gruesa Libre":{weight:["regular"],fallback:"display"},"Baloo Bhaina 2":{weight:["regular","500","600","700","800"],fallback:"display"},Kodchasan:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Meera Inimai":{weight:["regular"],fallback:"sans-serif"},Flamenco:{weight:["300","regular"],fallback:"display"},Khmer:{weight:["regular"],fallback:"display"},Paprika:{weight:["regular"],fallback:"display"},Koulen:{weight:["regular"],fallback:"display"},Mansalva:{weight:["regular"],fallback:"handwriting"},"Lovers Quarrel":{weight:["regular"],fallback:"handwriting"},Condiment:{weight:["regular"],fallback:"handwriting"},"Baloo Thambi 2":{weight:["regular","500","600","700","800"],fallback:"display"},Stoke:{weight:["300","regular"],fallback:"serif"},Barrio:{weight:["regular"],fallback:"display"},Barriecito:{weight:["regular"],fallback:"display"},"Donegal One":{weight:["regular"],fallback:"serif"},Kavoon:{weight:["regular"],fallback:"display"},"Big Shoulders Display":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Mina:{weight:["regular","700"],fallback:"sans-serif"},"Big Shoulders Text":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Prociono:{weight:["regular"],fallback:"serif"},"Text Me One":{weight:["regular"],fallback:"sans-serif"},"IM Fell French Canon":{weight:["regular","italic"],fallback:"serif"},"Overlock SC":{weight:["regular"],fallback:"display"},Cagliostro:{weight:["regular"],fallback:"sans-serif"},"Marko One":{weight:["regular"],fallback:"serif"},"Swanky and Moo Moo":{weight:["regular"],fallback:"handwriting"},"Maiden Orange":{weight:["regular"],fallback:"display"},Blinker:{weight:["100","200","300","regular","600","700","800","900"],fallback:"sans-serif"},Miniver:{weight:["regular"],fallback:"display"},Angkor:{weight:["regular"],fallback:"display"},Chango:{weight:["regular"],fallback:"display"},Thasadith:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Modak:{weight:["regular"],fallback:"display"},Junge:{weight:["regular"],fallback:"serif"},"Stint Ultra Condensed":{weight:["regular"],fallback:"display"},Stalemate:{weight:["regular"],fallback:"handwriting"},Tillana:{weight:["regular","500","600","700","800"],fallback:"handwriting"},UnifrakturCook:{weight:["700"],fallback:"display"},"Rum Raisin":{weight:["regular"],fallback:"sans-serif"},Farro:{weight:["300","regular","500","700"],fallback:"sans-serif"},"Delius Unicase":{weight:["regular","700"],fallback:"handwriting"},Sancreek:{weight:["regular"],fallback:"display"},Julee:{weight:["regular"],fallback:"handwriting"},Margarine:{weight:["regular"],fallback:"display"},"Lakki Reddy":{weight:["regular"],fallback:"handwriting"},"Stint Ultra Expanded":{weight:["regular"],fallback:"display"},"Bigshot One":{weight:["regular"],fallback:"display"},Griffy:{weight:["regular"],fallback:"display"},Moul:{weight:["regular"],fallback:"display"},"Diplomata SC":{weight:["regular"],fallback:"display"},Oxanium:{weight:["200","300","regular","500","600","700","800"],fallback:"display"},Offside:{weight:["regular"],fallback:"display"},"Fira Code":{weight:["300","regular","500","600","700"],fallback:"monospace"},"Eagle Lake":{weight:["regular"],fallback:"handwriting"},Flavors:{weight:["regular"],fallback:"display"},"Londrina Outline":{weight:["regular"],fallback:"display"},Tomorrow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Nokora:{weight:["regular","700"],fallback:"serif"},Calistoga:{weight:["regular"],fallback:"display"},Gotu:{weight:["regular"],fallback:"sans-serif"},"Della Respira":{weight:["regular"],fallback:"serif"},"Cormorant Unicase":{weight:["300","regular","500","600","700"],fallback:"serif"},"Libre Caslon Text":{weight:["regular","italic","700"],fallback:"serif"},Buda:{weight:["300"],fallback:"display"},Asar:{weight:["regular"],fallback:"serif"},"Poller One":{weight:["regular"],fallback:"display"},"Autour One":{weight:["regular"],fallback:"display"},"Nova Slim":{weight:["regular"],fallback:"display"},Underdog:{weight:["regular"],fallback:"display"},Redressed:{weight:["regular"],fallback:"handwriting"},"Yeon Sung":{weight:["regular"],fallback:"display"},Content:{weight:["regular","700"],fallback:"display"},Kantumruy:{weight:["300","regular","700"],fallback:"sans-serif"},"Baloo Paaji 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Jim Nightshade":{weight:["regular"],fallback:"handwriting"},"Glass Antiqua":{weight:["regular"],fallback:"display"},"Snowburst One":{weight:["regular"],fallback:"display"},"Gamja Flower":{weight:["regular"],fallback:"handwriting"},Revalia:{weight:["regular"],fallback:"display"},"Metal Mania":{weight:["regular"],fallback:"display"},Charmonman:{weight:["regular","700"],fallback:"handwriting"},"IM Fell DW Pica SC":{weight:["regular"],fallback:"serif"},Inika:{weight:["regular","700"],fallback:"serif"},"Elsie Swash Caps":{weight:["regular","900"],fallback:"display"},Wellfleet:{weight:["regular"],fallback:"display"},"Chela One":{weight:["regular"],fallback:"display"},"Rhodium Libre":{weight:["regular"],fallback:"serif"},"Mrs Sheppards":{weight:["regular"],fallback:"handwriting"},"Sedgwick Ave Display":{weight:["regular"],fallback:"handwriting"},"Modern Antiqua":{weight:["regular"],fallback:"display"},"Ravi Prakash":{weight:["regular"],fallback:"display"},Galdeano:{weight:["regular"],fallback:"sans-serif"},Oldenburg:{weight:["regular"],fallback:"display"},Arbutus:{weight:["regular"],fallback:"display"},"Poor Story":{weight:["regular"],fallback:"display"},"Hi Melody":{weight:["regular"],fallback:"handwriting"},"Joti One":{weight:["regular"],fallback:"display"},"Nova Flat":{weight:["regular"],fallback:"display"},"ZCOOL QingKe HuangYou":{weight:["regular"],fallback:"display"},"Linden Hill":{weight:["regular","italic"],fallback:"serif"},Bokor:{weight:["regular"],fallback:"display"},"Courier Prime":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Trykker:{weight:["regular"],fallback:"serif"},KoHo:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Song Myung":{weight:["regular"],fallback:"serif"},Ruthie:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended Text":{weight:["regular"],fallback:"display"},Chilanka:{weight:["regular"],fallback:"handwriting"},Fahkwang:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Felipa:{weight:["regular"],fallback:"handwriting"},Monofett:{weight:["regular"],fallback:"display"},"Odibee Sans":{weight:["regular"],fallback:"display"},Smythe:{weight:["regular"],fallback:"display"},"Major Mono Display":{weight:["regular"],fallback:"monospace"},Jomhuria:{weight:["regular"],fallback:"display"},"Croissant One":{weight:["regular"],fallback:"display"},Dangrek:{weight:["regular"],fallback:"display"},"Original Surfer":{weight:["regular"],fallback:"display"},Bahiana:{weight:["regular"],fallback:"display"},Gorditas:{weight:["regular","700"],fallback:"display"},"Odor Mean Chey":{weight:["regular"],fallback:"display"},Iceberg:{weight:["regular"],fallback:"display"},MedievalSharp:{weight:["regular"],fallback:"display"},"Caesar Dressing":{weight:["regular"],fallback:"display"},Sahitya:{weight:["regular","700"],fallback:"serif"},Stylish:{weight:["regular"],fallback:"sans-serif"},"Nova Cut":{weight:["regular"],fallback:"display"},"Purple Purse":{weight:["regular"],fallback:"display"},Devonshire:{weight:["regular"],fallback:"handwriting"},Smokum:{weight:["regular"],fallback:"display"},"Almendra Display":{weight:["regular"],fallback:"display"},Galindo:{weight:["regular"],fallback:"display"},Preahvihear:{weight:["regular"],fallback:"display"},Siemreap:{weight:["regular"],fallback:"display"},"Irish Grover":{weight:["regular"],fallback:"display"},Gupter:{weight:["regular","500","700"],fallback:"serif"},"Meie Script":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128":{weight:["regular"],fallback:"display"},"Keania One":{weight:["regular"],fallback:"display"},"GFS Neohellenic":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Cute Font":{weight:["regular"],fallback:"display"},"Londrina Shadow":{weight:["regular"],fallback:"display"},"East Sea Dokdo":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended":{weight:["regular"],fallback:"display"},Risque:{weight:["regular"],fallback:"display"},Lancelot:{weight:["regular"],fallback:"display"},"Libre Caslon Display":{weight:["regular"],fallback:"serif"},Plaster:{weight:["regular"],fallback:"display"},"Goblin One":{weight:["regular"],fallback:"display"},Asset:{weight:["regular"],fallback:"display"},"Almendra SC":{weight:["regular"],fallback:"serif"},"Jacques Francois":{weight:["regular"],fallback:"serif"},"Jolly Lodger":{weight:["regular"],fallback:"display"},"Lexend Exa":{weight:["regular"],fallback:"sans-serif"},Molle:{weight:["italic"],fallback:"handwriting"},Kavivanar:{weight:["regular"],fallback:"handwriting"},"Kirang Haerang":{weight:["regular"],fallback:"display"},Piedra:{weight:["regular"],fallback:"display"},"Atomic Age":{weight:["regular"],fallback:"display"},"Kulim Park":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Libre Barcode 39 Text":{weight:["regular"],fallback:"display"},"IM Fell Great Primer SC":{weight:["regular"],fallback:"serif"},"Tenali Ramakrishna":{weight:["regular"],fallback:"sans-serif"},Butcherman:{weight:["regular"],fallback:"display"},"Dr Sugiyama":{weight:["regular"],fallback:"handwriting"},"Geostar Fill":{weight:["regular"],fallback:"display"},Romanesco:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128 Text":{weight:["regular"],fallback:"display"},Sunshiney:{weight:["regular"],fallback:"handwriting"},"Kumar One Outline":{weight:["regular"],fallback:"display"},Peddana:{weight:["regular"],fallback:"serif"},"Baloo Bhai 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Kdam Thmor":{weight:["regular"],fallback:"display"},"Ruge Boogie":{weight:["regular"],fallback:"handwriting"},Freehand:{weight:["regular"],fallback:"display"},Bonbon:{weight:["regular"],fallback:"handwriting"},Caladea:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Single Day":{weight:["regular"],fallback:"display"},"Baloo Tamma 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Inria Sans":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Hanalei:{weight:["regular"],fallback:"display"},"Emblema One":{weight:["regular"],fallback:"display"},"Seymour One":{weight:["regular"],fallback:"sans-serif"},"Miss Fajardose":{weight:["regular"],fallback:"handwriting"},Sevillana:{weight:["regular"],fallback:"display"},"Inria Serif":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Bungee Outline":{weight:["regular"],fallback:"display"},Metal:{weight:["regular"],fallback:"display"},"IM Fell Double Pica SC":{weight:["regular"],fallback:"serif"},"Lexend Giga":{weight:["regular"],fallback:"sans-serif"},"ZCOOL KuaiLe":{weight:["regular"],fallback:"display"},Astloch:{weight:["regular","700"],fallback:"display"},"Mr Bedfort":{weight:["regular"],fallback:"handwriting"},Macondo:{weight:["regular"],fallback:"display"},"Butterfly Kids":{weight:["regular"],fallback:"handwriting"},"Supermercado One":{weight:["regular"],fallback:"display"},Fruktur:{weight:["regular"],fallback:"display"},Taprom:{weight:["regular"],fallback:"display"},Lacquer:{weight:["regular"],fallback:"display"},"Black And White Picture":{weight:["regular"],fallback:"sans-serif"},"Bigelow Rules":{weight:["regular"],fallback:"display"},"Beth Ellen":{weight:["regular"],fallback:"handwriting"},"Sofadi One":{weight:["regular"],fallback:"display"},Combo:{weight:["regular"],fallback:"display"},Bellota:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Federant:{weight:["regular"],fallback:"display"},"Miltonian Tattoo":{weight:["regular"],fallback:"display"},"Londrina Sketch":{weight:["regular"],fallback:"display"},Suwannaphum:{weight:["regular"],fallback:"display"},"Bungee Hairline":{weight:["regular"],fallback:"display"},Fascinate:{weight:["regular"],fallback:"display"},"Erica One":{weight:["regular"],fallback:"display"},"Nova Oval":{weight:["regular"],fallback:"display"},"Baloo Da 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Sulphur Point":{weight:["300","regular","700"],fallback:"sans-serif"},Aubrey:{weight:["regular"],fallback:"display"},Gidugu:{weight:["regular"],fallback:"sans-serif"},"Bellota Text":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Nova Script":{weight:["regular"],fallback:"display"},Miltonian:{weight:["regular"],fallback:"display"},Gayathri:{weight:["100","regular","700"],fallback:"sans-serif"},Geostar:{weight:["regular"],fallback:"display"},Moulpali:{weight:["regular"],fallback:"display"},"Passero One":{weight:["regular"],fallback:"display"},"Stalinist One":{weight:["regular"],fallback:"display"},"Long Cang":{weight:["regular"],fallback:"handwriting"},Solway:{weight:["300","regular","500","700","800"],fallback:"serif"},"Zhi Mang Xing":{weight:["regular"],fallback:"handwriting"},"Baloo Tammudu 2":{weight:["regular","500","600","700","800"],fallback:"display"},Chenla:{weight:["regular"],fallback:"display"},Suravaram:{weight:["regular"],fallback:"serif"},Fasthand:{weight:["regular"],fallback:"serif"},Kenia:{weight:["regular"],fallback:"display"},Dhurjati:{weight:["regular"],fallback:"sans-serif"},"Lexend Tera":{weight:["regular"],fallback:"sans-serif"},"BioRhyme Expanded":{weight:["200","300","regular","700","800"],fallback:"serif"},"Turret Road":{weight:["200","300","regular","500","700","800"],fallback:"display"},Warnes:{weight:["regular"],fallback:"display"},"Viaoda Libre":{weight:["regular"],fallback:"display"},"Lexend Mega":{weight:["regular"],fallback:"sans-serif"},Bahianita:{weight:["regular"],fallback:"display"},Manrope:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Lexend Zetta":{weight:["regular"],fallback:"sans-serif"},"Lexend Peta":{weight:["regular"],fallback:"sans-serif"}});function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var je=function(e){f()(a,e);var t=Oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.setAttributes,i=t.attributes,r=t.device,n=void 0===r?"":r,c=t.showFontSize,s=void 0!==c&&c,g=t.showFontFamily,b=void 0!==g&&g,u=t.showFontWeight,d=void 0!==u&&u,p=t.showTextTransform,f=void 0!==p&&p,h=t.showLineHeight,m=void 0!==h&&h,k=t.showLetterSpacing,y=void 0!==k&&k,v=t.disableAdvancedToggle,w=void 0!==v&&v,O=t.fontSizePlaceholder,j=void 0===O?"17":O,_=[{value:"",label:Object(T.__)("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(we).slice(0,20).forEach((function(e){_.push({value:e,label:e})})),_.push({value:"other",label:Object(T.__)("Other","generateblocks")});var S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],B=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"uppercase",label:Object(T.__)("Uppercase","generateblocks")},{value:"lowercase",label:Object(T.__)("Lowercase","generateblocks")},{value:"capitalize",label:Object(T.__)("Capitalize","generateblocks")},{value:"initial",label:Object(T.__)("Normal","generateblocks")}];void 0!==we[i.fontFamily]&&void 0!==we[i.fontFamily].weight&&(S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")}],we[i.fontFamily].weight.filter((function(e){var t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e)})).forEach((function(e){S.push({value:e,label:e})})));var D=function(e){"other"===e&&(e="");i.fontWeight;a({fontFamily:e}),i.fontWeight&&Object.values(S).indexOf(i.fontWeight),void 0!==we[e]?a({googleFont:!0,fontFamilyFallback:we[e].fallback,googleFontVariants:we[e].weight.join(", ")}):a({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})},R=function(e){a({fontFamily:e.target.value}),D(e.target.value)},x=function(e,t){return i[e+t]},M=function(e,t){return e+t},z=i.showAdvancedTypography;w&&(z=!0);var L=j;"Tablet"===n&&i.fontSize&&(L=i.fontSize),"Mobile"===n&&(i.fontSizeTablet?L=i.fontSizeTablet:i.fontSize&&(L=i.fontSize));var P="";return"Tablet"===n&&i.lineHeight&&(P=i.lineHeight),"Mobile"===n&&(i.lineHeightTablet?P=i.lineHeightTablet:i.lineHeight&&(P=i.lineHeight)),Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-gblocks-typography-weight-transform"},d&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Weight","generateblocks"),value:i.fontWeight,options:S,onChange:function(e){a({fontWeight:e})},className:"components-base-control"}),f&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Transform","generateblocks"),value:i.textTransform,options:B,onChange:function(e){a({textTransform:e})},className:"components-base-control"})),!w&&Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Show Advanced Typography","generateblocks"),checked:!!i.showAdvancedTypography,onChange:function(e){a({showAdvancedTypography:e})}}),b&&z&&Object(l.createElement)(C.BaseControl,{className:"gblocks-font-family-shortcuts"},Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Font Family","generateblocks")),Object(l.createElement)("select",{className:"components-select-control__input components-select-control__input--gblocks-fontfamily",onChange:R,onBlur:R},_.map((function(e,t){return Object(l.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))),b&&z&&Object(l.createElement)(C.TextControl,{value:i.fontFamily,placeholder:Object(T.__)("Enter font name","generateblocks"),onChange:function(e){return D(e)}}),b&&""!==i.fontFamily&&z&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Google Font","generateblocks"),checked:!!i.googleFont,onChange:function(e){a({googleFont:e}),e&&void 0!==we[i.fontFamily]&&a({fontFamilyFallback:we[i.fontFamily].fallback,googleFontVariants:we[i.fontFamily].weight.join(", ")})}}),!!i.googleFont&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Variants","generateblocks"),value:i.googleFontVariants,placeholder:Object(T.__)("300, 400, 400i","generateblocks"),onChange:function(e){a({googleFontVariants:e})}})),b&&z&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Font Family Fallback","generateblocks"),value:i.fontFamilyFallback,placeholder:Object(T.__)("sans-serif","generateblocks"),onChange:function(e){a({fontFamilyFallback:e})}}),s&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Font Size","generateblocks"),value:i.fontSizeUnit,units:["px","em","%"],onClick:function(e){a({fontSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("fontSize",n)||"",placeholder:L,onChange:function(e){var t=M("fontSize",n);a(o()({},t,parseFloat(e)))},min:1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("fontSize",n);a(o()({},t,e.props.defaultFontSize))}},Object(T.__)("Reset","generateblocks")))),m&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Line Height","generateblocks"),value:i.lineHeightUnit,units:["px","em","%"],onClick:function(e){a({lineHeightUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("lineHeight",n)||0===x("lineHeight",n)?x("lineHeight",n):"",placeholder:P,onChange:function(e){var t=M("lineHeight",n);a(o()({},t,e))},onBlur:function(){var e=M("lineHeight",n);a(o()({},e,parseFloat(x("lineHeight",n))))},onClick:function(e){e.currentTarget.focus()},min:0,step:.1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("lineHeight",n);a(o()({},t,e.props.defaultLineHeight))}},Object(T.__)("Reset","generateblocks")))),y&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Letter Spacing","generateblocks"),value:"em",units:["em"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("letterSpacing",n)||"",placeholder:"0.01",onChange:function(e){var t=M("letterSpacing",n);a(o()({},t,e))},onBlur:function(){var e=M("letterSpacing",n);a(o()({},e,parseFloat(x("letterSpacing",n))))},onClick:function(e){e.currentTarget.focus()},min:-1,step:.01,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("letterSpacing",n);a(o()({},t,e.props.defaultLetterSpacing))}},Object(T.__)("Reset","generateblocks")))))}}]),a}(l.Component);a(39);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ce=function(e){f()(a,e);var t=Te(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrGradient,n=t.attrGradientDirection,c=t.attrGradientColorOne,s=t.attrGradientColorOneOpacity,g=t.attrGradientColorStopOne,b=t.attrGradientColorTwo,u=t.attrGradientColorTwoOpacity,d=t.attrGradientColorStopTwo,p=t.defaultColorOne,f=t.defaultColorTwo,h=a.gradientSelector,m=a.innerZindex,k="element"===h?Object(T.__)("Displays behind the background image.","generateblocks"):Object(T.__)("Displays in front of the background image.","generateblocks");return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Use Gradient","generateblocks"),checked:!!a[r],onChange:function(t){i(o()({},e.props.attrGradient,t))}}),!!a[r]&&Object(l.createElement)(l.Fragment,null,void 0!==h&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Selector","generateblocks"),help:k,value:h,options:[{label:Object(T.__)("Element","generateblocks"),value:"element"},{label:Object(T.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){i("pseudo-element"!==e||m?{gradientSelector:e}:{gradientSelector:e,innerZindex:1})}}),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Direction","generateblocks")),Object(l.createElement)(C.RangeControl,{value:a[n]?a[n]:1,onChange:function(e){i(o()({},n,e))},min:0,max:360,step:1,initialPosition:90})),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color One","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[c],alpha:!0,valueOpacity:a[s],attrOpacity:"gradientColorOneOpacity",onChange:function(e){return i(o()({},c,e))},onOpacityChange:function(e){return i(o()({},s,e))},onClear:function(){return i(o()({},c,p))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[g]||0===a[g]?a[g]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},g,e))},onBlur:function(){(a[g]||0===a[g])&&i(o()({},g,parseFloat(a[g])))},onClick:function(e){e.currentTarget.focus()}}))),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color Two","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[b],alpha:!0,valueOpacity:a[u],attrOpacity:"gradientColorTwoOpacity",onChange:function(e){return i(o()({},b,e))},onOpacityChange:function(e){return i(o()({},u,e))},onClear:function(){return i(o()({},b,f))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[d]||0===a[d]?a[d]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},d,e))},onBlur:function(){(a[d]||0===a[d])&&i(o()({},d,parseFloat(a[d])))},onClick:function(e){e.currentTarget.focus()}})))))}}]),a}(l.Component),_e=a(25),Se=a.n(_e);function Be(e){return Se.a.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}function De(e,t,a,l,i){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+i+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+i+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+i+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+i+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}function Ee(e,t){var a=t.attributes,l=a.backgroundColor,i=a.backgroundColorOpacity,r=a.bgImage,n=a.gradient,o=a.bgOptions,c=a.gradientColorOne,s=a.gradientColorOneOpacity,g=a.gradientColorTwo,b=a.gradientColorTwoOpacity,u=a.gradientColorStopOne,d=a.gradientColorStopTwo,p=a.gradientDirection,f="";if(n){var h="",m="";c&&""!==u&&(h=" "+u+"%"),g&&""!==d&&(m=" "+d+"%"),f="linear-gradient("+p+"deg, "+he(c,s)+h+", "+he(g,b)+m+")"}if("gradient"===e)return f;var k=!1,y=he(l,i);if(r){var v=r.image.url;v=Object(_.applyFilters)("generateblocks.editor.bgImageURL",v,t),"element"===o.selector&&(y||n)&&void 0!==o.overlay&&o.overlay?n?k=f+", url("+v+")":y&&(k="linear-gradient(0deg, "+y+", "+y+"), url("+v+")"):k="url("+v+")"}return k}function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var xe=function(e){f()(a,e);var t=Re(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.width,n=e.outerContainer,o=e.innerContainer,c=e.containerWidth,s=e.minHeight,g=e.minHeightUnit,b=e.paddingTop,u=e.paddingRight,d=e.paddingBottom,p=e.paddingLeft,f=e.paddingUnit,h=e.marginTop,m=e.marginRight,k=e.marginBottom,y=e.marginLeft,v=e.marginUnit,w=e.borderSizeTop,O=e.borderSizeRight,j=e.borderSizeBottom,T=e.borderSizeLeft,C=e.borderRadiusTopRight,S=e.borderRadiusBottomRight,B=e.borderRadiusBottomLeft,D=e.borderRadiusTopLeft,E=e.borderRadiusUnit,R=e.borderColor,x=e.borderColorOpacity,L=e.backgroundColor,P=e.backgroundColorOpacity,F=e.gradient,A=e.gradientSelector,U=e.textColor,H=e.linkColor,N=e.linkColorHover,I=e.bgImage,G=e.bgOptions,V=e.verticalAlignment,q=e.zindex,W=e.innerZindex,Z=e.alignment,K=e.fontFamily,J=e.fontFamilyFallback,Y=e.fontWeight,Q=e.fontSize,X=e.fontSizeUnit,$=e.textTransform,ee=e.shapeDividers,te=c;te||(te=generateBlocksDefaults.container.containerWidth);var ae="";K&&J&&(ae=", "+J);var le=!!I,ie=Ee("image",this.props),re=Ee("gradient",this.props),ne=W;!ne&&le&&"pseudo-element"===G.selector&&(ne=1);var oe=[];return oe[".gb-container-"+a]=[{"background-color":he(L,P),color:U,"border-radius":De(D,C,S,B,E),margin:De(h,m,k,y,v),"z-index":q,"text-align":Z,"font-family":K+ae,"font-weight":Y,"text-transform":$,"font-size":z(Q,X),"min-height":z(s,g)}],le&&"element"===G.selector&&ie?oe[".gb-container-"+a].push({"background-image":ie,"background-size":G.size,"background-position":G.position,"background-repeat":G.repeat,"background-attachment":G.attachment}):F&&"element"===A&&oe[".gb-container-"+a].push({"background-image":re}),(le&&"pseudo-element"===G.selector||q||F&&"pseudo-element"===A)&&oe[".gb-container-"+a].push({position:"relative"}),(le&&"pseudo-element"===G.selector||F&&"pseudo-element"===A)&&(oe[".gb-container-"+a].push({overflow:"hidden"}),oe[".gb-container-"+a+" .block-list-appender"]=[{"z-index":10}]),oe[".editor-styles-wrapper .gb-container-"+a+" h1,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h2,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h3,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h4,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h5,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h6"]=[{color:U}],(w||O||j||T)&&oe[".gb-container-"+a].push({"border-width":De(w,O,j,T,"px"),"border-style":"solid","border-color":he(R,x)}),s&&!i&&oe[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":V}),i&&(oe[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":V}),oe[".block-editor-block-list__layout > #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":De(D,C,S,B,E)}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":De(D,C,S,B,E)}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie="",re="inline-block";d&&p&&(ie=", "+p);var ne=i+".gb-headline-"+a,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:c,"font-family":d+ie,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:c}],V&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":he(n,o),color:c,display:!!ae&&re,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:s}],oe[ne+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],oe[ne+" .gb-highlight"]=[{color:u}],oe["#block-"+t]=[{display:!!ae&&"inline-flex"}],oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" +Object(T.sprintf)(Object(T.__)("Shape %s","generateblocks"),i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.Dropdown,{renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Edit Shape","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-shape-dropdown",isSecondary:!t||void 0,isPrimary:!!t||void 0,icon:"admin-tools",onClick:a,"aria-expanded":t}))},renderContent:function(){return Object(l.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.BaseControl,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map((function(e,t){var i=generateBlocksInfo.svgShapes[e].svgs;return Object(l.createElement)(C.PanelBody,{title:generateBlocksInfo.svgShapes[e].group,initialOpen:i.hasOwnProperty(ge[a].shape),key:t},Object(l.createElement)(C.PanelRow,null,Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("ul",{className:"gblocks-icon-chooser gblocks-shape-chooser"},Object.keys(i).map((function(e,t){return Object(l.createElement)("li",{key:"editor-pblock-types-list-item-".concat(t)},Object(l.createElement)(C.Tooltip,{text:i[e].label},Object(l.createElement)(C.Button,{className:w()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":ge[a].shape===e}),onClick:function(){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{shape:e}),n({shapeDividers:t})}},"string"==typeof i[e].icon?Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:Be(i[e].icon)}})):Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},i[e].icon)))))}))))))}))),Object(l.createElement)(ke,{label:Object(T.__)("Color","generateblocks"),value:ge[a].color,alpha:!0,valueOpacity:ge[a].colorOpacity,onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{color:e}),n({shapeDividers:t})},onOpacityChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{colorOpacity:e}),n({shapeDividers:t})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Location","generateblocks"),value:ge[a].location,options:[{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{location:e}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].height?ge[a].height:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{height:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].width?ge[a].width:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{width:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Flip Horizontally","generateblocks"),checked:!!ge[a].flipHorizontally,onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{flipHorizontally:e}),n({shapeDividers:t})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("z-index","generateblocks"),type:"number",min:"0",value:ge[a].zindex||0===ge[a].zindex?ge[a].zindex:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{zindex:e}),n({shapeDividers:t})},onBlur:function(){var e=pe()(ge);e[a]=Ie(Ie({},e[a]),{},{zindex:parseFloat(ge[a].zindex)}),n({shapeDividers:e})},onClick:function(e){e.currentTarget.focus()}})),"Tablet"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].heightTablet?ge[a].heightTablet:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{heightTablet:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].widthTablet?ge[a].widthTablet:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{widthTablet:parseFloat(e)}),n({shapeDividers:t})}})),"Mobile"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].heightMobile?ge[a].heightMobile:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{heightMobile:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].widthMobile?ge[a].widthMobile:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{widthMobile:parseFloat(e)}),n({shapeDividers:t})}})))}})),"Desktop"===t.getDeviceType()&&Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Delete Shape","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-remove-shape",onClick:function(){window.confirm(Object(T.__)("This will permanently delete this shape.","generateblocks"))&&function(e){var t=pe()(ge);t.splice(e,1),n({shapeDividers:t})}(a)},icon:"no-alt"}))))})),Object(l.createElement)("div",{className:"gblocks-add-new-shape"},Object(l.createElement)(C.Button,{isSecondary:!0,onClick:function(){var e=pe()(ge);e.push({shape:generateBlocksStyling.container.shapeDividers.shape,color:generateBlocksStyling.container.shapeDividers.color,colorOpacity:generateBlocksStyling.container.shapeDividers.colorOpacity,location:generateBlocksStyling.container.shapeDividers.location,height:generateBlocksStyling.container.shapeDividers.height,heightTablet:generateBlocksStyling.container.shapeDividers.heightTablet,heightMobile:generateBlocksStyling.container.shapeDividers.heightMobile,width:generateBlocksStyling.container.shapeDividers.width,widthTablet:generateBlocksStyling.container.shapeDividers.widthTablet,widthMobile:generateBlocksStyling.container.shapeDividers.widthMobile,flipHorizontally:generateBlocksStyling.container.shapeDividers.flipHorizontally,zindex:generateBlocksStyling.container.shapeDividers.zindex}),n({shapeDividers:e})}.bind(this)},Object(T.__)("Add Shape","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","containerShapeDivider",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),initialOpen:!1,icon:j("documentation"),className:"gblocks-panel-label",id:"containerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/container/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","containerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(Ve,"-"),n({anchor:e})}})),Object(l.createElement)(xe,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(ze,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Pe,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Ae,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(He,this.props)),re&&ne&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+re.replace(/ /g,"+")+me}),Object(l.createElement)(fe,{tagName:Object(_.applyFilters)("generateblocks.frontend.containerTagName",d,i),htmlAttrs:De},Object(_.applyFilters)("generateblocks.frontend.afterContainerOpen","",i),Object(l.createElement)("div",{className:w()({"gb-inside-container":!0})},Object(_.applyFilters)("generateblocks.frontend.insideContainer","",i),Object(l.createElement)(Q.InnerBlocks,{templateLock:!1,renderAppender:c?void 0:function(){return Object(l.createElement)(Q.InnerBlocks.ButtonBlockAppender,null)}})),Object(l.createElement)(l.Fragment,null,!!i.shapeDividers.length&&Object(l.createElement)("div",{className:"gb-shapes"},i.shapeDividers.map((function(e,t){var a=t+1;return Object(l.createElement)(l.Fragment,{key:t},void 0!==_e[ge[t].shape]&&Object(l.createElement)("div",{className:w()(o()({"gb-shape":!0},"gb-shape-".concat(a),!0)),dangerouslySetInnerHTML:{__html:Be(_e[ge[t].shape].icon)}}))})))),Object(_.applyFilters)("generateblocks.frontend.beforeContainerClose","",i)))}}]),a}(l.Component),Ze=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType,a=e("core").getMedia,l=(0,e("core/editor").getEditedPostAttribute)("featured_media");return t?{media:l?a(l):null,deviceType:t()}:{media:l?a(l):null,deviceType:null}}))])(We),Ke={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isGrid:{type:"boolean",default:!1},gridId:{type:"string",default:""},tagName:{type:"string",default:generateBlocksDefaults.container.tagName},width:{type:"number",default:generateBlocksDefaults.container.width},widthTablet:{type:"number",default:generateBlocksDefaults.container.widthTablet},widthMobile:{type:"number",default:generateBlocksDefaults.container.widthMobile},orderTablet:{type:"number",default:generateBlocksDefaults.container.orderTablet},orderMobile:{type:"number",default:generateBlocksDefaults.container.orderMobile},outerContainer:{type:"string",default:generateBlocksDefaults.container.outerContainer},innerContainer:{type:"string",default:generateBlocksDefaults.container.innerContainer},containerWidth:{type:"number",default:generateBlocksDefaults.container.containerWidth},minHeight:{type:"number",default:generateBlocksDefaults.container.minHeight},minHeightUnit:{type:"string",default:generateBlocksDefaults.container.minHeightUnit},minHeightTablet:{type:"number",default:generateBlocksDefaults.container.minHeightTablet},minHeightUnitTablet:{type:"string",default:generateBlocksDefaults.container.minHeightUnitTablet},minHeightMobile:{type:"number",default:generateBlocksDefaults.container.minHeightMobile},minHeightUnitMobile:{type:"string",default:generateBlocksDefaults.container.minHeightUnitMobile},paddingTop:{type:"string",default:generateBlocksDefaults.container.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.container.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.container.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.container.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.container.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},paddingTopTablet:{type:"string",default:generateBlocksDefaults.container.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.container.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.container.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.container.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.container.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.container.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.container.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.container.paddingLeftMobile},marginTop:{type:"string",default:generateBlocksDefaults.container.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.container.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.container.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.container.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.container.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.container.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.container.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.container.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.container.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.container.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.container.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.container.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.container.marginLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.container.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.container.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.container.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.container.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.container.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftMobile},borderColor:{type:"string",default:generateBlocksDefaults.container.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.container.borderColorOpacity},backgroundColor:{type:"string",default:generateBlocksDefaults.container.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.container.backgroundColorOpacity},gradient:{type:"boolean",default:generateBlocksDefaults.container.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.container.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.container.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.container.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.container.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.container.gradientColorStopTwo},gradientSelector:{type:"string",default:"element"},textColor:{type:"string",default:generateBlocksDefaults.container.textColor},linkColor:{type:"string",default:generateBlocksDefaults.container.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.container.linkColorHover},bgImage:{type:"object",default:generateBlocksDefaults.container.bgImage},bgOptions:{type:"object",default:{selector:generateBlocksDefaults.container.bgOptions.selector,opacity:generateBlocksDefaults.container.bgOptions.opacity,overlay:generateBlocksDefaults.container.bgOptions.overlay,position:generateBlocksDefaults.container.bgOptions.position,size:generateBlocksDefaults.container.bgOptions.size,repeat:generateBlocksDefaults.container.bgOptions.repeat,attachment:generateBlocksDefaults.container.bgOptions.attachment}},bgImageSize:{type:"string",default:generateBlocksDefaults.container.bgImageSize},verticalAlignment:{type:"string",default:generateBlocksDefaults.container.verticalAlignment},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentTablet},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentMobile},zindex:{type:"number",default:generateBlocksDefaults.container.zindex},innerZindex:{type:"number",default:generateBlocksDefaults.container.innerZindex},removeVerticalGap:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGap},removeVerticalGapTablet:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapTablet},removeVerticalGapMobile:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapMobile},alignment:{type:"string",default:generateBlocksDefaults.container.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.container.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.container.alignmentMobile},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.container.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.container.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.container.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.container.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.container.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.container.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.container.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.container.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.container.fontSizeUnit},textTransform:{type:"string",default:""},align:{type:"string",default:""},shapeDividers:{type:"array",default:[]},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};generateBlocksInfo.hasCustomFields&&Object.assign(Ke,{fullWidthContent:{type:"string",source:"meta",meta:"_generate-full-width-content"}});var Je=Ke;function Ye(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Qe(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie="",re="inline-block";d&&p&&(ie=", "+p);var ne=i+".gb-headline-"+a,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:c,"font-family":d+ie,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:c}],V&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":he(n,o),color:c,display:!!ae&&re,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:s}],oe[ne+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],oe[ne+" .gb-highlight"]=[{color:u}],oe["#block-"+t]=[{display:!!ae&&"inline-flex"}],oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(oa,{level:"h2"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"2"),onClick:function(){n({element:"h2"})}},{isActive:"h3"===d,icon:Object(l.createElement)(oa,{level:"h3"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"3"),onClick:function(){n({element:"h3"})}},{isActive:"h4"===d,icon:Object(l.createElement)(oa,{level:"h4"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"4"),onClick:function(){n({element:"h4"})}},{isActive:"h5"===d,icon:Object(l.createElement)(oa,{level:"h5"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"5"),onClick:function(){n({element:"h5"})}},{isActive:"h6"===d,icon:Object(l.createElement)(oa,{level:"h6"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" -Object(T.__)("Heading %s","generateblocks"),"6"),onClick:function(){n({element:"h6"})}},{isActive:"p"===d,icon:Object(l.createElement)(oa,{level:"p"}),title:Object(T.__)("Paragraph","generateblocks"),onClick:function(){n({element:"p"})}},{isActive:"div"===d,icon:Object(l.createElement)(oa,{level:"div"}),title:Object(T.__)("Div","generateblocks"),onClick:function(){n({element:"div"})}}]}),"Desktop"===this.getDeviceType()&&!te&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&!ae&&Object(l.createElement)(Q.AlignmentToolbar,{value:f,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&!le&&Object(l.createElement)(Q.AlignmentToolbar,{value:h,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{id:"headlineElement",state:this.state,showPanel:"Desktop"===this.getDeviceType()}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Element","generateblocks"),value:d,options:[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"paragraph",value:"p"},{label:"div",value:"div"}],onChange:function(e){n({element:e}),L||P||F||A||n("p"===e?{marginUnit:"em"}:{marginUnit:generateBlocksDefaults.headline.marginUnit})}}),Object(_.applyFilters)("generateblocks.editor.controls","","headlineElement",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"headlineTypography",state:this.state,showPanel:!ie||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,fontSizePlaceholder:c,defaultFontSize:generateBlocksDefaults.headline.fontSize,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeight,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightTablet,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightMobile,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"headlineSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!te,onChange:function(e){n({inlineWidth:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!ae,onChange:function(e){n({inlineWidthTablet:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!le,onChange:function(e){n({inlineWidthMobile:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"headlineColors",state:this.state,showPanel:"Desktop"===this.getDeviceType()||!1}),Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:m,alpha:!0,valueOpacity:k,attrOpacity:"backgroundColorOpacity",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:y,alpha:!1,onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Link Color","generateblocks"),value:v,alpha:!1,onChange:function(e){return n({linkColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Link Color Hover","generateblocks"),value:O,alpha:!1,onChange:function(e){return n({linkColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:S,alpha:!0,valueOpacity:D,attrOpacity:"borderColorOpacity",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),U&&Object(l.createElement)(ke,{label:Object(T.__)("Icon Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"iconColorOpacity",onChange:function(e){return n({iconColor:e})},onOpacityChange:function(e){return n({iconColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Highlight Text","generateblocks"),value:R,alpha:!1,onChange:function(e){return n({highlightTextColor:e})}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"headlineIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!U)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel"})),"Desktop"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:G,options:[{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocation:e,iconPaddingRight:"inline"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":""})}}),"inline"===G&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:W,options:[{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignment:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:J||0===J?J:"",step:"em"===ee?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(J)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.headline.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:V,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":""})}}),"inline"===V&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:Z,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentTablet:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:X||0===X?X:"",step:"em"===ee?.1:1,placeholder:J||0===J?J:"",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(X)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.headline.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:q,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":""})}}),"inline"===q&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:K,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentMobile:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:$||0===$?$:"",step:"em"===ee?.1:1,placeholder:oe,onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat($)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.headline.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"headlineDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/headline/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","headlineDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:g||"",onChange:function(e){e=e.replace(sa,"-"),n({anchor:e})}})),Object(l.createElement)(Kt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Yt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Xt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ea,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(aa,this.props)),x&&M&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+x.replace(/ /g,"+")+ne}),Object(l.createElement)(fe,{tagName:d,htmlAttrs:ce},H&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"gb-icon","aria-label":ie&&re?re:void 0,dangerouslySetInnerHTML:{__html:Be(U)}}),!ie&&Object(l.createElement)("span",{className:"gb-headline-text"},Object(l.createElement)(Q.RichText,{tagName:"span",value:u,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0}))),!H&&!ie&&Object(l.createElement)(Q.RichText,{tagName:"span",value:u,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0})))}}]),a}(l.Component),ua=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(ba),da={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},content:{type:"string",source:"html",selector:".gb-headline-text"},element:{type:"string",default:"h2"},alignment:{type:"string",default:generateBlocksDefaults.headline.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.headline.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.headline.alignmentMobile},backgroundColor:{type:"string",default:generateBlocksDefaults.headline.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.headline.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.headline.textColor},linkColor:{type:"string",default:generateBlocksDefaults.headline.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.headline.linkColorHover},borderColor:{type:"string",default:generateBlocksDefaults.headline.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.headline.borderColorOpacity},highlightTextColor:{type:"string",default:generateBlocksDefaults.headline.highlightTextColor},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.headline.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.headline.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.headline.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.headline.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.headline.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.headline.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.headline.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.headline.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.headline.fontSizeUnit},textTransform:{type:"string",default:""},lineHeight:{type:"number",default:generateBlocksDefaults.headline.lineHeight},lineHeightTablet:{type:"number",default:generateBlocksDefaults.headline.lineHeightTablet},lineHeightMobile:{type:"number",default:generateBlocksDefaults.headline.lineHeightMobile},lineHeightUnit:{type:"string",default:generateBlocksDefaults.headline.lineHeightUnit},letterSpacing:{type:"number",default:generateBlocksDefaults.headline.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.headline.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.headline.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.headline.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.headline.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.headline.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.headline.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.headline.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.headline.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.headline.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.headline.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.headline.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.headline.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.headline.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.headline.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.headline.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.headline.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.headline.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.headline.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.headline.paddingLeft},paddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.paddingLeftMobile},paddingUnit:{type:"string",default:generateBlocksDefaults.headline.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},borderSizeTop:{type:"string",default:generateBlocksDefaults.headline.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.headline.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.headline.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftMobile},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:generateBlocksDefaults.headline.iconColor},iconColorOpacity:{type:"number",default:generateBlocksDefaults.headline.iconColorOpacity},customIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.headline.iconLocation},iconLocationTablet:{type:"string",default:generateBlocksDefaults.headline.iconLocationTablet},iconLocationMobile:{type:"string",default:generateBlocksDefaults.headline.iconLocationMobile},iconVerticalAlignment:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignment},iconVerticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentTablet},iconVerticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentMobile},iconPaddingTop:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.headline.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.headline.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.headline.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.headline.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.headline.iconSizeUnit},inlineWidth:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidth},inlineWidthTablet:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthTablet},inlineWidthMobile:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthMobile},removeText:{type:"boolean",default:generateBlocksDefaults.headline.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.headline.ariaLabel},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}},pa={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(X.createBlock)("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(X.createBlock)("generateblocks/headline",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(X.createBlock)("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(X.createBlock)("core/heading",{content:t})}}]};function fa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function ha(e){for(var t=1;t Date: Tue, 29 Dec 2020 00:05:41 -0800 Subject: [PATCH 27/53] Update readme.txt --- readme.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/readme.txt b/readme.txt index 17e46f831..bf3f047ea 100644 --- a/readme.txt +++ b/readme.txt @@ -75,6 +75,24 @@ GenerateBlocks was built to work hand-in-hand with [GeneratePress](https://gener == Changelog == += 1.3.0 = +* New: Add generateblocks.editor.cssAttrs filter +* New: Add generateblocks_headline_selector_tagname filter +* New: Add generateblocks.editor.panelContents filter +* New: Add Add generateblocks.frontend.containerTagName filter +* Fix: Fix gradient when no stop value is found +* Fix: Translations in the editor +* Fix: Force inner container z-index when pseudo in use +* Tweak: Merge bg image and gradient controls into one tab +* Tweak: Prepare for Global Styles in Pro +* Tweak: Remove duplicate .gb-container class from CSS +* Tweak: Add script translations file for settings JS +* Tweak: Hide color picker label element if no label +* Tweak: Update domPurify +* Tweak: Import WP packages instead of defining them +* Tweak: Add border-radius to pseudo background image elements +* Tweak: Change Element Tag label to HTML Tag Name + = 1.2.0 = * Markup change: Remove headline-wrapper element from Headlines with icons * Markup change: Change button-text class to gb-button-text in Button block From c09ec94ccaefb55c4ce71641417ece625b70f9fb Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Wed, 30 Dec 2020 20:07:36 -0800 Subject: [PATCH 28/53] Add new admin header --- assets/css/dashboard.css | 20 ++---------------- includes/class-settings.php | 2 -- includes/dashboard.php | 42 ++++++++++++++++++------------------- src/dashboard.scss | 33 +++++++++++++++++++---------- 4 files changed, 45 insertions(+), 52 deletions(-) diff --git a/assets/css/dashboard.css b/assets/css/dashboard.css index a3af265d1..4ef264e8f 100644 --- a/assets/css/dashboard.css +++ b/assets/css/dashboard.css @@ -1,20 +1,3 @@ -h1.gblocks-logo { - display: flex; - align-items: center; - justify-content: center; -} - -.gblocks-version { - font-size: 10px; - padding: 2px 5px; - background: rgba(0,0,0,0.1); - display: block; - margin-left: 5px; - margin-bottom: 2px; - font-weight: normal; - border-radius: 2px; -} - .gblocks-sub-navigation { display: flex; justify-content: center; @@ -27,10 +10,11 @@ h1.gblocks-logo { .gblocks-dashboard-intro-content { padding: 60px; - font-size: 22px; + font-size: 30px; line-height: 1.8; text-align: center; margin: 0 auto; + max-width: 700px; } .gblocks-dashboard-intro-image { diff --git a/includes/class-settings.php b/includes/class-settings.php index b37eaba87..bf87c995a 100644 --- a/includes/class-settings.php +++ b/includes/class-settings.php @@ -104,8 +104,6 @@ public function add_settings_container() { public function settings_page() { ?>
- -
diff --git a/includes/dashboard.php b/includes/dashboard.php index f10d8350e..359e91789 100644 --- a/includes/dashboard.php +++ b/includes/dashboard.php @@ -82,6 +82,21 @@ function generateblocks_set_admin_body_classes( $classes ) { return $classes; } +add_action( 'in_admin_header', 'generateblocks_do_dashboard_headers' ); +/** + * Add our Dashboard headers. + * + * @since 1.3.0 + */ +function generateblocks_do_dashboard_headers() { + $dashboard_pages = generateblocks_get_dashboard_pages(); + $current_screen = get_current_screen(); + + if ( in_array( $current_screen->id, $dashboard_pages ) ) { + generateblocks_do_dashboard_header(); + } +} + add_action( 'admin_enqueue_scripts', 'generateblocks_enqueue_global_dashboard_scripts' ); /** * Add our scripts to the page. @@ -155,28 +170,15 @@ function generateblocks_dashboard_navigation() { * Build our Dashboard header. * * @since 1.2.0 - * @param string $title The title of the page. */ -function generateblocks_do_dashboard_header( $title ) { +function generateblocks_do_dashboard_header() { ?>
-
- -

- - <?php esc_attr_e( 'GenerateBlocks', 'generateblocks' ); ?> - - -

- -

- +
+

+ + +

@@ -192,8 +194,6 @@ function generateblocks_do_dashboard_header( $title ) { function generateblocks_do_dashboard() { ?>
- -
diff --git a/src/dashboard.scss b/src/dashboard.scss index 01d1a05ed..2b5176622 100644 --- a/src/dashboard.scss +++ b/src/dashboard.scss @@ -8,30 +8,36 @@ $settings-container-width: 750px; .gblocks-dashboard-header { background: #fff; border-bottom: 1px solid #e2e4e7; - padding: 40px 0 0; + padding: 0 20px; text-align: center; + display: flex; + justify-content: space-between; + align-items: center; h1 { - font-size: 25px; + font-size: 17px; font-weight: 600; padding-bottom: 0; - margin-bottom: 20px; - } - - .gblocks-dashboard-header-content { - max-width: 700px; - margin: 0 auto; + display: flex; + align-items: center; + + svg { + width: 1em; + height: 1em; + padding-right: 10px; + fill: #006eb7; + } } } .gblocks-navigation { background: #fff; display: flex; - justify-content: center; a { - padding: 0.5rem 1rem 1rem; - display: inline-flex; + padding: 1rem; + display: flex; + align-items: center; color: inherit; text-decoration: none; @@ -144,4 +150,9 @@ $settings-container-width: 750px; margin-bottom: 20px; margin-left: 22px; } + + &.edit-php #wpbody-content .wrap { + padding: 0 20px; + margin: 0; + } } From c707dc9834224f057b1ca1cd28725a87d73b2d7e Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Wed, 30 Dec 2020 20:07:42 -0800 Subject: [PATCH 29/53] Update dist --- dist/dashboard.asset.php | 2 +- dist/dashboard.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/dashboard.asset.php b/dist/dashboard.asset.php index 98d40f24f..850dddcb3 100644 --- a/dist/dashboard.asset.php +++ b/dist/dashboard.asset.php @@ -1 +1 @@ - array('wp-api-fetch', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '9735d1fad801bad34136cecf6b9b50d0'); \ No newline at end of file + array('wp-api-fetch', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '5587dbe20b6b89e70182cea47e72363a'); \ No newline at end of file diff --git a/dist/dashboard.css b/dist/dashboard.css index 858e36344..630a1b3a9 100644 --- a/dist/dashboard.css +++ b/dist/dashboard.css @@ -1,2 +1,2 @@ -.gblocks-dashboard-wrap{margin:0;overflow:hidden}.gblocks-dashboard-header{background:#fff;border-bottom:1px solid #e2e4e7;padding:40px 0 0;text-align:center}.gblocks-dashboard-header h1{font-size:25px;font-weight:600;padding-bottom:0;margin-bottom:20px}.gblocks-dashboard-header .gblocks-dashboard-header-content{max-width:700px;margin:0 auto}.gblocks-navigation{background:#fff;display:flex;justify-content:center}.gblocks-navigation a{padding:0.5rem 1rem 1rem;display:inline-flex;color:inherit;text-decoration:none}.gblocks-navigation a.active{font-weight:600;box-shadow:inset 0 -3px #007cba}.generateblocks-settings-area .components-placeholder.gblocks-settings-placeholder{margin-top:20px;margin-left:auto;margin-right:auto;max-width:750px;background:#fff;border:1px solid #e2e4e7;box-shadow:none}.generateblocks-settings-area .generateblocks-settings-main{margin-left:auto;margin-right:auto;max-width:750px}.generateblocks-settings-area .generateblocks-settings-main .gblocks-action-button{display:flex;align-items:center}.generateblocks-settings-area .generateblocks-settings-main .gblocks-action-message{padding-left:10px;opacity:0;transition:opacity 200ms ease-in-out;color:green;pointer-events:none}.generateblocks-settings-area .generateblocks-settings-main .gblocks-action-message.gblocks-action-message--show{opacity:1;transition:opacity 200ms ease-in-out}.generateblocks-settings-area .generateblocks-settings-main .gblocks-action-message.gblocks-action-message--error{color:red}.generateblocks-settings-area .generateblocks-settings-main .gblocks-css-print-method .components-base-control__label{display:block}.generateblocks-settings-area .generateblocks-settings-main .components-button .components-spinner{margin:0}.generateblocks-settings-area .generateblocks-settings-main .components-button.is-primary .components-spinner{background:#000}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body{margin:25px 0;background:#fff;border:1px solid #e2e4e7}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-panel__body-toggle{border-bottom:1px solid #d6e2ed}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .gblocks-dashboard-panel-row-wrapper{padding-top:10px}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .gblocks-dashboard-panel-row-wrapper>*:last-child{margin-bottom:0}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-panel__row{padding:0;margin:0 0 25px;display:block}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-panel__row .components-base-control .components-base-control__help{margin-bottom:0}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-panel__row .components-base-control .components-base-control__field{margin-bottom:10px}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-notice{margin:0 0 10px}.generateblocks-dashboard-page #wpcontent{padding-left:0}.generateblocks-dashboard-page .update-nag{margin-bottom:20px;margin-left:22px} +.gblocks-dashboard-wrap{margin:0;overflow:hidden}.gblocks-dashboard-header{background:#fff;border-bottom:1px solid #e2e4e7;padding:0 20px;text-align:center;display:flex;justify-content:space-between;align-items:center}.gblocks-dashboard-header h1{font-size:17px;font-weight:600;padding-bottom:0;display:flex;align-items:center}.gblocks-dashboard-header h1 svg{width:1em;height:1em;padding-right:10px;fill:#006eb7}.gblocks-navigation{background:#fff;display:flex}.gblocks-navigation a{padding:1rem;display:flex;align-items:center;color:inherit;text-decoration:none}.gblocks-navigation a.active{font-weight:600;box-shadow:inset 0 -3px #007cba}.generateblocks-settings-area .components-placeholder.gblocks-settings-placeholder{margin-top:20px;margin-left:auto;margin-right:auto;max-width:750px;background:#fff;border:1px solid #e2e4e7;box-shadow:none}.generateblocks-settings-area .generateblocks-settings-main{margin-left:auto;margin-right:auto;max-width:750px}.generateblocks-settings-area .generateblocks-settings-main .gblocks-action-button{display:flex;align-items:center}.generateblocks-settings-area .generateblocks-settings-main .gblocks-action-message{padding-left:10px;opacity:0;transition:opacity 200ms ease-in-out;color:green;pointer-events:none}.generateblocks-settings-area .generateblocks-settings-main .gblocks-action-message.gblocks-action-message--show{opacity:1;transition:opacity 200ms ease-in-out}.generateblocks-settings-area .generateblocks-settings-main .gblocks-action-message.gblocks-action-message--error{color:red}.generateblocks-settings-area .generateblocks-settings-main .gblocks-css-print-method .components-base-control__label{display:block}.generateblocks-settings-area .generateblocks-settings-main .components-button .components-spinner{margin:0}.generateblocks-settings-area .generateblocks-settings-main .components-button.is-primary .components-spinner{background:#000}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body{margin:25px 0;background:#fff;border:1px solid #e2e4e7}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-panel__body-toggle{border-bottom:1px solid #d6e2ed}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .gblocks-dashboard-panel-row-wrapper{padding-top:10px}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .gblocks-dashboard-panel-row-wrapper>*:last-child{margin-bottom:0}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-panel__row{padding:0;margin:0 0 25px;display:block}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-panel__row .components-base-control .components-base-control__help{margin-bottom:0}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-panel__row .components-base-control .components-base-control__field{margin-bottom:10px}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-notice{margin:0 0 10px}.generateblocks-dashboard-page #wpcontent{padding-left:0}.generateblocks-dashboard-page .update-nag{margin-bottom:20px;margin-left:22px}.generateblocks-dashboard-page.edit-php #wpbody-content .wrap{padding:0 20px;margin:0} From 64521827d17488feef71c1d5e904093cfb212c29 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Wed, 30 Dec 2020 20:16:00 -0800 Subject: [PATCH 30/53] Fix Headline text input when has icon but no text --- src/blocks/headline/css/main.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/blocks/headline/css/main.js b/src/blocks/headline/css/main.js index dcb858f1a..08ba6bddc 100644 --- a/src/blocks/headline/css/main.js +++ b/src/blocks/headline/css/main.js @@ -73,6 +73,7 @@ export default class MainCSS extends Component { iconSizeUnit, inlineWidth, removeText, + content, } = attributes; let fontFamilyFallbackValue = '', @@ -153,6 +154,13 @@ export default class MainCSS extends Component { 'display': inlineWidth ? 'inline-flex' : false, // eslint-disable-line quote-props } ]; + if ( !! icon && ! content ) { + cssObj[ '.gb-headline-text' ] = [ { + display: 'block', + width: '100%', + } ]; + } + cssObj = applyFilters( 'generateblocks.editor.mainCSS', cssObj, this.props, 'headline' ); return ( From 681d950f14a32252ef860fb4e7e938d7cd1540aa Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Wed, 30 Dec 2020 20:16:06 -0800 Subject: [PATCH 31/53] Update dist --- dist/blocks.asset.php | 2 +- dist/blocks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index f96da2b4d..fbcc5e2df 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => 'c12182fec1ea56c1e4f6482c322880cd'); \ No newline at end of file + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '9808611c89549172a27c257b05a38012'); \ No newline at end of file diff --git a/dist/blocks.js b/dist/blocks.js index 58180e8a7..06f15e31f 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -6,7 +6,7 @@ /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Bottom","generateblocks"),r),value:a[g]?a[g]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:L,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeLeft(a):e.onReset("attrLeft")},onBlur:function(){q||""!==a[b]||""===B[b]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeLeft("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Left","generateblocks"),r),value:a[b]?a[b]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)(C.Tooltip,{text:a[u]?Object(T.__)("Unsync","generateblocks"):Object(T.__)("Sync","generateblocks")},Object(l.createElement)(C.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":Object(T.__)("Sync Units","generateblocks"),isPrimary:!!a[u]&&a[u],"aria-pressed":!!a[u]&&a[u],onClick:function(t){return e.syncUnits(t,"")},isSmall:!0},(a[u],j("sync"))))),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__input-labels"},Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},f),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},m),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},y),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},O),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"}))))}}]),a}(l.Component),we=(a(38),{Roboto:{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Open Sans":{weight:["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Lato:{weight:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Montserrat:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Source Sans Pro":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Roboto Condensed":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Oswald:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},"Roboto Mono":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"monospace"},Raleway:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Poppins:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Roboto Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Merriweather:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"serif"},"PT Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Ubuntu:{weight:["300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},"Playfair Display":{weight:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},Muli:{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Open Sans Condensed":{weight:["300","300italic","700"],fallback:"sans-serif"},"PT Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},Lora:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Slabo 27px":{weight:["regular"],fallback:"serif"},Nunito:{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans JP":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Work Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},Rubik:{weight:["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Noto Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fira Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Titillium Web":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],fallback:"sans-serif"},Quicksand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Noto Sans KR":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nanum Gothic":{weight:["regular","700","800"],fallback:"sans-serif"},Mukta:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Noto Sans TC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nunito Sans":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Heebo:{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Sans Narrow":{weight:["regular","700"],fallback:"sans-serif"},Arimo:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Inconsolata:{weight:["regular","700"],fallback:"monospace"},Barlow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Oxygen:{weight:["300","regular","700"],fallback:"sans-serif"},Dosis:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Bitter:{weight:["regular","italic","700"],fallback:"serif"},"Libre Baskerville":{weight:["regular","italic","700"],fallback:"serif"},"Crimson Text":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},"Libre Franklin":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Karla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Josefin Sans":{weight:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},Cabin:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Anton:{weight:["regular"],fallback:"sans-serif"},"Source Code Pro":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"monospace"},Hind:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Abel:{weight:["regular"],fallback:"sans-serif"},Amiri:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fjalla One":{weight:["regular"],fallback:"sans-serif"},Lobster:{weight:["regular"],fallback:"display"},Pacifico:{weight:["regular"],fallback:"handwriting"},"Indie Flower":{weight:["regular"],fallback:"handwriting"},"Exo 2":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Dancing Script":{weight:["regular","500","600","700"],fallback:"handwriting"},"Source Serif Pro":{weight:["regular","600","700"],fallback:"serif"},Arvo:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Hind Siliguri":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Varela Round":{weight:["regular"],fallback:"sans-serif"},"Merriweather Sans":{weight:["300","300italic","regular","italic","700","700italic","800","800italic"],fallback:"sans-serif"},Cairo:{weight:["200","300","regular","600","700","900"],fallback:"sans-serif"},"Yanone Kaffeesatz":{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Overpass:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Shadows Into Light":{weight:["regular"],fallback:"handwriting"},"Barlow Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"IBM Plex Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Comfortaa:{weight:["300","regular","500","600","700"],fallback:"display"},Asap:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Prompt:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Kanit:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Questrial:{weight:["regular"],fallback:"sans-serif"},Martel:{weight:["200","300","regular","600","700","800","900"],fallback:"serif"},"Archivo Narrow":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Abril Fatface":{weight:["regular"],fallback:"display"},"Amatic SC":{weight:["regular","700"],fallback:"handwriting"},Acme:{weight:["regular"],fallback:"sans-serif"},Catamaran:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Fira Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"EB Garamond":{weight:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],fallback:"serif"},"Bree Serif":{weight:["regular"],fallback:"serif"},"Zilla Slab":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Noto Sans SC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Cormorant Garamond":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Hind Madurai":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Teko:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Righteous:{weight:["regular"],fallback:"display"},Signika:{weight:["300","regular","600","700"],fallback:"sans-serif"},Play:{weight:["regular","700"],fallback:"sans-serif"},Domine:{weight:["regular","700"],fallback:"serif"},Exo:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Russo One":{weight:["regular"],fallback:"sans-serif"},Cinzel:{weight:["regular","700","900"],fallback:"serif"},"PT Sans Caption":{weight:["regular","700"],fallback:"sans-serif"},Rajdhani:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Maven Pro":{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Fredoka One":{weight:["regular"],fallback:"display"},"IBM Plex Serif":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Ubuntu Condensed":{weight:["regular"],fallback:"sans-serif"},"Patua One":{weight:["regular"],fallback:"display"},Caveat:{weight:["regular","700"],fallback:"handwriting"},"Permanent Marker":{weight:["regular"],fallback:"handwriting"},Assistant:{weight:["200","300","regular","600","700","800"],fallback:"sans-serif"},ABeeZee:{weight:["regular","italic"],fallback:"sans-serif"},Vollkorn:{weight:["regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"serif"},"Crete Round":{weight:["regular","italic"],fallback:"serif"},"Special Elite":{weight:["regular"],fallback:"display"},Rokkitt:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Bangers:{weight:["regular"],fallback:"display"},"Francois One":{weight:["regular"],fallback:"sans-serif"},"Barlow Semi Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Alegreya Sans":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Satisfy:{weight:["regular"],fallback:"handwriting"},Tajawal:{weight:["200","300","regular","500","700","800","900"],fallback:"sans-serif"},"Bebas Neue":{weight:["regular"],fallback:"display"},"Patrick Hand":{weight:["regular"],fallback:"handwriting"},Cuprum:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Viga:{weight:["regular"],fallback:"sans-serif"},Courgette:{weight:["regular"],fallback:"handwriting"},"Ropa Sans":{weight:["regular","italic"],fallback:"sans-serif"},"Noto Serif JP":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Gochi Hand":{weight:["regular"],fallback:"handwriting"},Alegreya:{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Luckiest Guy":{weight:["regular"],fallback:"display"},"Noticia Text":{weight:["regular","italic","700","700italic"],fallback:"serif"},Tinos:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Passion One":{weight:["regular","700","900"],fallback:"display"},"Alfa Slab One":{weight:["regular"],fallback:"display"},"Nanum Myeongjo":{weight:["regular","700","800"],fallback:"serif"},Monda:{weight:["regular","700"],fallback:"sans-serif"},"Lobster Two":{weight:["regular","italic","700","700italic"],fallback:"display"},Kalam:{weight:["300","regular","700"],fallback:"handwriting"},"Kaushan Script":{weight:["regular"],fallback:"handwriting"},"Archivo Black":{weight:["regular"],fallback:"sans-serif"},Cardo:{weight:["regular","italic","700"],fallback:"serif"},Archivo:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Great Vibes":{weight:["regular"],fallback:"handwriting"},Volkhov:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Quattrocento Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"News Cycle":{weight:["regular","700"],fallback:"sans-serif"},"Pathway Gothic One":{weight:["regular"],fallback:"sans-serif"},Sacramento:{weight:["regular"],fallback:"handwriting"},"Frank Ruhl Libre":{weight:["300","regular","500","700","900"],fallback:"serif"},Yantramanav:{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},Cantarell:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Istok Web":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Didact Gothic":{weight:["regular"],fallback:"sans-serif"},"Concert One":{weight:["regular"],fallback:"display"},Taviraj:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Old Standard TT":{weight:["regular","italic","700"],fallback:"serif"},"Montserrat Alternates":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Economica:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Changa:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Fira Sans Extra Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Gloria Hallelujah":{weight:["regular"],fallback:"handwriting"},Parisienne:{weight:["regular"],fallback:"handwriting"},Orbitron:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Asap Condensed":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Playfair Display SC":{weight:["regular","italic","700","700italic","900","900italic"],fallback:"serif"},Chivo:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Sriracha:{weight:["regular"],fallback:"handwriting"},"Hind Vadodara":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"DM Sans":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Prata:{weight:["regular"],fallback:"serif"},Quattrocento:{weight:["regular","700"],fallback:"serif"},Cookie:{weight:["regular"],fallback:"handwriting"},"Poiret One":{weight:["regular"],fallback:"display"},Handlee:{weight:["regular"],fallback:"handwriting"},Sarabun:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},BenchNine:{weight:["300","regular","700"],fallback:"sans-serif"},Merienda:{weight:["regular","700"],fallback:"handwriting"},"M PLUS 1p":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Mono":{weight:["regular"],fallback:"monospace"},Lalezar:{weight:["regular"],fallback:"display"},Sanchez:{weight:["regular","italic"],fallback:"serif"},Lemonada:{weight:["300","regular","500","600","700"],fallback:"display"},"Markazi Text":{weight:["regular","500","600","700"],fallback:"serif"},Neuton:{weight:["200","300","regular","italic","700","800"],fallback:"serif"},"Hind Guntur":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Josefin Slab":{weight:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"serif"},Philosopher:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Advent Pro":{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Do Hyeon":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Mincho":{weight:["regular"],fallback:"sans-serif"},Ruda:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Vidaloka:{weight:["regular"],fallback:"serif"},Ultra:{weight:["regular"],fallback:"serif"},Neucha:{weight:["regular"],fallback:"handwriting"},Arapey:{weight:["regular","italic"],fallback:"serif"},Gudea:{weight:["regular","italic","700"],fallback:"sans-serif"},"Paytone One":{weight:["regular"],fallback:"sans-serif"},Kreon:{weight:["300","regular","500","600","700"],fallback:"serif"},"M PLUS Rounded 1c":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"Pragati Narrow":{weight:["regular","700"],fallback:"sans-serif"},"Press Start 2P":{weight:["regular"],fallback:"display"},"Hammersmith One":{weight:["regular"],fallback:"sans-serif"},"Gentium Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Monoton:{weight:["regular"],fallback:"display"},Alef:{weight:["regular","700"],fallback:"sans-serif"},Alice:{weight:["regular"],fallback:"serif"},Aclonica:{weight:["regular"],fallback:"sans-serif"},"Sigmar One":{weight:["regular"],fallback:"display"},Spectral:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Marck Script":{weight:["regular"],fallback:"handwriting"},Electrolize:{weight:["regular"],fallback:"sans-serif"},Actor:{weight:["regular"],fallback:"sans-serif"},"Architects Daughter":{weight:["regular"],fallback:"handwriting"},Adamina:{weight:["regular"],fallback:"serif"},"Pontano Sans":{weight:["regular"],fallback:"sans-serif"},Audiowide:{weight:["regular"],fallback:"display"},Inter:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Cabin Condensed":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Unica One":{weight:["regular"],fallback:"display"},Yellowtail:{weight:["regular"],fallback:"handwriting"},"El Messiri":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Squada One":{weight:["regular"],fallback:"display"},Staatliches:{weight:["regular"],fallback:"display"},Amaranth:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Enriqueta:{weight:["regular","500","600","700"],fallback:"serif"},Mitr:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Glegoo:{weight:["regular","700"],fallback:"serif"},"Bowlby One SC":{weight:["regular"],fallback:"display"},Basic:{weight:["regular"],fallback:"sans-serif"},"Nanum Gothic Coding":{weight:["regular","700"],fallback:"monospace"},Sarala:{weight:["regular","700"],fallback:"sans-serif"},"Bad Script":{weight:["regular"],fallback:"handwriting"},"Homemade Apple":{weight:["regular"],fallback:"handwriting"},Tangerine:{weight:["regular","700"],fallback:"handwriting"},Cormorant:{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Oleo Script":{weight:["regular","700"],fallback:"display"},Karma:{weight:["300","regular","500","600","700"],fallback:"serif"},"Julius Sans One":{weight:["regular"],fallback:"sans-serif"},"Carter One":{weight:["regular"],fallback:"display"},Khand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Nanum Pen Script":{weight:["regular"],fallback:"handwriting"},Cambay:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Fugaz One":{weight:["regular"],fallback:"display"},"Shadows Into Light Two":{weight:["regular"],fallback:"handwriting"},Coda:{weight:["regular","800"],fallback:"display"},"Signika Negative":{weight:["300","regular","600","700"],fallback:"sans-serif"},Pridi:{weight:["200","300","regular","500","600","700"],fallback:"serif"},Playball:{weight:["regular"],fallback:"display"},Saira:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Rock Salt":{weight:["regular"],fallback:"handwriting"},"Gothic A1":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Gentium Book Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Allura:{weight:["regular"],fallback:"handwriting"},"Yeseva One":{weight:["regular"],fallback:"display"},"DM Serif Text":{weight:["regular","italic"],fallback:"serif"},Lusitana:{weight:["regular","700"],fallback:"serif"},Jura:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Average:{weight:["regular"],fallback:"serif"},Yrsa:{weight:["300","regular","500","600","700"],fallback:"serif"},"Sorts Mill Goudy":{weight:["regular","italic"],fallback:"serif"},"Cantata One":{weight:["regular"],fallback:"serif"},Armata:{weight:["regular"],fallback:"sans-serif"},Scada:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Abhaya Libre":{weight:["regular","500","600","700","800"],fallback:"serif"},Damion:{weight:["regular"],fallback:"handwriting"},Marmelad:{weight:["regular"],fallback:"sans-serif"},Varela:{weight:["regular"],fallback:"sans-serif"},Quantico:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Covered By Your Grace":{weight:["regular"],fallback:"handwriting"},"PT Serif Caption":{weight:["regular","italic"],fallback:"serif"},Ramabhadra:{weight:["regular"],fallback:"sans-serif"},Unna:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Encode Sans":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Arsenal:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Black Han Sans":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Gothic":{weight:["regular"],fallback:"sans-serif"},"Ubuntu Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Pinyon Script":{weight:["regular"],fallback:"handwriting"},"Black Ops One":{weight:["regular"],fallback:"display"},Marcellus:{weight:["regular"],fallback:"serif"},"Fauna One":{weight:["regular"],fallback:"serif"},"Lilita One":{weight:["regular"],fallback:"display"},Sintony:{weight:["regular","700"],fallback:"sans-serif"},Khula:{weight:["300","regular","600","700","800"],fallback:"sans-serif"},Jaldi:{weight:["regular","700"],fallback:"sans-serif"},"Rubik Mono One":{weight:["regular"],fallback:"sans-serif"},Allan:{weight:["regular","700"],fallback:"display"},"Reenie Beanie":{weight:["regular"],fallback:"handwriting"},"Alex Brush":{weight:["regular"],fallback:"handwriting"},"Mr Dafoe":{weight:["regular"],fallback:"handwriting"},Palanquin:{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Encode Sans Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Antic:{weight:["regular"],fallback:"sans-serif"},Knewave:{weight:["regular"],fallback:"display"},"Caveat Brush":{weight:["regular"],fallback:"handwriting"},Rambla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Spinnaker:{weight:["regular"],fallback:"sans-serif"},"IBM Plex Mono":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"monospace"},Michroma:{weight:["regular"],fallback:"sans-serif"},"Nothing You Could Do":{weight:["regular"],fallback:"handwriting"},"Kelly Slab":{weight:["regular"],fallback:"display"},Boogaloo:{weight:["regular"],fallback:"display"},Chewy:{weight:["regular"],fallback:"display"},"ZCOOL XiaoWei":{weight:["regular"],fallback:"serif"},Rancho:{weight:["regular"],fallback:"handwriting"},"Noto Serif SC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Pangolin:{weight:["regular"],fallback:"handwriting"},"Fira Mono":{weight:["regular","500","700"],fallback:"monospace"},Forum:{weight:["regular"],fallback:"display"},"Antic Slab":{weight:["regular"],fallback:"serif"},"Alegreya Sans SC":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Anonymous Pro":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Lateef:{weight:["regular"],fallback:"handwriting"},"Annie Use Your Telescope":{weight:["regular"],fallback:"handwriting"},"Noto Sans HK":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Martel Sans":{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},"Chakra Petch":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Rufina:{weight:["regular","700"],fallback:"serif"},"Bai Jamjuree":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Scheherazade:{weight:["regular","700"],fallback:"serif"},Share:{weight:["regular","italic","700","700italic"],fallback:"display"},"Tenor Sans":{weight:["regular"],fallback:"sans-serif"},"DM Serif Display":{weight:["regular","italic"],fallback:"serif"},VT323:{weight:["regular"],fallback:"monospace"},"Share Tech Mono":{weight:["regular"],fallback:"monospace"},Mali:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"handwriting"},Cousine:{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Cinzel Decorative":{weight:["regular","700","900"],fallback:"display"},Overlock:{weight:["regular","italic","700","700italic","900","900italic"],fallback:"display"},"Arbutus Slab":{weight:["regular"],fallback:"serif"},"Reem Kufi":{weight:["regular"],fallback:"sans-serif"},"Cabin Sketch":{weight:["regular","700"],fallback:"display"},"Saira Extra Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Eczar:{weight:["regular","500","600","700","800"],fallback:"serif"},"Leckerli One":{weight:["regular"],fallback:"handwriting"},Krub:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Berkshire Swash":{weight:["regular"],fallback:"handwriting"},"Fredericka the Great":{weight:["regular"],fallback:"display"},"Saira Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Overpass Mono":{weight:["300","regular","600","700"],fallback:"monospace"},Itim:{weight:["regular"],fallback:"handwriting"},Rasa:{weight:["300","regular","500","600","700"],fallback:"serif"},Bevan:{weight:["regular"],fallback:"display"},"Arima Madurai":{weight:["100","200","300","regular","500","700","800","900"],fallback:"display"},Italianno:{weight:["regular"],fallback:"handwriting"},"Coda Caption":{weight:["800"],fallback:"sans-serif"},Shrikhand:{weight:["regular"],fallback:"display"},"Just Another Hand":{weight:["regular"],fallback:"handwriting"},"Saira Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Almarai:{weight:["300","regular","700","800"],fallback:"sans-serif"},"Mukta Malar":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Oranienbaum:{weight:["regular"],fallback:"serif"},Nobile:{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Candal:{weight:["regular"],fallback:"sans-serif"},"Six Caps":{weight:["regular"],fallback:"sans-serif"},"Space Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Capriola:{weight:["regular"],fallback:"sans-serif"},Biryani:{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},Halant:{weight:["300","regular","500","600","700"],fallback:"serif"},Allerta:{weight:["regular"],fallback:"sans-serif"},Trirong:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},Mallanna:{weight:["regular"],fallback:"sans-serif"},Aldrich:{weight:["regular"],fallback:"sans-serif"},Aleo:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Suez One":{weight:["regular"],fallback:"serif"},Caudex:{weight:["regular","italic","700","700italic"],fallback:"serif"},Niconne:{weight:["regular"],fallback:"handwriting"},"Mrs Saint Delafield":{weight:["regular"],fallback:"handwriting"},Gruppo:{weight:["regular"],fallback:"display"},"Miriam Libre":{weight:["regular","700"],fallback:"sans-serif"},"Contrail One":{weight:["regular"],fallback:"display"},"Days One":{weight:["regular"],fallback:"sans-serif"},"Allerta Stencil":{weight:["regular"],fallback:"sans-serif"},"Average Sans":{weight:["regular"],fallback:"sans-serif"},"Coming Soon":{weight:["regular"],fallback:"handwriting"},Pattaya:{weight:["regular"],fallback:"sans-serif"},"Londrina Solid":{weight:["100","300","regular","900"],fallback:"display"},Bungee:{weight:["regular"],fallback:"display"},Coustard:{weight:["regular","900"],fallback:"serif"},"Marcellus SC":{weight:["regular"],fallback:"serif"},"Racing Sans One":{weight:["regular"],fallback:"display"},Bentham:{weight:["regular"],fallback:"serif"},"Bungee Inline":{weight:["regular"],fallback:"display"},Magra:{weight:["regular","700"],fallback:"sans-serif"},Judson:{weight:["regular","italic","700"],fallback:"serif"},Rochester:{weight:["regular"],fallback:"handwriting"},"Grand Hotel":{weight:["regular"],fallback:"handwriting"},Gelasio:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Yesteryear:{weight:["regular"],fallback:"handwriting"},Syncopate:{weight:["regular","700"],fallback:"sans-serif"},Hanuman:{weight:["regular","700"],fallback:"serif"},"Kosugi Maru":{weight:["regular"],fallback:"sans-serif"},Copse:{weight:["regular"],fallback:"serif"},Mada:{weight:["200","300","regular","500","600","700","900"],fallback:"sans-serif"},"Titan One":{weight:["regular"],fallback:"display"},"Noto Serif TC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Kameron:{weight:["regular","700"],fallback:"serif"},Telex:{weight:["regular"],fallback:"sans-serif"},Norican:{weight:["regular"],fallback:"handwriting"},Maitree:{weight:["200","300","regular","500","600","700"],fallback:"serif"},"IM Fell Double Pica":{weight:["regular","italic"],fallback:"serif"},Molengo:{weight:["regular"],fallback:"sans-serif"},Sunflower:{weight:["300","500","700"],fallback:"sans-serif"},"Alegreya SC":{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Red Hat Display":{weight:["regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},Jua:{weight:["regular"],fallback:"sans-serif"},Ovo:{weight:["regular"],fallback:"serif"},"IBM Plex Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Nixie One":{weight:["regular"],fallback:"display"},Aladin:{weight:["regular"],fallback:"handwriting"},Arizonia:{weight:["regular"],fallback:"handwriting"},"Bubblegum Sans":{weight:["regular"],fallback:"display"},"Changa One":{weight:["regular","italic"],fallback:"display"},"Lexend Deca":{weight:["regular"],fallback:"sans-serif"},Sofia:{weight:["regular"],fallback:"handwriting"},"Jockey One":{weight:["regular"],fallback:"sans-serif"},Suranna:{weight:["regular"],fallback:"serif"},Amethysta:{weight:["regular"],fallback:"serif"},Schoolbell:{weight:["regular"],fallback:"handwriting"},"Nanum Brush Script":{weight:["regular"],fallback:"handwriting"},"Cedarville Cursive":{weight:["regular"],fallback:"handwriting"},"Cutive Mono":{weight:["regular"],fallback:"monospace"},Delius:{weight:["regular"],fallback:"handwriting"},"Raleway Dots":{weight:["regular"],fallback:"display"},Graduate:{weight:["regular"],fallback:"display"},Lustria:{weight:["regular"],fallback:"serif"},"Mukta Vaani":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Kadwa:{weight:["regular","700"],fallback:"serif"},"Rozha One":{weight:["regular"],fallback:"serif"},Buenard:{weight:["regular","700"],fallback:"serif"},Cambo:{weight:["regular"],fallback:"serif"},Marvel:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Krona One":{weight:["regular"],fallback:"sans-serif"},"Carrois Gothic":{weight:["regular"],fallback:"sans-serif"},Carme:{weight:["regular"],fallback:"sans-serif"},"Slabo 13px":{weight:["regular"],fallback:"serif"},Lemon:{weight:["regular"],fallback:"display"},"Love Ya Like A Sister":{weight:["regular"],fallback:"display"},Rosario:{weight:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},"Merienda One":{weight:["regular"],fallback:"handwriting"},"Public Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Petit Formal Script":{weight:["regular"],fallback:"handwriting"},"Ceviche One":{weight:["regular"],fallback:"display"},Voltaire:{weight:["regular"],fallback:"sans-serif"},Fresca:{weight:["regular"],fallback:"sans-serif"},"Averia Serif Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Rye:{weight:["regular"],fallback:"display"},"Noto Serif KR":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Chelsea Market":{weight:["regular"],fallback:"display"},Calligraffitti:{weight:["regular"],fallback:"handwriting"},"Freckle Face":{weight:["regular"],fallback:"display"},"Duru Sans":{weight:["regular"],fallback:"sans-serif"},Trocchi:{weight:["regular"],fallback:"serif"},Metrophobic:{weight:["regular"],fallback:"sans-serif"},Mate:{weight:["regular","italic"],fallback:"serif"},Harmattan:{weight:["regular"],fallback:"sans-serif"},"Gilda Display":{weight:["regular"],fallback:"serif"},"Cormorant Infant":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Spartan:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Oxygen Mono":{weight:["regular"],fallback:"monospace"},Chonburi:{weight:["regular"],fallback:"display"},"Goudy Bookletter 1911":{weight:["regular"],fallback:"serif"},Sansita:{weight:["regular","italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Emilys Candy":{weight:["regular"],fallback:"display"},Amiko:{weight:["regular","600","700"],fallback:"sans-serif"},Kristi:{weight:["regular"],fallback:"handwriting"},"Palanquin Dark":{weight:["regular","500","600","700"],fallback:"sans-serif"},Lekton:{weight:["regular","italic","700"],fallback:"sans-serif"},Cutive:{weight:["regular"],fallback:"serif"},"Herr Von Muellerhoff":{weight:["regular"],fallback:"handwriting"},"GFS Didot":{weight:["regular"],fallback:"serif"},Radley:{weight:["regular","italic"],fallback:"serif"},"Sue Ellen Francisco":{weight:["regular"],fallback:"handwriting"},Pompiere:{weight:["regular"],fallback:"display"},Gabriela:{weight:["regular"],fallback:"serif"},Niramit:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Seaweed Script":{weight:["regular"],fallback:"display"},"Sedgwick Ave":{weight:["regular"],fallback:"handwriting"},Federo:{weight:["regular"],fallback:"sans-serif"},McLaren:{weight:["regular"],fallback:"display"},"IM Fell DW Pica":{weight:["regular","italic"],fallback:"serif"},Sniglet:{weight:["regular","800"],fallback:"display"},"Mr De Haviland":{weight:["regular"],fallback:"handwriting"},Shojumaru:{weight:["regular"],fallback:"display"},Poly:{weight:["regular","italic"],fallback:"serif"},Belleza:{weight:["regular"],fallback:"sans-serif"},Faustina:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"IM Fell English":{weight:["regular","italic"],fallback:"serif"},"Rammetto One":{weight:["regular"],fallback:"display"},Amita:{weight:["regular","700"],fallback:"handwriting"},Inder:{weight:["regular"],fallback:"sans-serif"},"Antic Didone":{weight:["regular"],fallback:"serif"},"Alike Angular":{weight:["regular"],fallback:"serif"},Montez:{weight:["regular"],fallback:"handwriting"},K2D:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},UnifrakturMaguntia:{weight:["regular"],fallback:"display"},Gurajada:{weight:["regular"],fallback:"serif"},"Proza Libre":{weight:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Athiti:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Andada:{weight:["regular"],fallback:"serif"},"Liu Jian Mao Cao":{weight:["regular"],fallback:"handwriting"},Megrim:{weight:["regular"],fallback:"display"},"Vast Shadow":{weight:["regular"],fallback:"display"},Wallpoet:{weight:["regular"],fallback:"display"},Unkempt:{weight:["regular","700"],fallback:"display"},"Fanwood Text":{weight:["regular","italic"],fallback:"serif"},"Doppio One":{weight:["regular"],fallback:"sans-serif"},"Comic Neue":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"handwriting"},Corben:{weight:["regular","700"],fallback:"display"},Frijole:{weight:["regular"],fallback:"display"},Balthazar:{weight:["regular"],fallback:"serif"},Mirza:{weight:["regular","500","600","700"],fallback:"display"},"IM Fell French Canon SC":{weight:["regular"],fallback:"serif"},Brawler:{weight:["regular"],fallback:"serif"},"Oleo Script Swash Caps":{weight:["regular","700"],fallback:"display"},Mandali:{weight:["regular"],fallback:"sans-serif"},Convergence:{weight:["regular"],fallback:"sans-serif"},Fondamento:{weight:["regular","italic"],fallback:"handwriting"},Alike:{weight:["regular"],fallback:"serif"},Baumans:{weight:["regular"],fallback:"display"},Esteban:{weight:["regular"],fallback:"serif"},"Gravitas One":{weight:["regular"],fallback:"display"},Anaheim:{weight:["regular"],fallback:"sans-serif"},"Wendy One":{weight:["regular"],fallback:"sans-serif"},"Stardos Stencil":{weight:["regular","700"],fallback:"display"},"Spicy Rice":{weight:["regular"],fallback:"display"},Rakkas:{weight:["regular"],fallback:"display"},"La Belle Aurore":{weight:["regular"],fallback:"handwriting"},"Secular One":{weight:["regular"],fallback:"sans-serif"},Belgrano:{weight:["regular"],fallback:"serif"},"Bungee Shade":{weight:["regular"],fallback:"display"},"Crafty Girls":{weight:["regular"],fallback:"handwriting"},Battambang:{weight:["regular","700"],fallback:"display"},Quando:{weight:["regular"],fallback:"serif"},"Mouse Memoirs":{weight:["regular"],fallback:"sans-serif"},Gugi:{weight:["regular"],fallback:"display"},"Faster One":{weight:["regular"],fallback:"display"},"B612 Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Limelight:{weight:["regular"],fallback:"display"},"Short Stack":{weight:["regular"],fallback:"handwriting"},"Mountains of Christmas":{weight:["regular","700"],fallback:"display"},"Share Tech":{weight:["regular"],fallback:"sans-serif"},Laila:{weight:["300","regular","500","600","700"],fallback:"serif"},Literata:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Cormorant SC":{weight:["300","regular","500","600","700"],fallback:"serif"},"Fjord One":{weight:["regular"],fallback:"serif"},Podkova:{weight:["regular","500","600","700","800"],fallback:"serif"},Homenaje:{weight:["regular"],fallback:"sans-serif"},"Walter Turncoat":{weight:["regular"],fallback:"handwriting"},Sen:{weight:["regular","700","800"],fallback:"sans-serif"},"Patrick Hand SC":{weight:["regular"],fallback:"handwriting"},Voces:{weight:["regular"],fallback:"display"},Qwigley:{weight:["regular"],fallback:"handwriting"},"Happy Monkey":{weight:["regular"],fallback:"display"},"Rouge Script":{weight:["regular"],fallback:"handwriting"},"Baloo Chettan 2":{weight:["regular","500","600","700","800"],fallback:"display"},NTR:{weight:["regular"],fallback:"sans-serif"},Skranji:{weight:["regular","700"],fallback:"display"},Strait:{weight:["regular"],fallback:"sans-serif"},"Dawning of a New Day":{weight:["regular"],fallback:"handwriting"},Iceland:{weight:["regular"],fallback:"display"},"Expletus Sans":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"display"},"Montserrat Subrayada":{weight:["regular","700"],fallback:"sans-serif"},Oregano:{weight:["regular","italic"],fallback:"display"},"Give You Glory":{weight:["regular"],fallback:"handwriting"},Alata:{weight:["regular"],fallback:"sans-serif"},Puritan:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Mako:{weight:["regular"],fallback:"sans-serif"},Andika:{weight:["regular"],fallback:"sans-serif"},"Cormorant Upright":{weight:["300","regular","500","600","700"],fallback:"serif"},Zeyada:{weight:["regular"],fallback:"handwriting"},"Bowlby One":{weight:["regular"],fallback:"display"},"Aref Ruqaa":{weight:["regular","700"],fallback:"serif"},Numans:{weight:["regular"],fallback:"sans-serif"},Kurale:{weight:["regular"],fallback:"serif"},Spirax:{weight:["regular"],fallback:"display"},"Clicker Script":{weight:["regular"],fallback:"handwriting"},"Waiting for the Sunrise":{weight:["regular"],fallback:"handwriting"},"Holtwood One SC":{weight:["regular"],fallback:"serif"},Katibeh:{weight:["regular"],fallback:"display"},"Carrois Gothic SC":{weight:["regular"],fallback:"sans-serif"},Livvic:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},Eater:{weight:["regular"],fallback:"display"},"Fontdiner Swanky":{weight:["regular"],fallback:"display"},"Finger Paint":{weight:["regular"],fallback:"display"},Bellefair:{weight:["regular"],fallback:"serif"},"Wire One":{weight:["regular"],fallback:"sans-serif"},Kosugi:{weight:["regular"],fallback:"sans-serif"},Charm:{weight:["regular","700"],fallback:"handwriting"},"Delius Swash Caps":{weight:["regular"],fallback:"handwriting"},"Vesper Libre":{weight:["regular","500","700","900"],fallback:"serif"},"Red Hat Text":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Gafata:{weight:["regular"],fallback:"sans-serif"},"Averia Sans Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Denk One":{weight:["regular"],fallback:"sans-serif"},Geo:{weight:["regular","italic"],fallback:"sans-serif"},Tauri:{weight:["regular"],fallback:"sans-serif"},"Cherry Swash":{weight:["regular","700"],fallback:"display"},Codystar:{weight:["300","regular"],fallback:"display"},"Cantora One":{weight:["regular"],fallback:"sans-serif"},"Encode Sans Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Nova Square":{weight:["regular"],fallback:"display"},BioRhyme:{weight:["200","300","regular","700","800"],fallback:"serif"},Timmana:{weight:["regular"],fallback:"sans-serif"},Atma:{weight:["300","regular","500","600","700"],fallback:"display"},Tienne:{weight:["regular","700","900"],fallback:"serif"},Meddon:{weight:["regular"],fallback:"handwriting"},Galada:{weight:["regular"],fallback:"display"},Padauk:{weight:["regular","700"],fallback:"sans-serif"},"Loved by the King":{weight:["regular"],fallback:"handwriting"},"The Girl Next Door":{weight:["regular"],fallback:"handwriting"},"Darker Grotesque":{weight:["300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Life Savers":{weight:["regular","700","800"],fallback:"display"},Bilbo:{weight:["regular"],fallback:"handwriting"},Shanti:{weight:["regular"],fallback:"sans-serif"},"Headland One":{weight:["regular"],fallback:"serif"},"Euphoria Script":{weight:["regular"],fallback:"handwriting"},Imprima:{weight:["regular"],fallback:"sans-serif"},"Aguafina Script":{weight:["regular"],fallback:"handwriting"},"Baloo 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Over the Rainbow":{weight:["regular"],fallback:"handwriting"},Sarpanch:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Orienta:{weight:["regular"],fallback:"sans-serif"},"Spectral SC":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Port Lligat Sans":{weight:["regular"],fallback:"sans-serif"},Artifika:{weight:["regular"],fallback:"serif"},Ledger:{weight:["regular"],fallback:"serif"},Ruluko:{weight:["regular"],fallback:"sans-serif"},Sail:{weight:["regular"],fallback:"display"},Alatsi:{weight:["regular"],fallback:"sans-serif"},"Sonsie One":{weight:["regular"],fallback:"display"},"Bilbo Swash Caps":{weight:["regular"],fallback:"handwriting"},Slackey:{weight:["regular"],fallback:"display"},Salsa:{weight:["regular"],fallback:"display"},Rationale:{weight:["regular"],fallback:"sans-serif"},"Hepta Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Nosifer:{weight:["regular"],fallback:"display"},Dekko:{weight:["regular"],fallback:"handwriting"},"Encode Sans Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Lily Script One":{weight:["regular"],fallback:"display"},"Zilla Slab Highlight":{weight:["regular","700"],fallback:"display"},Dokdo:{weight:["regular"],fallback:"handwriting"},"Kotta One":{weight:["regular"],fallback:"serif"},"Macondo Swash Caps":{weight:["regular"],fallback:"display"},"Encode Sans Semi Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Prosto One":{weight:["regular"],fallback:"display"},"Trade Winds":{weight:["regular"],fallback:"display"},Farsan:{weight:["regular"],fallback:"display"},Manuale:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},Creepster:{weight:["regular"],fallback:"display"},"Medula One":{weight:["regular"],fallback:"display"},Ranchers:{weight:["regular"],fallback:"display"},"David Libre":{weight:["regular","500","700"],fallback:"serif"},"Libre Barcode 39":{weight:["regular"],fallback:"display"},"Vampiro One":{weight:["regular"],fallback:"display"},Metamorphous:{weight:["regular"],fallback:"display"},"Bubbler One":{weight:["regular"],fallback:"sans-serif"},"Nova Mono":{weight:["regular"],fallback:"monospace"},"Princess Sofia":{weight:["regular"],fallback:"handwriting"},"Just Me Again Down Here":{weight:["regular"],fallback:"handwriting"},Notable:{weight:["regular"],fallback:"sans-serif"},"Fascinate Inline":{weight:["regular"],fallback:"display"},Vibur:{weight:["regular"],fallback:"handwriting"},"Vollkorn SC":{weight:["regular","600","700","900"],fallback:"serif"},Crushed:{weight:["regular"],fallback:"display"},Sumana:{weight:["regular","700"],fallback:"serif"},Elsie:{weight:["regular","900"],fallback:"display"},Ranga:{weight:["regular","700"],fallback:"display"},"Port Lligat Slab":{weight:["regular"],fallback:"serif"},Amarante:{weight:["regular"],fallback:"display"},"Ruslan Display":{weight:["regular"],fallback:"display"},"Germania One":{weight:["regular"],fallback:"display"},"Sirin Stencil":{weight:["regular"],fallback:"display"},Pavanam:{weight:["regular"],fallback:"sans-serif"},Peralta:{weight:["regular"],fallback:"display"},"Scope One":{weight:["regular"],fallback:"serif"},Jomolhari:{weight:["regular"],fallback:"serif"},Kranky:{weight:["regular"],fallback:"display"},"Yatra One":{weight:["regular"],fallback:"display"},"Jacques Francois Shadow":{weight:["regular"],fallback:"display"},Ribeye:{weight:["regular"],fallback:"display"},"Averia Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Saira Stencil One":{weight:["regular"],fallback:"display"},"Cherry Cream Soda":{weight:["regular"],fallback:"display"},"Mukta Mahee":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Srisakdi:{weight:["regular","700"],fallback:"display"},Trochut:{weight:["regular","italic","700"],fallback:"display"},Coiny:{weight:["regular"],fallback:"display"},"Ma Shan Zheng":{weight:["regular"],fallback:"handwriting"},Asul:{weight:["regular","700"],fallback:"sans-serif"},Ewert:{weight:["regular"],fallback:"display"},Arya:{weight:["regular","700"],fallback:"sans-serif"},"Hanalei Fill":{weight:["regular"],fallback:"display"},Grenze:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Ribeye Marrow":{weight:["regular"],fallback:"display"},"IM Fell English SC":{weight:["regular"],fallback:"serif"},"Chau Philomene One":{weight:["regular","italic"],fallback:"sans-serif"},Sarina:{weight:["regular"],fallback:"display"},Chicle:{weight:["regular"],fallback:"display"},Manjari:{weight:["100","regular","700"],fallback:"sans-serif"},Montaga:{weight:["regular"],fallback:"serif"},Italiana:{weight:["regular"],fallback:"serif"},Akronim:{weight:["regular"],fallback:"display"},Habibi:{weight:["regular"],fallback:"serif"},Englebert:{weight:["regular"],fallback:"sans-serif"},Dynalight:{weight:["regular"],fallback:"display"},"Mate SC":{weight:["regular"],fallback:"serif"},"Henny Penny":{weight:["regular"],fallback:"display"},"Sree Krushnadevaraya":{weight:["regular"],fallback:"serif"},Engagement:{weight:["regular"],fallback:"handwriting"},Girassol:{weight:["regular"],fallback:"display"},"Kite One":{weight:["regular"],fallback:"sans-serif"},"Ibarra Real Nova":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},Gaegu:{weight:["300","regular","700"],fallback:"handwriting"},Fenix:{weight:["regular"],fallback:"serif"},"Pirata One":{weight:["regular"],fallback:"display"},"Tulpen One":{weight:["regular"],fallback:"display"},"IM Fell Great Primer":{weight:["regular","italic"],fallback:"serif"},Chathura:{weight:["100","300","regular","700","800"],fallback:"sans-serif"},Unlock:{weight:["regular"],fallback:"display"},"Nova Round":{weight:["regular"],fallback:"display"},Sura:{weight:["regular","700"],fallback:"serif"},"Kumar One":{weight:["regular"],fallback:"display"},Baskervville:{weight:["regular","italic"],fallback:"serif"},Quintessential:{weight:["regular"],fallback:"handwriting"},Milonga:{weight:["regular"],fallback:"display"},Bayon:{weight:["regular"],fallback:"display"},"Be Vietnam":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},"Crimson Pro":{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},B612:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"League Script":{weight:["regular"],fallback:"handwriting"},"Inknut Antiqua":{weight:["300","regular","500","600","700","800","900"],fallback:"serif"},Mogra:{weight:["regular"],fallback:"display"},"Mystery Quest":{weight:["regular"],fallback:"display"},"Monsieur La Doulaise":{weight:["regular"],fallback:"handwriting"},Vibes:{weight:["regular"],fallback:"display"},Rosarivo:{weight:["regular","italic"],fallback:"serif"},"Uncial Antiqua":{weight:["regular"],fallback:"display"},Dorsa:{weight:["regular"],fallback:"sans-serif"},Almendra:{weight:["regular","italic","700","700italic"],fallback:"serif"},Diplomata:{weight:["regular"],fallback:"display"},Simonetta:{weight:["regular","italic","900","900italic"],fallback:"display"},"New Rocker":{weight:["regular"],fallback:"display"},Snippet:{weight:["regular"],fallback:"sans-serif"},Petrona:{weight:["regular"],fallback:"serif"},Ramaraja:{weight:["regular"],fallback:"serif"},"Averia Gruesa Libre":{weight:["regular"],fallback:"display"},"Baloo Bhaina 2":{weight:["regular","500","600","700","800"],fallback:"display"},Kodchasan:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Meera Inimai":{weight:["regular"],fallback:"sans-serif"},Flamenco:{weight:["300","regular"],fallback:"display"},Khmer:{weight:["regular"],fallback:"display"},Paprika:{weight:["regular"],fallback:"display"},Koulen:{weight:["regular"],fallback:"display"},Mansalva:{weight:["regular"],fallback:"handwriting"},"Lovers Quarrel":{weight:["regular"],fallback:"handwriting"},Condiment:{weight:["regular"],fallback:"handwriting"},"Baloo Thambi 2":{weight:["regular","500","600","700","800"],fallback:"display"},Stoke:{weight:["300","regular"],fallback:"serif"},Barrio:{weight:["regular"],fallback:"display"},Barriecito:{weight:["regular"],fallback:"display"},"Donegal One":{weight:["regular"],fallback:"serif"},Kavoon:{weight:["regular"],fallback:"display"},"Big Shoulders Display":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Mina:{weight:["regular","700"],fallback:"sans-serif"},"Big Shoulders Text":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Prociono:{weight:["regular"],fallback:"serif"},"Text Me One":{weight:["regular"],fallback:"sans-serif"},"IM Fell French Canon":{weight:["regular","italic"],fallback:"serif"},"Overlock SC":{weight:["regular"],fallback:"display"},Cagliostro:{weight:["regular"],fallback:"sans-serif"},"Marko One":{weight:["regular"],fallback:"serif"},"Swanky and Moo Moo":{weight:["regular"],fallback:"handwriting"},"Maiden Orange":{weight:["regular"],fallback:"display"},Blinker:{weight:["100","200","300","regular","600","700","800","900"],fallback:"sans-serif"},Miniver:{weight:["regular"],fallback:"display"},Angkor:{weight:["regular"],fallback:"display"},Chango:{weight:["regular"],fallback:"display"},Thasadith:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Modak:{weight:["regular"],fallback:"display"},Junge:{weight:["regular"],fallback:"serif"},"Stint Ultra Condensed":{weight:["regular"],fallback:"display"},Stalemate:{weight:["regular"],fallback:"handwriting"},Tillana:{weight:["regular","500","600","700","800"],fallback:"handwriting"},UnifrakturCook:{weight:["700"],fallback:"display"},"Rum Raisin":{weight:["regular"],fallback:"sans-serif"},Farro:{weight:["300","regular","500","700"],fallback:"sans-serif"},"Delius Unicase":{weight:["regular","700"],fallback:"handwriting"},Sancreek:{weight:["regular"],fallback:"display"},Julee:{weight:["regular"],fallback:"handwriting"},Margarine:{weight:["regular"],fallback:"display"},"Lakki Reddy":{weight:["regular"],fallback:"handwriting"},"Stint Ultra Expanded":{weight:["regular"],fallback:"display"},"Bigshot One":{weight:["regular"],fallback:"display"},Griffy:{weight:["regular"],fallback:"display"},Moul:{weight:["regular"],fallback:"display"},"Diplomata SC":{weight:["regular"],fallback:"display"},Oxanium:{weight:["200","300","regular","500","600","700","800"],fallback:"display"},Offside:{weight:["regular"],fallback:"display"},"Fira Code":{weight:["300","regular","500","600","700"],fallback:"monospace"},"Eagle Lake":{weight:["regular"],fallback:"handwriting"},Flavors:{weight:["regular"],fallback:"display"},"Londrina Outline":{weight:["regular"],fallback:"display"},Tomorrow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Nokora:{weight:["regular","700"],fallback:"serif"},Calistoga:{weight:["regular"],fallback:"display"},Gotu:{weight:["regular"],fallback:"sans-serif"},"Della Respira":{weight:["regular"],fallback:"serif"},"Cormorant Unicase":{weight:["300","regular","500","600","700"],fallback:"serif"},"Libre Caslon Text":{weight:["regular","italic","700"],fallback:"serif"},Buda:{weight:["300"],fallback:"display"},Asar:{weight:["regular"],fallback:"serif"},"Poller One":{weight:["regular"],fallback:"display"},"Autour One":{weight:["regular"],fallback:"display"},"Nova Slim":{weight:["regular"],fallback:"display"},Underdog:{weight:["regular"],fallback:"display"},Redressed:{weight:["regular"],fallback:"handwriting"},"Yeon Sung":{weight:["regular"],fallback:"display"},Content:{weight:["regular","700"],fallback:"display"},Kantumruy:{weight:["300","regular","700"],fallback:"sans-serif"},"Baloo Paaji 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Jim Nightshade":{weight:["regular"],fallback:"handwriting"},"Glass Antiqua":{weight:["regular"],fallback:"display"},"Snowburst One":{weight:["regular"],fallback:"display"},"Gamja Flower":{weight:["regular"],fallback:"handwriting"},Revalia:{weight:["regular"],fallback:"display"},"Metal Mania":{weight:["regular"],fallback:"display"},Charmonman:{weight:["regular","700"],fallback:"handwriting"},"IM Fell DW Pica SC":{weight:["regular"],fallback:"serif"},Inika:{weight:["regular","700"],fallback:"serif"},"Elsie Swash Caps":{weight:["regular","900"],fallback:"display"},Wellfleet:{weight:["regular"],fallback:"display"},"Chela One":{weight:["regular"],fallback:"display"},"Rhodium Libre":{weight:["regular"],fallback:"serif"},"Mrs Sheppards":{weight:["regular"],fallback:"handwriting"},"Sedgwick Ave Display":{weight:["regular"],fallback:"handwriting"},"Modern Antiqua":{weight:["regular"],fallback:"display"},"Ravi Prakash":{weight:["regular"],fallback:"display"},Galdeano:{weight:["regular"],fallback:"sans-serif"},Oldenburg:{weight:["regular"],fallback:"display"},Arbutus:{weight:["regular"],fallback:"display"},"Poor Story":{weight:["regular"],fallback:"display"},"Hi Melody":{weight:["regular"],fallback:"handwriting"},"Joti One":{weight:["regular"],fallback:"display"},"Nova Flat":{weight:["regular"],fallback:"display"},"ZCOOL QingKe HuangYou":{weight:["regular"],fallback:"display"},"Linden Hill":{weight:["regular","italic"],fallback:"serif"},Bokor:{weight:["regular"],fallback:"display"},"Courier Prime":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Trykker:{weight:["regular"],fallback:"serif"},KoHo:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Song Myung":{weight:["regular"],fallback:"serif"},Ruthie:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended Text":{weight:["regular"],fallback:"display"},Chilanka:{weight:["regular"],fallback:"handwriting"},Fahkwang:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Felipa:{weight:["regular"],fallback:"handwriting"},Monofett:{weight:["regular"],fallback:"display"},"Odibee Sans":{weight:["regular"],fallback:"display"},Smythe:{weight:["regular"],fallback:"display"},"Major Mono Display":{weight:["regular"],fallback:"monospace"},Jomhuria:{weight:["regular"],fallback:"display"},"Croissant One":{weight:["regular"],fallback:"display"},Dangrek:{weight:["regular"],fallback:"display"},"Original Surfer":{weight:["regular"],fallback:"display"},Bahiana:{weight:["regular"],fallback:"display"},Gorditas:{weight:["regular","700"],fallback:"display"},"Odor Mean Chey":{weight:["regular"],fallback:"display"},Iceberg:{weight:["regular"],fallback:"display"},MedievalSharp:{weight:["regular"],fallback:"display"},"Caesar Dressing":{weight:["regular"],fallback:"display"},Sahitya:{weight:["regular","700"],fallback:"serif"},Stylish:{weight:["regular"],fallback:"sans-serif"},"Nova Cut":{weight:["regular"],fallback:"display"},"Purple Purse":{weight:["regular"],fallback:"display"},Devonshire:{weight:["regular"],fallback:"handwriting"},Smokum:{weight:["regular"],fallback:"display"},"Almendra Display":{weight:["regular"],fallback:"display"},Galindo:{weight:["regular"],fallback:"display"},Preahvihear:{weight:["regular"],fallback:"display"},Siemreap:{weight:["regular"],fallback:"display"},"Irish Grover":{weight:["regular"],fallback:"display"},Gupter:{weight:["regular","500","700"],fallback:"serif"},"Meie Script":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128":{weight:["regular"],fallback:"display"},"Keania One":{weight:["regular"],fallback:"display"},"GFS Neohellenic":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Cute Font":{weight:["regular"],fallback:"display"},"Londrina Shadow":{weight:["regular"],fallback:"display"},"East Sea Dokdo":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended":{weight:["regular"],fallback:"display"},Risque:{weight:["regular"],fallback:"display"},Lancelot:{weight:["regular"],fallback:"display"},"Libre Caslon Display":{weight:["regular"],fallback:"serif"},Plaster:{weight:["regular"],fallback:"display"},"Goblin One":{weight:["regular"],fallback:"display"},Asset:{weight:["regular"],fallback:"display"},"Almendra SC":{weight:["regular"],fallback:"serif"},"Jacques Francois":{weight:["regular"],fallback:"serif"},"Jolly Lodger":{weight:["regular"],fallback:"display"},"Lexend Exa":{weight:["regular"],fallback:"sans-serif"},Molle:{weight:["italic"],fallback:"handwriting"},Kavivanar:{weight:["regular"],fallback:"handwriting"},"Kirang Haerang":{weight:["regular"],fallback:"display"},Piedra:{weight:["regular"],fallback:"display"},"Atomic Age":{weight:["regular"],fallback:"display"},"Kulim Park":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Libre Barcode 39 Text":{weight:["regular"],fallback:"display"},"IM Fell Great Primer SC":{weight:["regular"],fallback:"serif"},"Tenali Ramakrishna":{weight:["regular"],fallback:"sans-serif"},Butcherman:{weight:["regular"],fallback:"display"},"Dr Sugiyama":{weight:["regular"],fallback:"handwriting"},"Geostar Fill":{weight:["regular"],fallback:"display"},Romanesco:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128 Text":{weight:["regular"],fallback:"display"},Sunshiney:{weight:["regular"],fallback:"handwriting"},"Kumar One Outline":{weight:["regular"],fallback:"display"},Peddana:{weight:["regular"],fallback:"serif"},"Baloo Bhai 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Kdam Thmor":{weight:["regular"],fallback:"display"},"Ruge Boogie":{weight:["regular"],fallback:"handwriting"},Freehand:{weight:["regular"],fallback:"display"},Bonbon:{weight:["regular"],fallback:"handwriting"},Caladea:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Single Day":{weight:["regular"],fallback:"display"},"Baloo Tamma 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Inria Sans":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Hanalei:{weight:["regular"],fallback:"display"},"Emblema One":{weight:["regular"],fallback:"display"},"Seymour One":{weight:["regular"],fallback:"sans-serif"},"Miss Fajardose":{weight:["regular"],fallback:"handwriting"},Sevillana:{weight:["regular"],fallback:"display"},"Inria Serif":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Bungee Outline":{weight:["regular"],fallback:"display"},Metal:{weight:["regular"],fallback:"display"},"IM Fell Double Pica SC":{weight:["regular"],fallback:"serif"},"Lexend Giga":{weight:["regular"],fallback:"sans-serif"},"ZCOOL KuaiLe":{weight:["regular"],fallback:"display"},Astloch:{weight:["regular","700"],fallback:"display"},"Mr Bedfort":{weight:["regular"],fallback:"handwriting"},Macondo:{weight:["regular"],fallback:"display"},"Butterfly Kids":{weight:["regular"],fallback:"handwriting"},"Supermercado One":{weight:["regular"],fallback:"display"},Fruktur:{weight:["regular"],fallback:"display"},Taprom:{weight:["regular"],fallback:"display"},Lacquer:{weight:["regular"],fallback:"display"},"Black And White Picture":{weight:["regular"],fallback:"sans-serif"},"Bigelow Rules":{weight:["regular"],fallback:"display"},"Beth Ellen":{weight:["regular"],fallback:"handwriting"},"Sofadi One":{weight:["regular"],fallback:"display"},Combo:{weight:["regular"],fallback:"display"},Bellota:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Federant:{weight:["regular"],fallback:"display"},"Miltonian Tattoo":{weight:["regular"],fallback:"display"},"Londrina Sketch":{weight:["regular"],fallback:"display"},Suwannaphum:{weight:["regular"],fallback:"display"},"Bungee Hairline":{weight:["regular"],fallback:"display"},Fascinate:{weight:["regular"],fallback:"display"},"Erica One":{weight:["regular"],fallback:"display"},"Nova Oval":{weight:["regular"],fallback:"display"},"Baloo Da 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Sulphur Point":{weight:["300","regular","700"],fallback:"sans-serif"},Aubrey:{weight:["regular"],fallback:"display"},Gidugu:{weight:["regular"],fallback:"sans-serif"},"Bellota Text":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Nova Script":{weight:["regular"],fallback:"display"},Miltonian:{weight:["regular"],fallback:"display"},Gayathri:{weight:["100","regular","700"],fallback:"sans-serif"},Geostar:{weight:["regular"],fallback:"display"},Moulpali:{weight:["regular"],fallback:"display"},"Passero One":{weight:["regular"],fallback:"display"},"Stalinist One":{weight:["regular"],fallback:"display"},"Long Cang":{weight:["regular"],fallback:"handwriting"},Solway:{weight:["300","regular","500","700","800"],fallback:"serif"},"Zhi Mang Xing":{weight:["regular"],fallback:"handwriting"},"Baloo Tammudu 2":{weight:["regular","500","600","700","800"],fallback:"display"},Chenla:{weight:["regular"],fallback:"display"},Suravaram:{weight:["regular"],fallback:"serif"},Fasthand:{weight:["regular"],fallback:"serif"},Kenia:{weight:["regular"],fallback:"display"},Dhurjati:{weight:["regular"],fallback:"sans-serif"},"Lexend Tera":{weight:["regular"],fallback:"sans-serif"},"BioRhyme Expanded":{weight:["200","300","regular","700","800"],fallback:"serif"},"Turret Road":{weight:["200","300","regular","500","700","800"],fallback:"display"},Warnes:{weight:["regular"],fallback:"display"},"Viaoda Libre":{weight:["regular"],fallback:"display"},"Lexend Mega":{weight:["regular"],fallback:"sans-serif"},Bahianita:{weight:["regular"],fallback:"display"},Manrope:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Lexend Zetta":{weight:["regular"],fallback:"sans-serif"},"Lexend Peta":{weight:["regular"],fallback:"sans-serif"}});function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var je=function(e){f()(a,e);var t=Oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.setAttributes,i=t.attributes,r=t.device,n=void 0===r?"":r,c=t.showFontSize,s=void 0!==c&&c,g=t.showFontFamily,b=void 0!==g&&g,u=t.showFontWeight,d=void 0!==u&&u,p=t.showTextTransform,f=void 0!==p&&p,h=t.showLineHeight,m=void 0!==h&&h,k=t.showLetterSpacing,y=void 0!==k&&k,v=t.disableAdvancedToggle,w=void 0!==v&&v,O=t.fontSizePlaceholder,j=void 0===O?"17":O,_=[{value:"",label:Object(T.__)("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(we).slice(0,20).forEach((function(e){_.push({value:e,label:e})})),_.push({value:"other",label:Object(T.__)("Other","generateblocks")});var S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],B=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"uppercase",label:Object(T.__)("Uppercase","generateblocks")},{value:"lowercase",label:Object(T.__)("Lowercase","generateblocks")},{value:"capitalize",label:Object(T.__)("Capitalize","generateblocks")},{value:"initial",label:Object(T.__)("Normal","generateblocks")}];void 0!==we[i.fontFamily]&&void 0!==we[i.fontFamily].weight&&(S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")}],we[i.fontFamily].weight.filter((function(e){var t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e)})).forEach((function(e){S.push({value:e,label:e})})));var D=function(e){"other"===e&&(e="");i.fontWeight;a({fontFamily:e}),i.fontWeight&&Object.values(S).indexOf(i.fontWeight),void 0!==we[e]?a({googleFont:!0,fontFamilyFallback:we[e].fallback,googleFontVariants:we[e].weight.join(", ")}):a({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})},R=function(e){a({fontFamily:e.target.value}),D(e.target.value)},x=function(e,t){return i[e+t]},M=function(e,t){return e+t},z=i.showAdvancedTypography;w&&(z=!0);var L=j;"Tablet"===n&&i.fontSize&&(L=i.fontSize),"Mobile"===n&&(i.fontSizeTablet?L=i.fontSizeTablet:i.fontSize&&(L=i.fontSize));var P="";return"Tablet"===n&&i.lineHeight&&(P=i.lineHeight),"Mobile"===n&&(i.lineHeightTablet?P=i.lineHeightTablet:i.lineHeight&&(P=i.lineHeight)),Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-gblocks-typography-weight-transform"},d&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Weight","generateblocks"),value:i.fontWeight,options:S,onChange:function(e){a({fontWeight:e})},className:"components-base-control"}),f&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Transform","generateblocks"),value:i.textTransform,options:B,onChange:function(e){a({textTransform:e})},className:"components-base-control"})),!w&&Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Show Advanced Typography","generateblocks"),checked:!!i.showAdvancedTypography,onChange:function(e){a({showAdvancedTypography:e})}}),b&&z&&Object(l.createElement)(C.BaseControl,{className:"gblocks-font-family-shortcuts"},Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Font Family","generateblocks")),Object(l.createElement)("select",{className:"components-select-control__input components-select-control__input--gblocks-fontfamily",onChange:R,onBlur:R},_.map((function(e,t){return Object(l.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))),b&&z&&Object(l.createElement)(C.TextControl,{value:i.fontFamily,placeholder:Object(T.__)("Enter font name","generateblocks"),onChange:function(e){return D(e)}}),b&&""!==i.fontFamily&&z&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Google Font","generateblocks"),checked:!!i.googleFont,onChange:function(e){a({googleFont:e}),e&&void 0!==we[i.fontFamily]&&a({fontFamilyFallback:we[i.fontFamily].fallback,googleFontVariants:we[i.fontFamily].weight.join(", ")})}}),!!i.googleFont&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Variants","generateblocks"),value:i.googleFontVariants,placeholder:Object(T.__)("300, 400, 400i","generateblocks"),onChange:function(e){a({googleFontVariants:e})}})),b&&z&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Font Family Fallback","generateblocks"),value:i.fontFamilyFallback,placeholder:Object(T.__)("sans-serif","generateblocks"),onChange:function(e){a({fontFamilyFallback:e})}}),s&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Font Size","generateblocks"),value:i.fontSizeUnit,units:["px","em","%"],onClick:function(e){a({fontSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("fontSize",n)||"",placeholder:L,onChange:function(e){var t=M("fontSize",n);a(o()({},t,parseFloat(e)))},min:1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("fontSize",n);a(o()({},t,e.props.defaultFontSize))}},Object(T.__)("Reset","generateblocks")))),m&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Line Height","generateblocks"),value:i.lineHeightUnit,units:["px","em","%"],onClick:function(e){a({lineHeightUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("lineHeight",n)||0===x("lineHeight",n)?x("lineHeight",n):"",placeholder:P,onChange:function(e){var t=M("lineHeight",n);a(o()({},t,e))},onBlur:function(){var e=M("lineHeight",n);a(o()({},e,parseFloat(x("lineHeight",n))))},onClick:function(e){e.currentTarget.focus()},min:0,step:.1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("lineHeight",n);a(o()({},t,e.props.defaultLineHeight))}},Object(T.__)("Reset","generateblocks")))),y&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Letter Spacing","generateblocks"),value:"em",units:["em"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("letterSpacing",n)||"",placeholder:"0.01",onChange:function(e){var t=M("letterSpacing",n);a(o()({},t,e))},onBlur:function(){var e=M("letterSpacing",n);a(o()({},e,parseFloat(x("letterSpacing",n))))},onClick:function(e){e.currentTarget.focus()},min:-1,step:.01,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("letterSpacing",n);a(o()({},t,e.props.defaultLetterSpacing))}},Object(T.__)("Reset","generateblocks")))))}}]),a}(l.Component);a(39);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ce=function(e){f()(a,e);var t=Te(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrGradient,n=t.attrGradientDirection,c=t.attrGradientColorOne,s=t.attrGradientColorOneOpacity,g=t.attrGradientColorStopOne,b=t.attrGradientColorTwo,u=t.attrGradientColorTwoOpacity,d=t.attrGradientColorStopTwo,p=t.defaultColorOne,f=t.defaultColorTwo,h=a.gradientSelector,m="element"===h?Object(T.__)("Displays behind the background image.","generateblocks"):Object(T.__)("Displays in front of the background image.","generateblocks");return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Use Gradient","generateblocks"),checked:!!a[r],onChange:function(t){i(o()({},e.props.attrGradient,t))}}),!!a[r]&&Object(l.createElement)(l.Fragment,null,void 0!==h&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Selector","generateblocks"),help:m,value:h,options:[{label:Object(T.__)("Element","generateblocks"),value:"element"},{label:Object(T.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){i({gradientSelector:e})}}),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Direction","generateblocks")),Object(l.createElement)(C.RangeControl,{value:a[n]?a[n]:1,onChange:function(e){i(o()({},n,e))},min:0,max:360,step:1,initialPosition:90})),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color One","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[c],alpha:!0,valueOpacity:a[s],attrOpacity:"gradientColorOneOpacity",onChange:function(e){return i(o()({},c,e))},onOpacityChange:function(e){return i(o()({},s,e))},onClear:function(){return i(o()({},c,p))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[g]||0===a[g]?a[g]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},g,e))},onBlur:function(){(a[g]||0===a[g])&&i(o()({},g,parseFloat(a[g])))},onClick:function(e){e.currentTarget.focus()}}))),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color Two","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[b],alpha:!0,valueOpacity:a[u],attrOpacity:"gradientColorTwoOpacity",onChange:function(e){return i(o()({},b,e))},onOpacityChange:function(e){return i(o()({},u,e))},onClear:function(){return i(o()({},b,f))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[d]||0===a[d]?a[d]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},d,e))},onBlur:function(){(a[d]||0===a[d])&&i(o()({},d,parseFloat(a[d])))},onClick:function(e){e.currentTarget.focus()}})))))}}]),a}(l.Component),_e=a(25),Se=a.n(_e);function Be(e){return Se.a.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}function De(e,t,a,l,i){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+i+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+i+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+i+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+i+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}function Ee(e,t){var a=t.attributes,l=a.backgroundColor,i=a.backgroundColorOpacity,r=a.bgImage,n=a.gradient,o=a.bgOptions,c=a.gradientColorOne,s=a.gradientColorOneOpacity,g=a.gradientColorTwo,b=a.gradientColorTwoOpacity,u=a.gradientColorStopOne,d=a.gradientColorStopTwo,p=a.gradientDirection,f="";if(n){var h="",m="";c&&""!==u&&(h=" "+u+"%"),g&&""!==d&&(m=" "+d+"%"),f="linear-gradient("+p+"deg, "+he(c,s)+h+", "+he(g,b)+m+")"}if("gradient"===e)return f;var k=!1,y=he(l,i);if(r){var v=r.image.url;v=Object(_.applyFilters)("generateblocks.editor.bgImageURL",v,t),"element"===o.selector&&(y||n)&&void 0!==o.overlay&&o.overlay?n?k=f+", url("+v+")":y&&(k="linear-gradient(0deg, "+y+", "+y+"), url("+v+")"):k="url("+v+")"}return k}function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var xe=function(e){f()(a,e);var t=Re(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.width,n=e.outerContainer,o=e.innerContainer,c=e.containerWidth,s=e.minHeight,g=e.minHeightUnit,b=e.paddingTop,u=e.paddingRight,d=e.paddingBottom,p=e.paddingLeft,f=e.paddingUnit,h=e.marginTop,m=e.marginRight,k=e.marginBottom,y=e.marginLeft,v=e.marginUnit,w=e.borderSizeTop,O=e.borderSizeRight,j=e.borderSizeBottom,T=e.borderSizeLeft,C=e.borderRadiusTopRight,S=e.borderRadiusBottomRight,B=e.borderRadiusBottomLeft,D=e.borderRadiusTopLeft,E=e.borderRadiusUnit,R=e.borderColor,x=e.borderColorOpacity,L=e.backgroundColor,P=e.backgroundColorOpacity,F=e.gradient,A=e.gradientSelector,U=e.textColor,H=e.linkColor,N=e.linkColorHover,I=e.bgImage,G=e.bgOptions,V=e.verticalAlignment,q=e.zindex,W=e.innerZindex,Z=e.alignment,K=e.fontFamily,J=e.fontFamilyFallback,Y=e.fontWeight,Q=e.fontSize,X=e.fontSizeUnit,$=e.textTransform,ee=e.shapeDividers,te=c;te||(te=generateBlocksDefaults.container.containerWidth);var ae="";K&&J&&(ae=", "+J);var le=!!I,ie=Ee("image",this.props),re=Ee("gradient",this.props),ne=W,oe=[];return oe[".gb-container-"+a]=[{"background-color":he(L,P),color:U,"border-radius":De(D,C,S,B,E),margin:De(h,m,k,y,v),"z-index":q,"text-align":Z,"font-family":K+ae,"font-weight":Y,"text-transform":$,"font-size":z(Q,X),"min-height":z(s,g)}],le&&"element"===G.selector&&ie?oe[".gb-container-"+a].push({"background-image":ie,"background-size":G.size,"background-position":G.position,"background-repeat":G.repeat,"background-attachment":G.attachment}):F&&"element"===A&&oe[".gb-container-"+a].push({"background-image":re}),(le&&"pseudo-element"===G.selector||q||F&&"pseudo-element"===A)&&oe[".gb-container-"+a].push({position:"relative"}),(le&&"pseudo-element"===G.selector||F&&"pseudo-element"===A)&&(oe[".gb-container-"+a].push({overflow:"hidden"}),oe[".gb-container-"+a+" .block-list-appender"]=[{"z-index":10}],ne||(ne=1)),oe[".editor-styles-wrapper .gb-container-"+a+" h1,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h2,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h3,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h4,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h5,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h6"]=[{color:U}],(w||O||j||T)&&oe[".gb-container-"+a].push({"border-width":De(w,O,j,T,"px"),"border-style":"solid","border-color":he(R,x)}),s&&!i&&oe[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":V}),i&&(oe[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":V}),oe[".block-editor-block-list__layout > #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":De(D,C,S,B,E)}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie="",re="inline-block";d&&p&&(ie=", "+p);var ne=i+".gb-headline-"+a,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:c,"font-family":d+ie,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:c}],V&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":he(n,o),color:c,display:!!ae&&re,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:s}],oe[ne+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],oe[ne+" .gb-highlight"]=[{color:u}],oe["#block-"+t]=[{display:!!ae&&"inline-flex"}],oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" +Object(T.sprintf)(Object(T.__)("Shape %s","generateblocks"),i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.Dropdown,{renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Edit Shape","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-shape-dropdown",isSecondary:!t||void 0,isPrimary:!!t||void 0,icon:"admin-tools",onClick:a,"aria-expanded":t}))},renderContent:function(){return Object(l.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.BaseControl,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map((function(e,t){var i=generateBlocksInfo.svgShapes[e].svgs;return Object(l.createElement)(C.PanelBody,{title:generateBlocksInfo.svgShapes[e].group,initialOpen:i.hasOwnProperty(ge[a].shape),key:t},Object(l.createElement)(C.PanelRow,null,Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("ul",{className:"gblocks-icon-chooser gblocks-shape-chooser"},Object.keys(i).map((function(e,t){return Object(l.createElement)("li",{key:"editor-pblock-types-list-item-".concat(t)},Object(l.createElement)(C.Tooltip,{text:i[e].label},Object(l.createElement)(C.Button,{className:w()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":ge[a].shape===e}),onClick:function(){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{shape:e}),n({shapeDividers:t})}},"string"==typeof i[e].icon?Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:Be(i[e].icon)}})):Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},i[e].icon)))))}))))))}))),Object(l.createElement)(ke,{label:Object(T.__)("Color","generateblocks"),value:ge[a].color,alpha:!0,valueOpacity:ge[a].colorOpacity,onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{color:e}),n({shapeDividers:t})},onOpacityChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{colorOpacity:e}),n({shapeDividers:t})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Location","generateblocks"),value:ge[a].location,options:[{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{location:e}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].height?ge[a].height:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{height:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].width?ge[a].width:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{width:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Flip Horizontally","generateblocks"),checked:!!ge[a].flipHorizontally,onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{flipHorizontally:e}),n({shapeDividers:t})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("z-index","generateblocks"),type:"number",min:"0",value:ge[a].zindex||0===ge[a].zindex?ge[a].zindex:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{zindex:e}),n({shapeDividers:t})},onBlur:function(){var e=pe()(ge);e[a]=Ie(Ie({},e[a]),{},{zindex:parseFloat(ge[a].zindex)}),n({shapeDividers:e})},onClick:function(e){e.currentTarget.focus()}})),"Tablet"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].heightTablet?ge[a].heightTablet:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{heightTablet:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].widthTablet?ge[a].widthTablet:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{widthTablet:parseFloat(e)}),n({shapeDividers:t})}})),"Mobile"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].heightMobile?ge[a].heightMobile:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{heightMobile:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].widthMobile?ge[a].widthMobile:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{widthMobile:parseFloat(e)}),n({shapeDividers:t})}})))}})),"Desktop"===t.getDeviceType()&&Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Delete Shape","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-remove-shape",onClick:function(){window.confirm(Object(T.__)("This will permanently delete this shape.","generateblocks"))&&function(e){var t=pe()(ge);t.splice(e,1),n({shapeDividers:t})}(a)},icon:"no-alt"}))))})),Object(l.createElement)("div",{className:"gblocks-add-new-shape"},Object(l.createElement)(C.Button,{isSecondary:!0,onClick:function(){var e=pe()(ge);e.push({shape:generateBlocksStyling.container.shapeDividers.shape,color:generateBlocksStyling.container.shapeDividers.color,colorOpacity:generateBlocksStyling.container.shapeDividers.colorOpacity,location:generateBlocksStyling.container.shapeDividers.location,height:generateBlocksStyling.container.shapeDividers.height,heightTablet:generateBlocksStyling.container.shapeDividers.heightTablet,heightMobile:generateBlocksStyling.container.shapeDividers.heightMobile,width:generateBlocksStyling.container.shapeDividers.width,widthTablet:generateBlocksStyling.container.shapeDividers.widthTablet,widthMobile:generateBlocksStyling.container.shapeDividers.widthMobile,flipHorizontally:generateBlocksStyling.container.shapeDividers.flipHorizontally,zindex:generateBlocksStyling.container.shapeDividers.zindex}),n({shapeDividers:e})}.bind(this)},Object(T.__)("Add Shape","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","containerShapeDivider",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),initialOpen:!1,icon:j("documentation"),className:"gblocks-panel-label",id:"containerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/container/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","containerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(Ve,"-"),n({anchor:e})}})),Object(l.createElement)(xe,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(ze,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Pe,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Ae,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(He,this.props)),re&&ne&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+re.replace(/ /g,"+")+me}),Object(l.createElement)(fe,{tagName:Object(_.applyFilters)("generateblocks.frontend.containerTagName",d,i),htmlAttrs:De},Object(_.applyFilters)("generateblocks.frontend.afterContainerOpen","",i),Object(l.createElement)("div",{className:w()({"gb-inside-container":!0})},Object(_.applyFilters)("generateblocks.frontend.insideContainer","",i),Object(l.createElement)(Q.InnerBlocks,{templateLock:!1,renderAppender:c?void 0:function(){return Object(l.createElement)(Q.InnerBlocks.ButtonBlockAppender,null)}})),Object(l.createElement)(l.Fragment,null,!!i.shapeDividers.length&&Object(l.createElement)("div",{className:"gb-shapes"},i.shapeDividers.map((function(e,t){var a=t+1;return Object(l.createElement)(l.Fragment,{key:t},void 0!==_e[ge[t].shape]&&Object(l.createElement)("div",{className:w()(o()({"gb-shape":!0},"gb-shape-".concat(a),!0)),dangerouslySetInnerHTML:{__html:Be(_e[ge[t].shape].icon)}}))})))),Object(_.applyFilters)("generateblocks.frontend.beforeContainerClose","",i)))}}]),a}(l.Component),Ze=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType,a=e("core").getMedia,l=(0,e("core/editor").getEditedPostAttribute)("featured_media");return t?{media:l?a(l):null,deviceType:t()}:{media:l?a(l):null,deviceType:null}}))])(We),Ke={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isGrid:{type:"boolean",default:!1},gridId:{type:"string",default:""},tagName:{type:"string",default:generateBlocksDefaults.container.tagName},width:{type:"number",default:generateBlocksDefaults.container.width},widthTablet:{type:"number",default:generateBlocksDefaults.container.widthTablet},widthMobile:{type:"number",default:generateBlocksDefaults.container.widthMobile},orderTablet:{type:"number",default:generateBlocksDefaults.container.orderTablet},orderMobile:{type:"number",default:generateBlocksDefaults.container.orderMobile},outerContainer:{type:"string",default:generateBlocksDefaults.container.outerContainer},innerContainer:{type:"string",default:generateBlocksDefaults.container.innerContainer},containerWidth:{type:"number",default:generateBlocksDefaults.container.containerWidth},minHeight:{type:"number",default:generateBlocksDefaults.container.minHeight},minHeightUnit:{type:"string",default:generateBlocksDefaults.container.minHeightUnit},minHeightTablet:{type:"number",default:generateBlocksDefaults.container.minHeightTablet},minHeightUnitTablet:{type:"string",default:generateBlocksDefaults.container.minHeightUnitTablet},minHeightMobile:{type:"number",default:generateBlocksDefaults.container.minHeightMobile},minHeightUnitMobile:{type:"string",default:generateBlocksDefaults.container.minHeightUnitMobile},paddingTop:{type:"string",default:generateBlocksDefaults.container.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.container.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.container.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.container.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.container.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},paddingTopTablet:{type:"string",default:generateBlocksDefaults.container.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.container.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.container.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.container.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.container.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.container.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.container.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.container.paddingLeftMobile},marginTop:{type:"string",default:generateBlocksDefaults.container.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.container.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.container.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.container.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.container.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.container.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.container.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.container.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.container.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.container.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.container.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.container.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.container.marginLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.container.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.container.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.container.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.container.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.container.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftMobile},borderColor:{type:"string",default:generateBlocksDefaults.container.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.container.borderColorOpacity},backgroundColor:{type:"string",default:generateBlocksDefaults.container.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.container.backgroundColorOpacity},gradient:{type:"boolean",default:generateBlocksDefaults.container.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.container.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.container.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.container.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.container.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.container.gradientColorStopTwo},gradientSelector:{type:"string",default:"element"},textColor:{type:"string",default:generateBlocksDefaults.container.textColor},linkColor:{type:"string",default:generateBlocksDefaults.container.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.container.linkColorHover},bgImage:{type:"object",default:generateBlocksDefaults.container.bgImage},bgOptions:{type:"object",default:{selector:generateBlocksDefaults.container.bgOptions.selector,opacity:generateBlocksDefaults.container.bgOptions.opacity,overlay:generateBlocksDefaults.container.bgOptions.overlay,position:generateBlocksDefaults.container.bgOptions.position,size:generateBlocksDefaults.container.bgOptions.size,repeat:generateBlocksDefaults.container.bgOptions.repeat,attachment:generateBlocksDefaults.container.bgOptions.attachment}},bgImageSize:{type:"string",default:generateBlocksDefaults.container.bgImageSize},verticalAlignment:{type:"string",default:generateBlocksDefaults.container.verticalAlignment},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentTablet},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentMobile},zindex:{type:"number",default:generateBlocksDefaults.container.zindex},innerZindex:{type:"number",default:generateBlocksDefaults.container.innerZindex},removeVerticalGap:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGap},removeVerticalGapTablet:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapTablet},removeVerticalGapMobile:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapMobile},alignment:{type:"string",default:generateBlocksDefaults.container.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.container.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.container.alignmentMobile},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.container.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.container.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.container.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.container.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.container.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.container.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.container.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.container.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.container.fontSizeUnit},textTransform:{type:"string",default:""},align:{type:"string",default:""},shapeDividers:{type:"array",default:[]},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};generateBlocksInfo.hasCustomFields&&Object.assign(Ke,{fullWidthContent:{type:"string",source:"meta",meta:"_generate-full-width-content"}});var Je=Ke;function Ye(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Qe(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie=e.content,re="",ne="inline-block";d&&p&&(re=", "+p);var oe=i+".gb-headline-"+a,ce=[];return ce[".editor-styles-wrapper "+oe]=[{color:c,"font-family":d+re,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],ce[".editor-styles-wrapper .gb-container "+oe]=[{color:c}],V&&(ne="inline-flex"),ce[".editor-styles-wrapper "+oe].push({"background-color":he(n,o),color:c,display:!!ae&&ne,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&ce[".editor-styles-wrapper "+oe].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),ce[".editor-styles-wrapper "+oe+" a"]=[{color:s}],ce[oe+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],ce[oe+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],ce[oe+" .gb-highlight"]=[{color:u}],ce["#block-"+t]=[{display:!!ae&&"inline-flex"}],V&&!ie&&(ce[".gb-headline-text"]=[{display:"block",width:"100%"}]),ce=Object(_.applyFilters)("generateblocks.editor.mainCSS",ce,this.props,"headline"),Object(l.createElement)("style",null,M(ce))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(oa,{level:"h2"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"2"),onClick:function(){n({element:"h2"})}},{isActive:"h3"===d,icon:Object(l.createElement)(oa,{level:"h3"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"3"),onClick:function(){n({element:"h3"})}},{isActive:"h4"===d,icon:Object(l.createElement)(oa,{level:"h4"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" From 44a72602f558ec72bd6bf3e51938deb8eddecf9f Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Wed, 30 Dec 2020 21:20:56 -0800 Subject: [PATCH 32/53] Add placeholder to Headline block --- src/blocks/headline/css/main.js | 8 -------- src/blocks/headline/edit.js | 2 ++ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/blocks/headline/css/main.js b/src/blocks/headline/css/main.js index 08ba6bddc..dcb858f1a 100644 --- a/src/blocks/headline/css/main.js +++ b/src/blocks/headline/css/main.js @@ -73,7 +73,6 @@ export default class MainCSS extends Component { iconSizeUnit, inlineWidth, removeText, - content, } = attributes; let fontFamilyFallbackValue = '', @@ -154,13 +153,6 @@ export default class MainCSS extends Component { 'display': inlineWidth ? 'inline-flex' : false, // eslint-disable-line quote-props } ]; - if ( !! icon && ! content ) { - cssObj[ '.gb-headline-text' ] = [ { - display: 'block', - width: '100%', - } ]; - } - cssObj = applyFilters( 'generateblocks.editor.mainCSS', cssObj, this.props, 'headline' ); return ( diff --git a/src/blocks/headline/edit.js b/src/blocks/headline/edit.js index 996b31c65..228fc48bf 100644 --- a/src/blocks/headline/edit.js +++ b/src/blocks/headline/edit.js @@ -1262,6 +1262,7 @@ class GenerateBlockHeadline extends Component { tagName="span" value={ content } onChange={ ( value ) => setAttributes( { content: value } ) } + placeholder={ __( 'Headline', 'generateblocks' ) } keepPlaceholderOnFocus={ true } /> @@ -1274,6 +1275,7 @@ class GenerateBlockHeadline extends Component { tagName="span" value={ content } onChange={ ( value ) => setAttributes( { content: value } ) } + placeholder={ __( 'Headline', 'generateblocks' ) } keepPlaceholderOnFocus={ true } /> } From 517bdcf2e79b385dec233eb93fc5ea2757fdfd2e Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Wed, 30 Dec 2020 21:21:07 -0800 Subject: [PATCH 33/53] Add generateblocks.editor.headlineDisableFormatting filter --- src/blocks/headline/edit.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blocks/headline/edit.js b/src/blocks/headline/edit.js index 228fc48bf..805a6e1d8 100644 --- a/src/blocks/headline/edit.js +++ b/src/blocks/headline/edit.js @@ -1264,6 +1264,7 @@ class GenerateBlockHeadline extends Component { onChange={ ( value ) => setAttributes( { content: value } ) } placeholder={ __( 'Headline', 'generateblocks' ) } keepPlaceholderOnFocus={ true } + allowedFormats={ applyFilters( 'generateblocks.editor.headlineDisableFormatting', false, this.props ) ? [] : null } /> } @@ -1277,6 +1278,7 @@ class GenerateBlockHeadline extends Component { onChange={ ( value ) => setAttributes( { content: value } ) } placeholder={ __( 'Headline', 'generateblocks' ) } keepPlaceholderOnFocus={ true } + allowedFormats={ applyFilters( 'generateblocks.editor.headlineDisableFormatting', false, this.props ) ? [] : null } /> } From 53030deb92be016272be4e1a3d33cef8305cd194 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Wed, 30 Dec 2020 21:21:16 -0800 Subject: [PATCH 34/53] Update dist --- dist/blocks.asset.php | 2 +- dist/blocks.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index fbcc5e2df..1561f1216 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '9808611c89549172a27c257b05a38012'); \ No newline at end of file + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => 'd7f7bc1c592eeefdd7571ef9eebd2a2a'); \ No newline at end of file diff --git a/dist/blocks.js b/dist/blocks.js index 06f15e31f..8cff27e00 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -6,10 +6,10 @@ /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Bottom","generateblocks"),r),value:a[g]?a[g]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:L,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeLeft(a):e.onReset("attrLeft")},onBlur:function(){q||""!==a[b]||""===B[b]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeLeft("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Left","generateblocks"),r),value:a[b]?a[b]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)(C.Tooltip,{text:a[u]?Object(T.__)("Unsync","generateblocks"):Object(T.__)("Sync","generateblocks")},Object(l.createElement)(C.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":Object(T.__)("Sync Units","generateblocks"),isPrimary:!!a[u]&&a[u],"aria-pressed":!!a[u]&&a[u],onClick:function(t){return e.syncUnits(t,"")},isSmall:!0},(a[u],j("sync"))))),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__input-labels"},Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},f),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},m),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},y),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},O),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"}))))}}]),a}(l.Component),we=(a(38),{Roboto:{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Open Sans":{weight:["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Lato:{weight:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Montserrat:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Source Sans Pro":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Roboto Condensed":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Oswald:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},"Roboto Mono":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"monospace"},Raleway:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Poppins:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Roboto Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Merriweather:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"serif"},"PT Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Ubuntu:{weight:["300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},"Playfair Display":{weight:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},Muli:{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Open Sans Condensed":{weight:["300","300italic","700"],fallback:"sans-serif"},"PT Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},Lora:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Slabo 27px":{weight:["regular"],fallback:"serif"},Nunito:{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans JP":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Work Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},Rubik:{weight:["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Noto Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fira Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Titillium Web":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],fallback:"sans-serif"},Quicksand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Noto Sans KR":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nanum Gothic":{weight:["regular","700","800"],fallback:"sans-serif"},Mukta:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Noto Sans TC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nunito Sans":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Heebo:{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Sans Narrow":{weight:["regular","700"],fallback:"sans-serif"},Arimo:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Inconsolata:{weight:["regular","700"],fallback:"monospace"},Barlow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Oxygen:{weight:["300","regular","700"],fallback:"sans-serif"},Dosis:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Bitter:{weight:["regular","italic","700"],fallback:"serif"},"Libre Baskerville":{weight:["regular","italic","700"],fallback:"serif"},"Crimson Text":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},"Libre Franklin":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Karla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Josefin Sans":{weight:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},Cabin:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Anton:{weight:["regular"],fallback:"sans-serif"},"Source Code Pro":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"monospace"},Hind:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Abel:{weight:["regular"],fallback:"sans-serif"},Amiri:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fjalla One":{weight:["regular"],fallback:"sans-serif"},Lobster:{weight:["regular"],fallback:"display"},Pacifico:{weight:["regular"],fallback:"handwriting"},"Indie Flower":{weight:["regular"],fallback:"handwriting"},"Exo 2":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Dancing Script":{weight:["regular","500","600","700"],fallback:"handwriting"},"Source Serif Pro":{weight:["regular","600","700"],fallback:"serif"},Arvo:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Hind Siliguri":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Varela Round":{weight:["regular"],fallback:"sans-serif"},"Merriweather Sans":{weight:["300","300italic","regular","italic","700","700italic","800","800italic"],fallback:"sans-serif"},Cairo:{weight:["200","300","regular","600","700","900"],fallback:"sans-serif"},"Yanone Kaffeesatz":{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Overpass:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Shadows Into Light":{weight:["regular"],fallback:"handwriting"},"Barlow Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"IBM Plex Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Comfortaa:{weight:["300","regular","500","600","700"],fallback:"display"},Asap:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Prompt:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Kanit:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Questrial:{weight:["regular"],fallback:"sans-serif"},Martel:{weight:["200","300","regular","600","700","800","900"],fallback:"serif"},"Archivo Narrow":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Abril Fatface":{weight:["regular"],fallback:"display"},"Amatic SC":{weight:["regular","700"],fallback:"handwriting"},Acme:{weight:["regular"],fallback:"sans-serif"},Catamaran:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Fira Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"EB Garamond":{weight:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],fallback:"serif"},"Bree Serif":{weight:["regular"],fallback:"serif"},"Zilla Slab":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Noto Sans SC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Cormorant Garamond":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Hind Madurai":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Teko:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Righteous:{weight:["regular"],fallback:"display"},Signika:{weight:["300","regular","600","700"],fallback:"sans-serif"},Play:{weight:["regular","700"],fallback:"sans-serif"},Domine:{weight:["regular","700"],fallback:"serif"},Exo:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Russo One":{weight:["regular"],fallback:"sans-serif"},Cinzel:{weight:["regular","700","900"],fallback:"serif"},"PT Sans Caption":{weight:["regular","700"],fallback:"sans-serif"},Rajdhani:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Maven Pro":{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Fredoka One":{weight:["regular"],fallback:"display"},"IBM Plex Serif":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Ubuntu Condensed":{weight:["regular"],fallback:"sans-serif"},"Patua One":{weight:["regular"],fallback:"display"},Caveat:{weight:["regular","700"],fallback:"handwriting"},"Permanent Marker":{weight:["regular"],fallback:"handwriting"},Assistant:{weight:["200","300","regular","600","700","800"],fallback:"sans-serif"},ABeeZee:{weight:["regular","italic"],fallback:"sans-serif"},Vollkorn:{weight:["regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"serif"},"Crete Round":{weight:["regular","italic"],fallback:"serif"},"Special Elite":{weight:["regular"],fallback:"display"},Rokkitt:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Bangers:{weight:["regular"],fallback:"display"},"Francois One":{weight:["regular"],fallback:"sans-serif"},"Barlow Semi Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Alegreya Sans":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Satisfy:{weight:["regular"],fallback:"handwriting"},Tajawal:{weight:["200","300","regular","500","700","800","900"],fallback:"sans-serif"},"Bebas Neue":{weight:["regular"],fallback:"display"},"Patrick Hand":{weight:["regular"],fallback:"handwriting"},Cuprum:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Viga:{weight:["regular"],fallback:"sans-serif"},Courgette:{weight:["regular"],fallback:"handwriting"},"Ropa Sans":{weight:["regular","italic"],fallback:"sans-serif"},"Noto Serif JP":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Gochi Hand":{weight:["regular"],fallback:"handwriting"},Alegreya:{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Luckiest Guy":{weight:["regular"],fallback:"display"},"Noticia Text":{weight:["regular","italic","700","700italic"],fallback:"serif"},Tinos:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Passion One":{weight:["regular","700","900"],fallback:"display"},"Alfa Slab One":{weight:["regular"],fallback:"display"},"Nanum Myeongjo":{weight:["regular","700","800"],fallback:"serif"},Monda:{weight:["regular","700"],fallback:"sans-serif"},"Lobster Two":{weight:["regular","italic","700","700italic"],fallback:"display"},Kalam:{weight:["300","regular","700"],fallback:"handwriting"},"Kaushan Script":{weight:["regular"],fallback:"handwriting"},"Archivo Black":{weight:["regular"],fallback:"sans-serif"},Cardo:{weight:["regular","italic","700"],fallback:"serif"},Archivo:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Great Vibes":{weight:["regular"],fallback:"handwriting"},Volkhov:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Quattrocento Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"News Cycle":{weight:["regular","700"],fallback:"sans-serif"},"Pathway Gothic One":{weight:["regular"],fallback:"sans-serif"},Sacramento:{weight:["regular"],fallback:"handwriting"},"Frank Ruhl Libre":{weight:["300","regular","500","700","900"],fallback:"serif"},Yantramanav:{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},Cantarell:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Istok Web":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Didact Gothic":{weight:["regular"],fallback:"sans-serif"},"Concert One":{weight:["regular"],fallback:"display"},Taviraj:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Old Standard TT":{weight:["regular","italic","700"],fallback:"serif"},"Montserrat Alternates":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Economica:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Changa:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Fira Sans Extra Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Gloria Hallelujah":{weight:["regular"],fallback:"handwriting"},Parisienne:{weight:["regular"],fallback:"handwriting"},Orbitron:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Asap Condensed":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Playfair Display SC":{weight:["regular","italic","700","700italic","900","900italic"],fallback:"serif"},Chivo:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Sriracha:{weight:["regular"],fallback:"handwriting"},"Hind Vadodara":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"DM Sans":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Prata:{weight:["regular"],fallback:"serif"},Quattrocento:{weight:["regular","700"],fallback:"serif"},Cookie:{weight:["regular"],fallback:"handwriting"},"Poiret One":{weight:["regular"],fallback:"display"},Handlee:{weight:["regular"],fallback:"handwriting"},Sarabun:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},BenchNine:{weight:["300","regular","700"],fallback:"sans-serif"},Merienda:{weight:["regular","700"],fallback:"handwriting"},"M PLUS 1p":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Mono":{weight:["regular"],fallback:"monospace"},Lalezar:{weight:["regular"],fallback:"display"},Sanchez:{weight:["regular","italic"],fallback:"serif"},Lemonada:{weight:["300","regular","500","600","700"],fallback:"display"},"Markazi Text":{weight:["regular","500","600","700"],fallback:"serif"},Neuton:{weight:["200","300","regular","italic","700","800"],fallback:"serif"},"Hind Guntur":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Josefin Slab":{weight:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"serif"},Philosopher:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Advent Pro":{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Do Hyeon":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Mincho":{weight:["regular"],fallback:"sans-serif"},Ruda:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Vidaloka:{weight:["regular"],fallback:"serif"},Ultra:{weight:["regular"],fallback:"serif"},Neucha:{weight:["regular"],fallback:"handwriting"},Arapey:{weight:["regular","italic"],fallback:"serif"},Gudea:{weight:["regular","italic","700"],fallback:"sans-serif"},"Paytone One":{weight:["regular"],fallback:"sans-serif"},Kreon:{weight:["300","regular","500","600","700"],fallback:"serif"},"M PLUS Rounded 1c":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"Pragati Narrow":{weight:["regular","700"],fallback:"sans-serif"},"Press Start 2P":{weight:["regular"],fallback:"display"},"Hammersmith One":{weight:["regular"],fallback:"sans-serif"},"Gentium Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Monoton:{weight:["regular"],fallback:"display"},Alef:{weight:["regular","700"],fallback:"sans-serif"},Alice:{weight:["regular"],fallback:"serif"},Aclonica:{weight:["regular"],fallback:"sans-serif"},"Sigmar One":{weight:["regular"],fallback:"display"},Spectral:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Marck Script":{weight:["regular"],fallback:"handwriting"},Electrolize:{weight:["regular"],fallback:"sans-serif"},Actor:{weight:["regular"],fallback:"sans-serif"},"Architects Daughter":{weight:["regular"],fallback:"handwriting"},Adamina:{weight:["regular"],fallback:"serif"},"Pontano Sans":{weight:["regular"],fallback:"sans-serif"},Audiowide:{weight:["regular"],fallback:"display"},Inter:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Cabin Condensed":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Unica One":{weight:["regular"],fallback:"display"},Yellowtail:{weight:["regular"],fallback:"handwriting"},"El Messiri":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Squada One":{weight:["regular"],fallback:"display"},Staatliches:{weight:["regular"],fallback:"display"},Amaranth:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Enriqueta:{weight:["regular","500","600","700"],fallback:"serif"},Mitr:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Glegoo:{weight:["regular","700"],fallback:"serif"},"Bowlby One SC":{weight:["regular"],fallback:"display"},Basic:{weight:["regular"],fallback:"sans-serif"},"Nanum Gothic Coding":{weight:["regular","700"],fallback:"monospace"},Sarala:{weight:["regular","700"],fallback:"sans-serif"},"Bad Script":{weight:["regular"],fallback:"handwriting"},"Homemade Apple":{weight:["regular"],fallback:"handwriting"},Tangerine:{weight:["regular","700"],fallback:"handwriting"},Cormorant:{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Oleo Script":{weight:["regular","700"],fallback:"display"},Karma:{weight:["300","regular","500","600","700"],fallback:"serif"},"Julius Sans One":{weight:["regular"],fallback:"sans-serif"},"Carter One":{weight:["regular"],fallback:"display"},Khand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Nanum Pen Script":{weight:["regular"],fallback:"handwriting"},Cambay:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Fugaz One":{weight:["regular"],fallback:"display"},"Shadows Into Light Two":{weight:["regular"],fallback:"handwriting"},Coda:{weight:["regular","800"],fallback:"display"},"Signika Negative":{weight:["300","regular","600","700"],fallback:"sans-serif"},Pridi:{weight:["200","300","regular","500","600","700"],fallback:"serif"},Playball:{weight:["regular"],fallback:"display"},Saira:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Rock Salt":{weight:["regular"],fallback:"handwriting"},"Gothic A1":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Gentium Book Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Allura:{weight:["regular"],fallback:"handwriting"},"Yeseva One":{weight:["regular"],fallback:"display"},"DM Serif Text":{weight:["regular","italic"],fallback:"serif"},Lusitana:{weight:["regular","700"],fallback:"serif"},Jura:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Average:{weight:["regular"],fallback:"serif"},Yrsa:{weight:["300","regular","500","600","700"],fallback:"serif"},"Sorts Mill Goudy":{weight:["regular","italic"],fallback:"serif"},"Cantata One":{weight:["regular"],fallback:"serif"},Armata:{weight:["regular"],fallback:"sans-serif"},Scada:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Abhaya Libre":{weight:["regular","500","600","700","800"],fallback:"serif"},Damion:{weight:["regular"],fallback:"handwriting"},Marmelad:{weight:["regular"],fallback:"sans-serif"},Varela:{weight:["regular"],fallback:"sans-serif"},Quantico:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Covered By Your Grace":{weight:["regular"],fallback:"handwriting"},"PT Serif Caption":{weight:["regular","italic"],fallback:"serif"},Ramabhadra:{weight:["regular"],fallback:"sans-serif"},Unna:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Encode Sans":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Arsenal:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Black Han Sans":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Gothic":{weight:["regular"],fallback:"sans-serif"},"Ubuntu Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Pinyon Script":{weight:["regular"],fallback:"handwriting"},"Black Ops One":{weight:["regular"],fallback:"display"},Marcellus:{weight:["regular"],fallback:"serif"},"Fauna One":{weight:["regular"],fallback:"serif"},"Lilita One":{weight:["regular"],fallback:"display"},Sintony:{weight:["regular","700"],fallback:"sans-serif"},Khula:{weight:["300","regular","600","700","800"],fallback:"sans-serif"},Jaldi:{weight:["regular","700"],fallback:"sans-serif"},"Rubik Mono One":{weight:["regular"],fallback:"sans-serif"},Allan:{weight:["regular","700"],fallback:"display"},"Reenie Beanie":{weight:["regular"],fallback:"handwriting"},"Alex Brush":{weight:["regular"],fallback:"handwriting"},"Mr Dafoe":{weight:["regular"],fallback:"handwriting"},Palanquin:{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Encode Sans Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Antic:{weight:["regular"],fallback:"sans-serif"},Knewave:{weight:["regular"],fallback:"display"},"Caveat Brush":{weight:["regular"],fallback:"handwriting"},Rambla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Spinnaker:{weight:["regular"],fallback:"sans-serif"},"IBM Plex Mono":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"monospace"},Michroma:{weight:["regular"],fallback:"sans-serif"},"Nothing You Could Do":{weight:["regular"],fallback:"handwriting"},"Kelly Slab":{weight:["regular"],fallback:"display"},Boogaloo:{weight:["regular"],fallback:"display"},Chewy:{weight:["regular"],fallback:"display"},"ZCOOL XiaoWei":{weight:["regular"],fallback:"serif"},Rancho:{weight:["regular"],fallback:"handwriting"},"Noto Serif SC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Pangolin:{weight:["regular"],fallback:"handwriting"},"Fira Mono":{weight:["regular","500","700"],fallback:"monospace"},Forum:{weight:["regular"],fallback:"display"},"Antic Slab":{weight:["regular"],fallback:"serif"},"Alegreya Sans SC":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Anonymous Pro":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Lateef:{weight:["regular"],fallback:"handwriting"},"Annie Use Your Telescope":{weight:["regular"],fallback:"handwriting"},"Noto Sans HK":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Martel Sans":{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},"Chakra Petch":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Rufina:{weight:["regular","700"],fallback:"serif"},"Bai Jamjuree":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Scheherazade:{weight:["regular","700"],fallback:"serif"},Share:{weight:["regular","italic","700","700italic"],fallback:"display"},"Tenor Sans":{weight:["regular"],fallback:"sans-serif"},"DM Serif Display":{weight:["regular","italic"],fallback:"serif"},VT323:{weight:["regular"],fallback:"monospace"},"Share Tech Mono":{weight:["regular"],fallback:"monospace"},Mali:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"handwriting"},Cousine:{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Cinzel Decorative":{weight:["regular","700","900"],fallback:"display"},Overlock:{weight:["regular","italic","700","700italic","900","900italic"],fallback:"display"},"Arbutus Slab":{weight:["regular"],fallback:"serif"},"Reem Kufi":{weight:["regular"],fallback:"sans-serif"},"Cabin Sketch":{weight:["regular","700"],fallback:"display"},"Saira Extra Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Eczar:{weight:["regular","500","600","700","800"],fallback:"serif"},"Leckerli One":{weight:["regular"],fallback:"handwriting"},Krub:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Berkshire Swash":{weight:["regular"],fallback:"handwriting"},"Fredericka the Great":{weight:["regular"],fallback:"display"},"Saira Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Overpass Mono":{weight:["300","regular","600","700"],fallback:"monospace"},Itim:{weight:["regular"],fallback:"handwriting"},Rasa:{weight:["300","regular","500","600","700"],fallback:"serif"},Bevan:{weight:["regular"],fallback:"display"},"Arima Madurai":{weight:["100","200","300","regular","500","700","800","900"],fallback:"display"},Italianno:{weight:["regular"],fallback:"handwriting"},"Coda Caption":{weight:["800"],fallback:"sans-serif"},Shrikhand:{weight:["regular"],fallback:"display"},"Just Another Hand":{weight:["regular"],fallback:"handwriting"},"Saira Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Almarai:{weight:["300","regular","700","800"],fallback:"sans-serif"},"Mukta Malar":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Oranienbaum:{weight:["regular"],fallback:"serif"},Nobile:{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Candal:{weight:["regular"],fallback:"sans-serif"},"Six Caps":{weight:["regular"],fallback:"sans-serif"},"Space Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Capriola:{weight:["regular"],fallback:"sans-serif"},Biryani:{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},Halant:{weight:["300","regular","500","600","700"],fallback:"serif"},Allerta:{weight:["regular"],fallback:"sans-serif"},Trirong:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},Mallanna:{weight:["regular"],fallback:"sans-serif"},Aldrich:{weight:["regular"],fallback:"sans-serif"},Aleo:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Suez One":{weight:["regular"],fallback:"serif"},Caudex:{weight:["regular","italic","700","700italic"],fallback:"serif"},Niconne:{weight:["regular"],fallback:"handwriting"},"Mrs Saint Delafield":{weight:["regular"],fallback:"handwriting"},Gruppo:{weight:["regular"],fallback:"display"},"Miriam Libre":{weight:["regular","700"],fallback:"sans-serif"},"Contrail One":{weight:["regular"],fallback:"display"},"Days One":{weight:["regular"],fallback:"sans-serif"},"Allerta Stencil":{weight:["regular"],fallback:"sans-serif"},"Average Sans":{weight:["regular"],fallback:"sans-serif"},"Coming Soon":{weight:["regular"],fallback:"handwriting"},Pattaya:{weight:["regular"],fallback:"sans-serif"},"Londrina Solid":{weight:["100","300","regular","900"],fallback:"display"},Bungee:{weight:["regular"],fallback:"display"},Coustard:{weight:["regular","900"],fallback:"serif"},"Marcellus SC":{weight:["regular"],fallback:"serif"},"Racing Sans One":{weight:["regular"],fallback:"display"},Bentham:{weight:["regular"],fallback:"serif"},"Bungee Inline":{weight:["regular"],fallback:"display"},Magra:{weight:["regular","700"],fallback:"sans-serif"},Judson:{weight:["regular","italic","700"],fallback:"serif"},Rochester:{weight:["regular"],fallback:"handwriting"},"Grand Hotel":{weight:["regular"],fallback:"handwriting"},Gelasio:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Yesteryear:{weight:["regular"],fallback:"handwriting"},Syncopate:{weight:["regular","700"],fallback:"sans-serif"},Hanuman:{weight:["regular","700"],fallback:"serif"},"Kosugi Maru":{weight:["regular"],fallback:"sans-serif"},Copse:{weight:["regular"],fallback:"serif"},Mada:{weight:["200","300","regular","500","600","700","900"],fallback:"sans-serif"},"Titan One":{weight:["regular"],fallback:"display"},"Noto Serif TC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Kameron:{weight:["regular","700"],fallback:"serif"},Telex:{weight:["regular"],fallback:"sans-serif"},Norican:{weight:["regular"],fallback:"handwriting"},Maitree:{weight:["200","300","regular","500","600","700"],fallback:"serif"},"IM Fell Double Pica":{weight:["regular","italic"],fallback:"serif"},Molengo:{weight:["regular"],fallback:"sans-serif"},Sunflower:{weight:["300","500","700"],fallback:"sans-serif"},"Alegreya SC":{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Red Hat Display":{weight:["regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},Jua:{weight:["regular"],fallback:"sans-serif"},Ovo:{weight:["regular"],fallback:"serif"},"IBM Plex Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Nixie One":{weight:["regular"],fallback:"display"},Aladin:{weight:["regular"],fallback:"handwriting"},Arizonia:{weight:["regular"],fallback:"handwriting"},"Bubblegum Sans":{weight:["regular"],fallback:"display"},"Changa One":{weight:["regular","italic"],fallback:"display"},"Lexend Deca":{weight:["regular"],fallback:"sans-serif"},Sofia:{weight:["regular"],fallback:"handwriting"},"Jockey One":{weight:["regular"],fallback:"sans-serif"},Suranna:{weight:["regular"],fallback:"serif"},Amethysta:{weight:["regular"],fallback:"serif"},Schoolbell:{weight:["regular"],fallback:"handwriting"},"Nanum Brush Script":{weight:["regular"],fallback:"handwriting"},"Cedarville Cursive":{weight:["regular"],fallback:"handwriting"},"Cutive Mono":{weight:["regular"],fallback:"monospace"},Delius:{weight:["regular"],fallback:"handwriting"},"Raleway Dots":{weight:["regular"],fallback:"display"},Graduate:{weight:["regular"],fallback:"display"},Lustria:{weight:["regular"],fallback:"serif"},"Mukta Vaani":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Kadwa:{weight:["regular","700"],fallback:"serif"},"Rozha One":{weight:["regular"],fallback:"serif"},Buenard:{weight:["regular","700"],fallback:"serif"},Cambo:{weight:["regular"],fallback:"serif"},Marvel:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Krona One":{weight:["regular"],fallback:"sans-serif"},"Carrois Gothic":{weight:["regular"],fallback:"sans-serif"},Carme:{weight:["regular"],fallback:"sans-serif"},"Slabo 13px":{weight:["regular"],fallback:"serif"},Lemon:{weight:["regular"],fallback:"display"},"Love Ya Like A Sister":{weight:["regular"],fallback:"display"},Rosario:{weight:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},"Merienda One":{weight:["regular"],fallback:"handwriting"},"Public Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Petit Formal Script":{weight:["regular"],fallback:"handwriting"},"Ceviche One":{weight:["regular"],fallback:"display"},Voltaire:{weight:["regular"],fallback:"sans-serif"},Fresca:{weight:["regular"],fallback:"sans-serif"},"Averia Serif Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Rye:{weight:["regular"],fallback:"display"},"Noto Serif KR":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Chelsea Market":{weight:["regular"],fallback:"display"},Calligraffitti:{weight:["regular"],fallback:"handwriting"},"Freckle Face":{weight:["regular"],fallback:"display"},"Duru Sans":{weight:["regular"],fallback:"sans-serif"},Trocchi:{weight:["regular"],fallback:"serif"},Metrophobic:{weight:["regular"],fallback:"sans-serif"},Mate:{weight:["regular","italic"],fallback:"serif"},Harmattan:{weight:["regular"],fallback:"sans-serif"},"Gilda Display":{weight:["regular"],fallback:"serif"},"Cormorant Infant":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Spartan:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Oxygen Mono":{weight:["regular"],fallback:"monospace"},Chonburi:{weight:["regular"],fallback:"display"},"Goudy Bookletter 1911":{weight:["regular"],fallback:"serif"},Sansita:{weight:["regular","italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Emilys Candy":{weight:["regular"],fallback:"display"},Amiko:{weight:["regular","600","700"],fallback:"sans-serif"},Kristi:{weight:["regular"],fallback:"handwriting"},"Palanquin Dark":{weight:["regular","500","600","700"],fallback:"sans-serif"},Lekton:{weight:["regular","italic","700"],fallback:"sans-serif"},Cutive:{weight:["regular"],fallback:"serif"},"Herr Von Muellerhoff":{weight:["regular"],fallback:"handwriting"},"GFS Didot":{weight:["regular"],fallback:"serif"},Radley:{weight:["regular","italic"],fallback:"serif"},"Sue Ellen Francisco":{weight:["regular"],fallback:"handwriting"},Pompiere:{weight:["regular"],fallback:"display"},Gabriela:{weight:["regular"],fallback:"serif"},Niramit:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Seaweed Script":{weight:["regular"],fallback:"display"},"Sedgwick Ave":{weight:["regular"],fallback:"handwriting"},Federo:{weight:["regular"],fallback:"sans-serif"},McLaren:{weight:["regular"],fallback:"display"},"IM Fell DW Pica":{weight:["regular","italic"],fallback:"serif"},Sniglet:{weight:["regular","800"],fallback:"display"},"Mr De Haviland":{weight:["regular"],fallback:"handwriting"},Shojumaru:{weight:["regular"],fallback:"display"},Poly:{weight:["regular","italic"],fallback:"serif"},Belleza:{weight:["regular"],fallback:"sans-serif"},Faustina:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"IM Fell English":{weight:["regular","italic"],fallback:"serif"},"Rammetto One":{weight:["regular"],fallback:"display"},Amita:{weight:["regular","700"],fallback:"handwriting"},Inder:{weight:["regular"],fallback:"sans-serif"},"Antic Didone":{weight:["regular"],fallback:"serif"},"Alike Angular":{weight:["regular"],fallback:"serif"},Montez:{weight:["regular"],fallback:"handwriting"},K2D:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},UnifrakturMaguntia:{weight:["regular"],fallback:"display"},Gurajada:{weight:["regular"],fallback:"serif"},"Proza Libre":{weight:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Athiti:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Andada:{weight:["regular"],fallback:"serif"},"Liu Jian Mao Cao":{weight:["regular"],fallback:"handwriting"},Megrim:{weight:["regular"],fallback:"display"},"Vast Shadow":{weight:["regular"],fallback:"display"},Wallpoet:{weight:["regular"],fallback:"display"},Unkempt:{weight:["regular","700"],fallback:"display"},"Fanwood Text":{weight:["regular","italic"],fallback:"serif"},"Doppio One":{weight:["regular"],fallback:"sans-serif"},"Comic Neue":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"handwriting"},Corben:{weight:["regular","700"],fallback:"display"},Frijole:{weight:["regular"],fallback:"display"},Balthazar:{weight:["regular"],fallback:"serif"},Mirza:{weight:["regular","500","600","700"],fallback:"display"},"IM Fell French Canon SC":{weight:["regular"],fallback:"serif"},Brawler:{weight:["regular"],fallback:"serif"},"Oleo Script Swash Caps":{weight:["regular","700"],fallback:"display"},Mandali:{weight:["regular"],fallback:"sans-serif"},Convergence:{weight:["regular"],fallback:"sans-serif"},Fondamento:{weight:["regular","italic"],fallback:"handwriting"},Alike:{weight:["regular"],fallback:"serif"},Baumans:{weight:["regular"],fallback:"display"},Esteban:{weight:["regular"],fallback:"serif"},"Gravitas One":{weight:["regular"],fallback:"display"},Anaheim:{weight:["regular"],fallback:"sans-serif"},"Wendy One":{weight:["regular"],fallback:"sans-serif"},"Stardos Stencil":{weight:["regular","700"],fallback:"display"},"Spicy Rice":{weight:["regular"],fallback:"display"},Rakkas:{weight:["regular"],fallback:"display"},"La Belle Aurore":{weight:["regular"],fallback:"handwriting"},"Secular One":{weight:["regular"],fallback:"sans-serif"},Belgrano:{weight:["regular"],fallback:"serif"},"Bungee Shade":{weight:["regular"],fallback:"display"},"Crafty Girls":{weight:["regular"],fallback:"handwriting"},Battambang:{weight:["regular","700"],fallback:"display"},Quando:{weight:["regular"],fallback:"serif"},"Mouse Memoirs":{weight:["regular"],fallback:"sans-serif"},Gugi:{weight:["regular"],fallback:"display"},"Faster One":{weight:["regular"],fallback:"display"},"B612 Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Limelight:{weight:["regular"],fallback:"display"},"Short Stack":{weight:["regular"],fallback:"handwriting"},"Mountains of Christmas":{weight:["regular","700"],fallback:"display"},"Share Tech":{weight:["regular"],fallback:"sans-serif"},Laila:{weight:["300","regular","500","600","700"],fallback:"serif"},Literata:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Cormorant SC":{weight:["300","regular","500","600","700"],fallback:"serif"},"Fjord One":{weight:["regular"],fallback:"serif"},Podkova:{weight:["regular","500","600","700","800"],fallback:"serif"},Homenaje:{weight:["regular"],fallback:"sans-serif"},"Walter Turncoat":{weight:["regular"],fallback:"handwriting"},Sen:{weight:["regular","700","800"],fallback:"sans-serif"},"Patrick Hand SC":{weight:["regular"],fallback:"handwriting"},Voces:{weight:["regular"],fallback:"display"},Qwigley:{weight:["regular"],fallback:"handwriting"},"Happy Monkey":{weight:["regular"],fallback:"display"},"Rouge Script":{weight:["regular"],fallback:"handwriting"},"Baloo Chettan 2":{weight:["regular","500","600","700","800"],fallback:"display"},NTR:{weight:["regular"],fallback:"sans-serif"},Skranji:{weight:["regular","700"],fallback:"display"},Strait:{weight:["regular"],fallback:"sans-serif"},"Dawning of a New Day":{weight:["regular"],fallback:"handwriting"},Iceland:{weight:["regular"],fallback:"display"},"Expletus Sans":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"display"},"Montserrat Subrayada":{weight:["regular","700"],fallback:"sans-serif"},Oregano:{weight:["regular","italic"],fallback:"display"},"Give You Glory":{weight:["regular"],fallback:"handwriting"},Alata:{weight:["regular"],fallback:"sans-serif"},Puritan:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Mako:{weight:["regular"],fallback:"sans-serif"},Andika:{weight:["regular"],fallback:"sans-serif"},"Cormorant Upright":{weight:["300","regular","500","600","700"],fallback:"serif"},Zeyada:{weight:["regular"],fallback:"handwriting"},"Bowlby One":{weight:["regular"],fallback:"display"},"Aref Ruqaa":{weight:["regular","700"],fallback:"serif"},Numans:{weight:["regular"],fallback:"sans-serif"},Kurale:{weight:["regular"],fallback:"serif"},Spirax:{weight:["regular"],fallback:"display"},"Clicker Script":{weight:["regular"],fallback:"handwriting"},"Waiting for the Sunrise":{weight:["regular"],fallback:"handwriting"},"Holtwood One SC":{weight:["regular"],fallback:"serif"},Katibeh:{weight:["regular"],fallback:"display"},"Carrois Gothic SC":{weight:["regular"],fallback:"sans-serif"},Livvic:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},Eater:{weight:["regular"],fallback:"display"},"Fontdiner Swanky":{weight:["regular"],fallback:"display"},"Finger Paint":{weight:["regular"],fallback:"display"},Bellefair:{weight:["regular"],fallback:"serif"},"Wire One":{weight:["regular"],fallback:"sans-serif"},Kosugi:{weight:["regular"],fallback:"sans-serif"},Charm:{weight:["regular","700"],fallback:"handwriting"},"Delius Swash Caps":{weight:["regular"],fallback:"handwriting"},"Vesper Libre":{weight:["regular","500","700","900"],fallback:"serif"},"Red Hat Text":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Gafata:{weight:["regular"],fallback:"sans-serif"},"Averia Sans Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Denk One":{weight:["regular"],fallback:"sans-serif"},Geo:{weight:["regular","italic"],fallback:"sans-serif"},Tauri:{weight:["regular"],fallback:"sans-serif"},"Cherry Swash":{weight:["regular","700"],fallback:"display"},Codystar:{weight:["300","regular"],fallback:"display"},"Cantora One":{weight:["regular"],fallback:"sans-serif"},"Encode Sans Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Nova Square":{weight:["regular"],fallback:"display"},BioRhyme:{weight:["200","300","regular","700","800"],fallback:"serif"},Timmana:{weight:["regular"],fallback:"sans-serif"},Atma:{weight:["300","regular","500","600","700"],fallback:"display"},Tienne:{weight:["regular","700","900"],fallback:"serif"},Meddon:{weight:["regular"],fallback:"handwriting"},Galada:{weight:["regular"],fallback:"display"},Padauk:{weight:["regular","700"],fallback:"sans-serif"},"Loved by the King":{weight:["regular"],fallback:"handwriting"},"The Girl Next Door":{weight:["regular"],fallback:"handwriting"},"Darker Grotesque":{weight:["300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Life Savers":{weight:["regular","700","800"],fallback:"display"},Bilbo:{weight:["regular"],fallback:"handwriting"},Shanti:{weight:["regular"],fallback:"sans-serif"},"Headland One":{weight:["regular"],fallback:"serif"},"Euphoria Script":{weight:["regular"],fallback:"handwriting"},Imprima:{weight:["regular"],fallback:"sans-serif"},"Aguafina Script":{weight:["regular"],fallback:"handwriting"},"Baloo 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Over the Rainbow":{weight:["regular"],fallback:"handwriting"},Sarpanch:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Orienta:{weight:["regular"],fallback:"sans-serif"},"Spectral SC":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Port Lligat Sans":{weight:["regular"],fallback:"sans-serif"},Artifika:{weight:["regular"],fallback:"serif"},Ledger:{weight:["regular"],fallback:"serif"},Ruluko:{weight:["regular"],fallback:"sans-serif"},Sail:{weight:["regular"],fallback:"display"},Alatsi:{weight:["regular"],fallback:"sans-serif"},"Sonsie One":{weight:["regular"],fallback:"display"},"Bilbo Swash Caps":{weight:["regular"],fallback:"handwriting"},Slackey:{weight:["regular"],fallback:"display"},Salsa:{weight:["regular"],fallback:"display"},Rationale:{weight:["regular"],fallback:"sans-serif"},"Hepta Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Nosifer:{weight:["regular"],fallback:"display"},Dekko:{weight:["regular"],fallback:"handwriting"},"Encode Sans Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Lily Script One":{weight:["regular"],fallback:"display"},"Zilla Slab Highlight":{weight:["regular","700"],fallback:"display"},Dokdo:{weight:["regular"],fallback:"handwriting"},"Kotta One":{weight:["regular"],fallback:"serif"},"Macondo Swash Caps":{weight:["regular"],fallback:"display"},"Encode Sans Semi Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Prosto One":{weight:["regular"],fallback:"display"},"Trade Winds":{weight:["regular"],fallback:"display"},Farsan:{weight:["regular"],fallback:"display"},Manuale:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},Creepster:{weight:["regular"],fallback:"display"},"Medula One":{weight:["regular"],fallback:"display"},Ranchers:{weight:["regular"],fallback:"display"},"David Libre":{weight:["regular","500","700"],fallback:"serif"},"Libre Barcode 39":{weight:["regular"],fallback:"display"},"Vampiro One":{weight:["regular"],fallback:"display"},Metamorphous:{weight:["regular"],fallback:"display"},"Bubbler One":{weight:["regular"],fallback:"sans-serif"},"Nova Mono":{weight:["regular"],fallback:"monospace"},"Princess Sofia":{weight:["regular"],fallback:"handwriting"},"Just Me Again Down Here":{weight:["regular"],fallback:"handwriting"},Notable:{weight:["regular"],fallback:"sans-serif"},"Fascinate Inline":{weight:["regular"],fallback:"display"},Vibur:{weight:["regular"],fallback:"handwriting"},"Vollkorn SC":{weight:["regular","600","700","900"],fallback:"serif"},Crushed:{weight:["regular"],fallback:"display"},Sumana:{weight:["regular","700"],fallback:"serif"},Elsie:{weight:["regular","900"],fallback:"display"},Ranga:{weight:["regular","700"],fallback:"display"},"Port Lligat Slab":{weight:["regular"],fallback:"serif"},Amarante:{weight:["regular"],fallback:"display"},"Ruslan Display":{weight:["regular"],fallback:"display"},"Germania One":{weight:["regular"],fallback:"display"},"Sirin Stencil":{weight:["regular"],fallback:"display"},Pavanam:{weight:["regular"],fallback:"sans-serif"},Peralta:{weight:["regular"],fallback:"display"},"Scope One":{weight:["regular"],fallback:"serif"},Jomolhari:{weight:["regular"],fallback:"serif"},Kranky:{weight:["regular"],fallback:"display"},"Yatra One":{weight:["regular"],fallback:"display"},"Jacques Francois Shadow":{weight:["regular"],fallback:"display"},Ribeye:{weight:["regular"],fallback:"display"},"Averia Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Saira Stencil One":{weight:["regular"],fallback:"display"},"Cherry Cream Soda":{weight:["regular"],fallback:"display"},"Mukta Mahee":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Srisakdi:{weight:["regular","700"],fallback:"display"},Trochut:{weight:["regular","italic","700"],fallback:"display"},Coiny:{weight:["regular"],fallback:"display"},"Ma Shan Zheng":{weight:["regular"],fallback:"handwriting"},Asul:{weight:["regular","700"],fallback:"sans-serif"},Ewert:{weight:["regular"],fallback:"display"},Arya:{weight:["regular","700"],fallback:"sans-serif"},"Hanalei Fill":{weight:["regular"],fallback:"display"},Grenze:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Ribeye Marrow":{weight:["regular"],fallback:"display"},"IM Fell English SC":{weight:["regular"],fallback:"serif"},"Chau Philomene One":{weight:["regular","italic"],fallback:"sans-serif"},Sarina:{weight:["regular"],fallback:"display"},Chicle:{weight:["regular"],fallback:"display"},Manjari:{weight:["100","regular","700"],fallback:"sans-serif"},Montaga:{weight:["regular"],fallback:"serif"},Italiana:{weight:["regular"],fallback:"serif"},Akronim:{weight:["regular"],fallback:"display"},Habibi:{weight:["regular"],fallback:"serif"},Englebert:{weight:["regular"],fallback:"sans-serif"},Dynalight:{weight:["regular"],fallback:"display"},"Mate SC":{weight:["regular"],fallback:"serif"},"Henny Penny":{weight:["regular"],fallback:"display"},"Sree Krushnadevaraya":{weight:["regular"],fallback:"serif"},Engagement:{weight:["regular"],fallback:"handwriting"},Girassol:{weight:["regular"],fallback:"display"},"Kite One":{weight:["regular"],fallback:"sans-serif"},"Ibarra Real Nova":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},Gaegu:{weight:["300","regular","700"],fallback:"handwriting"},Fenix:{weight:["regular"],fallback:"serif"},"Pirata One":{weight:["regular"],fallback:"display"},"Tulpen One":{weight:["regular"],fallback:"display"},"IM Fell Great Primer":{weight:["regular","italic"],fallback:"serif"},Chathura:{weight:["100","300","regular","700","800"],fallback:"sans-serif"},Unlock:{weight:["regular"],fallback:"display"},"Nova Round":{weight:["regular"],fallback:"display"},Sura:{weight:["regular","700"],fallback:"serif"},"Kumar One":{weight:["regular"],fallback:"display"},Baskervville:{weight:["regular","italic"],fallback:"serif"},Quintessential:{weight:["regular"],fallback:"handwriting"},Milonga:{weight:["regular"],fallback:"display"},Bayon:{weight:["regular"],fallback:"display"},"Be Vietnam":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},"Crimson Pro":{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},B612:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"League Script":{weight:["regular"],fallback:"handwriting"},"Inknut Antiqua":{weight:["300","regular","500","600","700","800","900"],fallback:"serif"},Mogra:{weight:["regular"],fallback:"display"},"Mystery Quest":{weight:["regular"],fallback:"display"},"Monsieur La Doulaise":{weight:["regular"],fallback:"handwriting"},Vibes:{weight:["regular"],fallback:"display"},Rosarivo:{weight:["regular","italic"],fallback:"serif"},"Uncial Antiqua":{weight:["regular"],fallback:"display"},Dorsa:{weight:["regular"],fallback:"sans-serif"},Almendra:{weight:["regular","italic","700","700italic"],fallback:"serif"},Diplomata:{weight:["regular"],fallback:"display"},Simonetta:{weight:["regular","italic","900","900italic"],fallback:"display"},"New Rocker":{weight:["regular"],fallback:"display"},Snippet:{weight:["regular"],fallback:"sans-serif"},Petrona:{weight:["regular"],fallback:"serif"},Ramaraja:{weight:["regular"],fallback:"serif"},"Averia Gruesa Libre":{weight:["regular"],fallback:"display"},"Baloo Bhaina 2":{weight:["regular","500","600","700","800"],fallback:"display"},Kodchasan:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Meera Inimai":{weight:["regular"],fallback:"sans-serif"},Flamenco:{weight:["300","regular"],fallback:"display"},Khmer:{weight:["regular"],fallback:"display"},Paprika:{weight:["regular"],fallback:"display"},Koulen:{weight:["regular"],fallback:"display"},Mansalva:{weight:["regular"],fallback:"handwriting"},"Lovers Quarrel":{weight:["regular"],fallback:"handwriting"},Condiment:{weight:["regular"],fallback:"handwriting"},"Baloo Thambi 2":{weight:["regular","500","600","700","800"],fallback:"display"},Stoke:{weight:["300","regular"],fallback:"serif"},Barrio:{weight:["regular"],fallback:"display"},Barriecito:{weight:["regular"],fallback:"display"},"Donegal One":{weight:["regular"],fallback:"serif"},Kavoon:{weight:["regular"],fallback:"display"},"Big Shoulders Display":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Mina:{weight:["regular","700"],fallback:"sans-serif"},"Big Shoulders Text":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Prociono:{weight:["regular"],fallback:"serif"},"Text Me One":{weight:["regular"],fallback:"sans-serif"},"IM Fell French Canon":{weight:["regular","italic"],fallback:"serif"},"Overlock SC":{weight:["regular"],fallback:"display"},Cagliostro:{weight:["regular"],fallback:"sans-serif"},"Marko One":{weight:["regular"],fallback:"serif"},"Swanky and Moo Moo":{weight:["regular"],fallback:"handwriting"},"Maiden Orange":{weight:["regular"],fallback:"display"},Blinker:{weight:["100","200","300","regular","600","700","800","900"],fallback:"sans-serif"},Miniver:{weight:["regular"],fallback:"display"},Angkor:{weight:["regular"],fallback:"display"},Chango:{weight:["regular"],fallback:"display"},Thasadith:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Modak:{weight:["regular"],fallback:"display"},Junge:{weight:["regular"],fallback:"serif"},"Stint Ultra Condensed":{weight:["regular"],fallback:"display"},Stalemate:{weight:["regular"],fallback:"handwriting"},Tillana:{weight:["regular","500","600","700","800"],fallback:"handwriting"},UnifrakturCook:{weight:["700"],fallback:"display"},"Rum Raisin":{weight:["regular"],fallback:"sans-serif"},Farro:{weight:["300","regular","500","700"],fallback:"sans-serif"},"Delius Unicase":{weight:["regular","700"],fallback:"handwriting"},Sancreek:{weight:["regular"],fallback:"display"},Julee:{weight:["regular"],fallback:"handwriting"},Margarine:{weight:["regular"],fallback:"display"},"Lakki Reddy":{weight:["regular"],fallback:"handwriting"},"Stint Ultra Expanded":{weight:["regular"],fallback:"display"},"Bigshot One":{weight:["regular"],fallback:"display"},Griffy:{weight:["regular"],fallback:"display"},Moul:{weight:["regular"],fallback:"display"},"Diplomata SC":{weight:["regular"],fallback:"display"},Oxanium:{weight:["200","300","regular","500","600","700","800"],fallback:"display"},Offside:{weight:["regular"],fallback:"display"},"Fira Code":{weight:["300","regular","500","600","700"],fallback:"monospace"},"Eagle Lake":{weight:["regular"],fallback:"handwriting"},Flavors:{weight:["regular"],fallback:"display"},"Londrina Outline":{weight:["regular"],fallback:"display"},Tomorrow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Nokora:{weight:["regular","700"],fallback:"serif"},Calistoga:{weight:["regular"],fallback:"display"},Gotu:{weight:["regular"],fallback:"sans-serif"},"Della Respira":{weight:["regular"],fallback:"serif"},"Cormorant Unicase":{weight:["300","regular","500","600","700"],fallback:"serif"},"Libre Caslon Text":{weight:["regular","italic","700"],fallback:"serif"},Buda:{weight:["300"],fallback:"display"},Asar:{weight:["regular"],fallback:"serif"},"Poller One":{weight:["regular"],fallback:"display"},"Autour One":{weight:["regular"],fallback:"display"},"Nova Slim":{weight:["regular"],fallback:"display"},Underdog:{weight:["regular"],fallback:"display"},Redressed:{weight:["regular"],fallback:"handwriting"},"Yeon Sung":{weight:["regular"],fallback:"display"},Content:{weight:["regular","700"],fallback:"display"},Kantumruy:{weight:["300","regular","700"],fallback:"sans-serif"},"Baloo Paaji 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Jim Nightshade":{weight:["regular"],fallback:"handwriting"},"Glass Antiqua":{weight:["regular"],fallback:"display"},"Snowburst One":{weight:["regular"],fallback:"display"},"Gamja Flower":{weight:["regular"],fallback:"handwriting"},Revalia:{weight:["regular"],fallback:"display"},"Metal Mania":{weight:["regular"],fallback:"display"},Charmonman:{weight:["regular","700"],fallback:"handwriting"},"IM Fell DW Pica SC":{weight:["regular"],fallback:"serif"},Inika:{weight:["regular","700"],fallback:"serif"},"Elsie Swash Caps":{weight:["regular","900"],fallback:"display"},Wellfleet:{weight:["regular"],fallback:"display"},"Chela One":{weight:["regular"],fallback:"display"},"Rhodium Libre":{weight:["regular"],fallback:"serif"},"Mrs Sheppards":{weight:["regular"],fallback:"handwriting"},"Sedgwick Ave Display":{weight:["regular"],fallback:"handwriting"},"Modern Antiqua":{weight:["regular"],fallback:"display"},"Ravi Prakash":{weight:["regular"],fallback:"display"},Galdeano:{weight:["regular"],fallback:"sans-serif"},Oldenburg:{weight:["regular"],fallback:"display"},Arbutus:{weight:["regular"],fallback:"display"},"Poor Story":{weight:["regular"],fallback:"display"},"Hi Melody":{weight:["regular"],fallback:"handwriting"},"Joti One":{weight:["regular"],fallback:"display"},"Nova Flat":{weight:["regular"],fallback:"display"},"ZCOOL QingKe HuangYou":{weight:["regular"],fallback:"display"},"Linden Hill":{weight:["regular","italic"],fallback:"serif"},Bokor:{weight:["regular"],fallback:"display"},"Courier Prime":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Trykker:{weight:["regular"],fallback:"serif"},KoHo:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Song Myung":{weight:["regular"],fallback:"serif"},Ruthie:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended Text":{weight:["regular"],fallback:"display"},Chilanka:{weight:["regular"],fallback:"handwriting"},Fahkwang:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Felipa:{weight:["regular"],fallback:"handwriting"},Monofett:{weight:["regular"],fallback:"display"},"Odibee Sans":{weight:["regular"],fallback:"display"},Smythe:{weight:["regular"],fallback:"display"},"Major Mono Display":{weight:["regular"],fallback:"monospace"},Jomhuria:{weight:["regular"],fallback:"display"},"Croissant One":{weight:["regular"],fallback:"display"},Dangrek:{weight:["regular"],fallback:"display"},"Original Surfer":{weight:["regular"],fallback:"display"},Bahiana:{weight:["regular"],fallback:"display"},Gorditas:{weight:["regular","700"],fallback:"display"},"Odor Mean Chey":{weight:["regular"],fallback:"display"},Iceberg:{weight:["regular"],fallback:"display"},MedievalSharp:{weight:["regular"],fallback:"display"},"Caesar Dressing":{weight:["regular"],fallback:"display"},Sahitya:{weight:["regular","700"],fallback:"serif"},Stylish:{weight:["regular"],fallback:"sans-serif"},"Nova Cut":{weight:["regular"],fallback:"display"},"Purple Purse":{weight:["regular"],fallback:"display"},Devonshire:{weight:["regular"],fallback:"handwriting"},Smokum:{weight:["regular"],fallback:"display"},"Almendra Display":{weight:["regular"],fallback:"display"},Galindo:{weight:["regular"],fallback:"display"},Preahvihear:{weight:["regular"],fallback:"display"},Siemreap:{weight:["regular"],fallback:"display"},"Irish Grover":{weight:["regular"],fallback:"display"},Gupter:{weight:["regular","500","700"],fallback:"serif"},"Meie Script":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128":{weight:["regular"],fallback:"display"},"Keania One":{weight:["regular"],fallback:"display"},"GFS Neohellenic":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Cute Font":{weight:["regular"],fallback:"display"},"Londrina Shadow":{weight:["regular"],fallback:"display"},"East Sea Dokdo":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended":{weight:["regular"],fallback:"display"},Risque:{weight:["regular"],fallback:"display"},Lancelot:{weight:["regular"],fallback:"display"},"Libre Caslon Display":{weight:["regular"],fallback:"serif"},Plaster:{weight:["regular"],fallback:"display"},"Goblin One":{weight:["regular"],fallback:"display"},Asset:{weight:["regular"],fallback:"display"},"Almendra SC":{weight:["regular"],fallback:"serif"},"Jacques Francois":{weight:["regular"],fallback:"serif"},"Jolly Lodger":{weight:["regular"],fallback:"display"},"Lexend Exa":{weight:["regular"],fallback:"sans-serif"},Molle:{weight:["italic"],fallback:"handwriting"},Kavivanar:{weight:["regular"],fallback:"handwriting"},"Kirang Haerang":{weight:["regular"],fallback:"display"},Piedra:{weight:["regular"],fallback:"display"},"Atomic Age":{weight:["regular"],fallback:"display"},"Kulim Park":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Libre Barcode 39 Text":{weight:["regular"],fallback:"display"},"IM Fell Great Primer SC":{weight:["regular"],fallback:"serif"},"Tenali Ramakrishna":{weight:["regular"],fallback:"sans-serif"},Butcherman:{weight:["regular"],fallback:"display"},"Dr Sugiyama":{weight:["regular"],fallback:"handwriting"},"Geostar Fill":{weight:["regular"],fallback:"display"},Romanesco:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128 Text":{weight:["regular"],fallback:"display"},Sunshiney:{weight:["regular"],fallback:"handwriting"},"Kumar One Outline":{weight:["regular"],fallback:"display"},Peddana:{weight:["regular"],fallback:"serif"},"Baloo Bhai 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Kdam Thmor":{weight:["regular"],fallback:"display"},"Ruge Boogie":{weight:["regular"],fallback:"handwriting"},Freehand:{weight:["regular"],fallback:"display"},Bonbon:{weight:["regular"],fallback:"handwriting"},Caladea:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Single Day":{weight:["regular"],fallback:"display"},"Baloo Tamma 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Inria Sans":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Hanalei:{weight:["regular"],fallback:"display"},"Emblema One":{weight:["regular"],fallback:"display"},"Seymour One":{weight:["regular"],fallback:"sans-serif"},"Miss Fajardose":{weight:["regular"],fallback:"handwriting"},Sevillana:{weight:["regular"],fallback:"display"},"Inria Serif":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Bungee Outline":{weight:["regular"],fallback:"display"},Metal:{weight:["regular"],fallback:"display"},"IM Fell Double Pica SC":{weight:["regular"],fallback:"serif"},"Lexend Giga":{weight:["regular"],fallback:"sans-serif"},"ZCOOL KuaiLe":{weight:["regular"],fallback:"display"},Astloch:{weight:["regular","700"],fallback:"display"},"Mr Bedfort":{weight:["regular"],fallback:"handwriting"},Macondo:{weight:["regular"],fallback:"display"},"Butterfly Kids":{weight:["regular"],fallback:"handwriting"},"Supermercado One":{weight:["regular"],fallback:"display"},Fruktur:{weight:["regular"],fallback:"display"},Taprom:{weight:["regular"],fallback:"display"},Lacquer:{weight:["regular"],fallback:"display"},"Black And White Picture":{weight:["regular"],fallback:"sans-serif"},"Bigelow Rules":{weight:["regular"],fallback:"display"},"Beth Ellen":{weight:["regular"],fallback:"handwriting"},"Sofadi One":{weight:["regular"],fallback:"display"},Combo:{weight:["regular"],fallback:"display"},Bellota:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Federant:{weight:["regular"],fallback:"display"},"Miltonian Tattoo":{weight:["regular"],fallback:"display"},"Londrina Sketch":{weight:["regular"],fallback:"display"},Suwannaphum:{weight:["regular"],fallback:"display"},"Bungee Hairline":{weight:["regular"],fallback:"display"},Fascinate:{weight:["regular"],fallback:"display"},"Erica One":{weight:["regular"],fallback:"display"},"Nova Oval":{weight:["regular"],fallback:"display"},"Baloo Da 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Sulphur Point":{weight:["300","regular","700"],fallback:"sans-serif"},Aubrey:{weight:["regular"],fallback:"display"},Gidugu:{weight:["regular"],fallback:"sans-serif"},"Bellota Text":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Nova Script":{weight:["regular"],fallback:"display"},Miltonian:{weight:["regular"],fallback:"display"},Gayathri:{weight:["100","regular","700"],fallback:"sans-serif"},Geostar:{weight:["regular"],fallback:"display"},Moulpali:{weight:["regular"],fallback:"display"},"Passero One":{weight:["regular"],fallback:"display"},"Stalinist One":{weight:["regular"],fallback:"display"},"Long Cang":{weight:["regular"],fallback:"handwriting"},Solway:{weight:["300","regular","500","700","800"],fallback:"serif"},"Zhi Mang Xing":{weight:["regular"],fallback:"handwriting"},"Baloo Tammudu 2":{weight:["regular","500","600","700","800"],fallback:"display"},Chenla:{weight:["regular"],fallback:"display"},Suravaram:{weight:["regular"],fallback:"serif"},Fasthand:{weight:["regular"],fallback:"serif"},Kenia:{weight:["regular"],fallback:"display"},Dhurjati:{weight:["regular"],fallback:"sans-serif"},"Lexend Tera":{weight:["regular"],fallback:"sans-serif"},"BioRhyme Expanded":{weight:["200","300","regular","700","800"],fallback:"serif"},"Turret Road":{weight:["200","300","regular","500","700","800"],fallback:"display"},Warnes:{weight:["regular"],fallback:"display"},"Viaoda Libre":{weight:["regular"],fallback:"display"},"Lexend Mega":{weight:["regular"],fallback:"sans-serif"},Bahianita:{weight:["regular"],fallback:"display"},Manrope:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Lexend Zetta":{weight:["regular"],fallback:"sans-serif"},"Lexend Peta":{weight:["regular"],fallback:"sans-serif"}});function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var je=function(e){f()(a,e);var t=Oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.setAttributes,i=t.attributes,r=t.device,n=void 0===r?"":r,c=t.showFontSize,s=void 0!==c&&c,g=t.showFontFamily,b=void 0!==g&&g,u=t.showFontWeight,d=void 0!==u&&u,p=t.showTextTransform,f=void 0!==p&&p,h=t.showLineHeight,m=void 0!==h&&h,k=t.showLetterSpacing,y=void 0!==k&&k,v=t.disableAdvancedToggle,w=void 0!==v&&v,O=t.fontSizePlaceholder,j=void 0===O?"17":O,_=[{value:"",label:Object(T.__)("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(we).slice(0,20).forEach((function(e){_.push({value:e,label:e})})),_.push({value:"other",label:Object(T.__)("Other","generateblocks")});var S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],B=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"uppercase",label:Object(T.__)("Uppercase","generateblocks")},{value:"lowercase",label:Object(T.__)("Lowercase","generateblocks")},{value:"capitalize",label:Object(T.__)("Capitalize","generateblocks")},{value:"initial",label:Object(T.__)("Normal","generateblocks")}];void 0!==we[i.fontFamily]&&void 0!==we[i.fontFamily].weight&&(S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")}],we[i.fontFamily].weight.filter((function(e){var t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e)})).forEach((function(e){S.push({value:e,label:e})})));var D=function(e){"other"===e&&(e="");i.fontWeight;a({fontFamily:e}),i.fontWeight&&Object.values(S).indexOf(i.fontWeight),void 0!==we[e]?a({googleFont:!0,fontFamilyFallback:we[e].fallback,googleFontVariants:we[e].weight.join(", ")}):a({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})},R=function(e){a({fontFamily:e.target.value}),D(e.target.value)},x=function(e,t){return i[e+t]},M=function(e,t){return e+t},z=i.showAdvancedTypography;w&&(z=!0);var L=j;"Tablet"===n&&i.fontSize&&(L=i.fontSize),"Mobile"===n&&(i.fontSizeTablet?L=i.fontSizeTablet:i.fontSize&&(L=i.fontSize));var P="";return"Tablet"===n&&i.lineHeight&&(P=i.lineHeight),"Mobile"===n&&(i.lineHeightTablet?P=i.lineHeightTablet:i.lineHeight&&(P=i.lineHeight)),Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-gblocks-typography-weight-transform"},d&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Weight","generateblocks"),value:i.fontWeight,options:S,onChange:function(e){a({fontWeight:e})},className:"components-base-control"}),f&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Transform","generateblocks"),value:i.textTransform,options:B,onChange:function(e){a({textTransform:e})},className:"components-base-control"})),!w&&Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Show Advanced Typography","generateblocks"),checked:!!i.showAdvancedTypography,onChange:function(e){a({showAdvancedTypography:e})}}),b&&z&&Object(l.createElement)(C.BaseControl,{className:"gblocks-font-family-shortcuts"},Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Font Family","generateblocks")),Object(l.createElement)("select",{className:"components-select-control__input components-select-control__input--gblocks-fontfamily",onChange:R,onBlur:R},_.map((function(e,t){return Object(l.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))),b&&z&&Object(l.createElement)(C.TextControl,{value:i.fontFamily,placeholder:Object(T.__)("Enter font name","generateblocks"),onChange:function(e){return D(e)}}),b&&""!==i.fontFamily&&z&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Google Font","generateblocks"),checked:!!i.googleFont,onChange:function(e){a({googleFont:e}),e&&void 0!==we[i.fontFamily]&&a({fontFamilyFallback:we[i.fontFamily].fallback,googleFontVariants:we[i.fontFamily].weight.join(", ")})}}),!!i.googleFont&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Variants","generateblocks"),value:i.googleFontVariants,placeholder:Object(T.__)("300, 400, 400i","generateblocks"),onChange:function(e){a({googleFontVariants:e})}})),b&&z&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Font Family Fallback","generateblocks"),value:i.fontFamilyFallback,placeholder:Object(T.__)("sans-serif","generateblocks"),onChange:function(e){a({fontFamilyFallback:e})}}),s&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Font Size","generateblocks"),value:i.fontSizeUnit,units:["px","em","%"],onClick:function(e){a({fontSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("fontSize",n)||"",placeholder:L,onChange:function(e){var t=M("fontSize",n);a(o()({},t,parseFloat(e)))},min:1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("fontSize",n);a(o()({},t,e.props.defaultFontSize))}},Object(T.__)("Reset","generateblocks")))),m&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Line Height","generateblocks"),value:i.lineHeightUnit,units:["px","em","%"],onClick:function(e){a({lineHeightUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("lineHeight",n)||0===x("lineHeight",n)?x("lineHeight",n):"",placeholder:P,onChange:function(e){var t=M("lineHeight",n);a(o()({},t,e))},onBlur:function(){var e=M("lineHeight",n);a(o()({},e,parseFloat(x("lineHeight",n))))},onClick:function(e){e.currentTarget.focus()},min:0,step:.1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("lineHeight",n);a(o()({},t,e.props.defaultLineHeight))}},Object(T.__)("Reset","generateblocks")))),y&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Letter Spacing","generateblocks"),value:"em",units:["em"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("letterSpacing",n)||"",placeholder:"0.01",onChange:function(e){var t=M("letterSpacing",n);a(o()({},t,e))},onBlur:function(){var e=M("letterSpacing",n);a(o()({},e,parseFloat(x("letterSpacing",n))))},onClick:function(e){e.currentTarget.focus()},min:-1,step:.01,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("letterSpacing",n);a(o()({},t,e.props.defaultLetterSpacing))}},Object(T.__)("Reset","generateblocks")))))}}]),a}(l.Component);a(39);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ce=function(e){f()(a,e);var t=Te(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrGradient,n=t.attrGradientDirection,c=t.attrGradientColorOne,s=t.attrGradientColorOneOpacity,g=t.attrGradientColorStopOne,b=t.attrGradientColorTwo,u=t.attrGradientColorTwoOpacity,d=t.attrGradientColorStopTwo,p=t.defaultColorOne,f=t.defaultColorTwo,h=a.gradientSelector,m="element"===h?Object(T.__)("Displays behind the background image.","generateblocks"):Object(T.__)("Displays in front of the background image.","generateblocks");return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Use Gradient","generateblocks"),checked:!!a[r],onChange:function(t){i(o()({},e.props.attrGradient,t))}}),!!a[r]&&Object(l.createElement)(l.Fragment,null,void 0!==h&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Selector","generateblocks"),help:m,value:h,options:[{label:Object(T.__)("Element","generateblocks"),value:"element"},{label:Object(T.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){i({gradientSelector:e})}}),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Direction","generateblocks")),Object(l.createElement)(C.RangeControl,{value:a[n]?a[n]:1,onChange:function(e){i(o()({},n,e))},min:0,max:360,step:1,initialPosition:90})),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color One","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[c],alpha:!0,valueOpacity:a[s],attrOpacity:"gradientColorOneOpacity",onChange:function(e){return i(o()({},c,e))},onOpacityChange:function(e){return i(o()({},s,e))},onClear:function(){return i(o()({},c,p))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[g]||0===a[g]?a[g]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},g,e))},onBlur:function(){(a[g]||0===a[g])&&i(o()({},g,parseFloat(a[g])))},onClick:function(e){e.currentTarget.focus()}}))),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color Two","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[b],alpha:!0,valueOpacity:a[u],attrOpacity:"gradientColorTwoOpacity",onChange:function(e){return i(o()({},b,e))},onOpacityChange:function(e){return i(o()({},u,e))},onClear:function(){return i(o()({},b,f))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[d]||0===a[d]?a[d]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},d,e))},onBlur:function(){(a[d]||0===a[d])&&i(o()({},d,parseFloat(a[d])))},onClick:function(e){e.currentTarget.focus()}})))))}}]),a}(l.Component),_e=a(25),Se=a.n(_e);function Be(e){return Se.a.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}function De(e,t,a,l,i){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+i+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+i+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+i+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+i+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}function Ee(e,t){var a=t.attributes,l=a.backgroundColor,i=a.backgroundColorOpacity,r=a.bgImage,n=a.gradient,o=a.bgOptions,c=a.gradientColorOne,s=a.gradientColorOneOpacity,g=a.gradientColorTwo,b=a.gradientColorTwoOpacity,u=a.gradientColorStopOne,d=a.gradientColorStopTwo,p=a.gradientDirection,f="";if(n){var h="",m="";c&&""!==u&&(h=" "+u+"%"),g&&""!==d&&(m=" "+d+"%"),f="linear-gradient("+p+"deg, "+he(c,s)+h+", "+he(g,b)+m+")"}if("gradient"===e)return f;var k=!1,y=he(l,i);if(r){var v=r.image.url;v=Object(_.applyFilters)("generateblocks.editor.bgImageURL",v,t),"element"===o.selector&&(y||n)&&void 0!==o.overlay&&o.overlay?n?k=f+", url("+v+")":y&&(k="linear-gradient(0deg, "+y+", "+y+"), url("+v+")"):k="url("+v+")"}return k}function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var xe=function(e){f()(a,e);var t=Re(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.width,n=e.outerContainer,o=e.innerContainer,c=e.containerWidth,s=e.minHeight,g=e.minHeightUnit,b=e.paddingTop,u=e.paddingRight,d=e.paddingBottom,p=e.paddingLeft,f=e.paddingUnit,h=e.marginTop,m=e.marginRight,k=e.marginBottom,y=e.marginLeft,v=e.marginUnit,w=e.borderSizeTop,O=e.borderSizeRight,j=e.borderSizeBottom,T=e.borderSizeLeft,C=e.borderRadiusTopRight,S=e.borderRadiusBottomRight,B=e.borderRadiusBottomLeft,D=e.borderRadiusTopLeft,E=e.borderRadiusUnit,R=e.borderColor,x=e.borderColorOpacity,L=e.backgroundColor,P=e.backgroundColorOpacity,F=e.gradient,A=e.gradientSelector,U=e.textColor,H=e.linkColor,N=e.linkColorHover,I=e.bgImage,G=e.bgOptions,V=e.verticalAlignment,q=e.zindex,W=e.innerZindex,Z=e.alignment,K=e.fontFamily,J=e.fontFamilyFallback,Y=e.fontWeight,Q=e.fontSize,X=e.fontSizeUnit,$=e.textTransform,ee=e.shapeDividers,te=c;te||(te=generateBlocksDefaults.container.containerWidth);var ae="";K&&J&&(ae=", "+J);var le=!!I,ie=Ee("image",this.props),re=Ee("gradient",this.props),ne=W,oe=[];return oe[".gb-container-"+a]=[{"background-color":he(L,P),color:U,"border-radius":De(D,C,S,B,E),margin:De(h,m,k,y,v),"z-index":q,"text-align":Z,"font-family":K+ae,"font-weight":Y,"text-transform":$,"font-size":z(Q,X),"min-height":z(s,g)}],le&&"element"===G.selector&&ie?oe[".gb-container-"+a].push({"background-image":ie,"background-size":G.size,"background-position":G.position,"background-repeat":G.repeat,"background-attachment":G.attachment}):F&&"element"===A&&oe[".gb-container-"+a].push({"background-image":re}),(le&&"pseudo-element"===G.selector||q||F&&"pseudo-element"===A)&&oe[".gb-container-"+a].push({position:"relative"}),(le&&"pseudo-element"===G.selector||F&&"pseudo-element"===A)&&(oe[".gb-container-"+a].push({overflow:"hidden"}),oe[".gb-container-"+a+" .block-list-appender"]=[{"z-index":10}],ne||(ne=1)),oe[".editor-styles-wrapper .gb-container-"+a+" h1,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h2,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h3,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h4,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h5,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h6"]=[{color:U}],(w||O||j||T)&&oe[".gb-container-"+a].push({"border-width":De(w,O,j,T,"px"),"border-style":"solid","border-color":he(R,x)}),s&&!i&&oe[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":V}),i&&(oe[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":V}),oe[".block-editor-block-list__layout > #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":De(D,C,S,B,E)}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie=e.content,re="",ne="inline-block";d&&p&&(re=", "+p);var oe=i+".gb-headline-"+a,ce=[];return ce[".editor-styles-wrapper "+oe]=[{color:c,"font-family":d+re,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],ce[".editor-styles-wrapper .gb-container "+oe]=[{color:c}],V&&(ne="inline-flex"),ce[".editor-styles-wrapper "+oe].push({"background-color":he(n,o),color:c,display:!!ae&&ne,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&ce[".editor-styles-wrapper "+oe].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),ce[".editor-styles-wrapper "+oe+" a"]=[{color:s}],ce[oe+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],ce[oe+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],ce[oe+" .gb-highlight"]=[{color:u}],ce["#block-"+t]=[{display:!!ae&&"inline-flex"}],V&&!ie&&(ce[".gb-headline-text"]=[{display:"block",width:"100%"}]),ce=Object(_.applyFilters)("generateblocks.editor.mainCSS",ce,this.props,"headline"),Object(l.createElement)("style",null,M(ce))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" +Object(T.sprintf)(Object(T.__)("Shape %s","generateblocks"),i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.Dropdown,{renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Edit Shape","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-shape-dropdown",isSecondary:!t||void 0,isPrimary:!!t||void 0,icon:"admin-tools",onClick:a,"aria-expanded":t}))},renderContent:function(){return Object(l.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.BaseControl,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map((function(e,t){var i=generateBlocksInfo.svgShapes[e].svgs;return Object(l.createElement)(C.PanelBody,{title:generateBlocksInfo.svgShapes[e].group,initialOpen:i.hasOwnProperty(ge[a].shape),key:t},Object(l.createElement)(C.PanelRow,null,Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("ul",{className:"gblocks-icon-chooser gblocks-shape-chooser"},Object.keys(i).map((function(e,t){return Object(l.createElement)("li",{key:"editor-pblock-types-list-item-".concat(t)},Object(l.createElement)(C.Tooltip,{text:i[e].label},Object(l.createElement)(C.Button,{className:w()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":ge[a].shape===e}),onClick:function(){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{shape:e}),n({shapeDividers:t})}},"string"==typeof i[e].icon?Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:Be(i[e].icon)}})):Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},i[e].icon)))))}))))))}))),Object(l.createElement)(ke,{label:Object(T.__)("Color","generateblocks"),value:ge[a].color,alpha:!0,valueOpacity:ge[a].colorOpacity,onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{color:e}),n({shapeDividers:t})},onOpacityChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{colorOpacity:e}),n({shapeDividers:t})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Location","generateblocks"),value:ge[a].location,options:[{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{location:e}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].height?ge[a].height:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{height:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].width?ge[a].width:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{width:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Flip Horizontally","generateblocks"),checked:!!ge[a].flipHorizontally,onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{flipHorizontally:e}),n({shapeDividers:t})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("z-index","generateblocks"),type:"number",min:"0",value:ge[a].zindex||0===ge[a].zindex?ge[a].zindex:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{zindex:e}),n({shapeDividers:t})},onBlur:function(){var e=pe()(ge);e[a]=Ie(Ie({},e[a]),{},{zindex:parseFloat(ge[a].zindex)}),n({shapeDividers:e})},onClick:function(e){e.currentTarget.focus()}})),"Tablet"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].heightTablet?ge[a].heightTablet:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{heightTablet:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].widthTablet?ge[a].widthTablet:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{widthTablet:parseFloat(e)}),n({shapeDividers:t})}})),"Mobile"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].heightMobile?ge[a].heightMobile:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{heightMobile:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].widthMobile?ge[a].widthMobile:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{widthMobile:parseFloat(e)}),n({shapeDividers:t})}})))}})),"Desktop"===t.getDeviceType()&&Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Delete Shape","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-remove-shape",onClick:function(){window.confirm(Object(T.__)("This will permanently delete this shape.","generateblocks"))&&function(e){var t=pe()(ge);t.splice(e,1),n({shapeDividers:t})}(a)},icon:"no-alt"}))))})),Object(l.createElement)("div",{className:"gblocks-add-new-shape"},Object(l.createElement)(C.Button,{isSecondary:!0,onClick:function(){var e=pe()(ge);e.push({shape:generateBlocksStyling.container.shapeDividers.shape,color:generateBlocksStyling.container.shapeDividers.color,colorOpacity:generateBlocksStyling.container.shapeDividers.colorOpacity,location:generateBlocksStyling.container.shapeDividers.location,height:generateBlocksStyling.container.shapeDividers.height,heightTablet:generateBlocksStyling.container.shapeDividers.heightTablet,heightMobile:generateBlocksStyling.container.shapeDividers.heightMobile,width:generateBlocksStyling.container.shapeDividers.width,widthTablet:generateBlocksStyling.container.shapeDividers.widthTablet,widthMobile:generateBlocksStyling.container.shapeDividers.widthMobile,flipHorizontally:generateBlocksStyling.container.shapeDividers.flipHorizontally,zindex:generateBlocksStyling.container.shapeDividers.zindex}),n({shapeDividers:e})}.bind(this)},Object(T.__)("Add Shape","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","containerShapeDivider",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),initialOpen:!1,icon:j("documentation"),className:"gblocks-panel-label",id:"containerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/container/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","containerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(Ve,"-"),n({anchor:e})}})),Object(l.createElement)(xe,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(ze,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Pe,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Ae,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(He,this.props)),re&&ne&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+re.replace(/ /g,"+")+me}),Object(l.createElement)(fe,{tagName:Object(_.applyFilters)("generateblocks.frontend.containerTagName",d,i),htmlAttrs:De},Object(_.applyFilters)("generateblocks.frontend.afterContainerOpen","",i),Object(l.createElement)("div",{className:w()({"gb-inside-container":!0})},Object(_.applyFilters)("generateblocks.frontend.insideContainer","",i),Object(l.createElement)(Q.InnerBlocks,{templateLock:!1,renderAppender:c?void 0:function(){return Object(l.createElement)(Q.InnerBlocks.ButtonBlockAppender,null)}})),Object(l.createElement)(l.Fragment,null,!!i.shapeDividers.length&&Object(l.createElement)("div",{className:"gb-shapes"},i.shapeDividers.map((function(e,t){var a=t+1;return Object(l.createElement)(l.Fragment,{key:t},void 0!==_e[ge[t].shape]&&Object(l.createElement)("div",{className:w()(o()({"gb-shape":!0},"gb-shape-".concat(a),!0)),dangerouslySetInnerHTML:{__html:Be(_e[ge[t].shape].icon)}}))})))),Object(_.applyFilters)("generateblocks.frontend.beforeContainerClose","",i)))}}]),a}(l.Component),Ze=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType,a=e("core").getMedia,l=(0,e("core/editor").getEditedPostAttribute)("featured_media");return t?{media:l?a(l):null,deviceType:t()}:{media:l?a(l):null,deviceType:null}}))])(We),Ke={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isGrid:{type:"boolean",default:!1},gridId:{type:"string",default:""},tagName:{type:"string",default:generateBlocksDefaults.container.tagName},width:{type:"number",default:generateBlocksDefaults.container.width},widthTablet:{type:"number",default:generateBlocksDefaults.container.widthTablet},widthMobile:{type:"number",default:generateBlocksDefaults.container.widthMobile},orderTablet:{type:"number",default:generateBlocksDefaults.container.orderTablet},orderMobile:{type:"number",default:generateBlocksDefaults.container.orderMobile},outerContainer:{type:"string",default:generateBlocksDefaults.container.outerContainer},innerContainer:{type:"string",default:generateBlocksDefaults.container.innerContainer},containerWidth:{type:"number",default:generateBlocksDefaults.container.containerWidth},minHeight:{type:"number",default:generateBlocksDefaults.container.minHeight},minHeightUnit:{type:"string",default:generateBlocksDefaults.container.minHeightUnit},minHeightTablet:{type:"number",default:generateBlocksDefaults.container.minHeightTablet},minHeightUnitTablet:{type:"string",default:generateBlocksDefaults.container.minHeightUnitTablet},minHeightMobile:{type:"number",default:generateBlocksDefaults.container.minHeightMobile},minHeightUnitMobile:{type:"string",default:generateBlocksDefaults.container.minHeightUnitMobile},paddingTop:{type:"string",default:generateBlocksDefaults.container.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.container.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.container.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.container.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.container.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},paddingTopTablet:{type:"string",default:generateBlocksDefaults.container.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.container.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.container.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.container.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.container.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.container.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.container.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.container.paddingLeftMobile},marginTop:{type:"string",default:generateBlocksDefaults.container.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.container.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.container.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.container.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.container.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.container.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.container.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.container.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.container.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.container.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.container.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.container.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.container.marginLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.container.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.container.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.container.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.container.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.container.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftMobile},borderColor:{type:"string",default:generateBlocksDefaults.container.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.container.borderColorOpacity},backgroundColor:{type:"string",default:generateBlocksDefaults.container.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.container.backgroundColorOpacity},gradient:{type:"boolean",default:generateBlocksDefaults.container.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.container.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.container.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.container.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.container.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.container.gradientColorStopTwo},gradientSelector:{type:"string",default:"element"},textColor:{type:"string",default:generateBlocksDefaults.container.textColor},linkColor:{type:"string",default:generateBlocksDefaults.container.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.container.linkColorHover},bgImage:{type:"object",default:generateBlocksDefaults.container.bgImage},bgOptions:{type:"object",default:{selector:generateBlocksDefaults.container.bgOptions.selector,opacity:generateBlocksDefaults.container.bgOptions.opacity,overlay:generateBlocksDefaults.container.bgOptions.overlay,position:generateBlocksDefaults.container.bgOptions.position,size:generateBlocksDefaults.container.bgOptions.size,repeat:generateBlocksDefaults.container.bgOptions.repeat,attachment:generateBlocksDefaults.container.bgOptions.attachment}},bgImageSize:{type:"string",default:generateBlocksDefaults.container.bgImageSize},verticalAlignment:{type:"string",default:generateBlocksDefaults.container.verticalAlignment},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentTablet},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentMobile},zindex:{type:"number",default:generateBlocksDefaults.container.zindex},innerZindex:{type:"number",default:generateBlocksDefaults.container.innerZindex},removeVerticalGap:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGap},removeVerticalGapTablet:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapTablet},removeVerticalGapMobile:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapMobile},alignment:{type:"string",default:generateBlocksDefaults.container.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.container.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.container.alignmentMobile},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.container.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.container.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.container.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.container.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.container.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.container.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.container.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.container.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.container.fontSizeUnit},textTransform:{type:"string",default:""},align:{type:"string",default:""},shapeDividers:{type:"array",default:[]},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};generateBlocksInfo.hasCustomFields&&Object.assign(Ke,{fullWidthContent:{type:"string",source:"meta",meta:"_generate-full-width-content"}});var Je=Ke;function Ye(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Qe(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie="",re="inline-block";d&&p&&(ie=", "+p);var ne=i+".gb-headline-"+a,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:c,"font-family":d+ie,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:c}],V&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":he(n,o),color:c,display:!!ae&&re,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:s}],oe[ne+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],oe[ne+" .gb-highlight"]=[{color:u}],oe["#block-"+t]=[{display:!!ae&&"inline-flex"}],oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(oa,{level:"h2"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"2"),onClick:function(){n({element:"h2"})}},{isActive:"h3"===d,icon:Object(l.createElement)(oa,{level:"h3"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"3"),onClick:function(){n({element:"h3"})}},{isActive:"h4"===d,icon:Object(l.createElement)(oa,{level:"h4"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"4"),onClick:function(){n({element:"h4"})}},{isActive:"h5"===d,icon:Object(l.createElement)(oa,{level:"h5"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"5"),onClick:function(){n({element:"h5"})}},{isActive:"h6"===d,icon:Object(l.createElement)(oa,{level:"h6"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" -Object(T.__)("Heading %s","generateblocks"),"6"),onClick:function(){n({element:"h6"})}},{isActive:"p"===d,icon:Object(l.createElement)(oa,{level:"p"}),title:Object(T.__)("Paragraph","generateblocks"),onClick:function(){n({element:"p"})}},{isActive:"div"===d,icon:Object(l.createElement)(oa,{level:"div"}),title:Object(T.__)("Div","generateblocks"),onClick:function(){n({element:"div"})}}]}),"Desktop"===this.getDeviceType()&&!te&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&!ae&&Object(l.createElement)(Q.AlignmentToolbar,{value:f,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&!le&&Object(l.createElement)(Q.AlignmentToolbar,{value:h,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{id:"headlineElement",state:this.state,showPanel:"Desktop"===this.getDeviceType()}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Tag Name","generateblocks"),value:d,options:[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"paragraph",value:"p"},{label:"div",value:"div"}],onChange:function(e){n({element:e}),L||P||F||A||n("p"===e?{marginUnit:"em"}:{marginUnit:generateBlocksDefaults.headline.marginUnit})}}),Object(_.applyFilters)("generateblocks.editor.controls","","headlineElement",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"headlineTypography",state:this.state,showPanel:!ie||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,fontSizePlaceholder:c,defaultFontSize:generateBlocksDefaults.headline.fontSize,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeight,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightTablet,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightMobile,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"headlineSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!te,onChange:function(e){n({inlineWidth:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!ae,onChange:function(e){n({inlineWidthTablet:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!le,onChange:function(e){n({inlineWidthMobile:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"headlineColors",state:this.state,showPanel:"Desktop"===this.getDeviceType()||!1}),Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:m,alpha:!0,valueOpacity:k,attrOpacity:"backgroundColorOpacity",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:y,alpha:!1,onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Link Color","generateblocks"),value:v,alpha:!1,onChange:function(e){return n({linkColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Link Color Hover","generateblocks"),value:O,alpha:!1,onChange:function(e){return n({linkColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:S,alpha:!0,valueOpacity:D,attrOpacity:"borderColorOpacity",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),U&&Object(l.createElement)(ke,{label:Object(T.__)("Icon Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"iconColorOpacity",onChange:function(e){return n({iconColor:e})},onOpacityChange:function(e){return n({iconColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Highlight Text","generateblocks"),value:R,alpha:!1,onChange:function(e){return n({highlightTextColor:e})}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"headlineIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!U)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel"})),"Desktop"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:G,options:[{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocation:e,iconPaddingRight:"inline"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":""})}}),"inline"===G&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:W,options:[{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignment:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:J||0===J?J:"",step:"em"===ee?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(J)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.headline.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:V,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":""})}}),"inline"===V&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:Z,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentTablet:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:X||0===X?X:"",step:"em"===ee?.1:1,placeholder:J||0===J?J:"",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(X)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.headline.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:q,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":""})}}),"inline"===q&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:K,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentMobile:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:$||0===$?$:"",step:"em"===ee?.1:1,placeholder:oe,onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat($)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.headline.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"headlineDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/headline/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","headlineDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:g||"",onChange:function(e){e=e.replace(sa,"-"),n({anchor:e})}})),Object(l.createElement)(Kt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Yt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Xt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ea,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(aa,this.props)),x&&M&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+x.replace(/ /g,"+")+ne}),Object(l.createElement)(fe,{tagName:d,htmlAttrs:ce},H&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"gb-icon","aria-label":ie&&re?re:void 0,dangerouslySetInnerHTML:{__html:Be(U)}}),!ie&&Object(l.createElement)("span",{className:"gb-headline-text"},Object(l.createElement)(Q.RichText,{tagName:"span",value:u,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0}))),!H&&!ie&&Object(l.createElement)(Q.RichText,{tagName:"span",value:u,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0})))}}]),a}(l.Component),ua=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(ba),da={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},content:{type:"string",source:"html",selector:".gb-headline-text"},element:{type:"string",default:"h2"},alignment:{type:"string",default:generateBlocksDefaults.headline.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.headline.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.headline.alignmentMobile},backgroundColor:{type:"string",default:generateBlocksDefaults.headline.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.headline.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.headline.textColor},linkColor:{type:"string",default:generateBlocksDefaults.headline.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.headline.linkColorHover},borderColor:{type:"string",default:generateBlocksDefaults.headline.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.headline.borderColorOpacity},highlightTextColor:{type:"string",default:generateBlocksDefaults.headline.highlightTextColor},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.headline.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.headline.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.headline.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.headline.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.headline.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.headline.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.headline.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.headline.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.headline.fontSizeUnit},textTransform:{type:"string",default:""},lineHeight:{type:"number",default:generateBlocksDefaults.headline.lineHeight},lineHeightTablet:{type:"number",default:generateBlocksDefaults.headline.lineHeightTablet},lineHeightMobile:{type:"number",default:generateBlocksDefaults.headline.lineHeightMobile},lineHeightUnit:{type:"string",default:generateBlocksDefaults.headline.lineHeightUnit},letterSpacing:{type:"number",default:generateBlocksDefaults.headline.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.headline.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.headline.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.headline.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.headline.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.headline.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.headline.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.headline.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.headline.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.headline.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.headline.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.headline.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.headline.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.headline.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.headline.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.headline.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.headline.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.headline.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.headline.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.headline.paddingLeft},paddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.paddingLeftMobile},paddingUnit:{type:"string",default:generateBlocksDefaults.headline.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},borderSizeTop:{type:"string",default:generateBlocksDefaults.headline.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.headline.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.headline.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftMobile},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:generateBlocksDefaults.headline.iconColor},iconColorOpacity:{type:"number",default:generateBlocksDefaults.headline.iconColorOpacity},customIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.headline.iconLocation},iconLocationTablet:{type:"string",default:generateBlocksDefaults.headline.iconLocationTablet},iconLocationMobile:{type:"string",default:generateBlocksDefaults.headline.iconLocationMobile},iconVerticalAlignment:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignment},iconVerticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentTablet},iconVerticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentMobile},iconPaddingTop:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.headline.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.headline.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.headline.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.headline.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.headline.iconSizeUnit},inlineWidth:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidth},inlineWidthTablet:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthTablet},inlineWidthMobile:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthMobile},removeText:{type:"boolean",default:generateBlocksDefaults.headline.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.headline.ariaLabel},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}},pa={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(X.createBlock)("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(X.createBlock)("generateblocks/headline",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(X.createBlock)("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(X.createBlock)("core/heading",{content:t})}}]};function fa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function ha(e){for(var t=1;t Date: Sat, 2 Jan 2021 19:43:35 -0800 Subject: [PATCH 35/53] Add generateblocks.editor.beforeHeadlineElement filter --- src/blocks/headline/edit.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blocks/headline/edit.js b/src/blocks/headline/edit.js index 805a6e1d8..aeb21a800 100644 --- a/src/blocks/headline/edit.js +++ b/src/blocks/headline/edit.js @@ -1244,6 +1244,8 @@ class GenerateBlockHeadline extends Component { /> } + { applyFilters( 'generateblocks.editor.beforeHeadlineElement', '', this.props ) } + Date: Sat, 2 Jan 2021 19:43:57 -0800 Subject: [PATCH 36/53] Make headline rich-text inline-block --- src/blocks/headline/editor.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/headline/editor.scss b/src/blocks/headline/editor.scss index bcd367e21..8a0feee06 100644 --- a/src/blocks/headline/editor.scss +++ b/src/blocks/headline/editor.scss @@ -5,7 +5,7 @@ mark.gb-highlight { .gb-headline { span.rich-text { - display: block; + display: inline-block; } } From 0806adede7eb5100ee44312daa90a947ecd0cf47 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Sat, 2 Jan 2021 19:44:09 -0800 Subject: [PATCH 37/53] Remove margin from image block when inside gb container --- src/blocks/container/editor.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/blocks/container/editor.scss b/src/blocks/container/editor.scss index afe443867..66b3323a4 100644 --- a/src/blocks/container/editor.scss +++ b/src/blocks/container/editor.scss @@ -105,6 +105,11 @@ body .gb-container .wp-block { margin-bottom: 0; } +.gb-container .wp-block-image { + margin-top: 0; + margin-bottom: 0; +} + /* Shape divider */ .gb-container .gb-shape { position: absolute; From 9ea675c95c2feee061184cc3cc02834268397d28 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Sat, 2 Jan 2021 19:44:24 -0800 Subject: [PATCH 38/53] Add generateblocks.editor.urlInputMoreOptions filter --- src/components/url-input/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/url-input/index.js b/src/components/url-input/index.js index 412d7c204..dbdd9549d 100644 --- a/src/components/url-input/index.js +++ b/src/components/url-input/index.js @@ -20,6 +20,10 @@ import { URLInput, } from '@wordpress/block-editor'; +import { + applyFilters, +} from '@wordpress/hooks'; + export default class ButtonURLInput extends Component { constructor() { super( ...arguments ); @@ -92,6 +96,8 @@ export default class ButtonURLInput extends Component {
{ moreOptions &&
+ { applyFilters( 'generateblocks.editor.urlInputMoreOptions', '', this.props, this.state ) } + Date: Sat, 2 Jan 2021 19:44:34 -0800 Subject: [PATCH 39/53] Update dist --- dist/blocks.asset.php | 2 +- dist/blocks.css | 4 ++-- dist/blocks.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index 1561f1216..a6574a145 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => 'd7f7bc1c592eeefdd7571ef9eebd2a2a'); \ No newline at end of file + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '5b5750551eb45bbf6d75b1944a0382e0'); \ No newline at end of file diff --git a/dist/blocks.css b/dist/blocks.css index a7b5addc3..2030f086c 100644 --- a/dist/blocks.css +++ b/dist/blocks.css @@ -4,7 +4,7 @@ .components-gblocks-units-control-header__units{display:flex;justify-content:space-between;margin-bottom:5px;align-items:center}.components-gblocks-control__units .components-gblocks-control-buttons__units button.components-button{background:#fff;box-shadow:none !important;color:#929da7;font-size:10px;padding:0 5px;position:relative;text-align:center;text-shadow:none;border:0;border-radius:0 !important;line-height:20px;padding:0 5px;height:auto}.components-gblocks-control__units .components-gblocks-control-buttons__units button.components-button.is-primary{background:#fff !important;color:#000 !important;cursor:default;z-index:1;font-weight:bold} -body.gutenberg-editor-page [data-type="generateblocks/container"] .editor-block-list__block,[data-type="generateblocks/container"] .wp-block-heading h1,[data-type="generateblocks/container"] .wp-block-heading h1.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h2,[data-type="generateblocks/container"] .wp-block-heading h2.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h3,[data-type="generateblocks/container"] .wp-block-heading h3.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h4,[data-type="generateblocks/container"] .wp-block-heading h4.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h5,[data-type="generateblocks/container"] .wp-block-heading h5.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h6,[data-type="generateblocks/container"] .wp-block-heading h6.editor-rich-text__tinymce{color:inherit}.additional-class-notice .components-notice{margin:0 0 10px}.widthButtons button{font-size:12px;flex:1;box-shadow:inset 0 0 0 1px #007cba;justify-content:center}.widthButtons{margin-bottom:10px;display:flex}.gblocks-column-width-control input[type="number"]{width:65px}body .gb-container .wp-block{max-width:none}[data-type="generateblocks/container"]>.block-editor-block-list__block-edit>[data-block]{margin:0}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width{border-top:1px solid #ddd;padding-top:15px}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width .components-base-control__label{margin-bottom:15px}.gblocks-container-text-alignment .components-base-control__label{display:block}.edit-post-visual-editor .block-editor-block-list__block[data-type="generateblocks/container"]>.block-editor-block-list__block-edit{margin:0}.block-editor-block-list__layout .block-editor-block-list__block[data-type="generateblocks/container"]{padding:0;box-sizing:border-box}.gblocks-bg-image-wrapper{display:flex}.gblocks-bg-image-wrapper .components-base-control,.gblocks-bg-image-wrapper .components-base-control__field{margin:0}.gblocks-bg-image-wrapper>.components-base-control{flex-grow:1}.gblocks-bg-image-wrapper .components-button{line-height:inherit;height:100%}.components-gblocks-control__image-sizes{margin-bottom:24px}.components-gblocks-control__image-sizes button{margin:0 5px 5px 0}.wp-block[data-type="generateblocks/container"]{margin-top:0;margin-bottom:0}.gb-container .gb-shape{position:absolute;overflow:hidden;line-height:0;pointer-events:none}.gb-container .gb-shape svg{fill:currentColor}.gblocks-add-new-shape{margin-top:10px}.gblocks-shape-controls{width:100%}.gblocks-shape-controls>.components-base-control{margin-bottom:20px}.gblocks-shape-controls .gblocks-edit-shape{display:block;width:100%;text-align:left}.gblocks-shape-controls .gblocks-shape-chooser{margin:0}.gblocks-shape-controls .gblocks-shape-chooser li{margin:5px 0}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button{width:100%;height:auto;background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button svg{width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button:hover{background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button.gblocks-shape-is-active{box-shadow:0 0 0 3px #007cba}.gblocks-shape-divider-preview{padding:10px}.gblocks-shape-divider-preview svg{fill:currentColor}.gblocks-shape-toggle-preview{margin-right:10px}.gblocks-shape-toggle-preview svg{width:30px}.gblocks-shape-container{display:flex;align-items:center;margin-bottom:10px;border:1px solid #efefef;border-radius:3px}.gblocks-shape-container .components-dropdown{margin-left:auto}.gblocks-shape-container .components-button.gblocks-shape-dropdown,.gblocks-shape-container .components-button.gblocks-remove-shape{justify-content:center}.gblocks-shape-container .components-button.gblocks-shape-dropdown>svg,.gblocks-shape-container .components-button.gblocks-remove-shape>svg{margin-right:0}.gblocks-gpress-full-width .components-base-control__label{display:block} +body.gutenberg-editor-page [data-type="generateblocks/container"] .editor-block-list__block,[data-type="generateblocks/container"] .wp-block-heading h1,[data-type="generateblocks/container"] .wp-block-heading h1.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h2,[data-type="generateblocks/container"] .wp-block-heading h2.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h3,[data-type="generateblocks/container"] .wp-block-heading h3.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h4,[data-type="generateblocks/container"] .wp-block-heading h4.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h5,[data-type="generateblocks/container"] .wp-block-heading h5.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h6,[data-type="generateblocks/container"] .wp-block-heading h6.editor-rich-text__tinymce{color:inherit}.additional-class-notice .components-notice{margin:0 0 10px}.widthButtons button{font-size:12px;flex:1;box-shadow:inset 0 0 0 1px #007cba;justify-content:center}.widthButtons{margin-bottom:10px;display:flex}.gblocks-column-width-control input[type="number"]{width:65px}body .gb-container .wp-block{max-width:none}[data-type="generateblocks/container"]>.block-editor-block-list__block-edit>[data-block]{margin:0}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width{border-top:1px solid #ddd;padding-top:15px}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width .components-base-control__label{margin-bottom:15px}.gblocks-container-text-alignment .components-base-control__label{display:block}.edit-post-visual-editor .block-editor-block-list__block[data-type="generateblocks/container"]>.block-editor-block-list__block-edit{margin:0}.block-editor-block-list__layout .block-editor-block-list__block[data-type="generateblocks/container"]{padding:0;box-sizing:border-box}.gblocks-bg-image-wrapper{display:flex}.gblocks-bg-image-wrapper .components-base-control,.gblocks-bg-image-wrapper .components-base-control__field{margin:0}.gblocks-bg-image-wrapper>.components-base-control{flex-grow:1}.gblocks-bg-image-wrapper .components-button{line-height:inherit;height:100%}.components-gblocks-control__image-sizes{margin-bottom:24px}.components-gblocks-control__image-sizes button{margin:0 5px 5px 0}.wp-block[data-type="generateblocks/container"]{margin-top:0;margin-bottom:0}.gb-container .wp-block-image{margin-top:0;margin-bottom:0}.gb-container .gb-shape{position:absolute;overflow:hidden;line-height:0;pointer-events:none}.gb-container .gb-shape svg{fill:currentColor}.gblocks-add-new-shape{margin-top:10px}.gblocks-shape-controls{width:100%}.gblocks-shape-controls>.components-base-control{margin-bottom:20px}.gblocks-shape-controls .gblocks-edit-shape{display:block;width:100%;text-align:left}.gblocks-shape-controls .gblocks-shape-chooser{margin:0}.gblocks-shape-controls .gblocks-shape-chooser li{margin:5px 0}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button{width:100%;height:auto;background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button svg{width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button:hover{background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button.gblocks-shape-is-active{box-shadow:0 0 0 3px #007cba}.gblocks-shape-divider-preview{padding:10px}.gblocks-shape-divider-preview svg{fill:currentColor}.gblocks-shape-toggle-preview{margin-right:10px}.gblocks-shape-toggle-preview svg{width:30px}.gblocks-shape-container{display:flex;align-items:center;margin-bottom:10px;border:1px solid #efefef;border-radius:3px}.gblocks-shape-container .components-dropdown{margin-left:auto}.gblocks-shape-container .components-button.gblocks-shape-dropdown,.gblocks-shape-container .components-button.gblocks-remove-shape{justify-content:center}.gblocks-shape-container .components-button.gblocks-shape-dropdown>svg,.gblocks-shape-container .components-button.gblocks-remove-shape>svg{margin-right:0}.gblocks-gpress-full-width .components-base-control__label{display:block} .gblocks-component-color-picker-wrapper>.components-base-control__field{position:relative;display:flex;align-items:center;justify-content:space-between}.gblocks-component-color-picker-wrapper>.components-base-control__field .components-color-palette__item-wrapper{margin:0}.gblocks-component-color-picker>.components-base-control:first-child{margin-bottom:0}.gblocks-component-color-picker .components-color-picker__inputs-wrapper{min-width:auto}.gblocks-component-color-picker .gblocks-component-color-picker-palette{padding:16px;margin-top:10px}.gblocks-component-color-picker .gblocks-component-color-picker-palette .components-circular-option-picker{display:flex;flex-wrap:wrap}.gblocks-component-color-picker .gblocks-component-color-picker-palette .components-circular-option-picker .components-circular-option-picker__option-wrapper{margin:0 8px 8px 0}.gblocks-component-color-picker .components-base-control__field,.gblocks-component-color-picker .components-color-palette{margin:0}.gblocks-component-color-picker .components-color-picker{padding:5px}.gblocks-component-color-picker .components-color-picker__inputs-toggle{display:none}.gblocks-component-color-picker .components-color-picker__body{padding-bottom:0}.gblocks-component-color-picker .components-popover__content{padding:10px;width:300px}.gblocks-component-color-picker .components-color-picker__inputs-fields{margin-right:0}.gblocks-component-color-picker .components-color-clear-color{margin:0 16px}.gblocks-component-color-opacity{display:flex;padding:0 16px;margin:10px 0}.gblocks-component-color-opacity .components-range-control{flex-grow:1;padding-left:5px}.gblocks-color-picker-area{width:28px;height:28px} @@ -22,7 +22,7 @@ body.gutenberg-editor-page [data-type="generateblocks/container"] .editor-block- .gblocks-component-url-input{width:100%;margin-top:10px;font-family:-apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;font-size:13px;line-height:1.4;background:#fff;border:1px solid #e2e4e7;color:#000}.gblocks-component-url-input .gblocks-component-url-input-flex{display:flex;align-items:center}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input{width:auto}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input input[type="text"]{width:100%}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input input[type="text"]::-moz-placeholder{color:#222}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input input[type="text"]:-ms-input-placeholder{color:#222}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input input[type="text"]::placeholder{color:#222}.gblocks-component-url-input .gblocks-component-url-input-flex>.dashicon{width:20px;color:#222}.gblocks-component-url-input .gblocks-component-url-input-flex .components-base-control__field{margin-bottom:0}.gblocks-component-url-input .gblocks-component-url-input-more-options{padding:10px;border-top:1px solid #e2e4e7}.gblocks-component-url-input .gblocks-component-url-input-more-options .components-base-control{margin-bottom:5px}.gblocks-component-url-input .gblocks-component-url-input-more-options .components-base-control .components-base-control__field{margin-bottom:0}.gblocks-component-url-input .gblocks-component-url-input-more-options .components-base-control:last-child{margin-bottom:0}.gblocks-component-url-input-float{position:absolute;min-width:260px;max-width:260px;box-shadow:0 3px 30px rgba(25,30,35,0.1);z-index:150}.gblocks-component-url-input-float::after,.gblocks-component-url-input-float::before{content:" ";position:absolute;bottom:100%;left:20px;width:0;height:0;pointer-events:none;border:solid transparent}.gblocks-component-url-input-float::after{border:5px solid rgba(255,255,255,0);border-bottom-color:#fff}.gblocks-component-url-input-float::before{margin-left:-1px;border:6px solid rgba(226,228,231,0);border-bottom-color:#e2e4e7}.gblocks-component-url-input-float .editor-url-input__suggestions{max-width:188px}.block-editor-block-list__block .gblocks-component-url-input-flex input[type="text"]{max-width:100%;width:100%} -mark.gb-highlight{background:none;color:unset}.gb-headline span.rich-text{display:block}.wp-block[data-type="generateblocks/headline"]{margin-top:0;margin-bottom:0} +mark.gb-highlight{background:none;color:unset}.gb-headline span.rich-text{display:inline-block}.wp-block[data-type="generateblocks/headline"]{margin-top:0;margin-bottom:0} .gblocks-notice{margin-bottom:20px}.gblocks-panel-label .components-panel__body-toggle.components-button{display:flex;flex-direction:row-reverse;justify-content:flex-end}.gblocks-panel-label svg.components-panel__icon{margin:0 10px 0 0}.gblocks-control-tabs .components-tab-panel__tabs{display:flex;flex-wrap:wrap;margin-bottom:15px;border-bottom:1px solid #e8eaeb}.gblocks-control-tabs .components-tab-panel__tabs button{padding:8px;height:auto;margin:0;margin-bottom:-1px;cursor:pointer;border:none;border:0;border-radius:0;outline-offset:-1px;flex:1;justify-content:center;font-size:11px;font-weight:400}.gblocks-control-tabs .components-tab-panel__tabs button.active-tab{position:relative;z-index:1;background:#222 !important;color:#fff !important;box-shadow:0 0 0 !important}.gblocks-block-control-icon svg{margin-right:0 !important;margin-left:0 !important;padding:2px}.gblocks-block-control-icon.gblocks-add-grid-item svg{padding:0}.gblocks-block-control-icon svg path{fill:inherit !important}.gblocks-option-notice.components-notice{margin:0 0 24px}.gblocks-option-notice.components-notice .components-notice__content{margin:5px} diff --git a/dist/blocks.js b/dist/blocks.js index 8cff27e00..fe77ea63a 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -6,10 +6,10 @@ /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Bottom","generateblocks"),r),value:a[g]?a[g]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:L,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeLeft(a):e.onReset("attrLeft")},onBlur:function(){q||""!==a[b]||""===B[b]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeLeft("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Left","generateblocks"),r),value:a[b]?a[b]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)(C.Tooltip,{text:a[u]?Object(T.__)("Unsync","generateblocks"):Object(T.__)("Sync","generateblocks")},Object(l.createElement)(C.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":Object(T.__)("Sync Units","generateblocks"),isPrimary:!!a[u]&&a[u],"aria-pressed":!!a[u]&&a[u],onClick:function(t){return e.syncUnits(t,"")},isSmall:!0},(a[u],j("sync"))))),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__input-labels"},Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},f),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},m),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},y),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},O),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"}))))}}]),a}(l.Component),we=(a(38),{Roboto:{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Open Sans":{weight:["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Lato:{weight:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Montserrat:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Source Sans Pro":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Roboto Condensed":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Oswald:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},"Roboto Mono":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"monospace"},Raleway:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Poppins:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Roboto Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Merriweather:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"serif"},"PT Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Ubuntu:{weight:["300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},"Playfair Display":{weight:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},Muli:{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Open Sans Condensed":{weight:["300","300italic","700"],fallback:"sans-serif"},"PT Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},Lora:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Slabo 27px":{weight:["regular"],fallback:"serif"},Nunito:{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans JP":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Work Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},Rubik:{weight:["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Noto Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fira Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Titillium Web":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],fallback:"sans-serif"},Quicksand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Noto Sans KR":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nanum Gothic":{weight:["regular","700","800"],fallback:"sans-serif"},Mukta:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Noto Sans TC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nunito Sans":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Heebo:{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Sans Narrow":{weight:["regular","700"],fallback:"sans-serif"},Arimo:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Inconsolata:{weight:["regular","700"],fallback:"monospace"},Barlow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Oxygen:{weight:["300","regular","700"],fallback:"sans-serif"},Dosis:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Bitter:{weight:["regular","italic","700"],fallback:"serif"},"Libre Baskerville":{weight:["regular","italic","700"],fallback:"serif"},"Crimson Text":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},"Libre Franklin":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Karla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Josefin Sans":{weight:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},Cabin:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Anton:{weight:["regular"],fallback:"sans-serif"},"Source Code Pro":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"monospace"},Hind:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Abel:{weight:["regular"],fallback:"sans-serif"},Amiri:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fjalla One":{weight:["regular"],fallback:"sans-serif"},Lobster:{weight:["regular"],fallback:"display"},Pacifico:{weight:["regular"],fallback:"handwriting"},"Indie Flower":{weight:["regular"],fallback:"handwriting"},"Exo 2":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Dancing Script":{weight:["regular","500","600","700"],fallback:"handwriting"},"Source Serif Pro":{weight:["regular","600","700"],fallback:"serif"},Arvo:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Hind Siliguri":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Varela Round":{weight:["regular"],fallback:"sans-serif"},"Merriweather Sans":{weight:["300","300italic","regular","italic","700","700italic","800","800italic"],fallback:"sans-serif"},Cairo:{weight:["200","300","regular","600","700","900"],fallback:"sans-serif"},"Yanone Kaffeesatz":{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Overpass:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Shadows Into Light":{weight:["regular"],fallback:"handwriting"},"Barlow Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"IBM Plex Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Comfortaa:{weight:["300","regular","500","600","700"],fallback:"display"},Asap:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Prompt:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Kanit:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Questrial:{weight:["regular"],fallback:"sans-serif"},Martel:{weight:["200","300","regular","600","700","800","900"],fallback:"serif"},"Archivo Narrow":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Abril Fatface":{weight:["regular"],fallback:"display"},"Amatic SC":{weight:["regular","700"],fallback:"handwriting"},Acme:{weight:["regular"],fallback:"sans-serif"},Catamaran:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Fira Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"EB Garamond":{weight:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],fallback:"serif"},"Bree Serif":{weight:["regular"],fallback:"serif"},"Zilla Slab":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Noto Sans SC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Cormorant Garamond":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Hind Madurai":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Teko:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Righteous:{weight:["regular"],fallback:"display"},Signika:{weight:["300","regular","600","700"],fallback:"sans-serif"},Play:{weight:["regular","700"],fallback:"sans-serif"},Domine:{weight:["regular","700"],fallback:"serif"},Exo:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Russo One":{weight:["regular"],fallback:"sans-serif"},Cinzel:{weight:["regular","700","900"],fallback:"serif"},"PT Sans Caption":{weight:["regular","700"],fallback:"sans-serif"},Rajdhani:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Maven Pro":{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Fredoka One":{weight:["regular"],fallback:"display"},"IBM Plex Serif":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Ubuntu Condensed":{weight:["regular"],fallback:"sans-serif"},"Patua One":{weight:["regular"],fallback:"display"},Caveat:{weight:["regular","700"],fallback:"handwriting"},"Permanent Marker":{weight:["regular"],fallback:"handwriting"},Assistant:{weight:["200","300","regular","600","700","800"],fallback:"sans-serif"},ABeeZee:{weight:["regular","italic"],fallback:"sans-serif"},Vollkorn:{weight:["regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"serif"},"Crete Round":{weight:["regular","italic"],fallback:"serif"},"Special Elite":{weight:["regular"],fallback:"display"},Rokkitt:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Bangers:{weight:["regular"],fallback:"display"},"Francois One":{weight:["regular"],fallback:"sans-serif"},"Barlow Semi Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Alegreya Sans":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Satisfy:{weight:["regular"],fallback:"handwriting"},Tajawal:{weight:["200","300","regular","500","700","800","900"],fallback:"sans-serif"},"Bebas Neue":{weight:["regular"],fallback:"display"},"Patrick Hand":{weight:["regular"],fallback:"handwriting"},Cuprum:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Viga:{weight:["regular"],fallback:"sans-serif"},Courgette:{weight:["regular"],fallback:"handwriting"},"Ropa Sans":{weight:["regular","italic"],fallback:"sans-serif"},"Noto Serif JP":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Gochi Hand":{weight:["regular"],fallback:"handwriting"},Alegreya:{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Luckiest Guy":{weight:["regular"],fallback:"display"},"Noticia Text":{weight:["regular","italic","700","700italic"],fallback:"serif"},Tinos:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Passion One":{weight:["regular","700","900"],fallback:"display"},"Alfa Slab One":{weight:["regular"],fallback:"display"},"Nanum Myeongjo":{weight:["regular","700","800"],fallback:"serif"},Monda:{weight:["regular","700"],fallback:"sans-serif"},"Lobster Two":{weight:["regular","italic","700","700italic"],fallback:"display"},Kalam:{weight:["300","regular","700"],fallback:"handwriting"},"Kaushan Script":{weight:["regular"],fallback:"handwriting"},"Archivo Black":{weight:["regular"],fallback:"sans-serif"},Cardo:{weight:["regular","italic","700"],fallback:"serif"},Archivo:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Great Vibes":{weight:["regular"],fallback:"handwriting"},Volkhov:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Quattrocento Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"News Cycle":{weight:["regular","700"],fallback:"sans-serif"},"Pathway Gothic One":{weight:["regular"],fallback:"sans-serif"},Sacramento:{weight:["regular"],fallback:"handwriting"},"Frank Ruhl Libre":{weight:["300","regular","500","700","900"],fallback:"serif"},Yantramanav:{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},Cantarell:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Istok Web":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Didact Gothic":{weight:["regular"],fallback:"sans-serif"},"Concert One":{weight:["regular"],fallback:"display"},Taviraj:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Old Standard TT":{weight:["regular","italic","700"],fallback:"serif"},"Montserrat Alternates":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Economica:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Changa:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Fira Sans Extra Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Gloria Hallelujah":{weight:["regular"],fallback:"handwriting"},Parisienne:{weight:["regular"],fallback:"handwriting"},Orbitron:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Asap Condensed":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Playfair Display SC":{weight:["regular","italic","700","700italic","900","900italic"],fallback:"serif"},Chivo:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Sriracha:{weight:["regular"],fallback:"handwriting"},"Hind Vadodara":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"DM Sans":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Prata:{weight:["regular"],fallback:"serif"},Quattrocento:{weight:["regular","700"],fallback:"serif"},Cookie:{weight:["regular"],fallback:"handwriting"},"Poiret One":{weight:["regular"],fallback:"display"},Handlee:{weight:["regular"],fallback:"handwriting"},Sarabun:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},BenchNine:{weight:["300","regular","700"],fallback:"sans-serif"},Merienda:{weight:["regular","700"],fallback:"handwriting"},"M PLUS 1p":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Mono":{weight:["regular"],fallback:"monospace"},Lalezar:{weight:["regular"],fallback:"display"},Sanchez:{weight:["regular","italic"],fallback:"serif"},Lemonada:{weight:["300","regular","500","600","700"],fallback:"display"},"Markazi Text":{weight:["regular","500","600","700"],fallback:"serif"},Neuton:{weight:["200","300","regular","italic","700","800"],fallback:"serif"},"Hind Guntur":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Josefin Slab":{weight:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"serif"},Philosopher:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Advent Pro":{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Do Hyeon":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Mincho":{weight:["regular"],fallback:"sans-serif"},Ruda:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Vidaloka:{weight:["regular"],fallback:"serif"},Ultra:{weight:["regular"],fallback:"serif"},Neucha:{weight:["regular"],fallback:"handwriting"},Arapey:{weight:["regular","italic"],fallback:"serif"},Gudea:{weight:["regular","italic","700"],fallback:"sans-serif"},"Paytone One":{weight:["regular"],fallback:"sans-serif"},Kreon:{weight:["300","regular","500","600","700"],fallback:"serif"},"M PLUS Rounded 1c":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"Pragati Narrow":{weight:["regular","700"],fallback:"sans-serif"},"Press Start 2P":{weight:["regular"],fallback:"display"},"Hammersmith One":{weight:["regular"],fallback:"sans-serif"},"Gentium Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Monoton:{weight:["regular"],fallback:"display"},Alef:{weight:["regular","700"],fallback:"sans-serif"},Alice:{weight:["regular"],fallback:"serif"},Aclonica:{weight:["regular"],fallback:"sans-serif"},"Sigmar One":{weight:["regular"],fallback:"display"},Spectral:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Marck Script":{weight:["regular"],fallback:"handwriting"},Electrolize:{weight:["regular"],fallback:"sans-serif"},Actor:{weight:["regular"],fallback:"sans-serif"},"Architects Daughter":{weight:["regular"],fallback:"handwriting"},Adamina:{weight:["regular"],fallback:"serif"},"Pontano Sans":{weight:["regular"],fallback:"sans-serif"},Audiowide:{weight:["regular"],fallback:"display"},Inter:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Cabin Condensed":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Unica One":{weight:["regular"],fallback:"display"},Yellowtail:{weight:["regular"],fallback:"handwriting"},"El Messiri":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Squada One":{weight:["regular"],fallback:"display"},Staatliches:{weight:["regular"],fallback:"display"},Amaranth:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Enriqueta:{weight:["regular","500","600","700"],fallback:"serif"},Mitr:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Glegoo:{weight:["regular","700"],fallback:"serif"},"Bowlby One SC":{weight:["regular"],fallback:"display"},Basic:{weight:["regular"],fallback:"sans-serif"},"Nanum Gothic Coding":{weight:["regular","700"],fallback:"monospace"},Sarala:{weight:["regular","700"],fallback:"sans-serif"},"Bad Script":{weight:["regular"],fallback:"handwriting"},"Homemade Apple":{weight:["regular"],fallback:"handwriting"},Tangerine:{weight:["regular","700"],fallback:"handwriting"},Cormorant:{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Oleo Script":{weight:["regular","700"],fallback:"display"},Karma:{weight:["300","regular","500","600","700"],fallback:"serif"},"Julius Sans One":{weight:["regular"],fallback:"sans-serif"},"Carter One":{weight:["regular"],fallback:"display"},Khand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Nanum Pen Script":{weight:["regular"],fallback:"handwriting"},Cambay:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Fugaz One":{weight:["regular"],fallback:"display"},"Shadows Into Light Two":{weight:["regular"],fallback:"handwriting"},Coda:{weight:["regular","800"],fallback:"display"},"Signika Negative":{weight:["300","regular","600","700"],fallback:"sans-serif"},Pridi:{weight:["200","300","regular","500","600","700"],fallback:"serif"},Playball:{weight:["regular"],fallback:"display"},Saira:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Rock Salt":{weight:["regular"],fallback:"handwriting"},"Gothic A1":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Gentium Book Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Allura:{weight:["regular"],fallback:"handwriting"},"Yeseva One":{weight:["regular"],fallback:"display"},"DM Serif Text":{weight:["regular","italic"],fallback:"serif"},Lusitana:{weight:["regular","700"],fallback:"serif"},Jura:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Average:{weight:["regular"],fallback:"serif"},Yrsa:{weight:["300","regular","500","600","700"],fallback:"serif"},"Sorts Mill Goudy":{weight:["regular","italic"],fallback:"serif"},"Cantata One":{weight:["regular"],fallback:"serif"},Armata:{weight:["regular"],fallback:"sans-serif"},Scada:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Abhaya Libre":{weight:["regular","500","600","700","800"],fallback:"serif"},Damion:{weight:["regular"],fallback:"handwriting"},Marmelad:{weight:["regular"],fallback:"sans-serif"},Varela:{weight:["regular"],fallback:"sans-serif"},Quantico:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Covered By Your Grace":{weight:["regular"],fallback:"handwriting"},"PT Serif Caption":{weight:["regular","italic"],fallback:"serif"},Ramabhadra:{weight:["regular"],fallback:"sans-serif"},Unna:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Encode Sans":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Arsenal:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Black Han Sans":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Gothic":{weight:["regular"],fallback:"sans-serif"},"Ubuntu Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Pinyon Script":{weight:["regular"],fallback:"handwriting"},"Black Ops One":{weight:["regular"],fallback:"display"},Marcellus:{weight:["regular"],fallback:"serif"},"Fauna One":{weight:["regular"],fallback:"serif"},"Lilita One":{weight:["regular"],fallback:"display"},Sintony:{weight:["regular","700"],fallback:"sans-serif"},Khula:{weight:["300","regular","600","700","800"],fallback:"sans-serif"},Jaldi:{weight:["regular","700"],fallback:"sans-serif"},"Rubik Mono One":{weight:["regular"],fallback:"sans-serif"},Allan:{weight:["regular","700"],fallback:"display"},"Reenie Beanie":{weight:["regular"],fallback:"handwriting"},"Alex Brush":{weight:["regular"],fallback:"handwriting"},"Mr Dafoe":{weight:["regular"],fallback:"handwriting"},Palanquin:{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Encode Sans Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Antic:{weight:["regular"],fallback:"sans-serif"},Knewave:{weight:["regular"],fallback:"display"},"Caveat Brush":{weight:["regular"],fallback:"handwriting"},Rambla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Spinnaker:{weight:["regular"],fallback:"sans-serif"},"IBM Plex Mono":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"monospace"},Michroma:{weight:["regular"],fallback:"sans-serif"},"Nothing You Could Do":{weight:["regular"],fallback:"handwriting"},"Kelly Slab":{weight:["regular"],fallback:"display"},Boogaloo:{weight:["regular"],fallback:"display"},Chewy:{weight:["regular"],fallback:"display"},"ZCOOL XiaoWei":{weight:["regular"],fallback:"serif"},Rancho:{weight:["regular"],fallback:"handwriting"},"Noto Serif SC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Pangolin:{weight:["regular"],fallback:"handwriting"},"Fira Mono":{weight:["regular","500","700"],fallback:"monospace"},Forum:{weight:["regular"],fallback:"display"},"Antic Slab":{weight:["regular"],fallback:"serif"},"Alegreya Sans SC":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Anonymous Pro":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Lateef:{weight:["regular"],fallback:"handwriting"},"Annie Use Your Telescope":{weight:["regular"],fallback:"handwriting"},"Noto Sans HK":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Martel Sans":{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},"Chakra Petch":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Rufina:{weight:["regular","700"],fallback:"serif"},"Bai Jamjuree":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Scheherazade:{weight:["regular","700"],fallback:"serif"},Share:{weight:["regular","italic","700","700italic"],fallback:"display"},"Tenor Sans":{weight:["regular"],fallback:"sans-serif"},"DM Serif Display":{weight:["regular","italic"],fallback:"serif"},VT323:{weight:["regular"],fallback:"monospace"},"Share Tech Mono":{weight:["regular"],fallback:"monospace"},Mali:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"handwriting"},Cousine:{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Cinzel Decorative":{weight:["regular","700","900"],fallback:"display"},Overlock:{weight:["regular","italic","700","700italic","900","900italic"],fallback:"display"},"Arbutus Slab":{weight:["regular"],fallback:"serif"},"Reem Kufi":{weight:["regular"],fallback:"sans-serif"},"Cabin Sketch":{weight:["regular","700"],fallback:"display"},"Saira Extra Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Eczar:{weight:["regular","500","600","700","800"],fallback:"serif"},"Leckerli One":{weight:["regular"],fallback:"handwriting"},Krub:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Berkshire Swash":{weight:["regular"],fallback:"handwriting"},"Fredericka the Great":{weight:["regular"],fallback:"display"},"Saira Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Overpass Mono":{weight:["300","regular","600","700"],fallback:"monospace"},Itim:{weight:["regular"],fallback:"handwriting"},Rasa:{weight:["300","regular","500","600","700"],fallback:"serif"},Bevan:{weight:["regular"],fallback:"display"},"Arima Madurai":{weight:["100","200","300","regular","500","700","800","900"],fallback:"display"},Italianno:{weight:["regular"],fallback:"handwriting"},"Coda Caption":{weight:["800"],fallback:"sans-serif"},Shrikhand:{weight:["regular"],fallback:"display"},"Just Another Hand":{weight:["regular"],fallback:"handwriting"},"Saira Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Almarai:{weight:["300","regular","700","800"],fallback:"sans-serif"},"Mukta Malar":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Oranienbaum:{weight:["regular"],fallback:"serif"},Nobile:{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Candal:{weight:["regular"],fallback:"sans-serif"},"Six Caps":{weight:["regular"],fallback:"sans-serif"},"Space Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Capriola:{weight:["regular"],fallback:"sans-serif"},Biryani:{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},Halant:{weight:["300","regular","500","600","700"],fallback:"serif"},Allerta:{weight:["regular"],fallback:"sans-serif"},Trirong:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},Mallanna:{weight:["regular"],fallback:"sans-serif"},Aldrich:{weight:["regular"],fallback:"sans-serif"},Aleo:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Suez One":{weight:["regular"],fallback:"serif"},Caudex:{weight:["regular","italic","700","700italic"],fallback:"serif"},Niconne:{weight:["regular"],fallback:"handwriting"},"Mrs Saint Delafield":{weight:["regular"],fallback:"handwriting"},Gruppo:{weight:["regular"],fallback:"display"},"Miriam Libre":{weight:["regular","700"],fallback:"sans-serif"},"Contrail One":{weight:["regular"],fallback:"display"},"Days One":{weight:["regular"],fallback:"sans-serif"},"Allerta Stencil":{weight:["regular"],fallback:"sans-serif"},"Average Sans":{weight:["regular"],fallback:"sans-serif"},"Coming Soon":{weight:["regular"],fallback:"handwriting"},Pattaya:{weight:["regular"],fallback:"sans-serif"},"Londrina Solid":{weight:["100","300","regular","900"],fallback:"display"},Bungee:{weight:["regular"],fallback:"display"},Coustard:{weight:["regular","900"],fallback:"serif"},"Marcellus SC":{weight:["regular"],fallback:"serif"},"Racing Sans One":{weight:["regular"],fallback:"display"},Bentham:{weight:["regular"],fallback:"serif"},"Bungee Inline":{weight:["regular"],fallback:"display"},Magra:{weight:["regular","700"],fallback:"sans-serif"},Judson:{weight:["regular","italic","700"],fallback:"serif"},Rochester:{weight:["regular"],fallback:"handwriting"},"Grand Hotel":{weight:["regular"],fallback:"handwriting"},Gelasio:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Yesteryear:{weight:["regular"],fallback:"handwriting"},Syncopate:{weight:["regular","700"],fallback:"sans-serif"},Hanuman:{weight:["regular","700"],fallback:"serif"},"Kosugi Maru":{weight:["regular"],fallback:"sans-serif"},Copse:{weight:["regular"],fallback:"serif"},Mada:{weight:["200","300","regular","500","600","700","900"],fallback:"sans-serif"},"Titan One":{weight:["regular"],fallback:"display"},"Noto Serif TC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Kameron:{weight:["regular","700"],fallback:"serif"},Telex:{weight:["regular"],fallback:"sans-serif"},Norican:{weight:["regular"],fallback:"handwriting"},Maitree:{weight:["200","300","regular","500","600","700"],fallback:"serif"},"IM Fell Double Pica":{weight:["regular","italic"],fallback:"serif"},Molengo:{weight:["regular"],fallback:"sans-serif"},Sunflower:{weight:["300","500","700"],fallback:"sans-serif"},"Alegreya SC":{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Red Hat Display":{weight:["regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},Jua:{weight:["regular"],fallback:"sans-serif"},Ovo:{weight:["regular"],fallback:"serif"},"IBM Plex Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Nixie One":{weight:["regular"],fallback:"display"},Aladin:{weight:["regular"],fallback:"handwriting"},Arizonia:{weight:["regular"],fallback:"handwriting"},"Bubblegum Sans":{weight:["regular"],fallback:"display"},"Changa One":{weight:["regular","italic"],fallback:"display"},"Lexend Deca":{weight:["regular"],fallback:"sans-serif"},Sofia:{weight:["regular"],fallback:"handwriting"},"Jockey One":{weight:["regular"],fallback:"sans-serif"},Suranna:{weight:["regular"],fallback:"serif"},Amethysta:{weight:["regular"],fallback:"serif"},Schoolbell:{weight:["regular"],fallback:"handwriting"},"Nanum Brush Script":{weight:["regular"],fallback:"handwriting"},"Cedarville Cursive":{weight:["regular"],fallback:"handwriting"},"Cutive Mono":{weight:["regular"],fallback:"monospace"},Delius:{weight:["regular"],fallback:"handwriting"},"Raleway Dots":{weight:["regular"],fallback:"display"},Graduate:{weight:["regular"],fallback:"display"},Lustria:{weight:["regular"],fallback:"serif"},"Mukta Vaani":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Kadwa:{weight:["regular","700"],fallback:"serif"},"Rozha One":{weight:["regular"],fallback:"serif"},Buenard:{weight:["regular","700"],fallback:"serif"},Cambo:{weight:["regular"],fallback:"serif"},Marvel:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Krona One":{weight:["regular"],fallback:"sans-serif"},"Carrois Gothic":{weight:["regular"],fallback:"sans-serif"},Carme:{weight:["regular"],fallback:"sans-serif"},"Slabo 13px":{weight:["regular"],fallback:"serif"},Lemon:{weight:["regular"],fallback:"display"},"Love Ya Like A Sister":{weight:["regular"],fallback:"display"},Rosario:{weight:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},"Merienda One":{weight:["regular"],fallback:"handwriting"},"Public Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Petit Formal Script":{weight:["regular"],fallback:"handwriting"},"Ceviche One":{weight:["regular"],fallback:"display"},Voltaire:{weight:["regular"],fallback:"sans-serif"},Fresca:{weight:["regular"],fallback:"sans-serif"},"Averia Serif Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Rye:{weight:["regular"],fallback:"display"},"Noto Serif KR":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Chelsea Market":{weight:["regular"],fallback:"display"},Calligraffitti:{weight:["regular"],fallback:"handwriting"},"Freckle Face":{weight:["regular"],fallback:"display"},"Duru Sans":{weight:["regular"],fallback:"sans-serif"},Trocchi:{weight:["regular"],fallback:"serif"},Metrophobic:{weight:["regular"],fallback:"sans-serif"},Mate:{weight:["regular","italic"],fallback:"serif"},Harmattan:{weight:["regular"],fallback:"sans-serif"},"Gilda Display":{weight:["regular"],fallback:"serif"},"Cormorant Infant":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Spartan:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Oxygen Mono":{weight:["regular"],fallback:"monospace"},Chonburi:{weight:["regular"],fallback:"display"},"Goudy Bookletter 1911":{weight:["regular"],fallback:"serif"},Sansita:{weight:["regular","italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Emilys Candy":{weight:["regular"],fallback:"display"},Amiko:{weight:["regular","600","700"],fallback:"sans-serif"},Kristi:{weight:["regular"],fallback:"handwriting"},"Palanquin Dark":{weight:["regular","500","600","700"],fallback:"sans-serif"},Lekton:{weight:["regular","italic","700"],fallback:"sans-serif"},Cutive:{weight:["regular"],fallback:"serif"},"Herr Von Muellerhoff":{weight:["regular"],fallback:"handwriting"},"GFS Didot":{weight:["regular"],fallback:"serif"},Radley:{weight:["regular","italic"],fallback:"serif"},"Sue Ellen Francisco":{weight:["regular"],fallback:"handwriting"},Pompiere:{weight:["regular"],fallback:"display"},Gabriela:{weight:["regular"],fallback:"serif"},Niramit:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Seaweed Script":{weight:["regular"],fallback:"display"},"Sedgwick Ave":{weight:["regular"],fallback:"handwriting"},Federo:{weight:["regular"],fallback:"sans-serif"},McLaren:{weight:["regular"],fallback:"display"},"IM Fell DW Pica":{weight:["regular","italic"],fallback:"serif"},Sniglet:{weight:["regular","800"],fallback:"display"},"Mr De Haviland":{weight:["regular"],fallback:"handwriting"},Shojumaru:{weight:["regular"],fallback:"display"},Poly:{weight:["regular","italic"],fallback:"serif"},Belleza:{weight:["regular"],fallback:"sans-serif"},Faustina:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"IM Fell English":{weight:["regular","italic"],fallback:"serif"},"Rammetto One":{weight:["regular"],fallback:"display"},Amita:{weight:["regular","700"],fallback:"handwriting"},Inder:{weight:["regular"],fallback:"sans-serif"},"Antic Didone":{weight:["regular"],fallback:"serif"},"Alike Angular":{weight:["regular"],fallback:"serif"},Montez:{weight:["regular"],fallback:"handwriting"},K2D:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},UnifrakturMaguntia:{weight:["regular"],fallback:"display"},Gurajada:{weight:["regular"],fallback:"serif"},"Proza Libre":{weight:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Athiti:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Andada:{weight:["regular"],fallback:"serif"},"Liu Jian Mao Cao":{weight:["regular"],fallback:"handwriting"},Megrim:{weight:["regular"],fallback:"display"},"Vast Shadow":{weight:["regular"],fallback:"display"},Wallpoet:{weight:["regular"],fallback:"display"},Unkempt:{weight:["regular","700"],fallback:"display"},"Fanwood Text":{weight:["regular","italic"],fallback:"serif"},"Doppio One":{weight:["regular"],fallback:"sans-serif"},"Comic Neue":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"handwriting"},Corben:{weight:["regular","700"],fallback:"display"},Frijole:{weight:["regular"],fallback:"display"},Balthazar:{weight:["regular"],fallback:"serif"},Mirza:{weight:["regular","500","600","700"],fallback:"display"},"IM Fell French Canon SC":{weight:["regular"],fallback:"serif"},Brawler:{weight:["regular"],fallback:"serif"},"Oleo Script Swash Caps":{weight:["regular","700"],fallback:"display"},Mandali:{weight:["regular"],fallback:"sans-serif"},Convergence:{weight:["regular"],fallback:"sans-serif"},Fondamento:{weight:["regular","italic"],fallback:"handwriting"},Alike:{weight:["regular"],fallback:"serif"},Baumans:{weight:["regular"],fallback:"display"},Esteban:{weight:["regular"],fallback:"serif"},"Gravitas One":{weight:["regular"],fallback:"display"},Anaheim:{weight:["regular"],fallback:"sans-serif"},"Wendy One":{weight:["regular"],fallback:"sans-serif"},"Stardos Stencil":{weight:["regular","700"],fallback:"display"},"Spicy Rice":{weight:["regular"],fallback:"display"},Rakkas:{weight:["regular"],fallback:"display"},"La Belle Aurore":{weight:["regular"],fallback:"handwriting"},"Secular One":{weight:["regular"],fallback:"sans-serif"},Belgrano:{weight:["regular"],fallback:"serif"},"Bungee Shade":{weight:["regular"],fallback:"display"},"Crafty Girls":{weight:["regular"],fallback:"handwriting"},Battambang:{weight:["regular","700"],fallback:"display"},Quando:{weight:["regular"],fallback:"serif"},"Mouse Memoirs":{weight:["regular"],fallback:"sans-serif"},Gugi:{weight:["regular"],fallback:"display"},"Faster One":{weight:["regular"],fallback:"display"},"B612 Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Limelight:{weight:["regular"],fallback:"display"},"Short Stack":{weight:["regular"],fallback:"handwriting"},"Mountains of Christmas":{weight:["regular","700"],fallback:"display"},"Share Tech":{weight:["regular"],fallback:"sans-serif"},Laila:{weight:["300","regular","500","600","700"],fallback:"serif"},Literata:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Cormorant SC":{weight:["300","regular","500","600","700"],fallback:"serif"},"Fjord One":{weight:["regular"],fallback:"serif"},Podkova:{weight:["regular","500","600","700","800"],fallback:"serif"},Homenaje:{weight:["regular"],fallback:"sans-serif"},"Walter Turncoat":{weight:["regular"],fallback:"handwriting"},Sen:{weight:["regular","700","800"],fallback:"sans-serif"},"Patrick Hand SC":{weight:["regular"],fallback:"handwriting"},Voces:{weight:["regular"],fallback:"display"},Qwigley:{weight:["regular"],fallback:"handwriting"},"Happy Monkey":{weight:["regular"],fallback:"display"},"Rouge Script":{weight:["regular"],fallback:"handwriting"},"Baloo Chettan 2":{weight:["regular","500","600","700","800"],fallback:"display"},NTR:{weight:["regular"],fallback:"sans-serif"},Skranji:{weight:["regular","700"],fallback:"display"},Strait:{weight:["regular"],fallback:"sans-serif"},"Dawning of a New Day":{weight:["regular"],fallback:"handwriting"},Iceland:{weight:["regular"],fallback:"display"},"Expletus Sans":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"display"},"Montserrat Subrayada":{weight:["regular","700"],fallback:"sans-serif"},Oregano:{weight:["regular","italic"],fallback:"display"},"Give You Glory":{weight:["regular"],fallback:"handwriting"},Alata:{weight:["regular"],fallback:"sans-serif"},Puritan:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Mako:{weight:["regular"],fallback:"sans-serif"},Andika:{weight:["regular"],fallback:"sans-serif"},"Cormorant Upright":{weight:["300","regular","500","600","700"],fallback:"serif"},Zeyada:{weight:["regular"],fallback:"handwriting"},"Bowlby One":{weight:["regular"],fallback:"display"},"Aref Ruqaa":{weight:["regular","700"],fallback:"serif"},Numans:{weight:["regular"],fallback:"sans-serif"},Kurale:{weight:["regular"],fallback:"serif"},Spirax:{weight:["regular"],fallback:"display"},"Clicker Script":{weight:["regular"],fallback:"handwriting"},"Waiting for the Sunrise":{weight:["regular"],fallback:"handwriting"},"Holtwood One SC":{weight:["regular"],fallback:"serif"},Katibeh:{weight:["regular"],fallback:"display"},"Carrois Gothic SC":{weight:["regular"],fallback:"sans-serif"},Livvic:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},Eater:{weight:["regular"],fallback:"display"},"Fontdiner Swanky":{weight:["regular"],fallback:"display"},"Finger Paint":{weight:["regular"],fallback:"display"},Bellefair:{weight:["regular"],fallback:"serif"},"Wire One":{weight:["regular"],fallback:"sans-serif"},Kosugi:{weight:["regular"],fallback:"sans-serif"},Charm:{weight:["regular","700"],fallback:"handwriting"},"Delius Swash Caps":{weight:["regular"],fallback:"handwriting"},"Vesper Libre":{weight:["regular","500","700","900"],fallback:"serif"},"Red Hat Text":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Gafata:{weight:["regular"],fallback:"sans-serif"},"Averia Sans Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Denk One":{weight:["regular"],fallback:"sans-serif"},Geo:{weight:["regular","italic"],fallback:"sans-serif"},Tauri:{weight:["regular"],fallback:"sans-serif"},"Cherry Swash":{weight:["regular","700"],fallback:"display"},Codystar:{weight:["300","regular"],fallback:"display"},"Cantora One":{weight:["regular"],fallback:"sans-serif"},"Encode Sans Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Nova Square":{weight:["regular"],fallback:"display"},BioRhyme:{weight:["200","300","regular","700","800"],fallback:"serif"},Timmana:{weight:["regular"],fallback:"sans-serif"},Atma:{weight:["300","regular","500","600","700"],fallback:"display"},Tienne:{weight:["regular","700","900"],fallback:"serif"},Meddon:{weight:["regular"],fallback:"handwriting"},Galada:{weight:["regular"],fallback:"display"},Padauk:{weight:["regular","700"],fallback:"sans-serif"},"Loved by the King":{weight:["regular"],fallback:"handwriting"},"The Girl Next Door":{weight:["regular"],fallback:"handwriting"},"Darker Grotesque":{weight:["300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Life Savers":{weight:["regular","700","800"],fallback:"display"},Bilbo:{weight:["regular"],fallback:"handwriting"},Shanti:{weight:["regular"],fallback:"sans-serif"},"Headland One":{weight:["regular"],fallback:"serif"},"Euphoria Script":{weight:["regular"],fallback:"handwriting"},Imprima:{weight:["regular"],fallback:"sans-serif"},"Aguafina Script":{weight:["regular"],fallback:"handwriting"},"Baloo 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Over the Rainbow":{weight:["regular"],fallback:"handwriting"},Sarpanch:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Orienta:{weight:["regular"],fallback:"sans-serif"},"Spectral SC":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Port Lligat Sans":{weight:["regular"],fallback:"sans-serif"},Artifika:{weight:["regular"],fallback:"serif"},Ledger:{weight:["regular"],fallback:"serif"},Ruluko:{weight:["regular"],fallback:"sans-serif"},Sail:{weight:["regular"],fallback:"display"},Alatsi:{weight:["regular"],fallback:"sans-serif"},"Sonsie One":{weight:["regular"],fallback:"display"},"Bilbo Swash Caps":{weight:["regular"],fallback:"handwriting"},Slackey:{weight:["regular"],fallback:"display"},Salsa:{weight:["regular"],fallback:"display"},Rationale:{weight:["regular"],fallback:"sans-serif"},"Hepta Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Nosifer:{weight:["regular"],fallback:"display"},Dekko:{weight:["regular"],fallback:"handwriting"},"Encode Sans Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Lily Script One":{weight:["regular"],fallback:"display"},"Zilla Slab Highlight":{weight:["regular","700"],fallback:"display"},Dokdo:{weight:["regular"],fallback:"handwriting"},"Kotta One":{weight:["regular"],fallback:"serif"},"Macondo Swash Caps":{weight:["regular"],fallback:"display"},"Encode Sans Semi Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Prosto One":{weight:["regular"],fallback:"display"},"Trade Winds":{weight:["regular"],fallback:"display"},Farsan:{weight:["regular"],fallback:"display"},Manuale:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},Creepster:{weight:["regular"],fallback:"display"},"Medula One":{weight:["regular"],fallback:"display"},Ranchers:{weight:["regular"],fallback:"display"},"David Libre":{weight:["regular","500","700"],fallback:"serif"},"Libre Barcode 39":{weight:["regular"],fallback:"display"},"Vampiro One":{weight:["regular"],fallback:"display"},Metamorphous:{weight:["regular"],fallback:"display"},"Bubbler One":{weight:["regular"],fallback:"sans-serif"},"Nova Mono":{weight:["regular"],fallback:"monospace"},"Princess Sofia":{weight:["regular"],fallback:"handwriting"},"Just Me Again Down Here":{weight:["regular"],fallback:"handwriting"},Notable:{weight:["regular"],fallback:"sans-serif"},"Fascinate Inline":{weight:["regular"],fallback:"display"},Vibur:{weight:["regular"],fallback:"handwriting"},"Vollkorn SC":{weight:["regular","600","700","900"],fallback:"serif"},Crushed:{weight:["regular"],fallback:"display"},Sumana:{weight:["regular","700"],fallback:"serif"},Elsie:{weight:["regular","900"],fallback:"display"},Ranga:{weight:["regular","700"],fallback:"display"},"Port Lligat Slab":{weight:["regular"],fallback:"serif"},Amarante:{weight:["regular"],fallback:"display"},"Ruslan Display":{weight:["regular"],fallback:"display"},"Germania One":{weight:["regular"],fallback:"display"},"Sirin Stencil":{weight:["regular"],fallback:"display"},Pavanam:{weight:["regular"],fallback:"sans-serif"},Peralta:{weight:["regular"],fallback:"display"},"Scope One":{weight:["regular"],fallback:"serif"},Jomolhari:{weight:["regular"],fallback:"serif"},Kranky:{weight:["regular"],fallback:"display"},"Yatra One":{weight:["regular"],fallback:"display"},"Jacques Francois Shadow":{weight:["regular"],fallback:"display"},Ribeye:{weight:["regular"],fallback:"display"},"Averia Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Saira Stencil One":{weight:["regular"],fallback:"display"},"Cherry Cream Soda":{weight:["regular"],fallback:"display"},"Mukta Mahee":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Srisakdi:{weight:["regular","700"],fallback:"display"},Trochut:{weight:["regular","italic","700"],fallback:"display"},Coiny:{weight:["regular"],fallback:"display"},"Ma Shan Zheng":{weight:["regular"],fallback:"handwriting"},Asul:{weight:["regular","700"],fallback:"sans-serif"},Ewert:{weight:["regular"],fallback:"display"},Arya:{weight:["regular","700"],fallback:"sans-serif"},"Hanalei Fill":{weight:["regular"],fallback:"display"},Grenze:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Ribeye Marrow":{weight:["regular"],fallback:"display"},"IM Fell English SC":{weight:["regular"],fallback:"serif"},"Chau Philomene One":{weight:["regular","italic"],fallback:"sans-serif"},Sarina:{weight:["regular"],fallback:"display"},Chicle:{weight:["regular"],fallback:"display"},Manjari:{weight:["100","regular","700"],fallback:"sans-serif"},Montaga:{weight:["regular"],fallback:"serif"},Italiana:{weight:["regular"],fallback:"serif"},Akronim:{weight:["regular"],fallback:"display"},Habibi:{weight:["regular"],fallback:"serif"},Englebert:{weight:["regular"],fallback:"sans-serif"},Dynalight:{weight:["regular"],fallback:"display"},"Mate SC":{weight:["regular"],fallback:"serif"},"Henny Penny":{weight:["regular"],fallback:"display"},"Sree Krushnadevaraya":{weight:["regular"],fallback:"serif"},Engagement:{weight:["regular"],fallback:"handwriting"},Girassol:{weight:["regular"],fallback:"display"},"Kite One":{weight:["regular"],fallback:"sans-serif"},"Ibarra Real Nova":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},Gaegu:{weight:["300","regular","700"],fallback:"handwriting"},Fenix:{weight:["regular"],fallback:"serif"},"Pirata One":{weight:["regular"],fallback:"display"},"Tulpen One":{weight:["regular"],fallback:"display"},"IM Fell Great Primer":{weight:["regular","italic"],fallback:"serif"},Chathura:{weight:["100","300","regular","700","800"],fallback:"sans-serif"},Unlock:{weight:["regular"],fallback:"display"},"Nova Round":{weight:["regular"],fallback:"display"},Sura:{weight:["regular","700"],fallback:"serif"},"Kumar One":{weight:["regular"],fallback:"display"},Baskervville:{weight:["regular","italic"],fallback:"serif"},Quintessential:{weight:["regular"],fallback:"handwriting"},Milonga:{weight:["regular"],fallback:"display"},Bayon:{weight:["regular"],fallback:"display"},"Be Vietnam":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},"Crimson Pro":{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},B612:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"League Script":{weight:["regular"],fallback:"handwriting"},"Inknut Antiqua":{weight:["300","regular","500","600","700","800","900"],fallback:"serif"},Mogra:{weight:["regular"],fallback:"display"},"Mystery Quest":{weight:["regular"],fallback:"display"},"Monsieur La Doulaise":{weight:["regular"],fallback:"handwriting"},Vibes:{weight:["regular"],fallback:"display"},Rosarivo:{weight:["regular","italic"],fallback:"serif"},"Uncial Antiqua":{weight:["regular"],fallback:"display"},Dorsa:{weight:["regular"],fallback:"sans-serif"},Almendra:{weight:["regular","italic","700","700italic"],fallback:"serif"},Diplomata:{weight:["regular"],fallback:"display"},Simonetta:{weight:["regular","italic","900","900italic"],fallback:"display"},"New Rocker":{weight:["regular"],fallback:"display"},Snippet:{weight:["regular"],fallback:"sans-serif"},Petrona:{weight:["regular"],fallback:"serif"},Ramaraja:{weight:["regular"],fallback:"serif"},"Averia Gruesa Libre":{weight:["regular"],fallback:"display"},"Baloo Bhaina 2":{weight:["regular","500","600","700","800"],fallback:"display"},Kodchasan:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Meera Inimai":{weight:["regular"],fallback:"sans-serif"},Flamenco:{weight:["300","regular"],fallback:"display"},Khmer:{weight:["regular"],fallback:"display"},Paprika:{weight:["regular"],fallback:"display"},Koulen:{weight:["regular"],fallback:"display"},Mansalva:{weight:["regular"],fallback:"handwriting"},"Lovers Quarrel":{weight:["regular"],fallback:"handwriting"},Condiment:{weight:["regular"],fallback:"handwriting"},"Baloo Thambi 2":{weight:["regular","500","600","700","800"],fallback:"display"},Stoke:{weight:["300","regular"],fallback:"serif"},Barrio:{weight:["regular"],fallback:"display"},Barriecito:{weight:["regular"],fallback:"display"},"Donegal One":{weight:["regular"],fallback:"serif"},Kavoon:{weight:["regular"],fallback:"display"},"Big Shoulders Display":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Mina:{weight:["regular","700"],fallback:"sans-serif"},"Big Shoulders Text":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Prociono:{weight:["regular"],fallback:"serif"},"Text Me One":{weight:["regular"],fallback:"sans-serif"},"IM Fell French Canon":{weight:["regular","italic"],fallback:"serif"},"Overlock SC":{weight:["regular"],fallback:"display"},Cagliostro:{weight:["regular"],fallback:"sans-serif"},"Marko One":{weight:["regular"],fallback:"serif"},"Swanky and Moo Moo":{weight:["regular"],fallback:"handwriting"},"Maiden Orange":{weight:["regular"],fallback:"display"},Blinker:{weight:["100","200","300","regular","600","700","800","900"],fallback:"sans-serif"},Miniver:{weight:["regular"],fallback:"display"},Angkor:{weight:["regular"],fallback:"display"},Chango:{weight:["regular"],fallback:"display"},Thasadith:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Modak:{weight:["regular"],fallback:"display"},Junge:{weight:["regular"],fallback:"serif"},"Stint Ultra Condensed":{weight:["regular"],fallback:"display"},Stalemate:{weight:["regular"],fallback:"handwriting"},Tillana:{weight:["regular","500","600","700","800"],fallback:"handwriting"},UnifrakturCook:{weight:["700"],fallback:"display"},"Rum Raisin":{weight:["regular"],fallback:"sans-serif"},Farro:{weight:["300","regular","500","700"],fallback:"sans-serif"},"Delius Unicase":{weight:["regular","700"],fallback:"handwriting"},Sancreek:{weight:["regular"],fallback:"display"},Julee:{weight:["regular"],fallback:"handwriting"},Margarine:{weight:["regular"],fallback:"display"},"Lakki Reddy":{weight:["regular"],fallback:"handwriting"},"Stint Ultra Expanded":{weight:["regular"],fallback:"display"},"Bigshot One":{weight:["regular"],fallback:"display"},Griffy:{weight:["regular"],fallback:"display"},Moul:{weight:["regular"],fallback:"display"},"Diplomata SC":{weight:["regular"],fallback:"display"},Oxanium:{weight:["200","300","regular","500","600","700","800"],fallback:"display"},Offside:{weight:["regular"],fallback:"display"},"Fira Code":{weight:["300","regular","500","600","700"],fallback:"monospace"},"Eagle Lake":{weight:["regular"],fallback:"handwriting"},Flavors:{weight:["regular"],fallback:"display"},"Londrina Outline":{weight:["regular"],fallback:"display"},Tomorrow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Nokora:{weight:["regular","700"],fallback:"serif"},Calistoga:{weight:["regular"],fallback:"display"},Gotu:{weight:["regular"],fallback:"sans-serif"},"Della Respira":{weight:["regular"],fallback:"serif"},"Cormorant Unicase":{weight:["300","regular","500","600","700"],fallback:"serif"},"Libre Caslon Text":{weight:["regular","italic","700"],fallback:"serif"},Buda:{weight:["300"],fallback:"display"},Asar:{weight:["regular"],fallback:"serif"},"Poller One":{weight:["regular"],fallback:"display"},"Autour One":{weight:["regular"],fallback:"display"},"Nova Slim":{weight:["regular"],fallback:"display"},Underdog:{weight:["regular"],fallback:"display"},Redressed:{weight:["regular"],fallback:"handwriting"},"Yeon Sung":{weight:["regular"],fallback:"display"},Content:{weight:["regular","700"],fallback:"display"},Kantumruy:{weight:["300","regular","700"],fallback:"sans-serif"},"Baloo Paaji 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Jim Nightshade":{weight:["regular"],fallback:"handwriting"},"Glass Antiqua":{weight:["regular"],fallback:"display"},"Snowburst One":{weight:["regular"],fallback:"display"},"Gamja Flower":{weight:["regular"],fallback:"handwriting"},Revalia:{weight:["regular"],fallback:"display"},"Metal Mania":{weight:["regular"],fallback:"display"},Charmonman:{weight:["regular","700"],fallback:"handwriting"},"IM Fell DW Pica SC":{weight:["regular"],fallback:"serif"},Inika:{weight:["regular","700"],fallback:"serif"},"Elsie Swash Caps":{weight:["regular","900"],fallback:"display"},Wellfleet:{weight:["regular"],fallback:"display"},"Chela One":{weight:["regular"],fallback:"display"},"Rhodium Libre":{weight:["regular"],fallback:"serif"},"Mrs Sheppards":{weight:["regular"],fallback:"handwriting"},"Sedgwick Ave Display":{weight:["regular"],fallback:"handwriting"},"Modern Antiqua":{weight:["regular"],fallback:"display"},"Ravi Prakash":{weight:["regular"],fallback:"display"},Galdeano:{weight:["regular"],fallback:"sans-serif"},Oldenburg:{weight:["regular"],fallback:"display"},Arbutus:{weight:["regular"],fallback:"display"},"Poor Story":{weight:["regular"],fallback:"display"},"Hi Melody":{weight:["regular"],fallback:"handwriting"},"Joti One":{weight:["regular"],fallback:"display"},"Nova Flat":{weight:["regular"],fallback:"display"},"ZCOOL QingKe HuangYou":{weight:["regular"],fallback:"display"},"Linden Hill":{weight:["regular","italic"],fallback:"serif"},Bokor:{weight:["regular"],fallback:"display"},"Courier Prime":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Trykker:{weight:["regular"],fallback:"serif"},KoHo:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Song Myung":{weight:["regular"],fallback:"serif"},Ruthie:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended Text":{weight:["regular"],fallback:"display"},Chilanka:{weight:["regular"],fallback:"handwriting"},Fahkwang:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Felipa:{weight:["regular"],fallback:"handwriting"},Monofett:{weight:["regular"],fallback:"display"},"Odibee Sans":{weight:["regular"],fallback:"display"},Smythe:{weight:["regular"],fallback:"display"},"Major Mono Display":{weight:["regular"],fallback:"monospace"},Jomhuria:{weight:["regular"],fallback:"display"},"Croissant One":{weight:["regular"],fallback:"display"},Dangrek:{weight:["regular"],fallback:"display"},"Original Surfer":{weight:["regular"],fallback:"display"},Bahiana:{weight:["regular"],fallback:"display"},Gorditas:{weight:["regular","700"],fallback:"display"},"Odor Mean Chey":{weight:["regular"],fallback:"display"},Iceberg:{weight:["regular"],fallback:"display"},MedievalSharp:{weight:["regular"],fallback:"display"},"Caesar Dressing":{weight:["regular"],fallback:"display"},Sahitya:{weight:["regular","700"],fallback:"serif"},Stylish:{weight:["regular"],fallback:"sans-serif"},"Nova Cut":{weight:["regular"],fallback:"display"},"Purple Purse":{weight:["regular"],fallback:"display"},Devonshire:{weight:["regular"],fallback:"handwriting"},Smokum:{weight:["regular"],fallback:"display"},"Almendra Display":{weight:["regular"],fallback:"display"},Galindo:{weight:["regular"],fallback:"display"},Preahvihear:{weight:["regular"],fallback:"display"},Siemreap:{weight:["regular"],fallback:"display"},"Irish Grover":{weight:["regular"],fallback:"display"},Gupter:{weight:["regular","500","700"],fallback:"serif"},"Meie Script":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128":{weight:["regular"],fallback:"display"},"Keania One":{weight:["regular"],fallback:"display"},"GFS Neohellenic":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Cute Font":{weight:["regular"],fallback:"display"},"Londrina Shadow":{weight:["regular"],fallback:"display"},"East Sea Dokdo":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended":{weight:["regular"],fallback:"display"},Risque:{weight:["regular"],fallback:"display"},Lancelot:{weight:["regular"],fallback:"display"},"Libre Caslon Display":{weight:["regular"],fallback:"serif"},Plaster:{weight:["regular"],fallback:"display"},"Goblin One":{weight:["regular"],fallback:"display"},Asset:{weight:["regular"],fallback:"display"},"Almendra SC":{weight:["regular"],fallback:"serif"},"Jacques Francois":{weight:["regular"],fallback:"serif"},"Jolly Lodger":{weight:["regular"],fallback:"display"},"Lexend Exa":{weight:["regular"],fallback:"sans-serif"},Molle:{weight:["italic"],fallback:"handwriting"},Kavivanar:{weight:["regular"],fallback:"handwriting"},"Kirang Haerang":{weight:["regular"],fallback:"display"},Piedra:{weight:["regular"],fallback:"display"},"Atomic Age":{weight:["regular"],fallback:"display"},"Kulim Park":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Libre Barcode 39 Text":{weight:["regular"],fallback:"display"},"IM Fell Great Primer SC":{weight:["regular"],fallback:"serif"},"Tenali Ramakrishna":{weight:["regular"],fallback:"sans-serif"},Butcherman:{weight:["regular"],fallback:"display"},"Dr Sugiyama":{weight:["regular"],fallback:"handwriting"},"Geostar Fill":{weight:["regular"],fallback:"display"},Romanesco:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128 Text":{weight:["regular"],fallback:"display"},Sunshiney:{weight:["regular"],fallback:"handwriting"},"Kumar One Outline":{weight:["regular"],fallback:"display"},Peddana:{weight:["regular"],fallback:"serif"},"Baloo Bhai 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Kdam Thmor":{weight:["regular"],fallback:"display"},"Ruge Boogie":{weight:["regular"],fallback:"handwriting"},Freehand:{weight:["regular"],fallback:"display"},Bonbon:{weight:["regular"],fallback:"handwriting"},Caladea:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Single Day":{weight:["regular"],fallback:"display"},"Baloo Tamma 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Inria Sans":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Hanalei:{weight:["regular"],fallback:"display"},"Emblema One":{weight:["regular"],fallback:"display"},"Seymour One":{weight:["regular"],fallback:"sans-serif"},"Miss Fajardose":{weight:["regular"],fallback:"handwriting"},Sevillana:{weight:["regular"],fallback:"display"},"Inria Serif":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Bungee Outline":{weight:["regular"],fallback:"display"},Metal:{weight:["regular"],fallback:"display"},"IM Fell Double Pica SC":{weight:["regular"],fallback:"serif"},"Lexend Giga":{weight:["regular"],fallback:"sans-serif"},"ZCOOL KuaiLe":{weight:["regular"],fallback:"display"},Astloch:{weight:["regular","700"],fallback:"display"},"Mr Bedfort":{weight:["regular"],fallback:"handwriting"},Macondo:{weight:["regular"],fallback:"display"},"Butterfly Kids":{weight:["regular"],fallback:"handwriting"},"Supermercado One":{weight:["regular"],fallback:"display"},Fruktur:{weight:["regular"],fallback:"display"},Taprom:{weight:["regular"],fallback:"display"},Lacquer:{weight:["regular"],fallback:"display"},"Black And White Picture":{weight:["regular"],fallback:"sans-serif"},"Bigelow Rules":{weight:["regular"],fallback:"display"},"Beth Ellen":{weight:["regular"],fallback:"handwriting"},"Sofadi One":{weight:["regular"],fallback:"display"},Combo:{weight:["regular"],fallback:"display"},Bellota:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Federant:{weight:["regular"],fallback:"display"},"Miltonian Tattoo":{weight:["regular"],fallback:"display"},"Londrina Sketch":{weight:["regular"],fallback:"display"},Suwannaphum:{weight:["regular"],fallback:"display"},"Bungee Hairline":{weight:["regular"],fallback:"display"},Fascinate:{weight:["regular"],fallback:"display"},"Erica One":{weight:["regular"],fallback:"display"},"Nova Oval":{weight:["regular"],fallback:"display"},"Baloo Da 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Sulphur Point":{weight:["300","regular","700"],fallback:"sans-serif"},Aubrey:{weight:["regular"],fallback:"display"},Gidugu:{weight:["regular"],fallback:"sans-serif"},"Bellota Text":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Nova Script":{weight:["regular"],fallback:"display"},Miltonian:{weight:["regular"],fallback:"display"},Gayathri:{weight:["100","regular","700"],fallback:"sans-serif"},Geostar:{weight:["regular"],fallback:"display"},Moulpali:{weight:["regular"],fallback:"display"},"Passero One":{weight:["regular"],fallback:"display"},"Stalinist One":{weight:["regular"],fallback:"display"},"Long Cang":{weight:["regular"],fallback:"handwriting"},Solway:{weight:["300","regular","500","700","800"],fallback:"serif"},"Zhi Mang Xing":{weight:["regular"],fallback:"handwriting"},"Baloo Tammudu 2":{weight:["regular","500","600","700","800"],fallback:"display"},Chenla:{weight:["regular"],fallback:"display"},Suravaram:{weight:["regular"],fallback:"serif"},Fasthand:{weight:["regular"],fallback:"serif"},Kenia:{weight:["regular"],fallback:"display"},Dhurjati:{weight:["regular"],fallback:"sans-serif"},"Lexend Tera":{weight:["regular"],fallback:"sans-serif"},"BioRhyme Expanded":{weight:["200","300","regular","700","800"],fallback:"serif"},"Turret Road":{weight:["200","300","regular","500","700","800"],fallback:"display"},Warnes:{weight:["regular"],fallback:"display"},"Viaoda Libre":{weight:["regular"],fallback:"display"},"Lexend Mega":{weight:["regular"],fallback:"sans-serif"},Bahianita:{weight:["regular"],fallback:"display"},Manrope:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Lexend Zetta":{weight:["regular"],fallback:"sans-serif"},"Lexend Peta":{weight:["regular"],fallback:"sans-serif"}});function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var je=function(e){f()(a,e);var t=Oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.setAttributes,i=t.attributes,r=t.device,n=void 0===r?"":r,c=t.showFontSize,s=void 0!==c&&c,g=t.showFontFamily,b=void 0!==g&&g,u=t.showFontWeight,d=void 0!==u&&u,p=t.showTextTransform,f=void 0!==p&&p,h=t.showLineHeight,m=void 0!==h&&h,k=t.showLetterSpacing,y=void 0!==k&&k,v=t.disableAdvancedToggle,w=void 0!==v&&v,O=t.fontSizePlaceholder,j=void 0===O?"17":O,_=[{value:"",label:Object(T.__)("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(we).slice(0,20).forEach((function(e){_.push({value:e,label:e})})),_.push({value:"other",label:Object(T.__)("Other","generateblocks")});var S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],B=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"uppercase",label:Object(T.__)("Uppercase","generateblocks")},{value:"lowercase",label:Object(T.__)("Lowercase","generateblocks")},{value:"capitalize",label:Object(T.__)("Capitalize","generateblocks")},{value:"initial",label:Object(T.__)("Normal","generateblocks")}];void 0!==we[i.fontFamily]&&void 0!==we[i.fontFamily].weight&&(S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")}],we[i.fontFamily].weight.filter((function(e){var t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e)})).forEach((function(e){S.push({value:e,label:e})})));var D=function(e){"other"===e&&(e="");i.fontWeight;a({fontFamily:e}),i.fontWeight&&Object.values(S).indexOf(i.fontWeight),void 0!==we[e]?a({googleFont:!0,fontFamilyFallback:we[e].fallback,googleFontVariants:we[e].weight.join(", ")}):a({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})},R=function(e){a({fontFamily:e.target.value}),D(e.target.value)},x=function(e,t){return i[e+t]},M=function(e,t){return e+t},z=i.showAdvancedTypography;w&&(z=!0);var L=j;"Tablet"===n&&i.fontSize&&(L=i.fontSize),"Mobile"===n&&(i.fontSizeTablet?L=i.fontSizeTablet:i.fontSize&&(L=i.fontSize));var P="";return"Tablet"===n&&i.lineHeight&&(P=i.lineHeight),"Mobile"===n&&(i.lineHeightTablet?P=i.lineHeightTablet:i.lineHeight&&(P=i.lineHeight)),Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-gblocks-typography-weight-transform"},d&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Weight","generateblocks"),value:i.fontWeight,options:S,onChange:function(e){a({fontWeight:e})},className:"components-base-control"}),f&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Transform","generateblocks"),value:i.textTransform,options:B,onChange:function(e){a({textTransform:e})},className:"components-base-control"})),!w&&Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Show Advanced Typography","generateblocks"),checked:!!i.showAdvancedTypography,onChange:function(e){a({showAdvancedTypography:e})}}),b&&z&&Object(l.createElement)(C.BaseControl,{className:"gblocks-font-family-shortcuts"},Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Font Family","generateblocks")),Object(l.createElement)("select",{className:"components-select-control__input components-select-control__input--gblocks-fontfamily",onChange:R,onBlur:R},_.map((function(e,t){return Object(l.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))),b&&z&&Object(l.createElement)(C.TextControl,{value:i.fontFamily,placeholder:Object(T.__)("Enter font name","generateblocks"),onChange:function(e){return D(e)}}),b&&""!==i.fontFamily&&z&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Google Font","generateblocks"),checked:!!i.googleFont,onChange:function(e){a({googleFont:e}),e&&void 0!==we[i.fontFamily]&&a({fontFamilyFallback:we[i.fontFamily].fallback,googleFontVariants:we[i.fontFamily].weight.join(", ")})}}),!!i.googleFont&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Variants","generateblocks"),value:i.googleFontVariants,placeholder:Object(T.__)("300, 400, 400i","generateblocks"),onChange:function(e){a({googleFontVariants:e})}})),b&&z&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Font Family Fallback","generateblocks"),value:i.fontFamilyFallback,placeholder:Object(T.__)("sans-serif","generateblocks"),onChange:function(e){a({fontFamilyFallback:e})}}),s&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Font Size","generateblocks"),value:i.fontSizeUnit,units:["px","em","%"],onClick:function(e){a({fontSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("fontSize",n)||"",placeholder:L,onChange:function(e){var t=M("fontSize",n);a(o()({},t,parseFloat(e)))},min:1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("fontSize",n);a(o()({},t,e.props.defaultFontSize))}},Object(T.__)("Reset","generateblocks")))),m&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Line Height","generateblocks"),value:i.lineHeightUnit,units:["px","em","%"],onClick:function(e){a({lineHeightUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("lineHeight",n)||0===x("lineHeight",n)?x("lineHeight",n):"",placeholder:P,onChange:function(e){var t=M("lineHeight",n);a(o()({},t,e))},onBlur:function(){var e=M("lineHeight",n);a(o()({},e,parseFloat(x("lineHeight",n))))},onClick:function(e){e.currentTarget.focus()},min:0,step:.1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("lineHeight",n);a(o()({},t,e.props.defaultLineHeight))}},Object(T.__)("Reset","generateblocks")))),y&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Letter Spacing","generateblocks"),value:"em",units:["em"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("letterSpacing",n)||"",placeholder:"0.01",onChange:function(e){var t=M("letterSpacing",n);a(o()({},t,e))},onBlur:function(){var e=M("letterSpacing",n);a(o()({},e,parseFloat(x("letterSpacing",n))))},onClick:function(e){e.currentTarget.focus()},min:-1,step:.01,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("letterSpacing",n);a(o()({},t,e.props.defaultLetterSpacing))}},Object(T.__)("Reset","generateblocks")))))}}]),a}(l.Component);a(39);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ce=function(e){f()(a,e);var t=Te(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrGradient,n=t.attrGradientDirection,c=t.attrGradientColorOne,s=t.attrGradientColorOneOpacity,g=t.attrGradientColorStopOne,b=t.attrGradientColorTwo,u=t.attrGradientColorTwoOpacity,d=t.attrGradientColorStopTwo,p=t.defaultColorOne,f=t.defaultColorTwo,h=a.gradientSelector,m="element"===h?Object(T.__)("Displays behind the background image.","generateblocks"):Object(T.__)("Displays in front of the background image.","generateblocks");return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Use Gradient","generateblocks"),checked:!!a[r],onChange:function(t){i(o()({},e.props.attrGradient,t))}}),!!a[r]&&Object(l.createElement)(l.Fragment,null,void 0!==h&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Selector","generateblocks"),help:m,value:h,options:[{label:Object(T.__)("Element","generateblocks"),value:"element"},{label:Object(T.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){i({gradientSelector:e})}}),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Direction","generateblocks")),Object(l.createElement)(C.RangeControl,{value:a[n]?a[n]:1,onChange:function(e){i(o()({},n,e))},min:0,max:360,step:1,initialPosition:90})),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color One","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[c],alpha:!0,valueOpacity:a[s],attrOpacity:"gradientColorOneOpacity",onChange:function(e){return i(o()({},c,e))},onOpacityChange:function(e){return i(o()({},s,e))},onClear:function(){return i(o()({},c,p))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[g]||0===a[g]?a[g]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},g,e))},onBlur:function(){(a[g]||0===a[g])&&i(o()({},g,parseFloat(a[g])))},onClick:function(e){e.currentTarget.focus()}}))),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color Two","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[b],alpha:!0,valueOpacity:a[u],attrOpacity:"gradientColorTwoOpacity",onChange:function(e){return i(o()({},b,e))},onOpacityChange:function(e){return i(o()({},u,e))},onClear:function(){return i(o()({},b,f))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[d]||0===a[d]?a[d]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},d,e))},onBlur:function(){(a[d]||0===a[d])&&i(o()({},d,parseFloat(a[d])))},onClick:function(e){e.currentTarget.focus()}})))))}}]),a}(l.Component),_e=a(25),Se=a.n(_e);function Be(e){return Se.a.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}function De(e,t,a,l,i){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+i+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+i+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+i+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+i+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}function Ee(e,t){var a=t.attributes,l=a.backgroundColor,i=a.backgroundColorOpacity,r=a.bgImage,n=a.gradient,o=a.bgOptions,c=a.gradientColorOne,s=a.gradientColorOneOpacity,g=a.gradientColorTwo,b=a.gradientColorTwoOpacity,u=a.gradientColorStopOne,d=a.gradientColorStopTwo,p=a.gradientDirection,f="";if(n){var h="",m="";c&&""!==u&&(h=" "+u+"%"),g&&""!==d&&(m=" "+d+"%"),f="linear-gradient("+p+"deg, "+he(c,s)+h+", "+he(g,b)+m+")"}if("gradient"===e)return f;var k=!1,y=he(l,i);if(r){var v=r.image.url;v=Object(_.applyFilters)("generateblocks.editor.bgImageURL",v,t),"element"===o.selector&&(y||n)&&void 0!==o.overlay&&o.overlay?n?k=f+", url("+v+")":y&&(k="linear-gradient(0deg, "+y+", "+y+"), url("+v+")"):k="url("+v+")"}return k}function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var xe=function(e){f()(a,e);var t=Re(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.width,n=e.outerContainer,o=e.innerContainer,c=e.containerWidth,s=e.minHeight,g=e.minHeightUnit,b=e.paddingTop,u=e.paddingRight,d=e.paddingBottom,p=e.paddingLeft,f=e.paddingUnit,h=e.marginTop,m=e.marginRight,k=e.marginBottom,y=e.marginLeft,v=e.marginUnit,w=e.borderSizeTop,O=e.borderSizeRight,j=e.borderSizeBottom,T=e.borderSizeLeft,C=e.borderRadiusTopRight,S=e.borderRadiusBottomRight,B=e.borderRadiusBottomLeft,D=e.borderRadiusTopLeft,E=e.borderRadiusUnit,R=e.borderColor,x=e.borderColorOpacity,L=e.backgroundColor,P=e.backgroundColorOpacity,F=e.gradient,A=e.gradientSelector,U=e.textColor,H=e.linkColor,N=e.linkColorHover,I=e.bgImage,G=e.bgOptions,V=e.verticalAlignment,q=e.zindex,W=e.innerZindex,Z=e.alignment,K=e.fontFamily,J=e.fontFamilyFallback,Y=e.fontWeight,Q=e.fontSize,X=e.fontSizeUnit,$=e.textTransform,ee=e.shapeDividers,te=c;te||(te=generateBlocksDefaults.container.containerWidth);var ae="";K&&J&&(ae=", "+J);var le=!!I,ie=Ee("image",this.props),re=Ee("gradient",this.props),ne=W,oe=[];return oe[".gb-container-"+a]=[{"background-color":he(L,P),color:U,"border-radius":De(D,C,S,B,E),margin:De(h,m,k,y,v),"z-index":q,"text-align":Z,"font-family":K+ae,"font-weight":Y,"text-transform":$,"font-size":z(Q,X),"min-height":z(s,g)}],le&&"element"===G.selector&&ie?oe[".gb-container-"+a].push({"background-image":ie,"background-size":G.size,"background-position":G.position,"background-repeat":G.repeat,"background-attachment":G.attachment}):F&&"element"===A&&oe[".gb-container-"+a].push({"background-image":re}),(le&&"pseudo-element"===G.selector||q||F&&"pseudo-element"===A)&&oe[".gb-container-"+a].push({position:"relative"}),(le&&"pseudo-element"===G.selector||F&&"pseudo-element"===A)&&(oe[".gb-container-"+a].push({overflow:"hidden"}),oe[".gb-container-"+a+" .block-list-appender"]=[{"z-index":10}],ne||(ne=1)),oe[".editor-styles-wrapper .gb-container-"+a+" h1,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h2,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h3,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h4,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h5,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h6"]=[{color:U}],(w||O||j||T)&&oe[".gb-container-"+a].push({"border-width":De(w,O,j,T,"px"),"border-style":"solid","border-color":he(R,x)}),s&&!i&&oe[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":V}),i&&(oe[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":V}),oe[".block-editor-block-list__layout > #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":De(D,C,S,B,E)}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie="",re="inline-block";d&&p&&(ie=", "+p);var ne=i+".gb-headline-"+a,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:c,"font-family":d+ie,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:c}],V&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":he(n,o),color:c,display:!!ae&&re,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:s}],oe[ne+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],oe[ne+" .gb-highlight"]=[{color:u}],oe["#block-"+t]=[{display:!!ae&&"inline-flex"}],oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" +Object(T.sprintf)(Object(T.__)("Shape %s","generateblocks"),i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.Dropdown,{renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Edit Shape","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-shape-dropdown",isSecondary:!t||void 0,isPrimary:!!t||void 0,icon:"admin-tools",onClick:a,"aria-expanded":t}))},renderContent:function(){return Object(l.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.BaseControl,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map((function(e,t){var i=generateBlocksInfo.svgShapes[e].svgs;return Object(l.createElement)(C.PanelBody,{title:generateBlocksInfo.svgShapes[e].group,initialOpen:i.hasOwnProperty(ge[a].shape),key:t},Object(l.createElement)(C.PanelRow,null,Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("ul",{className:"gblocks-icon-chooser gblocks-shape-chooser"},Object.keys(i).map((function(e,t){return Object(l.createElement)("li",{key:"editor-pblock-types-list-item-".concat(t)},Object(l.createElement)(C.Tooltip,{text:i[e].label},Object(l.createElement)(C.Button,{className:w()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":ge[a].shape===e}),onClick:function(){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{shape:e}),n({shapeDividers:t})}},"string"==typeof i[e].icon?Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:Be(i[e].icon)}})):Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},i[e].icon)))))}))))))}))),Object(l.createElement)(ke,{label:Object(T.__)("Color","generateblocks"),value:ge[a].color,alpha:!0,valueOpacity:ge[a].colorOpacity,onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{color:e}),n({shapeDividers:t})},onOpacityChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{colorOpacity:e}),n({shapeDividers:t})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Location","generateblocks"),value:ge[a].location,options:[{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{location:e}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].height?ge[a].height:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{height:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].width?ge[a].width:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{width:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Flip Horizontally","generateblocks"),checked:!!ge[a].flipHorizontally,onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{flipHorizontally:e}),n({shapeDividers:t})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("z-index","generateblocks"),type:"number",min:"0",value:ge[a].zindex||0===ge[a].zindex?ge[a].zindex:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{zindex:e}),n({shapeDividers:t})},onBlur:function(){var e=pe()(ge);e[a]=Ie(Ie({},e[a]),{},{zindex:parseFloat(ge[a].zindex)}),n({shapeDividers:e})},onClick:function(e){e.currentTarget.focus()}})),"Tablet"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].heightTablet?ge[a].heightTablet:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{heightTablet:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].widthTablet?ge[a].widthTablet:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{widthTablet:parseFloat(e)}),n({shapeDividers:t})}})),"Mobile"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].heightMobile?ge[a].heightMobile:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{heightMobile:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].widthMobile?ge[a].widthMobile:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{widthMobile:parseFloat(e)}),n({shapeDividers:t})}})))}})),"Desktop"===t.getDeviceType()&&Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Delete Shape","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-remove-shape",onClick:function(){window.confirm(Object(T.__)("This will permanently delete this shape.","generateblocks"))&&function(e){var t=pe()(ge);t.splice(e,1),n({shapeDividers:t})}(a)},icon:"no-alt"}))))})),Object(l.createElement)("div",{className:"gblocks-add-new-shape"},Object(l.createElement)(C.Button,{isSecondary:!0,onClick:function(){var e=pe()(ge);e.push({shape:generateBlocksStyling.container.shapeDividers.shape,color:generateBlocksStyling.container.shapeDividers.color,colorOpacity:generateBlocksStyling.container.shapeDividers.colorOpacity,location:generateBlocksStyling.container.shapeDividers.location,height:generateBlocksStyling.container.shapeDividers.height,heightTablet:generateBlocksStyling.container.shapeDividers.heightTablet,heightMobile:generateBlocksStyling.container.shapeDividers.heightMobile,width:generateBlocksStyling.container.shapeDividers.width,widthTablet:generateBlocksStyling.container.shapeDividers.widthTablet,widthMobile:generateBlocksStyling.container.shapeDividers.widthMobile,flipHorizontally:generateBlocksStyling.container.shapeDividers.flipHorizontally,zindex:generateBlocksStyling.container.shapeDividers.zindex}),n({shapeDividers:e})}.bind(this)},Object(T.__)("Add Shape","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","containerShapeDivider",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),initialOpen:!1,icon:j("documentation"),className:"gblocks-panel-label",id:"containerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/container/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","containerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(Ve,"-"),n({anchor:e})}})),Object(l.createElement)(xe,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(ze,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Pe,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Ae,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(He,this.props)),re&&ne&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+re.replace(/ /g,"+")+me}),Object(l.createElement)(fe,{tagName:Object(_.applyFilters)("generateblocks.frontend.containerTagName",d,i),htmlAttrs:De},Object(_.applyFilters)("generateblocks.frontend.afterContainerOpen","",i),Object(l.createElement)("div",{className:w()({"gb-inside-container":!0})},Object(_.applyFilters)("generateblocks.frontend.insideContainer","",i),Object(l.createElement)(Q.InnerBlocks,{templateLock:!1,renderAppender:c?void 0:function(){return Object(l.createElement)(Q.InnerBlocks.ButtonBlockAppender,null)}})),Object(l.createElement)(l.Fragment,null,!!i.shapeDividers.length&&Object(l.createElement)("div",{className:"gb-shapes"},i.shapeDividers.map((function(e,t){var a=t+1;return Object(l.createElement)(l.Fragment,{key:t},void 0!==_e[ge[t].shape]&&Object(l.createElement)("div",{className:w()(o()({"gb-shape":!0},"gb-shape-".concat(a),!0)),dangerouslySetInnerHTML:{__html:Be(_e[ge[t].shape].icon)}}))})))),Object(_.applyFilters)("generateblocks.frontend.beforeContainerClose","",i)))}}]),a}(l.Component),Ze=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType,a=e("core").getMedia,l=(0,e("core/editor").getEditedPostAttribute)("featured_media");return t?{media:l?a(l):null,deviceType:t()}:{media:l?a(l):null,deviceType:null}}))])(We),Ke={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isGrid:{type:"boolean",default:!1},gridId:{type:"string",default:""},tagName:{type:"string",default:generateBlocksDefaults.container.tagName},width:{type:"number",default:generateBlocksDefaults.container.width},widthTablet:{type:"number",default:generateBlocksDefaults.container.widthTablet},widthMobile:{type:"number",default:generateBlocksDefaults.container.widthMobile},orderTablet:{type:"number",default:generateBlocksDefaults.container.orderTablet},orderMobile:{type:"number",default:generateBlocksDefaults.container.orderMobile},outerContainer:{type:"string",default:generateBlocksDefaults.container.outerContainer},innerContainer:{type:"string",default:generateBlocksDefaults.container.innerContainer},containerWidth:{type:"number",default:generateBlocksDefaults.container.containerWidth},minHeight:{type:"number",default:generateBlocksDefaults.container.minHeight},minHeightUnit:{type:"string",default:generateBlocksDefaults.container.minHeightUnit},minHeightTablet:{type:"number",default:generateBlocksDefaults.container.minHeightTablet},minHeightUnitTablet:{type:"string",default:generateBlocksDefaults.container.minHeightUnitTablet},minHeightMobile:{type:"number",default:generateBlocksDefaults.container.minHeightMobile},minHeightUnitMobile:{type:"string",default:generateBlocksDefaults.container.minHeightUnitMobile},paddingTop:{type:"string",default:generateBlocksDefaults.container.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.container.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.container.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.container.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.container.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},paddingTopTablet:{type:"string",default:generateBlocksDefaults.container.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.container.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.container.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.container.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.container.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.container.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.container.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.container.paddingLeftMobile},marginTop:{type:"string",default:generateBlocksDefaults.container.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.container.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.container.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.container.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.container.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.container.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.container.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.container.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.container.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.container.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.container.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.container.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.container.marginLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.container.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.container.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.container.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.container.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.container.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftMobile},borderColor:{type:"string",default:generateBlocksDefaults.container.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.container.borderColorOpacity},backgroundColor:{type:"string",default:generateBlocksDefaults.container.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.container.backgroundColorOpacity},gradient:{type:"boolean",default:generateBlocksDefaults.container.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.container.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.container.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.container.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.container.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.container.gradientColorStopTwo},gradientSelector:{type:"string",default:"element"},textColor:{type:"string",default:generateBlocksDefaults.container.textColor},linkColor:{type:"string",default:generateBlocksDefaults.container.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.container.linkColorHover},bgImage:{type:"object",default:generateBlocksDefaults.container.bgImage},bgOptions:{type:"object",default:{selector:generateBlocksDefaults.container.bgOptions.selector,opacity:generateBlocksDefaults.container.bgOptions.opacity,overlay:generateBlocksDefaults.container.bgOptions.overlay,position:generateBlocksDefaults.container.bgOptions.position,size:generateBlocksDefaults.container.bgOptions.size,repeat:generateBlocksDefaults.container.bgOptions.repeat,attachment:generateBlocksDefaults.container.bgOptions.attachment}},bgImageSize:{type:"string",default:generateBlocksDefaults.container.bgImageSize},verticalAlignment:{type:"string",default:generateBlocksDefaults.container.verticalAlignment},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentTablet},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentMobile},zindex:{type:"number",default:generateBlocksDefaults.container.zindex},innerZindex:{type:"number",default:generateBlocksDefaults.container.innerZindex},removeVerticalGap:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGap},removeVerticalGapTablet:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapTablet},removeVerticalGapMobile:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapMobile},alignment:{type:"string",default:generateBlocksDefaults.container.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.container.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.container.alignmentMobile},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.container.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.container.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.container.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.container.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.container.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.container.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.container.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.container.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.container.fontSizeUnit},textTransform:{type:"string",default:""},align:{type:"string",default:""},shapeDividers:{type:"array",default:[]},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};generateBlocksInfo.hasCustomFields&&Object.assign(Ke,{fullWidthContent:{type:"string",source:"meta",meta:"_generate-full-width-content"}});var Je=Ke;function Ye(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Qe(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie="",re="inline-block";d&&p&&(ie=", "+p);var ne=i+".gb-headline-"+a,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:c,"font-family":d+ie,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:c}],V&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":he(n,o),color:c,display:!!ae&&re,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:s}],oe[ne+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],oe[ne+" .gb-highlight"]=[{color:u}],oe["#block-"+t]=[{display:!!ae&&"inline-flex"}],oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(oa,{level:"h2"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"2"),onClick:function(){n({element:"h2"})}},{isActive:"h3"===d,icon:Object(l.createElement)(oa,{level:"h3"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"3"),onClick:function(){n({element:"h3"})}},{isActive:"h4"===d,icon:Object(l.createElement)(oa,{level:"h4"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"4"),onClick:function(){n({element:"h4"})}},{isActive:"h5"===d,icon:Object(l.createElement)(oa,{level:"h5"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"5"),onClick:function(){n({element:"h5"})}},{isActive:"h6"===d,icon:Object(l.createElement)(oa,{level:"h6"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" -Object(T.__)("Heading %s","generateblocks"),"6"),onClick:function(){n({element:"h6"})}},{isActive:"p"===d,icon:Object(l.createElement)(oa,{level:"p"}),title:Object(T.__)("Paragraph","generateblocks"),onClick:function(){n({element:"p"})}},{isActive:"div"===d,icon:Object(l.createElement)(oa,{level:"div"}),title:Object(T.__)("Div","generateblocks"),onClick:function(){n({element:"div"})}}]}),"Desktop"===this.getDeviceType()&&!te&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&!ae&&Object(l.createElement)(Q.AlignmentToolbar,{value:f,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&!le&&Object(l.createElement)(Q.AlignmentToolbar,{value:h,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{id:"headlineElement",state:this.state,showPanel:"Desktop"===this.getDeviceType()}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Tag Name","generateblocks"),value:d,options:[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"paragraph",value:"p"},{label:"div",value:"div"}],onChange:function(e){n({element:e}),L||P||F||A||n("p"===e?{marginUnit:"em"}:{marginUnit:generateBlocksDefaults.headline.marginUnit})}}),Object(_.applyFilters)("generateblocks.editor.controls","","headlineElement",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"headlineTypography",state:this.state,showPanel:!ie||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,fontSizePlaceholder:c,defaultFontSize:generateBlocksDefaults.headline.fontSize,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeight,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightTablet,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightMobile,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"headlineSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!te,onChange:function(e){n({inlineWidth:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!ae,onChange:function(e){n({inlineWidthTablet:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!le,onChange:function(e){n({inlineWidthMobile:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"headlineColors",state:this.state,showPanel:"Desktop"===this.getDeviceType()||!1}),Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:m,alpha:!0,valueOpacity:k,attrOpacity:"backgroundColorOpacity",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:y,alpha:!1,onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Link Color","generateblocks"),value:v,alpha:!1,onChange:function(e){return n({linkColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Link Color Hover","generateblocks"),value:O,alpha:!1,onChange:function(e){return n({linkColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:S,alpha:!0,valueOpacity:D,attrOpacity:"borderColorOpacity",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),U&&Object(l.createElement)(ke,{label:Object(T.__)("Icon Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"iconColorOpacity",onChange:function(e){return n({iconColor:e})},onOpacityChange:function(e){return n({iconColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Highlight Text","generateblocks"),value:R,alpha:!1,onChange:function(e){return n({highlightTextColor:e})}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"headlineIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!U)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel"})),"Desktop"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:G,options:[{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocation:e,iconPaddingRight:"inline"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":""})}}),"inline"===G&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:W,options:[{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignment:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:J||0===J?J:"",step:"em"===ee?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(J)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.headline.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:V,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":""})}}),"inline"===V&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:Z,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentTablet:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:X||0===X?X:"",step:"em"===ee?.1:1,placeholder:J||0===J?J:"",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(X)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.headline.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:q,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":""})}}),"inline"===q&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:K,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentMobile:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:$||0===$?$:"",step:"em"===ee?.1:1,placeholder:oe,onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat($)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.headline.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"headlineDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/headline/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","headlineDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:g||"",onChange:function(e){e=e.replace(sa,"-"),n({anchor:e})}})),Object(l.createElement)(Kt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Yt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Xt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ea,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(aa,this.props)),x&&M&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+x.replace(/ /g,"+")+ne}),Object(l.createElement)(fe,{tagName:d,htmlAttrs:ce},H&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"gb-icon","aria-label":ie&&re?re:void 0,dangerouslySetInnerHTML:{__html:Be(U)}}),!ie&&Object(l.createElement)("span",{className:"gb-headline-text"},Object(l.createElement)(Q.RichText,{tagName:"span",value:u,onChange:function(e){return n({content:e})},placeholder:Object(T.__)("Headline","generateblocks"),keepPlaceholderOnFocus:!0,allowedFormats:Object(_.applyFilters)("generateblocks.editor.headlineDisableFormatting",!1,this.props)?[]:null}))),!H&&!ie&&Object(l.createElement)(Q.RichText,{tagName:"span",value:u,onChange:function(e){return n({content:e})},placeholder:Object(T.__)("Headline","generateblocks"),keepPlaceholderOnFocus:!0,allowedFormats:Object(_.applyFilters)("generateblocks.editor.headlineDisableFormatting",!1,this.props)?[]:null})))}}]),a}(l.Component),ua=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(ba),da={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},content:{type:"string",source:"html",selector:".gb-headline-text"},element:{type:"string",default:"h2"},alignment:{type:"string",default:generateBlocksDefaults.headline.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.headline.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.headline.alignmentMobile},backgroundColor:{type:"string",default:generateBlocksDefaults.headline.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.headline.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.headline.textColor},linkColor:{type:"string",default:generateBlocksDefaults.headline.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.headline.linkColorHover},borderColor:{type:"string",default:generateBlocksDefaults.headline.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.headline.borderColorOpacity},highlightTextColor:{type:"string",default:generateBlocksDefaults.headline.highlightTextColor},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.headline.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.headline.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.headline.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.headline.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.headline.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.headline.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.headline.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.headline.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.headline.fontSizeUnit},textTransform:{type:"string",default:""},lineHeight:{type:"number",default:generateBlocksDefaults.headline.lineHeight},lineHeightTablet:{type:"number",default:generateBlocksDefaults.headline.lineHeightTablet},lineHeightMobile:{type:"number",default:generateBlocksDefaults.headline.lineHeightMobile},lineHeightUnit:{type:"string",default:generateBlocksDefaults.headline.lineHeightUnit},letterSpacing:{type:"number",default:generateBlocksDefaults.headline.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.headline.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.headline.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.headline.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.headline.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.headline.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.headline.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.headline.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.headline.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.headline.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.headline.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.headline.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.headline.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.headline.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.headline.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.headline.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.headline.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.headline.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.headline.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.headline.paddingLeft},paddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.paddingLeftMobile},paddingUnit:{type:"string",default:generateBlocksDefaults.headline.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},borderSizeTop:{type:"string",default:generateBlocksDefaults.headline.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.headline.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.headline.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftMobile},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:generateBlocksDefaults.headline.iconColor},iconColorOpacity:{type:"number",default:generateBlocksDefaults.headline.iconColorOpacity},customIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.headline.iconLocation},iconLocationTablet:{type:"string",default:generateBlocksDefaults.headline.iconLocationTablet},iconLocationMobile:{type:"string",default:generateBlocksDefaults.headline.iconLocationMobile},iconVerticalAlignment:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignment},iconVerticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentTablet},iconVerticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentMobile},iconPaddingTop:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.headline.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.headline.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.headline.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.headline.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.headline.iconSizeUnit},inlineWidth:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidth},inlineWidthTablet:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthTablet},inlineWidthMobile:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthMobile},removeText:{type:"boolean",default:generateBlocksDefaults.headline.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.headline.ariaLabel},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}},pa={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(X.createBlock)("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(X.createBlock)("generateblocks/headline",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(X.createBlock)("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(X.createBlock)("core/heading",{content:t})}}]};function fa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function ha(e){for(var t=1;t Date: Sun, 3 Jan 2021 19:48:19 -0800 Subject: [PATCH 40/53] Simplify Dashboard page --- assets/css/dashboard.css | 2 +- assets/images/add-blocks.png | Bin 13028 -> 0 bytes assets/images/gb-logo-black.svg | 73 -------------------------------- includes/dashboard.php | 21 ++++++--- 4 files changed, 17 insertions(+), 79 deletions(-) delete mode 100644 assets/images/add-blocks.png delete mode 100644 assets/images/gb-logo-black.svg diff --git a/assets/css/dashboard.css b/assets/css/dashboard.css index 4ef264e8f..b3541d128 100644 --- a/assets/css/dashboard.css +++ b/assets/css/dashboard.css @@ -61,7 +61,7 @@ .gblocks-block p { font-size: 15px; - margin: 0 0 2em; + margin: 0 0 1em; } .gblocks-button { diff --git a/assets/images/add-blocks.png b/assets/images/add-blocks.png deleted file mode 100644 index 263709661fb71eb60b5608d8a4fac1070fb82065..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13028 zcmd6N2UJtrwl>)Ch`><<6a_ps6a*ASq+3x$Kw2o9q9~vQ5?W}|l%t3U7OHeXii8aU zhCl*|bRj^f32lcOTIeMZAn*r0?~Z%lKkj??zBk4{{)}Yt?X~7wd(OG`Ud%PW6>?Aa z7T+GxJzQK|d|J0}7;tgzz;b?v^G<8;B^O zP0!5s^wLO;WEP9%_v|H`%?^4Qvaq;_@_7~-9#M=d8yOv|s;RSxCZoZx`QNa2^^IZX zR;pKSKD2j;OH2Wx8(Z5cNLN%uR4fUaC6-scjY>}YoO%7WPW-3rlV@ay>GagBuQKNq zFZfpkvO}hs@ny5F3cfX4hGj8u))1@ zDF)Omga||=Ha?7!zQEnCX5Q$OKi{o0zHNe$iV*=%Sc1HxyRym$AG;KCY4ItCO$_jeaTn+ifedInZB%dg&iV5;Tamwz5cB?G`yi=EC z`XA+xwvX1R@9yt4no?oQO;ZAbH*NaPIGY*mCVUB| z)#UsylhMf!wUJ8K6-I`rpd&baLZoiQr4{Egi&f$v|cV-EE3n`BPe9J?nNmR1q< zh;&Qvnet_DBOSTlfuZn@9xx<&tGM@{S zkn~IRoW&<=5fOcZE1cNknkt zcBTMaThCk|f_qH(Cr$x=Vovc-8pr>c93|;~kr~8Q+T(D6SGNVcKi#`sLQ%lK6xePr zwvtdT;0Ygz+@7qk)`F-`1DB2-1SEIR;79gSBo4dyr2^%*YQ4BvE##-vV)YjAu@+&p zYP$qARCqKX2YA*ZJgaa#*OR|kod!DV`%it|o?Pg^*}7hf$DHroMzH&iVSPb>>R;n_ zeU-FuHD?=PE404w{r+7ttTKB25jMfKzi`VTf0+-p{_@IyQ?b?K3ij{&Dc2%&p7&2# zr>Xf8%F4t8SiE}SL{>){@AL0@?KiOw9blae^P)BXG-32e4j!65j9kUfszcMmaBHvb zsa%e%Lg7^T5*w+BooEBAv*W!I{AyDMrx0qAd3itza4QT`;P3)gPE8I{#4CggJW%eC zX$Bt_EOp8p^z$pGO~Nkr#_75WBqqtN&dgG!0n@Ai*g9c_!iRBUph8e=^QBe1R z%*O+7oFe@c_{D|G*nZlTDa0{I%>DG345H0;Nvl`{UeE{5F`tnu({MuSANOrMo7;5qj=my(S&V$sq#o>j}$D(7h6M$_d-|uduig~+vZvXc?&6*J!l@?Qe$lVGIwD)+?XJ4+kc_42Je>ZpgHmH-kf^MzSHx8D@GJju**wU1x^I^3~mjn;#bsK`|fm9QpD{EQ_>S{Zvr19KXGi=ge*O*&# zs5p(!150y6PTd;H9m~E+k?FdI)$Ie(-nb8K(r0y$9zlr=gmTQ0sa+>qoE>9PaD`r- zu~zTVqwHbb11a%d6&=z&Pu>GD$@E?7p*j14+!HRTTO3xooWe#_>x46@HPv_VO9}C+ z>Tg@6zqB;Ht6lk+n_2hx;uPgdQ8Os&F0E){PA&+ce2vFfiR4=8RPsL8TktNryd)`8 zaXJP>*RI!ec+ZPlk75Uik)?BPkWYhLpiCQP^(xD;Xg!dLi_(<;k#u|t=H=V9jeT9Y zKW@}M0jt&c0Z}K6GY&?EG6;?`0t0vhT5y7q415yo8YBve1Y zpTF2j3NNH~^^${VFqxfjq-p4I-))a8)rdx3Pp>*pxKXG7K5@F^%vy;k5{6#7JjI#* zkDKjdlrMN8rtL?7=6@)ot?K3j*%FQVA246d5>{6VP?YYLD0kH~Ln8_jJ+P_ZRM$T% zKm6>246Lm}hwZ)??Jg}E7{>e7TB0{Dz?I{6&U-(rrrPT-pTXu}5$#(MF| zF}YoZnJg(P81EZ6k`C4HdN5>y$1LyA)5_bG=ePcNGw?Ok?L>uPQE24-s zQT`U69&^K%^QP%wD^e^ps>k>A#VJC5b2<6MCMVzrE~<=d{TgrT26czsx0<4quIvaM zeu2gtyIy&L2xH1$>P5lzOSdV7DB7I8ldF9yh8GunLBAP{@PNY)%Aj6o&!z<-UZC3| zG^%^}aZ4J^X_S)w39gh`!FM6B>enxhrQUvqH6Xzk+1Bu9gl4|6H~GSnO)UQ@Ty|Ah zW?aTp0-VV2b_?6&AxazOwPwJkxXnJvlg(>gM=WU;>Z}8m`KyMlV*$M*JSo82kYQtt zV=3y}jq2wObJGWb(U6C3$8yT&U~F#a0`2w8A!JyCkOUXB3gDu6&?iT*QhCXFnRkX2 zW7FagtRD0N5YP#(jbJAP#x~>nM2pdHyR*36(JhFj!OK=rhYR-Enu5)h^g%%mb?J+D8-oyPSitY;n#}p;)dN@)=71<8ui{6#aTKCN zqQ)|z-&g&XCyGSO_eW;{OFWM}8LO)@eO5%&C0VTlc|u9#d@CY-<<`i^RcsOsYzkKU z)c&Eb@wc43p+E6ZF5EuVSVb<`9+`tHjQUjkuoU&MY#oW~$WD%t6Bp^VlH1Jqa5#=Z z*P!pqifCRB?QPi7$J1ZBk8aC2oO#_QAxhvZ=Pi5`l=ATW`?73e(rH*^t)`Z_rw3zo zSuig_5+;z<4z^6qNS+$}G4FIb+TllLcl-?EeQbn%;(If@K!jQvpvLkP#6MFUmk2$1 z2SMPy(K$y;9SS~AT69@o?DhAx75j4~y1zD;jw>s)s`Ampw)_7+E*QxSGVMsF{~UiY z)5}fLMxbhyeN@?1$Jg?oSw{Z zM3_tpC676w2>^xv^DS}-9-#PV65p_O8I(kd_`43UQ$zh*-*{fQ;Y768wM+3lkdGbq z$Z`&^!t1az_KF9v0^vT|UK$7VyUOU2v8+S%ym|4@4goBe6DlsUo($6qBk^Ma3({+( zH8flWM-}6Yc%m%yVEL3e!EhSJRQscZU;P_1#sqt+W@CP$uDZ9BJacJ`B8aD7_Lti; zbomV~T_A17!z4LfLvaB06iJMa=BL5X)5k@i=ZXx0ZP4P{_IVYMGTLFk(7I{PO1s$w zqOF22KSQuFQ1;~UJ%I@J610sIh6N&8WH`YZ*O)LD?k1Lt6R&Y1vN2(38z+3@#A7J{ zr|s_qL$|8_YTxSeSAR~m*B8VbPc@h74`cy=U&L6@+_>Jlv_($FO;D8l^3`XQ0&5rB zA`{{#V3CB*_sd7VKMa3zCp7~X#W#J>ncK^^7&Q~wwv4Br=pv!Kd$@hA6&bf(M}x%2 zVCwxgRXh93TPTppiuhQxZ}r1ITcsU=cot%FrL2W~9IDS8;qL$AecNN~@GD*}!qj0m zowq2Giy#ff)feMyzqA?z-607jdX_G8O=DGV^{q8ERzlkXU;fQZ{)3CMC!gEJt%t8BGaEd9jyY7AJK2qaFo`< zAZWJDvSxS3glA_w(28=3e;`(Z#q8viOY?v!(w_)!#jskr9+39s!=D+IOCX}olrw^P zQTNo#$_`WP`j@QlYw`|GiW6`0yT(}>QxsLaN9-g|!8bqL&fW%C+kit3pxqLfzP`6M z^*08w05H6jWARSV^&zLZ3067akPTdARehC4I4^nS5G8VXNGF=#zA~_^o%_)E_}klU z3tgqoN~QwK)fHKJlTG7pOU%mhnkc=4NKM8-f!xfnzaQP?0@d2u+9#G8TAS8#Dk&0w zvP4phYJgqm?82xU=b=Xt;+^vI3|y4NqxOAoXI{oHh7bH{{j~H(Q5>I%A#_Ko60PH} zeeA+lY6SE6T)D@!xxnFLnYES2_^&G%dvtl#+;)&SI}a3ge6sSrr{~o@DwLnQ=T)%N z($1#p>>{8khX9nXq>7hJ3uzd@KUo`!$993!TFEF}^~E@rSO2ITy2V+cLuM{yL;lwN z%)uO)b0)VfV47HFhi5fTR%z-0WL|Fs-qGu{T0uecwF)u2CvX@!PZB{sJ4h5jtDZ_n z=+KtR0LsbN>clm#7mf;ta$n+3>I&LZoUBes?D6JV+hb+o33s6N$_LBf1d^sHPXQFE z(Bw58mE#V7)F=6695(vdnmPs>-`yVTg6#9zorBoPlX#2jzaFwr#OfHp_Y(aHvDEF; z@5&BN&b38k5GG(flP$+I(jw2qgPApe!o|MQC{<}EGL=!1q$%wQN6#E@V(BK{!JaZy zGrxdK55G@%x9J>rP|#y)+|jDaz*9Tg-TKJn13`fsq+RQ)L-zIzcG-ZlLOXa{Pt`Ka z+~0;Svsf27N%><>!WDuVLH!W$=z46OMPB+nNc0p${^2(N+X~5E-Ni0pXB<_~Z%)@9 z&ScxZe_IO7bm3OL3T10_?66fAk_y`JRc>30ds|8D8;b?ABH}>n5L|KzU&9L|08a~QK^Y~Gwi|3o7(e78VsZ# zzILz}hkY(g4?jx2Wea`5-M#0o{mnsI^O21eXgC*e$1uc+LCK4y);t z@;S3_RRJ~Fa0-E`y7(crM&^@)!JL_1`|t#v^+5luPidZl9 z-|>Vyip3nX*P(NVBi$J(cw3pZ*pt3HX7_YCT;#YEZ3_nNE@Ysz{7a@&YHXsyj!oc= z3$3pg#bMgP`{qd*Ql4nT1=Zu31=H^7JT^FB`_q%%n&Nh}I(iu5W3au97;tW+Li!Q9 z&RNX`8aGWc3z?%d?C0e85+_ygbOdX4?NSVD(v=fmeND1An~J{7j{gXCn~vt$)KwcL z$?+plXj9WxVKb1)=pyIxj0vP^zCy*Ti$V99S_H5ai&OE5bd z-ArAeo*VW=CrXq!Vi9c%{faEe=Z8iy8dBD_8xVmU>@y}RhWDRa3m>U=91RZr3?!~R z*@foCJa54-@B1$6iB2dydf_+fGk59Nh7Ny<%TOY3{buGEigHADW<(<{}ALcDX&P=A_Q(}U<3HTg(iMA=9eW<5wK9XgmeR4r&Ra1`&4ZWoo! zEUu{b`SU6l3r4ZCp}`Gy`)-9qN01 z

s*j*^}*EFHg|4OEV)>=rhhOMevf60ZooR^&gDju+}{zM!i{dU*WIJzsH;*KziEaxa{?}j`tHHNr90KkgQJ!+cWz%kpEw2^bO2a-b@r-h5H z@Al`7!`dXrvi^nj0-)>$(KrX^a$7 zb<9k}%)D$Hxbkwc$NY;BlAmI+@hQLu{3@LIr&>|#+SMB(^>6j+UW_zO-YuMKQV!^( zb96y?d+Tqk^1hl`vv|`_#3YBF*A;eSYv~wqG&tj(H~WW`kTUV)xgM}uVky>=r$uXq z$ED1Rbbh1S>pT%NDBs`?M{Q5oe7P`QM46}+YRnBWTth-93@t#f%@9(d{vw)Z*|^Yi zB6$^LGhk=D7M`hVMaM9N4GQlwaH#iF*WKlo>Q}+V1-@v=VQuOhwkPE45F{lAzFDUGWN7+q<~(p9wk05JHPk&KyJy_H zKxgke?UR|OhVm|~U0m*?y@+iC7dreL?eLdB7Z#a9@49v=_z)J=8>6ZZnAoK|nHAj+ z#vAYHAr0?EUZB=q{qX#1f$h3wX@YtO$gFQul|_8;UeHooZn-WSloeoKm+t8nD^;go zptF9i3p|DA9vG_3idomxC{#yBB((7Pd{H1>VIP~ulum3M^_TQTDzfuj{uK3XdorjwXfL%D%BBD3)Hdc4t_rQV$)L9s`mT#SW zt^?d|#Hbk>8A3FQx66CH&hoE_s$`yoR?`6~~sI!R*Qm0B3yL&-w@7p>F1iR5zF{ee>r97NNr@@e^&V#OYd9TPxRP-Ly_9 z-6&vO)5mfq)WgnK=xj^-3a4i)XnDw5vRYjAJb}~jpT7K-7g<)$ww0d`pZDEr;@ujw zRfYp?$he(2%uNU#h6<=*i{V}%J^^FVTZQnLFb*RClgzWSvrZsrl-v3)mbM?c@Y5055sgT+x=Xt{ z6%0ZBu8|8wlswN{!i=>DR%Z4y%I%I&-_ob`7s|g(kuOJJHib7+0WuV(YJxW5Ka8t} z;W1rZhL>H~VTgQdNNQY|W3O21Ec;7N*LeYW7g>t2dPKe%1XugP%C4(K*MMVV6mb;e zL>@pviY1LT<~)BmS*J;&d;`W8Q`##$j_*)@UOR)gkY73BMuhIPsMuDbzlOXqA~cDZJmxDM==8cR(K~ z0=Zf%1niRy{{DdacWlW22X8EAUOD^4pNjlN(KLgVCNrpOx1J>m?J6^GiUCAKL~xiw z+2T9duHKKFzn%mcO!kzY#^W5nswX8D{4{?SbBUyf!^F!eBp3_X%mKiWin?rBAG zM;o27_j8YxzUpkbGB%%7^JL^lGG)OEhl2OvjJ-_{86@hd))iaGny44+ma^)C>@fg+ zehL3JIgwjL9aoyBZmu*NRO+2$;KoL!BBlm+Hmvu#Ugl2<@4*JK0(NW?fOMZtdoqcP zQ#eTOP14-{q_Y`BHox}Ih)*0cZw}2B;VH4VxT=w7&#|R~b=09~FkqNf%B>)`fF+c&P>{{tw99A+mw1g8c{an&Z?Jto@Zsn7#8IDS>S zqMy5w0z9o$yiw|T6BBQUTax(wi&PwsZumh#C0~LP6qotUM{I_$L6mT3^o_$*hFuRy z=zIc*andy)PS8cIbBWdT8CWRo^?EGz4kGF~<%?F92m-Wi`>C!}* zSdmTZoYDrpAf0W6Z-|>Jw`QXEnOt88AOag-x{WJIgAM{rVow9RhavryaYkxA$5M7VnOfds?{eBI^s;~RqD?-0^LWB>l-V~_=CjBZ?&;TKk}ca zZX}cOs;{4qO!zvkt^Kp#xzTs0ZG`wAJSAomZH}PNZ;IXM%Si7f( z)DB888Ey-(_@gcm=6uO=(#Uf7S-p4x4?jK}N}_4kD~x1^?Sh`ugriIz&>?$yqYMFI zEQK%-PJ<_=?9*xlR-uXOa6o{k_XiadMzoLB<(YBHkzi~#wI*pLsn|hka7tQuX45C~ zin>-)FDSj?wZJ!I8`qI+*mhBG{s^`!GvlN#Y)Su%2mEW=jUPCipSA920 zqcOb3Y)?S2Po+Mo?`^HYIHgEkVi=HoZ?A(>Q0(}~R+>|D=~kiy$o4$lzb_&b^6Pjq zqZnVT+B4<=@IiHNFD1PGU1Qba$BDHG4e4*vDvD*_sGo))`HWh6nVTnB za=JG8Y7h8rExUMG0Drj7HF3coUG_9_)h^qjM;cEU8?hplSi8f+E2Co+V>-L;pIb=L zy)4^JwNxrtpY%rtgL_y7a7ffqB8!}Xrday1(#Yw)2Zh5od9pJ>v)$YB`fhRp2(P*IVC+h#i5LcF2dQtf_nYjM& z>9ypz2a$DuoCSfPskhzbPa}|-mB)4!)!ZZZPOlnQT-HOmfPfh`TdO?;BX$ zg@RR6X?-58`SEjLd9Gehc_`EB1EMiZ1p1`pBcic6-i37=ziawLbz+6Id&*kQKNJQNBQEa_c%rRHg1z1vB`erjlaOmf%+Ki-WcC11EIzP?TLZF)pKVEG|&kNb*73} z#EnJoOU9qE%oOs_4hVRP2`cRnpP?A?^GjtSaSAH-?Cc2>3#7Me(R%uBfuZG)G%E1v zl$j4!mDRpzT}I2+%$S*~o)nF7Iuh?`e){-qB_eT&0lq^twv>5ZHV(;m>IqOGED-=3 z80>_GL85OvXya}a&;sqh)vnuh{-yfr^3ojm*rB$|WwAHM-EZ?fIiF>(l=*HBoaq65 zXG?FC=1ljDhRooFvfn=8mq5YgHs=*k42wQ+M>m479yA)#5-&DtJ98>rE>_7@@ycGe zkn?#%kFj1!D>A#da@m3gQsl8R7GQ6?LAimQpYDW*|DJ!h$=Xv|%reZO1uBStXAyN+ zgMRvuyY!65ozybZ0Ujt@?g=Dh<(!BaH|+ol9yg(fsK6>Kjs;wZa{Oj?_GO3c50t*1 zYKXG6e=1;01xFMWtCPb>J>3ONfs&)uA2_te{8@FO6xwl(MMReawjS{|oE#(JE-g@b z&NwfI+9|Uy=?C?e=EU--7xpYln9aO{weu-Iso65q_@ZO3+safgK;7jt@Wj*fC3N1% ze??W_vCTsNQRDlPeuNX=xVkFnW*)vh>QP=pVN}2+B&bM+-hK=+qOL{N9 z@Sar`S5M@5U}_`us`k=3!8zo~&{Dlp)jubXQkM(6d7qP78Y1pl`d!(3Tg~;t*c4=^ zw!8KNNhq?$2wQcVek$L0Gtv>ZwicP=BQ>Cg^;O9evB)tQj6K-*AzABDJ=fWbGb3UeJ}83x?!v z(v#+MQC*N!Tw3|Ku7Fmz*va>+XKIFc7>VI;Nb&X3hjTr`STwnNj-FLU*hn$oMnjwe zK+7+?fzym;hS~9d!4Z5F1AZ8ccy(ykhaM-9Cy06Hsx5U2#j6IUm@rrj!z}jUX1nL; zWBYX=E0{`&{FLAx@`c!xR-6 zS&i)m)EGs&%$nNoE-EcxmpF`m{B^+ziL>JOCcQAR&Gw0|E^H0DR&c1y64>wggEB$0fan2ChkM6<^NhJx2?kfjQLk$JeC z%`#iG-Y;tJ7hCs>@%w4MJMS-k?&%6O$B#Rz-YNE7(F8{l447|1#RBtQSvqjM+ETxq#}M3oD=fwMEzbW=(MJX#~^KI z=#gNI0BwIWsDg`np#+bq)*HI_vDCZVgL#0=NQVqp$misoU|Ov?%l>`f#9Q>m?3k!f zZE@@9C%C=bJzZa}U^&E+vcpqE!G-KrgZ5es%=jKZJpwBQXmv)<#JwLcQIG@)lN71- zzHg6pQ{Prj6cD&ncC?mQr2y6_2Br8A_EIC+A8%;8YmL1z{>{lq_R!moh>3o7{+Gt# zP=vyekq};IfihHzd1TRzzJi@*P=-|x8(;l$iKwCTN%UiV|8OnyH-WUqQAjzND?is- zOguhlM57YZx^P^TSj8>CQHOvTbB)eweq&Q1k=!DP8oAl zafdUzFDcnd3e=`HQAR7r=*g{2@7zK~; zTYow@>#>&?UE_;VNQ;7$jcPlPef>iSOT?7I7d)z%ozRKci9_jO2YZr?cpBQ4mWuS% z?qhVV4*KT-=pM4x6f6bsBm-|v>UTFX+BC7%B(EZsjrLLuVdIG8wLk>K3A|S*%n^rj zv*Lo;#rXaqv05www=`*&l>%tAgS5FIA%NhNJnyV5o9sKfTosR~mSFDNnofm{{sYYq z);_-&cK4M|AfnW74Tdgo`U+VkcD}!Y^-lpho@EZPqWOkWPiG7)WN7(v<1{`Lb^?sg^m?bW+BXeT!Z-N&%KRY&BjPEpmf=F!LT9zli^MLjeJAF zaE2U9m6W=c_bMqPv^u`6_^*}j=Th|(|MO+*-&_X&TKoR*RM3CD4E}qI=3jdM%c^Z8 zLvak@<}ySzZm0VV3t_Z{WX*_7is1s~d+APhC)#VVzHJQv*N6<)g7AIXwsT1CSS$wy zdh>GHIgr!Vmw@dJ;2rBMRd}mS;7vKc0Mq){R{D)x#L1I=JDd58^Xt8(Lr}b9^`*wb z=mcy%52yCMH~K84Qtsz%SM)|fZyVY+<%`IZb(MMY07qF{S~ewwn8358&`%9hDi@*| zzJb$?Tdj|2|M*`gkc^9p_7%CJXjJXvr5(}EF)kgj&96s932f=is46gh!0D2r&8X^} z`-fxIfqf|HJIA4I%BfN?CFD(xb1p2v%yNQHC?L7T%q2A+B*toThLC1dokQMykKj%; zlhk}aG=Bv<0)EwflOy=7$(>`!_5JKNf3bI5T;I>_ZFAnV%d-i(dMx!`^6tGT#@1v7 j-obKt{5+&>Cg8X1Cbexlm(JFScdeVcH*&AtfBt^}#o=!f diff --git a/assets/images/gb-logo-black.svg b/assets/images/gb-logo-black.svg deleted file mode 100644 index 9ad9016c8..000000000 --- a/assets/images/gb-logo-black.svg +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/dashboard.php b/includes/dashboard.php index 359e91789..8f2da142c 100644 --- a/includes/dashboard.php +++ b/includes/dashboard.php @@ -212,6 +212,10 @@ function generateblocks_do_dashboard() {

+ +
+ +
@@ -221,6 +225,10 @@ function generateblocks_do_dashboard() {

+ +
+ +
@@ -230,6 +238,10 @@ function generateblocks_do_dashboard() {

+ +
+ +
@@ -239,12 +251,11 @@ function generateblocks_do_dashboard() {

-
-
-
-

- +
+ +
+
From 5829948e8a211542351fee23dbd9ffe2379f6443 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Sun, 3 Jan 2021 19:56:20 -0800 Subject: [PATCH 41/53] Change HTML Tag Name label to Tag Name --- src/blocks/container/edit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blocks/container/edit.js b/src/blocks/container/edit.js index b51e5d282..88cf4fece 100644 --- a/src/blocks/container/edit.js +++ b/src/blocks/container/edit.js @@ -528,7 +528,7 @@ class GenerateBlockContainer extends Component { } { @@ -633,7 +633,7 @@ class GenerateBlockContainer extends Component { /> { From b984eca3f17162c2d0bfb2a8f708a6383d2e15c4 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Sun, 3 Jan 2021 19:56:26 -0800 Subject: [PATCH 42/53] Update dist --- dist/blocks.asset.php | 2 +- dist/blocks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index a6574a145..26313cfe1 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '5b5750551eb45bbf6d75b1944a0382e0'); \ No newline at end of file + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '4c49d930c7384e9fc1233eee3ee493d6'); \ No newline at end of file diff --git a/dist/blocks.js b/dist/blocks.js index fe77ea63a..31c10e4e5 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -4,7 +4,7 @@ /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Top","generateblocks"),r),value:a[c]?a[c]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:M,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeRight(a):e.onReset("attrRight")},onBlur:function(){q||""!==a[s]||""===B[s]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeRight("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Right","generateblocks"),r),value:a[s]?a[s]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:z,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeBottom(a):e.onReset("attrBottom")},onBlur:function(){q||""!==a[g]||""===B[g]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeBottom("0"))},onClick:function(e){e.currentTarget.focus()} /* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Bottom","generateblocks"),r),value:a[g]?a[g]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:L,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeLeft(a):e.onReset("attrLeft")},onBlur:function(){q||""!==a[b]||""===B[b]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeLeft("0"))},onClick:function(e){e.currentTarget.focus()} -/* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Left","generateblocks"),r),value:a[b]?a[b]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)(C.Tooltip,{text:a[u]?Object(T.__)("Unsync","generateblocks"):Object(T.__)("Sync","generateblocks")},Object(l.createElement)(C.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":Object(T.__)("Sync Units","generateblocks"),isPrimary:!!a[u]&&a[u],"aria-pressed":!!a[u]&&a[u],onClick:function(t){return e.syncUnits(t,"")},isSmall:!0},(a[u],j("sync"))))),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__input-labels"},Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},f),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},m),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},y),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},O),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"}))))}}]),a}(l.Component),we=(a(38),{Roboto:{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Open Sans":{weight:["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Lato:{weight:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Montserrat:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Source Sans Pro":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Roboto Condensed":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Oswald:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},"Roboto Mono":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"monospace"},Raleway:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Poppins:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Roboto Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Merriweather:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"serif"},"PT Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Ubuntu:{weight:["300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},"Playfair Display":{weight:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},Muli:{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Open Sans Condensed":{weight:["300","300italic","700"],fallback:"sans-serif"},"PT Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},Lora:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Slabo 27px":{weight:["regular"],fallback:"serif"},Nunito:{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans JP":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Work Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},Rubik:{weight:["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Noto Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fira Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Titillium Web":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],fallback:"sans-serif"},Quicksand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Noto Sans KR":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nanum Gothic":{weight:["regular","700","800"],fallback:"sans-serif"},Mukta:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Noto Sans TC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nunito Sans":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Heebo:{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Sans Narrow":{weight:["regular","700"],fallback:"sans-serif"},Arimo:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Inconsolata:{weight:["regular","700"],fallback:"monospace"},Barlow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Oxygen:{weight:["300","regular","700"],fallback:"sans-serif"},Dosis:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Bitter:{weight:["regular","italic","700"],fallback:"serif"},"Libre Baskerville":{weight:["regular","italic","700"],fallback:"serif"},"Crimson Text":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},"Libre Franklin":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Karla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Josefin Sans":{weight:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},Cabin:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Anton:{weight:["regular"],fallback:"sans-serif"},"Source Code Pro":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"monospace"},Hind:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Abel:{weight:["regular"],fallback:"sans-serif"},Amiri:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fjalla One":{weight:["regular"],fallback:"sans-serif"},Lobster:{weight:["regular"],fallback:"display"},Pacifico:{weight:["regular"],fallback:"handwriting"},"Indie Flower":{weight:["regular"],fallback:"handwriting"},"Exo 2":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Dancing Script":{weight:["regular","500","600","700"],fallback:"handwriting"},"Source Serif Pro":{weight:["regular","600","700"],fallback:"serif"},Arvo:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Hind Siliguri":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Varela Round":{weight:["regular"],fallback:"sans-serif"},"Merriweather Sans":{weight:["300","300italic","regular","italic","700","700italic","800","800italic"],fallback:"sans-serif"},Cairo:{weight:["200","300","regular","600","700","900"],fallback:"sans-serif"},"Yanone Kaffeesatz":{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Overpass:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Shadows Into Light":{weight:["regular"],fallback:"handwriting"},"Barlow Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"IBM Plex Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Comfortaa:{weight:["300","regular","500","600","700"],fallback:"display"},Asap:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Prompt:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Kanit:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Questrial:{weight:["regular"],fallback:"sans-serif"},Martel:{weight:["200","300","regular","600","700","800","900"],fallback:"serif"},"Archivo Narrow":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Abril Fatface":{weight:["regular"],fallback:"display"},"Amatic SC":{weight:["regular","700"],fallback:"handwriting"},Acme:{weight:["regular"],fallback:"sans-serif"},Catamaran:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Fira Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"EB Garamond":{weight:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],fallback:"serif"},"Bree Serif":{weight:["regular"],fallback:"serif"},"Zilla Slab":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Noto Sans SC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Cormorant Garamond":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Hind Madurai":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Teko:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Righteous:{weight:["regular"],fallback:"display"},Signika:{weight:["300","regular","600","700"],fallback:"sans-serif"},Play:{weight:["regular","700"],fallback:"sans-serif"},Domine:{weight:["regular","700"],fallback:"serif"},Exo:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Russo One":{weight:["regular"],fallback:"sans-serif"},Cinzel:{weight:["regular","700","900"],fallback:"serif"},"PT Sans Caption":{weight:["regular","700"],fallback:"sans-serif"},Rajdhani:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Maven Pro":{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Fredoka One":{weight:["regular"],fallback:"display"},"IBM Plex Serif":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Ubuntu Condensed":{weight:["regular"],fallback:"sans-serif"},"Patua One":{weight:["regular"],fallback:"display"},Caveat:{weight:["regular","700"],fallback:"handwriting"},"Permanent Marker":{weight:["regular"],fallback:"handwriting"},Assistant:{weight:["200","300","regular","600","700","800"],fallback:"sans-serif"},ABeeZee:{weight:["regular","italic"],fallback:"sans-serif"},Vollkorn:{weight:["regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"serif"},"Crete Round":{weight:["regular","italic"],fallback:"serif"},"Special Elite":{weight:["regular"],fallback:"display"},Rokkitt:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Bangers:{weight:["regular"],fallback:"display"},"Francois One":{weight:["regular"],fallback:"sans-serif"},"Barlow Semi Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Alegreya Sans":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Satisfy:{weight:["regular"],fallback:"handwriting"},Tajawal:{weight:["200","300","regular","500","700","800","900"],fallback:"sans-serif"},"Bebas Neue":{weight:["regular"],fallback:"display"},"Patrick Hand":{weight:["regular"],fallback:"handwriting"},Cuprum:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Viga:{weight:["regular"],fallback:"sans-serif"},Courgette:{weight:["regular"],fallback:"handwriting"},"Ropa Sans":{weight:["regular","italic"],fallback:"sans-serif"},"Noto Serif JP":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Gochi Hand":{weight:["regular"],fallback:"handwriting"},Alegreya:{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Luckiest Guy":{weight:["regular"],fallback:"display"},"Noticia Text":{weight:["regular","italic","700","700italic"],fallback:"serif"},Tinos:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Passion One":{weight:["regular","700","900"],fallback:"display"},"Alfa Slab One":{weight:["regular"],fallback:"display"},"Nanum Myeongjo":{weight:["regular","700","800"],fallback:"serif"},Monda:{weight:["regular","700"],fallback:"sans-serif"},"Lobster Two":{weight:["regular","italic","700","700italic"],fallback:"display"},Kalam:{weight:["300","regular","700"],fallback:"handwriting"},"Kaushan Script":{weight:["regular"],fallback:"handwriting"},"Archivo Black":{weight:["regular"],fallback:"sans-serif"},Cardo:{weight:["regular","italic","700"],fallback:"serif"},Archivo:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Great Vibes":{weight:["regular"],fallback:"handwriting"},Volkhov:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Quattrocento Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"News Cycle":{weight:["regular","700"],fallback:"sans-serif"},"Pathway Gothic One":{weight:["regular"],fallback:"sans-serif"},Sacramento:{weight:["regular"],fallback:"handwriting"},"Frank Ruhl Libre":{weight:["300","regular","500","700","900"],fallback:"serif"},Yantramanav:{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},Cantarell:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Istok Web":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Didact Gothic":{weight:["regular"],fallback:"sans-serif"},"Concert One":{weight:["regular"],fallback:"display"},Taviraj:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Old Standard TT":{weight:["regular","italic","700"],fallback:"serif"},"Montserrat Alternates":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Economica:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Changa:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Fira Sans Extra Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Gloria Hallelujah":{weight:["regular"],fallback:"handwriting"},Parisienne:{weight:["regular"],fallback:"handwriting"},Orbitron:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Asap Condensed":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Playfair Display SC":{weight:["regular","italic","700","700italic","900","900italic"],fallback:"serif"},Chivo:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Sriracha:{weight:["regular"],fallback:"handwriting"},"Hind Vadodara":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"DM Sans":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Prata:{weight:["regular"],fallback:"serif"},Quattrocento:{weight:["regular","700"],fallback:"serif"},Cookie:{weight:["regular"],fallback:"handwriting"},"Poiret One":{weight:["regular"],fallback:"display"},Handlee:{weight:["regular"],fallback:"handwriting"},Sarabun:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},BenchNine:{weight:["300","regular","700"],fallback:"sans-serif"},Merienda:{weight:["regular","700"],fallback:"handwriting"},"M PLUS 1p":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Mono":{weight:["regular"],fallback:"monospace"},Lalezar:{weight:["regular"],fallback:"display"},Sanchez:{weight:["regular","italic"],fallback:"serif"},Lemonada:{weight:["300","regular","500","600","700"],fallback:"display"},"Markazi Text":{weight:["regular","500","600","700"],fallback:"serif"},Neuton:{weight:["200","300","regular","italic","700","800"],fallback:"serif"},"Hind Guntur":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Josefin Slab":{weight:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"serif"},Philosopher:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Advent Pro":{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Do Hyeon":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Mincho":{weight:["regular"],fallback:"sans-serif"},Ruda:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Vidaloka:{weight:["regular"],fallback:"serif"},Ultra:{weight:["regular"],fallback:"serif"},Neucha:{weight:["regular"],fallback:"handwriting"},Arapey:{weight:["regular","italic"],fallback:"serif"},Gudea:{weight:["regular","italic","700"],fallback:"sans-serif"},"Paytone One":{weight:["regular"],fallback:"sans-serif"},Kreon:{weight:["300","regular","500","600","700"],fallback:"serif"},"M PLUS Rounded 1c":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"Pragati Narrow":{weight:["regular","700"],fallback:"sans-serif"},"Press Start 2P":{weight:["regular"],fallback:"display"},"Hammersmith One":{weight:["regular"],fallback:"sans-serif"},"Gentium Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Monoton:{weight:["regular"],fallback:"display"},Alef:{weight:["regular","700"],fallback:"sans-serif"},Alice:{weight:["regular"],fallback:"serif"},Aclonica:{weight:["regular"],fallback:"sans-serif"},"Sigmar One":{weight:["regular"],fallback:"display"},Spectral:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Marck Script":{weight:["regular"],fallback:"handwriting"},Electrolize:{weight:["regular"],fallback:"sans-serif"},Actor:{weight:["regular"],fallback:"sans-serif"},"Architects Daughter":{weight:["regular"],fallback:"handwriting"},Adamina:{weight:["regular"],fallback:"serif"},"Pontano Sans":{weight:["regular"],fallback:"sans-serif"},Audiowide:{weight:["regular"],fallback:"display"},Inter:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Cabin Condensed":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Unica One":{weight:["regular"],fallback:"display"},Yellowtail:{weight:["regular"],fallback:"handwriting"},"El Messiri":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Squada One":{weight:["regular"],fallback:"display"},Staatliches:{weight:["regular"],fallback:"display"},Amaranth:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Enriqueta:{weight:["regular","500","600","700"],fallback:"serif"},Mitr:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Glegoo:{weight:["regular","700"],fallback:"serif"},"Bowlby One SC":{weight:["regular"],fallback:"display"},Basic:{weight:["regular"],fallback:"sans-serif"},"Nanum Gothic Coding":{weight:["regular","700"],fallback:"monospace"},Sarala:{weight:["regular","700"],fallback:"sans-serif"},"Bad Script":{weight:["regular"],fallback:"handwriting"},"Homemade Apple":{weight:["regular"],fallback:"handwriting"},Tangerine:{weight:["regular","700"],fallback:"handwriting"},Cormorant:{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Oleo Script":{weight:["regular","700"],fallback:"display"},Karma:{weight:["300","regular","500","600","700"],fallback:"serif"},"Julius Sans One":{weight:["regular"],fallback:"sans-serif"},"Carter One":{weight:["regular"],fallback:"display"},Khand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Nanum Pen Script":{weight:["regular"],fallback:"handwriting"},Cambay:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Fugaz One":{weight:["regular"],fallback:"display"},"Shadows Into Light Two":{weight:["regular"],fallback:"handwriting"},Coda:{weight:["regular","800"],fallback:"display"},"Signika Negative":{weight:["300","regular","600","700"],fallback:"sans-serif"},Pridi:{weight:["200","300","regular","500","600","700"],fallback:"serif"},Playball:{weight:["regular"],fallback:"display"},Saira:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Rock Salt":{weight:["regular"],fallback:"handwriting"},"Gothic A1":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Gentium Book Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Allura:{weight:["regular"],fallback:"handwriting"},"Yeseva One":{weight:["regular"],fallback:"display"},"DM Serif Text":{weight:["regular","italic"],fallback:"serif"},Lusitana:{weight:["regular","700"],fallback:"serif"},Jura:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Average:{weight:["regular"],fallback:"serif"},Yrsa:{weight:["300","regular","500","600","700"],fallback:"serif"},"Sorts Mill Goudy":{weight:["regular","italic"],fallback:"serif"},"Cantata One":{weight:["regular"],fallback:"serif"},Armata:{weight:["regular"],fallback:"sans-serif"},Scada:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Abhaya Libre":{weight:["regular","500","600","700","800"],fallback:"serif"},Damion:{weight:["regular"],fallback:"handwriting"},Marmelad:{weight:["regular"],fallback:"sans-serif"},Varela:{weight:["regular"],fallback:"sans-serif"},Quantico:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Covered By Your Grace":{weight:["regular"],fallback:"handwriting"},"PT Serif Caption":{weight:["regular","italic"],fallback:"serif"},Ramabhadra:{weight:["regular"],fallback:"sans-serif"},Unna:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Encode Sans":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Arsenal:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Black Han Sans":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Gothic":{weight:["regular"],fallback:"sans-serif"},"Ubuntu Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Pinyon Script":{weight:["regular"],fallback:"handwriting"},"Black Ops One":{weight:["regular"],fallback:"display"},Marcellus:{weight:["regular"],fallback:"serif"},"Fauna One":{weight:["regular"],fallback:"serif"},"Lilita One":{weight:["regular"],fallback:"display"},Sintony:{weight:["regular","700"],fallback:"sans-serif"},Khula:{weight:["300","regular","600","700","800"],fallback:"sans-serif"},Jaldi:{weight:["regular","700"],fallback:"sans-serif"},"Rubik Mono One":{weight:["regular"],fallback:"sans-serif"},Allan:{weight:["regular","700"],fallback:"display"},"Reenie Beanie":{weight:["regular"],fallback:"handwriting"},"Alex Brush":{weight:["regular"],fallback:"handwriting"},"Mr Dafoe":{weight:["regular"],fallback:"handwriting"},Palanquin:{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Encode Sans Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Antic:{weight:["regular"],fallback:"sans-serif"},Knewave:{weight:["regular"],fallback:"display"},"Caveat Brush":{weight:["regular"],fallback:"handwriting"},Rambla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Spinnaker:{weight:["regular"],fallback:"sans-serif"},"IBM Plex Mono":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"monospace"},Michroma:{weight:["regular"],fallback:"sans-serif"},"Nothing You Could Do":{weight:["regular"],fallback:"handwriting"},"Kelly Slab":{weight:["regular"],fallback:"display"},Boogaloo:{weight:["regular"],fallback:"display"},Chewy:{weight:["regular"],fallback:"display"},"ZCOOL XiaoWei":{weight:["regular"],fallback:"serif"},Rancho:{weight:["regular"],fallback:"handwriting"},"Noto Serif SC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Pangolin:{weight:["regular"],fallback:"handwriting"},"Fira Mono":{weight:["regular","500","700"],fallback:"monospace"},Forum:{weight:["regular"],fallback:"display"},"Antic Slab":{weight:["regular"],fallback:"serif"},"Alegreya Sans SC":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Anonymous Pro":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Lateef:{weight:["regular"],fallback:"handwriting"},"Annie Use Your Telescope":{weight:["regular"],fallback:"handwriting"},"Noto Sans HK":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Martel Sans":{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},"Chakra Petch":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Rufina:{weight:["regular","700"],fallback:"serif"},"Bai Jamjuree":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Scheherazade:{weight:["regular","700"],fallback:"serif"},Share:{weight:["regular","italic","700","700italic"],fallback:"display"},"Tenor Sans":{weight:["regular"],fallback:"sans-serif"},"DM Serif Display":{weight:["regular","italic"],fallback:"serif"},VT323:{weight:["regular"],fallback:"monospace"},"Share Tech Mono":{weight:["regular"],fallback:"monospace"},Mali:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"handwriting"},Cousine:{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Cinzel Decorative":{weight:["regular","700","900"],fallback:"display"},Overlock:{weight:["regular","italic","700","700italic","900","900italic"],fallback:"display"},"Arbutus Slab":{weight:["regular"],fallback:"serif"},"Reem Kufi":{weight:["regular"],fallback:"sans-serif"},"Cabin Sketch":{weight:["regular","700"],fallback:"display"},"Saira Extra Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Eczar:{weight:["regular","500","600","700","800"],fallback:"serif"},"Leckerli One":{weight:["regular"],fallback:"handwriting"},Krub:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Berkshire Swash":{weight:["regular"],fallback:"handwriting"},"Fredericka the Great":{weight:["regular"],fallback:"display"},"Saira Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Overpass Mono":{weight:["300","regular","600","700"],fallback:"monospace"},Itim:{weight:["regular"],fallback:"handwriting"},Rasa:{weight:["300","regular","500","600","700"],fallback:"serif"},Bevan:{weight:["regular"],fallback:"display"},"Arima Madurai":{weight:["100","200","300","regular","500","700","800","900"],fallback:"display"},Italianno:{weight:["regular"],fallback:"handwriting"},"Coda Caption":{weight:["800"],fallback:"sans-serif"},Shrikhand:{weight:["regular"],fallback:"display"},"Just Another Hand":{weight:["regular"],fallback:"handwriting"},"Saira Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Almarai:{weight:["300","regular","700","800"],fallback:"sans-serif"},"Mukta Malar":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Oranienbaum:{weight:["regular"],fallback:"serif"},Nobile:{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Candal:{weight:["regular"],fallback:"sans-serif"},"Six Caps":{weight:["regular"],fallback:"sans-serif"},"Space Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Capriola:{weight:["regular"],fallback:"sans-serif"},Biryani:{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},Halant:{weight:["300","regular","500","600","700"],fallback:"serif"},Allerta:{weight:["regular"],fallback:"sans-serif"},Trirong:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},Mallanna:{weight:["regular"],fallback:"sans-serif"},Aldrich:{weight:["regular"],fallback:"sans-serif"},Aleo:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Suez One":{weight:["regular"],fallback:"serif"},Caudex:{weight:["regular","italic","700","700italic"],fallback:"serif"},Niconne:{weight:["regular"],fallback:"handwriting"},"Mrs Saint Delafield":{weight:["regular"],fallback:"handwriting"},Gruppo:{weight:["regular"],fallback:"display"},"Miriam Libre":{weight:["regular","700"],fallback:"sans-serif"},"Contrail One":{weight:["regular"],fallback:"display"},"Days One":{weight:["regular"],fallback:"sans-serif"},"Allerta Stencil":{weight:["regular"],fallback:"sans-serif"},"Average Sans":{weight:["regular"],fallback:"sans-serif"},"Coming Soon":{weight:["regular"],fallback:"handwriting"},Pattaya:{weight:["regular"],fallback:"sans-serif"},"Londrina Solid":{weight:["100","300","regular","900"],fallback:"display"},Bungee:{weight:["regular"],fallback:"display"},Coustard:{weight:["regular","900"],fallback:"serif"},"Marcellus SC":{weight:["regular"],fallback:"serif"},"Racing Sans One":{weight:["regular"],fallback:"display"},Bentham:{weight:["regular"],fallback:"serif"},"Bungee Inline":{weight:["regular"],fallback:"display"},Magra:{weight:["regular","700"],fallback:"sans-serif"},Judson:{weight:["regular","italic","700"],fallback:"serif"},Rochester:{weight:["regular"],fallback:"handwriting"},"Grand Hotel":{weight:["regular"],fallback:"handwriting"},Gelasio:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Yesteryear:{weight:["regular"],fallback:"handwriting"},Syncopate:{weight:["regular","700"],fallback:"sans-serif"},Hanuman:{weight:["regular","700"],fallback:"serif"},"Kosugi Maru":{weight:["regular"],fallback:"sans-serif"},Copse:{weight:["regular"],fallback:"serif"},Mada:{weight:["200","300","regular","500","600","700","900"],fallback:"sans-serif"},"Titan One":{weight:["regular"],fallback:"display"},"Noto Serif TC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Kameron:{weight:["regular","700"],fallback:"serif"},Telex:{weight:["regular"],fallback:"sans-serif"},Norican:{weight:["regular"],fallback:"handwriting"},Maitree:{weight:["200","300","regular","500","600","700"],fallback:"serif"},"IM Fell Double Pica":{weight:["regular","italic"],fallback:"serif"},Molengo:{weight:["regular"],fallback:"sans-serif"},Sunflower:{weight:["300","500","700"],fallback:"sans-serif"},"Alegreya SC":{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Red Hat Display":{weight:["regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},Jua:{weight:["regular"],fallback:"sans-serif"},Ovo:{weight:["regular"],fallback:"serif"},"IBM Plex Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Nixie One":{weight:["regular"],fallback:"display"},Aladin:{weight:["regular"],fallback:"handwriting"},Arizonia:{weight:["regular"],fallback:"handwriting"},"Bubblegum Sans":{weight:["regular"],fallback:"display"},"Changa One":{weight:["regular","italic"],fallback:"display"},"Lexend Deca":{weight:["regular"],fallback:"sans-serif"},Sofia:{weight:["regular"],fallback:"handwriting"},"Jockey One":{weight:["regular"],fallback:"sans-serif"},Suranna:{weight:["regular"],fallback:"serif"},Amethysta:{weight:["regular"],fallback:"serif"},Schoolbell:{weight:["regular"],fallback:"handwriting"},"Nanum Brush Script":{weight:["regular"],fallback:"handwriting"},"Cedarville Cursive":{weight:["regular"],fallback:"handwriting"},"Cutive Mono":{weight:["regular"],fallback:"monospace"},Delius:{weight:["regular"],fallback:"handwriting"},"Raleway Dots":{weight:["regular"],fallback:"display"},Graduate:{weight:["regular"],fallback:"display"},Lustria:{weight:["regular"],fallback:"serif"},"Mukta Vaani":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Kadwa:{weight:["regular","700"],fallback:"serif"},"Rozha One":{weight:["regular"],fallback:"serif"},Buenard:{weight:["regular","700"],fallback:"serif"},Cambo:{weight:["regular"],fallback:"serif"},Marvel:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Krona One":{weight:["regular"],fallback:"sans-serif"},"Carrois Gothic":{weight:["regular"],fallback:"sans-serif"},Carme:{weight:["regular"],fallback:"sans-serif"},"Slabo 13px":{weight:["regular"],fallback:"serif"},Lemon:{weight:["regular"],fallback:"display"},"Love Ya Like A Sister":{weight:["regular"],fallback:"display"},Rosario:{weight:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},"Merienda One":{weight:["regular"],fallback:"handwriting"},"Public Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Petit Formal Script":{weight:["regular"],fallback:"handwriting"},"Ceviche One":{weight:["regular"],fallback:"display"},Voltaire:{weight:["regular"],fallback:"sans-serif"},Fresca:{weight:["regular"],fallback:"sans-serif"},"Averia Serif Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Rye:{weight:["regular"],fallback:"display"},"Noto Serif KR":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Chelsea Market":{weight:["regular"],fallback:"display"},Calligraffitti:{weight:["regular"],fallback:"handwriting"},"Freckle Face":{weight:["regular"],fallback:"display"},"Duru Sans":{weight:["regular"],fallback:"sans-serif"},Trocchi:{weight:["regular"],fallback:"serif"},Metrophobic:{weight:["regular"],fallback:"sans-serif"},Mate:{weight:["regular","italic"],fallback:"serif"},Harmattan:{weight:["regular"],fallback:"sans-serif"},"Gilda Display":{weight:["regular"],fallback:"serif"},"Cormorant Infant":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Spartan:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Oxygen Mono":{weight:["regular"],fallback:"monospace"},Chonburi:{weight:["regular"],fallback:"display"},"Goudy Bookletter 1911":{weight:["regular"],fallback:"serif"},Sansita:{weight:["regular","italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Emilys Candy":{weight:["regular"],fallback:"display"},Amiko:{weight:["regular","600","700"],fallback:"sans-serif"},Kristi:{weight:["regular"],fallback:"handwriting"},"Palanquin Dark":{weight:["regular","500","600","700"],fallback:"sans-serif"},Lekton:{weight:["regular","italic","700"],fallback:"sans-serif"},Cutive:{weight:["regular"],fallback:"serif"},"Herr Von Muellerhoff":{weight:["regular"],fallback:"handwriting"},"GFS Didot":{weight:["regular"],fallback:"serif"},Radley:{weight:["regular","italic"],fallback:"serif"},"Sue Ellen Francisco":{weight:["regular"],fallback:"handwriting"},Pompiere:{weight:["regular"],fallback:"display"},Gabriela:{weight:["regular"],fallback:"serif"},Niramit:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Seaweed Script":{weight:["regular"],fallback:"display"},"Sedgwick Ave":{weight:["regular"],fallback:"handwriting"},Federo:{weight:["regular"],fallback:"sans-serif"},McLaren:{weight:["regular"],fallback:"display"},"IM Fell DW Pica":{weight:["regular","italic"],fallback:"serif"},Sniglet:{weight:["regular","800"],fallback:"display"},"Mr De Haviland":{weight:["regular"],fallback:"handwriting"},Shojumaru:{weight:["regular"],fallback:"display"},Poly:{weight:["regular","italic"],fallback:"serif"},Belleza:{weight:["regular"],fallback:"sans-serif"},Faustina:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"IM Fell English":{weight:["regular","italic"],fallback:"serif"},"Rammetto One":{weight:["regular"],fallback:"display"},Amita:{weight:["regular","700"],fallback:"handwriting"},Inder:{weight:["regular"],fallback:"sans-serif"},"Antic Didone":{weight:["regular"],fallback:"serif"},"Alike Angular":{weight:["regular"],fallback:"serif"},Montez:{weight:["regular"],fallback:"handwriting"},K2D:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},UnifrakturMaguntia:{weight:["regular"],fallback:"display"},Gurajada:{weight:["regular"],fallback:"serif"},"Proza Libre":{weight:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Athiti:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Andada:{weight:["regular"],fallback:"serif"},"Liu Jian Mao Cao":{weight:["regular"],fallback:"handwriting"},Megrim:{weight:["regular"],fallback:"display"},"Vast Shadow":{weight:["regular"],fallback:"display"},Wallpoet:{weight:["regular"],fallback:"display"},Unkempt:{weight:["regular","700"],fallback:"display"},"Fanwood Text":{weight:["regular","italic"],fallback:"serif"},"Doppio One":{weight:["regular"],fallback:"sans-serif"},"Comic Neue":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"handwriting"},Corben:{weight:["regular","700"],fallback:"display"},Frijole:{weight:["regular"],fallback:"display"},Balthazar:{weight:["regular"],fallback:"serif"},Mirza:{weight:["regular","500","600","700"],fallback:"display"},"IM Fell French Canon SC":{weight:["regular"],fallback:"serif"},Brawler:{weight:["regular"],fallback:"serif"},"Oleo Script Swash Caps":{weight:["regular","700"],fallback:"display"},Mandali:{weight:["regular"],fallback:"sans-serif"},Convergence:{weight:["regular"],fallback:"sans-serif"},Fondamento:{weight:["regular","italic"],fallback:"handwriting"},Alike:{weight:["regular"],fallback:"serif"},Baumans:{weight:["regular"],fallback:"display"},Esteban:{weight:["regular"],fallback:"serif"},"Gravitas One":{weight:["regular"],fallback:"display"},Anaheim:{weight:["regular"],fallback:"sans-serif"},"Wendy One":{weight:["regular"],fallback:"sans-serif"},"Stardos Stencil":{weight:["regular","700"],fallback:"display"},"Spicy Rice":{weight:["regular"],fallback:"display"},Rakkas:{weight:["regular"],fallback:"display"},"La Belle Aurore":{weight:["regular"],fallback:"handwriting"},"Secular One":{weight:["regular"],fallback:"sans-serif"},Belgrano:{weight:["regular"],fallback:"serif"},"Bungee Shade":{weight:["regular"],fallback:"display"},"Crafty Girls":{weight:["regular"],fallback:"handwriting"},Battambang:{weight:["regular","700"],fallback:"display"},Quando:{weight:["regular"],fallback:"serif"},"Mouse Memoirs":{weight:["regular"],fallback:"sans-serif"},Gugi:{weight:["regular"],fallback:"display"},"Faster One":{weight:["regular"],fallback:"display"},"B612 Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Limelight:{weight:["regular"],fallback:"display"},"Short Stack":{weight:["regular"],fallback:"handwriting"},"Mountains of Christmas":{weight:["regular","700"],fallback:"display"},"Share Tech":{weight:["regular"],fallback:"sans-serif"},Laila:{weight:["300","regular","500","600","700"],fallback:"serif"},Literata:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Cormorant SC":{weight:["300","regular","500","600","700"],fallback:"serif"},"Fjord One":{weight:["regular"],fallback:"serif"},Podkova:{weight:["regular","500","600","700","800"],fallback:"serif"},Homenaje:{weight:["regular"],fallback:"sans-serif"},"Walter Turncoat":{weight:["regular"],fallback:"handwriting"},Sen:{weight:["regular","700","800"],fallback:"sans-serif"},"Patrick Hand SC":{weight:["regular"],fallback:"handwriting"},Voces:{weight:["regular"],fallback:"display"},Qwigley:{weight:["regular"],fallback:"handwriting"},"Happy Monkey":{weight:["regular"],fallback:"display"},"Rouge Script":{weight:["regular"],fallback:"handwriting"},"Baloo Chettan 2":{weight:["regular","500","600","700","800"],fallback:"display"},NTR:{weight:["regular"],fallback:"sans-serif"},Skranji:{weight:["regular","700"],fallback:"display"},Strait:{weight:["regular"],fallback:"sans-serif"},"Dawning of a New Day":{weight:["regular"],fallback:"handwriting"},Iceland:{weight:["regular"],fallback:"display"},"Expletus Sans":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"display"},"Montserrat Subrayada":{weight:["regular","700"],fallback:"sans-serif"},Oregano:{weight:["regular","italic"],fallback:"display"},"Give You Glory":{weight:["regular"],fallback:"handwriting"},Alata:{weight:["regular"],fallback:"sans-serif"},Puritan:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Mako:{weight:["regular"],fallback:"sans-serif"},Andika:{weight:["regular"],fallback:"sans-serif"},"Cormorant Upright":{weight:["300","regular","500","600","700"],fallback:"serif"},Zeyada:{weight:["regular"],fallback:"handwriting"},"Bowlby One":{weight:["regular"],fallback:"display"},"Aref Ruqaa":{weight:["regular","700"],fallback:"serif"},Numans:{weight:["regular"],fallback:"sans-serif"},Kurale:{weight:["regular"],fallback:"serif"},Spirax:{weight:["regular"],fallback:"display"},"Clicker Script":{weight:["regular"],fallback:"handwriting"},"Waiting for the Sunrise":{weight:["regular"],fallback:"handwriting"},"Holtwood One SC":{weight:["regular"],fallback:"serif"},Katibeh:{weight:["regular"],fallback:"display"},"Carrois Gothic SC":{weight:["regular"],fallback:"sans-serif"},Livvic:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},Eater:{weight:["regular"],fallback:"display"},"Fontdiner Swanky":{weight:["regular"],fallback:"display"},"Finger Paint":{weight:["regular"],fallback:"display"},Bellefair:{weight:["regular"],fallback:"serif"},"Wire One":{weight:["regular"],fallback:"sans-serif"},Kosugi:{weight:["regular"],fallback:"sans-serif"},Charm:{weight:["regular","700"],fallback:"handwriting"},"Delius Swash Caps":{weight:["regular"],fallback:"handwriting"},"Vesper Libre":{weight:["regular","500","700","900"],fallback:"serif"},"Red Hat Text":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Gafata:{weight:["regular"],fallback:"sans-serif"},"Averia Sans Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Denk One":{weight:["regular"],fallback:"sans-serif"},Geo:{weight:["regular","italic"],fallback:"sans-serif"},Tauri:{weight:["regular"],fallback:"sans-serif"},"Cherry Swash":{weight:["regular","700"],fallback:"display"},Codystar:{weight:["300","regular"],fallback:"display"},"Cantora One":{weight:["regular"],fallback:"sans-serif"},"Encode Sans Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Nova Square":{weight:["regular"],fallback:"display"},BioRhyme:{weight:["200","300","regular","700","800"],fallback:"serif"},Timmana:{weight:["regular"],fallback:"sans-serif"},Atma:{weight:["300","regular","500","600","700"],fallback:"display"},Tienne:{weight:["regular","700","900"],fallback:"serif"},Meddon:{weight:["regular"],fallback:"handwriting"},Galada:{weight:["regular"],fallback:"display"},Padauk:{weight:["regular","700"],fallback:"sans-serif"},"Loved by the King":{weight:["regular"],fallback:"handwriting"},"The Girl Next Door":{weight:["regular"],fallback:"handwriting"},"Darker Grotesque":{weight:["300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Life Savers":{weight:["regular","700","800"],fallback:"display"},Bilbo:{weight:["regular"],fallback:"handwriting"},Shanti:{weight:["regular"],fallback:"sans-serif"},"Headland One":{weight:["regular"],fallback:"serif"},"Euphoria Script":{weight:["regular"],fallback:"handwriting"},Imprima:{weight:["regular"],fallback:"sans-serif"},"Aguafina Script":{weight:["regular"],fallback:"handwriting"},"Baloo 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Over the Rainbow":{weight:["regular"],fallback:"handwriting"},Sarpanch:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Orienta:{weight:["regular"],fallback:"sans-serif"},"Spectral SC":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Port Lligat Sans":{weight:["regular"],fallback:"sans-serif"},Artifika:{weight:["regular"],fallback:"serif"},Ledger:{weight:["regular"],fallback:"serif"},Ruluko:{weight:["regular"],fallback:"sans-serif"},Sail:{weight:["regular"],fallback:"display"},Alatsi:{weight:["regular"],fallback:"sans-serif"},"Sonsie One":{weight:["regular"],fallback:"display"},"Bilbo Swash Caps":{weight:["regular"],fallback:"handwriting"},Slackey:{weight:["regular"],fallback:"display"},Salsa:{weight:["regular"],fallback:"display"},Rationale:{weight:["regular"],fallback:"sans-serif"},"Hepta Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Nosifer:{weight:["regular"],fallback:"display"},Dekko:{weight:["regular"],fallback:"handwriting"},"Encode Sans Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Lily Script One":{weight:["regular"],fallback:"display"},"Zilla Slab Highlight":{weight:["regular","700"],fallback:"display"},Dokdo:{weight:["regular"],fallback:"handwriting"},"Kotta One":{weight:["regular"],fallback:"serif"},"Macondo Swash Caps":{weight:["regular"],fallback:"display"},"Encode Sans Semi Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Prosto One":{weight:["regular"],fallback:"display"},"Trade Winds":{weight:["regular"],fallback:"display"},Farsan:{weight:["regular"],fallback:"display"},Manuale:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},Creepster:{weight:["regular"],fallback:"display"},"Medula One":{weight:["regular"],fallback:"display"},Ranchers:{weight:["regular"],fallback:"display"},"David Libre":{weight:["regular","500","700"],fallback:"serif"},"Libre Barcode 39":{weight:["regular"],fallback:"display"},"Vampiro One":{weight:["regular"],fallback:"display"},Metamorphous:{weight:["regular"],fallback:"display"},"Bubbler One":{weight:["regular"],fallback:"sans-serif"},"Nova Mono":{weight:["regular"],fallback:"monospace"},"Princess Sofia":{weight:["regular"],fallback:"handwriting"},"Just Me Again Down Here":{weight:["regular"],fallback:"handwriting"},Notable:{weight:["regular"],fallback:"sans-serif"},"Fascinate Inline":{weight:["regular"],fallback:"display"},Vibur:{weight:["regular"],fallback:"handwriting"},"Vollkorn SC":{weight:["regular","600","700","900"],fallback:"serif"},Crushed:{weight:["regular"],fallback:"display"},Sumana:{weight:["regular","700"],fallback:"serif"},Elsie:{weight:["regular","900"],fallback:"display"},Ranga:{weight:["regular","700"],fallback:"display"},"Port Lligat Slab":{weight:["regular"],fallback:"serif"},Amarante:{weight:["regular"],fallback:"display"},"Ruslan Display":{weight:["regular"],fallback:"display"},"Germania One":{weight:["regular"],fallback:"display"},"Sirin Stencil":{weight:["regular"],fallback:"display"},Pavanam:{weight:["regular"],fallback:"sans-serif"},Peralta:{weight:["regular"],fallback:"display"},"Scope One":{weight:["regular"],fallback:"serif"},Jomolhari:{weight:["regular"],fallback:"serif"},Kranky:{weight:["regular"],fallback:"display"},"Yatra One":{weight:["regular"],fallback:"display"},"Jacques Francois Shadow":{weight:["regular"],fallback:"display"},Ribeye:{weight:["regular"],fallback:"display"},"Averia Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Saira Stencil One":{weight:["regular"],fallback:"display"},"Cherry Cream Soda":{weight:["regular"],fallback:"display"},"Mukta Mahee":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Srisakdi:{weight:["regular","700"],fallback:"display"},Trochut:{weight:["regular","italic","700"],fallback:"display"},Coiny:{weight:["regular"],fallback:"display"},"Ma Shan Zheng":{weight:["regular"],fallback:"handwriting"},Asul:{weight:["regular","700"],fallback:"sans-serif"},Ewert:{weight:["regular"],fallback:"display"},Arya:{weight:["regular","700"],fallback:"sans-serif"},"Hanalei Fill":{weight:["regular"],fallback:"display"},Grenze:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Ribeye Marrow":{weight:["regular"],fallback:"display"},"IM Fell English SC":{weight:["regular"],fallback:"serif"},"Chau Philomene One":{weight:["regular","italic"],fallback:"sans-serif"},Sarina:{weight:["regular"],fallback:"display"},Chicle:{weight:["regular"],fallback:"display"},Manjari:{weight:["100","regular","700"],fallback:"sans-serif"},Montaga:{weight:["regular"],fallback:"serif"},Italiana:{weight:["regular"],fallback:"serif"},Akronim:{weight:["regular"],fallback:"display"},Habibi:{weight:["regular"],fallback:"serif"},Englebert:{weight:["regular"],fallback:"sans-serif"},Dynalight:{weight:["regular"],fallback:"display"},"Mate SC":{weight:["regular"],fallback:"serif"},"Henny Penny":{weight:["regular"],fallback:"display"},"Sree Krushnadevaraya":{weight:["regular"],fallback:"serif"},Engagement:{weight:["regular"],fallback:"handwriting"},Girassol:{weight:["regular"],fallback:"display"},"Kite One":{weight:["regular"],fallback:"sans-serif"},"Ibarra Real Nova":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},Gaegu:{weight:["300","regular","700"],fallback:"handwriting"},Fenix:{weight:["regular"],fallback:"serif"},"Pirata One":{weight:["regular"],fallback:"display"},"Tulpen One":{weight:["regular"],fallback:"display"},"IM Fell Great Primer":{weight:["regular","italic"],fallback:"serif"},Chathura:{weight:["100","300","regular","700","800"],fallback:"sans-serif"},Unlock:{weight:["regular"],fallback:"display"},"Nova Round":{weight:["regular"],fallback:"display"},Sura:{weight:["regular","700"],fallback:"serif"},"Kumar One":{weight:["regular"],fallback:"display"},Baskervville:{weight:["regular","italic"],fallback:"serif"},Quintessential:{weight:["regular"],fallback:"handwriting"},Milonga:{weight:["regular"],fallback:"display"},Bayon:{weight:["regular"],fallback:"display"},"Be Vietnam":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},"Crimson Pro":{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},B612:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"League Script":{weight:["regular"],fallback:"handwriting"},"Inknut Antiqua":{weight:["300","regular","500","600","700","800","900"],fallback:"serif"},Mogra:{weight:["regular"],fallback:"display"},"Mystery Quest":{weight:["regular"],fallback:"display"},"Monsieur La Doulaise":{weight:["regular"],fallback:"handwriting"},Vibes:{weight:["regular"],fallback:"display"},Rosarivo:{weight:["regular","italic"],fallback:"serif"},"Uncial Antiqua":{weight:["regular"],fallback:"display"},Dorsa:{weight:["regular"],fallback:"sans-serif"},Almendra:{weight:["regular","italic","700","700italic"],fallback:"serif"},Diplomata:{weight:["regular"],fallback:"display"},Simonetta:{weight:["regular","italic","900","900italic"],fallback:"display"},"New Rocker":{weight:["regular"],fallback:"display"},Snippet:{weight:["regular"],fallback:"sans-serif"},Petrona:{weight:["regular"],fallback:"serif"},Ramaraja:{weight:["regular"],fallback:"serif"},"Averia Gruesa Libre":{weight:["regular"],fallback:"display"},"Baloo Bhaina 2":{weight:["regular","500","600","700","800"],fallback:"display"},Kodchasan:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Meera Inimai":{weight:["regular"],fallback:"sans-serif"},Flamenco:{weight:["300","regular"],fallback:"display"},Khmer:{weight:["regular"],fallback:"display"},Paprika:{weight:["regular"],fallback:"display"},Koulen:{weight:["regular"],fallback:"display"},Mansalva:{weight:["regular"],fallback:"handwriting"},"Lovers Quarrel":{weight:["regular"],fallback:"handwriting"},Condiment:{weight:["regular"],fallback:"handwriting"},"Baloo Thambi 2":{weight:["regular","500","600","700","800"],fallback:"display"},Stoke:{weight:["300","regular"],fallback:"serif"},Barrio:{weight:["regular"],fallback:"display"},Barriecito:{weight:["regular"],fallback:"display"},"Donegal One":{weight:["regular"],fallback:"serif"},Kavoon:{weight:["regular"],fallback:"display"},"Big Shoulders Display":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Mina:{weight:["regular","700"],fallback:"sans-serif"},"Big Shoulders Text":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Prociono:{weight:["regular"],fallback:"serif"},"Text Me One":{weight:["regular"],fallback:"sans-serif"},"IM Fell French Canon":{weight:["regular","italic"],fallback:"serif"},"Overlock SC":{weight:["regular"],fallback:"display"},Cagliostro:{weight:["regular"],fallback:"sans-serif"},"Marko One":{weight:["regular"],fallback:"serif"},"Swanky and Moo Moo":{weight:["regular"],fallback:"handwriting"},"Maiden Orange":{weight:["regular"],fallback:"display"},Blinker:{weight:["100","200","300","regular","600","700","800","900"],fallback:"sans-serif"},Miniver:{weight:["regular"],fallback:"display"},Angkor:{weight:["regular"],fallback:"display"},Chango:{weight:["regular"],fallback:"display"},Thasadith:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Modak:{weight:["regular"],fallback:"display"},Junge:{weight:["regular"],fallback:"serif"},"Stint Ultra Condensed":{weight:["regular"],fallback:"display"},Stalemate:{weight:["regular"],fallback:"handwriting"},Tillana:{weight:["regular","500","600","700","800"],fallback:"handwriting"},UnifrakturCook:{weight:["700"],fallback:"display"},"Rum Raisin":{weight:["regular"],fallback:"sans-serif"},Farro:{weight:["300","regular","500","700"],fallback:"sans-serif"},"Delius Unicase":{weight:["regular","700"],fallback:"handwriting"},Sancreek:{weight:["regular"],fallback:"display"},Julee:{weight:["regular"],fallback:"handwriting"},Margarine:{weight:["regular"],fallback:"display"},"Lakki Reddy":{weight:["regular"],fallback:"handwriting"},"Stint Ultra Expanded":{weight:["regular"],fallback:"display"},"Bigshot One":{weight:["regular"],fallback:"display"},Griffy:{weight:["regular"],fallback:"display"},Moul:{weight:["regular"],fallback:"display"},"Diplomata SC":{weight:["regular"],fallback:"display"},Oxanium:{weight:["200","300","regular","500","600","700","800"],fallback:"display"},Offside:{weight:["regular"],fallback:"display"},"Fira Code":{weight:["300","regular","500","600","700"],fallback:"monospace"},"Eagle Lake":{weight:["regular"],fallback:"handwriting"},Flavors:{weight:["regular"],fallback:"display"},"Londrina Outline":{weight:["regular"],fallback:"display"},Tomorrow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Nokora:{weight:["regular","700"],fallback:"serif"},Calistoga:{weight:["regular"],fallback:"display"},Gotu:{weight:["regular"],fallback:"sans-serif"},"Della Respira":{weight:["regular"],fallback:"serif"},"Cormorant Unicase":{weight:["300","regular","500","600","700"],fallback:"serif"},"Libre Caslon Text":{weight:["regular","italic","700"],fallback:"serif"},Buda:{weight:["300"],fallback:"display"},Asar:{weight:["regular"],fallback:"serif"},"Poller One":{weight:["regular"],fallback:"display"},"Autour One":{weight:["regular"],fallback:"display"},"Nova Slim":{weight:["regular"],fallback:"display"},Underdog:{weight:["regular"],fallback:"display"},Redressed:{weight:["regular"],fallback:"handwriting"},"Yeon Sung":{weight:["regular"],fallback:"display"},Content:{weight:["regular","700"],fallback:"display"},Kantumruy:{weight:["300","regular","700"],fallback:"sans-serif"},"Baloo Paaji 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Jim Nightshade":{weight:["regular"],fallback:"handwriting"},"Glass Antiqua":{weight:["regular"],fallback:"display"},"Snowburst One":{weight:["regular"],fallback:"display"},"Gamja Flower":{weight:["regular"],fallback:"handwriting"},Revalia:{weight:["regular"],fallback:"display"},"Metal Mania":{weight:["regular"],fallback:"display"},Charmonman:{weight:["regular","700"],fallback:"handwriting"},"IM Fell DW Pica SC":{weight:["regular"],fallback:"serif"},Inika:{weight:["regular","700"],fallback:"serif"},"Elsie Swash Caps":{weight:["regular","900"],fallback:"display"},Wellfleet:{weight:["regular"],fallback:"display"},"Chela One":{weight:["regular"],fallback:"display"},"Rhodium Libre":{weight:["regular"],fallback:"serif"},"Mrs Sheppards":{weight:["regular"],fallback:"handwriting"},"Sedgwick Ave Display":{weight:["regular"],fallback:"handwriting"},"Modern Antiqua":{weight:["regular"],fallback:"display"},"Ravi Prakash":{weight:["regular"],fallback:"display"},Galdeano:{weight:["regular"],fallback:"sans-serif"},Oldenburg:{weight:["regular"],fallback:"display"},Arbutus:{weight:["regular"],fallback:"display"},"Poor Story":{weight:["regular"],fallback:"display"},"Hi Melody":{weight:["regular"],fallback:"handwriting"},"Joti One":{weight:["regular"],fallback:"display"},"Nova Flat":{weight:["regular"],fallback:"display"},"ZCOOL QingKe HuangYou":{weight:["regular"],fallback:"display"},"Linden Hill":{weight:["regular","italic"],fallback:"serif"},Bokor:{weight:["regular"],fallback:"display"},"Courier Prime":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Trykker:{weight:["regular"],fallback:"serif"},KoHo:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Song Myung":{weight:["regular"],fallback:"serif"},Ruthie:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended Text":{weight:["regular"],fallback:"display"},Chilanka:{weight:["regular"],fallback:"handwriting"},Fahkwang:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Felipa:{weight:["regular"],fallback:"handwriting"},Monofett:{weight:["regular"],fallback:"display"},"Odibee Sans":{weight:["regular"],fallback:"display"},Smythe:{weight:["regular"],fallback:"display"},"Major Mono Display":{weight:["regular"],fallback:"monospace"},Jomhuria:{weight:["regular"],fallback:"display"},"Croissant One":{weight:["regular"],fallback:"display"},Dangrek:{weight:["regular"],fallback:"display"},"Original Surfer":{weight:["regular"],fallback:"display"},Bahiana:{weight:["regular"],fallback:"display"},Gorditas:{weight:["regular","700"],fallback:"display"},"Odor Mean Chey":{weight:["regular"],fallback:"display"},Iceberg:{weight:["regular"],fallback:"display"},MedievalSharp:{weight:["regular"],fallback:"display"},"Caesar Dressing":{weight:["regular"],fallback:"display"},Sahitya:{weight:["regular","700"],fallback:"serif"},Stylish:{weight:["regular"],fallback:"sans-serif"},"Nova Cut":{weight:["regular"],fallback:"display"},"Purple Purse":{weight:["regular"],fallback:"display"},Devonshire:{weight:["regular"],fallback:"handwriting"},Smokum:{weight:["regular"],fallback:"display"},"Almendra Display":{weight:["regular"],fallback:"display"},Galindo:{weight:["regular"],fallback:"display"},Preahvihear:{weight:["regular"],fallback:"display"},Siemreap:{weight:["regular"],fallback:"display"},"Irish Grover":{weight:["regular"],fallback:"display"},Gupter:{weight:["regular","500","700"],fallback:"serif"},"Meie Script":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128":{weight:["regular"],fallback:"display"},"Keania One":{weight:["regular"],fallback:"display"},"GFS Neohellenic":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Cute Font":{weight:["regular"],fallback:"display"},"Londrina Shadow":{weight:["regular"],fallback:"display"},"East Sea Dokdo":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended":{weight:["regular"],fallback:"display"},Risque:{weight:["regular"],fallback:"display"},Lancelot:{weight:["regular"],fallback:"display"},"Libre Caslon Display":{weight:["regular"],fallback:"serif"},Plaster:{weight:["regular"],fallback:"display"},"Goblin One":{weight:["regular"],fallback:"display"},Asset:{weight:["regular"],fallback:"display"},"Almendra SC":{weight:["regular"],fallback:"serif"},"Jacques Francois":{weight:["regular"],fallback:"serif"},"Jolly Lodger":{weight:["regular"],fallback:"display"},"Lexend Exa":{weight:["regular"],fallback:"sans-serif"},Molle:{weight:["italic"],fallback:"handwriting"},Kavivanar:{weight:["regular"],fallback:"handwriting"},"Kirang Haerang":{weight:["regular"],fallback:"display"},Piedra:{weight:["regular"],fallback:"display"},"Atomic Age":{weight:["regular"],fallback:"display"},"Kulim Park":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Libre Barcode 39 Text":{weight:["regular"],fallback:"display"},"IM Fell Great Primer SC":{weight:["regular"],fallback:"serif"},"Tenali Ramakrishna":{weight:["regular"],fallback:"sans-serif"},Butcherman:{weight:["regular"],fallback:"display"},"Dr Sugiyama":{weight:["regular"],fallback:"handwriting"},"Geostar Fill":{weight:["regular"],fallback:"display"},Romanesco:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128 Text":{weight:["regular"],fallback:"display"},Sunshiney:{weight:["regular"],fallback:"handwriting"},"Kumar One Outline":{weight:["regular"],fallback:"display"},Peddana:{weight:["regular"],fallback:"serif"},"Baloo Bhai 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Kdam Thmor":{weight:["regular"],fallback:"display"},"Ruge Boogie":{weight:["regular"],fallback:"handwriting"},Freehand:{weight:["regular"],fallback:"display"},Bonbon:{weight:["regular"],fallback:"handwriting"},Caladea:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Single Day":{weight:["regular"],fallback:"display"},"Baloo Tamma 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Inria Sans":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Hanalei:{weight:["regular"],fallback:"display"},"Emblema One":{weight:["regular"],fallback:"display"},"Seymour One":{weight:["regular"],fallback:"sans-serif"},"Miss Fajardose":{weight:["regular"],fallback:"handwriting"},Sevillana:{weight:["regular"],fallback:"display"},"Inria Serif":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Bungee Outline":{weight:["regular"],fallback:"display"},Metal:{weight:["regular"],fallback:"display"},"IM Fell Double Pica SC":{weight:["regular"],fallback:"serif"},"Lexend Giga":{weight:["regular"],fallback:"sans-serif"},"ZCOOL KuaiLe":{weight:["regular"],fallback:"display"},Astloch:{weight:["regular","700"],fallback:"display"},"Mr Bedfort":{weight:["regular"],fallback:"handwriting"},Macondo:{weight:["regular"],fallback:"display"},"Butterfly Kids":{weight:["regular"],fallback:"handwriting"},"Supermercado One":{weight:["regular"],fallback:"display"},Fruktur:{weight:["regular"],fallback:"display"},Taprom:{weight:["regular"],fallback:"display"},Lacquer:{weight:["regular"],fallback:"display"},"Black And White Picture":{weight:["regular"],fallback:"sans-serif"},"Bigelow Rules":{weight:["regular"],fallback:"display"},"Beth Ellen":{weight:["regular"],fallback:"handwriting"},"Sofadi One":{weight:["regular"],fallback:"display"},Combo:{weight:["regular"],fallback:"display"},Bellota:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Federant:{weight:["regular"],fallback:"display"},"Miltonian Tattoo":{weight:["regular"],fallback:"display"},"Londrina Sketch":{weight:["regular"],fallback:"display"},Suwannaphum:{weight:["regular"],fallback:"display"},"Bungee Hairline":{weight:["regular"],fallback:"display"},Fascinate:{weight:["regular"],fallback:"display"},"Erica One":{weight:["regular"],fallback:"display"},"Nova Oval":{weight:["regular"],fallback:"display"},"Baloo Da 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Sulphur Point":{weight:["300","regular","700"],fallback:"sans-serif"},Aubrey:{weight:["regular"],fallback:"display"},Gidugu:{weight:["regular"],fallback:"sans-serif"},"Bellota Text":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Nova Script":{weight:["regular"],fallback:"display"},Miltonian:{weight:["regular"],fallback:"display"},Gayathri:{weight:["100","regular","700"],fallback:"sans-serif"},Geostar:{weight:["regular"],fallback:"display"},Moulpali:{weight:["regular"],fallback:"display"},"Passero One":{weight:["regular"],fallback:"display"},"Stalinist One":{weight:["regular"],fallback:"display"},"Long Cang":{weight:["regular"],fallback:"handwriting"},Solway:{weight:["300","regular","500","700","800"],fallback:"serif"},"Zhi Mang Xing":{weight:["regular"],fallback:"handwriting"},"Baloo Tammudu 2":{weight:["regular","500","600","700","800"],fallback:"display"},Chenla:{weight:["regular"],fallback:"display"},Suravaram:{weight:["regular"],fallback:"serif"},Fasthand:{weight:["regular"],fallback:"serif"},Kenia:{weight:["regular"],fallback:"display"},Dhurjati:{weight:["regular"],fallback:"sans-serif"},"Lexend Tera":{weight:["regular"],fallback:"sans-serif"},"BioRhyme Expanded":{weight:["200","300","regular","700","800"],fallback:"serif"},"Turret Road":{weight:["200","300","regular","500","700","800"],fallback:"display"},Warnes:{weight:["regular"],fallback:"display"},"Viaoda Libre":{weight:["regular"],fallback:"display"},"Lexend Mega":{weight:["regular"],fallback:"sans-serif"},Bahianita:{weight:["regular"],fallback:"display"},Manrope:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Lexend Zetta":{weight:["regular"],fallback:"sans-serif"},"Lexend Peta":{weight:["regular"],fallback:"sans-serif"}});function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var je=function(e){f()(a,e);var t=Oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.setAttributes,i=t.attributes,r=t.device,n=void 0===r?"":r,c=t.showFontSize,s=void 0!==c&&c,g=t.showFontFamily,b=void 0!==g&&g,u=t.showFontWeight,d=void 0!==u&&u,p=t.showTextTransform,f=void 0!==p&&p,h=t.showLineHeight,m=void 0!==h&&h,k=t.showLetterSpacing,y=void 0!==k&&k,v=t.disableAdvancedToggle,w=void 0!==v&&v,O=t.fontSizePlaceholder,j=void 0===O?"17":O,_=[{value:"",label:Object(T.__)("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(we).slice(0,20).forEach((function(e){_.push({value:e,label:e})})),_.push({value:"other",label:Object(T.__)("Other","generateblocks")});var S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],B=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"uppercase",label:Object(T.__)("Uppercase","generateblocks")},{value:"lowercase",label:Object(T.__)("Lowercase","generateblocks")},{value:"capitalize",label:Object(T.__)("Capitalize","generateblocks")},{value:"initial",label:Object(T.__)("Normal","generateblocks")}];void 0!==we[i.fontFamily]&&void 0!==we[i.fontFamily].weight&&(S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")}],we[i.fontFamily].weight.filter((function(e){var t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e)})).forEach((function(e){S.push({value:e,label:e})})));var D=function(e){"other"===e&&(e="");i.fontWeight;a({fontFamily:e}),i.fontWeight&&Object.values(S).indexOf(i.fontWeight),void 0!==we[e]?a({googleFont:!0,fontFamilyFallback:we[e].fallback,googleFontVariants:we[e].weight.join(", ")}):a({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})},R=function(e){a({fontFamily:e.target.value}),D(e.target.value)},x=function(e,t){return i[e+t]},M=function(e,t){return e+t},z=i.showAdvancedTypography;w&&(z=!0);var L=j;"Tablet"===n&&i.fontSize&&(L=i.fontSize),"Mobile"===n&&(i.fontSizeTablet?L=i.fontSizeTablet:i.fontSize&&(L=i.fontSize));var P="";return"Tablet"===n&&i.lineHeight&&(P=i.lineHeight),"Mobile"===n&&(i.lineHeightTablet?P=i.lineHeightTablet:i.lineHeight&&(P=i.lineHeight)),Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-gblocks-typography-weight-transform"},d&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Weight","generateblocks"),value:i.fontWeight,options:S,onChange:function(e){a({fontWeight:e})},className:"components-base-control"}),f&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Transform","generateblocks"),value:i.textTransform,options:B,onChange:function(e){a({textTransform:e})},className:"components-base-control"})),!w&&Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Show Advanced Typography","generateblocks"),checked:!!i.showAdvancedTypography,onChange:function(e){a({showAdvancedTypography:e})}}),b&&z&&Object(l.createElement)(C.BaseControl,{className:"gblocks-font-family-shortcuts"},Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Font Family","generateblocks")),Object(l.createElement)("select",{className:"components-select-control__input components-select-control__input--gblocks-fontfamily",onChange:R,onBlur:R},_.map((function(e,t){return Object(l.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))),b&&z&&Object(l.createElement)(C.TextControl,{value:i.fontFamily,placeholder:Object(T.__)("Enter font name","generateblocks"),onChange:function(e){return D(e)}}),b&&""!==i.fontFamily&&z&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Google Font","generateblocks"),checked:!!i.googleFont,onChange:function(e){a({googleFont:e}),e&&void 0!==we[i.fontFamily]&&a({fontFamilyFallback:we[i.fontFamily].fallback,googleFontVariants:we[i.fontFamily].weight.join(", ")})}}),!!i.googleFont&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Variants","generateblocks"),value:i.googleFontVariants,placeholder:Object(T.__)("300, 400, 400i","generateblocks"),onChange:function(e){a({googleFontVariants:e})}})),b&&z&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Font Family Fallback","generateblocks"),value:i.fontFamilyFallback,placeholder:Object(T.__)("sans-serif","generateblocks"),onChange:function(e){a({fontFamilyFallback:e})}}),s&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Font Size","generateblocks"),value:i.fontSizeUnit,units:["px","em","%"],onClick:function(e){a({fontSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("fontSize",n)||"",placeholder:L,onChange:function(e){var t=M("fontSize",n);a(o()({},t,parseFloat(e)))},min:1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("fontSize",n);a(o()({},t,e.props.defaultFontSize))}},Object(T.__)("Reset","generateblocks")))),m&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Line Height","generateblocks"),value:i.lineHeightUnit,units:["px","em","%"],onClick:function(e){a({lineHeightUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("lineHeight",n)||0===x("lineHeight",n)?x("lineHeight",n):"",placeholder:P,onChange:function(e){var t=M("lineHeight",n);a(o()({},t,e))},onBlur:function(){var e=M("lineHeight",n);a(o()({},e,parseFloat(x("lineHeight",n))))},onClick:function(e){e.currentTarget.focus()},min:0,step:.1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("lineHeight",n);a(o()({},t,e.props.defaultLineHeight))}},Object(T.__)("Reset","generateblocks")))),y&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Letter Spacing","generateblocks"),value:"em",units:["em"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("letterSpacing",n)||"",placeholder:"0.01",onChange:function(e){var t=M("letterSpacing",n);a(o()({},t,e))},onBlur:function(){var e=M("letterSpacing",n);a(o()({},e,parseFloat(x("letterSpacing",n))))},onClick:function(e){e.currentTarget.focus()},min:-1,step:.01,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("letterSpacing",n);a(o()({},t,e.props.defaultLetterSpacing))}},Object(T.__)("Reset","generateblocks")))))}}]),a}(l.Component);a(39);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ce=function(e){f()(a,e);var t=Te(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrGradient,n=t.attrGradientDirection,c=t.attrGradientColorOne,s=t.attrGradientColorOneOpacity,g=t.attrGradientColorStopOne,b=t.attrGradientColorTwo,u=t.attrGradientColorTwoOpacity,d=t.attrGradientColorStopTwo,p=t.defaultColorOne,f=t.defaultColorTwo,h=a.gradientSelector,m="element"===h?Object(T.__)("Displays behind the background image.","generateblocks"):Object(T.__)("Displays in front of the background image.","generateblocks");return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Use Gradient","generateblocks"),checked:!!a[r],onChange:function(t){i(o()({},e.props.attrGradient,t))}}),!!a[r]&&Object(l.createElement)(l.Fragment,null,void 0!==h&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Selector","generateblocks"),help:m,value:h,options:[{label:Object(T.__)("Element","generateblocks"),value:"element"},{label:Object(T.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){i({gradientSelector:e})}}),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Direction","generateblocks")),Object(l.createElement)(C.RangeControl,{value:a[n]?a[n]:1,onChange:function(e){i(o()({},n,e))},min:0,max:360,step:1,initialPosition:90})),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color One","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[c],alpha:!0,valueOpacity:a[s],attrOpacity:"gradientColorOneOpacity",onChange:function(e){return i(o()({},c,e))},onOpacityChange:function(e){return i(o()({},s,e))},onClear:function(){return i(o()({},c,p))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[g]||0===a[g]?a[g]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},g,e))},onBlur:function(){(a[g]||0===a[g])&&i(o()({},g,parseFloat(a[g])))},onClick:function(e){e.currentTarget.focus()}}))),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color Two","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[b],alpha:!0,valueOpacity:a[u],attrOpacity:"gradientColorTwoOpacity",onChange:function(e){return i(o()({},b,e))},onOpacityChange:function(e){return i(o()({},u,e))},onClear:function(){return i(o()({},b,f))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[d]||0===a[d]?a[d]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},d,e))},onBlur:function(){(a[d]||0===a[d])&&i(o()({},d,parseFloat(a[d])))},onClick:function(e){e.currentTarget.focus()}})))))}}]),a}(l.Component),_e=a(25),Se=a.n(_e);function Be(e){return Se.a.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}function De(e,t,a,l,i){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+i+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+i+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+i+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+i+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}function Ee(e,t){var a=t.attributes,l=a.backgroundColor,i=a.backgroundColorOpacity,r=a.bgImage,n=a.gradient,o=a.bgOptions,c=a.gradientColorOne,s=a.gradientColorOneOpacity,g=a.gradientColorTwo,b=a.gradientColorTwoOpacity,u=a.gradientColorStopOne,d=a.gradientColorStopTwo,p=a.gradientDirection,f="";if(n){var h="",m="";c&&""!==u&&(h=" "+u+"%"),g&&""!==d&&(m=" "+d+"%"),f="linear-gradient("+p+"deg, "+he(c,s)+h+", "+he(g,b)+m+")"}if("gradient"===e)return f;var k=!1,y=he(l,i);if(r){var v=r.image.url;v=Object(_.applyFilters)("generateblocks.editor.bgImageURL",v,t),"element"===o.selector&&(y||n)&&void 0!==o.overlay&&o.overlay?n?k=f+", url("+v+")":y&&(k="linear-gradient(0deg, "+y+", "+y+"), url("+v+")"):k="url("+v+")"}return k}function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var xe=function(e){f()(a,e);var t=Re(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.width,n=e.outerContainer,o=e.innerContainer,c=e.containerWidth,s=e.minHeight,g=e.minHeightUnit,b=e.paddingTop,u=e.paddingRight,d=e.paddingBottom,p=e.paddingLeft,f=e.paddingUnit,h=e.marginTop,m=e.marginRight,k=e.marginBottom,y=e.marginLeft,v=e.marginUnit,w=e.borderSizeTop,O=e.borderSizeRight,j=e.borderSizeBottom,T=e.borderSizeLeft,C=e.borderRadiusTopRight,S=e.borderRadiusBottomRight,B=e.borderRadiusBottomLeft,D=e.borderRadiusTopLeft,E=e.borderRadiusUnit,R=e.borderColor,x=e.borderColorOpacity,L=e.backgroundColor,P=e.backgroundColorOpacity,F=e.gradient,A=e.gradientSelector,U=e.textColor,H=e.linkColor,N=e.linkColorHover,I=e.bgImage,G=e.bgOptions,V=e.verticalAlignment,q=e.zindex,W=e.innerZindex,Z=e.alignment,K=e.fontFamily,J=e.fontFamilyFallback,Y=e.fontWeight,Q=e.fontSize,X=e.fontSizeUnit,$=e.textTransform,ee=e.shapeDividers,te=c;te||(te=generateBlocksDefaults.container.containerWidth);var ae="";K&&J&&(ae=", "+J);var le=!!I,ie=Ee("image",this.props),re=Ee("gradient",this.props),ne=W,oe=[];return oe[".gb-container-"+a]=[{"background-color":he(L,P),color:U,"border-radius":De(D,C,S,B,E),margin:De(h,m,k,y,v),"z-index":q,"text-align":Z,"font-family":K+ae,"font-weight":Y,"text-transform":$,"font-size":z(Q,X),"min-height":z(s,g)}],le&&"element"===G.selector&&ie?oe[".gb-container-"+a].push({"background-image":ie,"background-size":G.size,"background-position":G.position,"background-repeat":G.repeat,"background-attachment":G.attachment}):F&&"element"===A&&oe[".gb-container-"+a].push({"background-image":re}),(le&&"pseudo-element"===G.selector||q||F&&"pseudo-element"===A)&&oe[".gb-container-"+a].push({position:"relative"}),(le&&"pseudo-element"===G.selector||F&&"pseudo-element"===A)&&(oe[".gb-container-"+a].push({overflow:"hidden"}),oe[".gb-container-"+a+" .block-list-appender"]=[{"z-index":10}],ne||(ne=1)),oe[".editor-styles-wrapper .gb-container-"+a+" h1,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h2,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h3,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h4,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h5,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h6"]=[{color:U}],(w||O||j||T)&&oe[".gb-container-"+a].push({"border-width":De(w,O,j,T,"px"),"border-style":"solid","border-color":he(R,x)}),s&&!i&&oe[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":V}),i&&(oe[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":V}),oe[".block-editor-block-list__layout > #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":De(D,C,S,B,E)}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":De(D,C,S,B,E)}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie="",re="inline-block";d&&p&&(ie=", "+p);var ne=i+".gb-headline-"+a,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:c,"font-family":d+ie,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:c}],V&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":he(n,o),color:c,display:!!ae&&re,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:s}],oe[ne+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],oe[ne+" .gb-highlight"]=[{color:u}],oe["#block-"+t]=[{display:!!ae&&"inline-flex"}],oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" Object(T.__)("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(oa,{level:"h2"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3" From c3bd08a7b4e6f86b73e2786686727f49116bc786 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Sun, 3 Jan 2021 19:56:28 -0800 Subject: [PATCH 43/53] Update readme.txt --- readme.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index bf3f047ea..d8b8b2b80 100644 --- a/readme.txt +++ b/readme.txt @@ -80,9 +80,14 @@ GenerateBlocks was built to work hand-in-hand with [GeneratePress](https://gener * New: Add generateblocks_headline_selector_tagname filter * New: Add generateblocks.editor.panelContents filter * New: Add Add generateblocks.frontend.containerTagName filter +* New: Add generateblocks.editor.headlineDisableFormatting filter +* New: Add generateblocks.editor.beforeHeadlineElement filter +* New: Add generateblocks.editor.urlInputMoreOptions filter +* New: Admin header * Fix: Fix gradient when no stop value is found * Fix: Translations in the editor * Fix: Force inner container z-index when pseudo in use +* Fix: Headline text input when has icon but no text * Tweak: Merge bg image and gradient controls into one tab * Tweak: Prepare for Global Styles in Pro * Tweak: Remove duplicate .gb-container class from CSS @@ -91,7 +96,8 @@ GenerateBlocks was built to work hand-in-hand with [GeneratePress](https://gener * Tweak: Update domPurify * Tweak: Import WP packages instead of defining them * Tweak: Add border-radius to pseudo background image elements -* Tweak: Change Element Tag label to HTML Tag Name +* Tweak: Change Element Tag label to Tag Name +* Tweak: Add placeholder to Headline block = 1.2.0 = * Markup change: Remove headline-wrapper element from Headlines with icons From 20fded740d3caee33014d649f20f49dfc2301779 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Mon, 4 Jan 2021 10:34:17 -0800 Subject: [PATCH 44/53] 1.3.0-alpha.1 --- package.json | 2 +- plugin.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3c2750806..e3ebb21c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generateblocks", - "version": "1.2.0", + "version": "1.3.0-alpha.1", "private": true, "scripts": { "build": "wp-scripts build src/blocks.js src/dashboard.js --output-path=dist", diff --git a/plugin.php b/plugin.php index 466528086..676376d0e 100644 --- a/plugin.php +++ b/plugin.php @@ -5,7 +5,7 @@ * Description: A small collection of lightweight WordPress blocks that can accomplish nearly anything. * Author: Tom Usborne * Author URI: https://tomusborne.com - * Version: 1.2.0 + * Version: 1.3.0-alpha.1 * Requires at least: 5.4 * Requires PHP: 5.6 * License: GPL2+ @@ -19,7 +19,7 @@ exit; // Exit if accessed directly. } -define( 'GENERATEBLOCKS_VERSION', '1.2.0' ); +define( 'GENERATEBLOCKS_VERSION', '1.3.0-alpha.1' ); define( 'GENERATEBLOCKS_DIR', plugin_dir_path( __FILE__ ) ); define( 'GENERATEBLOCKS_DIR_URL', plugin_dir_url( __FILE__ ) ); From fbb347c26dc8eaecc1b7d911d4e7625839890ad5 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Tue, 5 Jan 2021 12:59:40 -0800 Subject: [PATCH 45/53] Don't show grid add item toolbar item if no items exist yet --- src/blocks/grid/edit.js | 50 +++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/src/blocks/grid/edit.js b/src/blocks/grid/edit.js index 2b3c7366a..6d4ea397d 100644 --- a/src/blocks/grid/edit.js +++ b/src/blocks/grid/edit.js @@ -317,30 +317,32 @@ class GenerateBlockGridContainer extends Component { return ( - - - { - wp.data.dispatch( 'core/block-editor' ).insertBlocks( - createBlock( 'generateblocks/container', { - isGrid: true, - gridId: uniqueId, - paddingTop: generateBlocksStyling.container.gridItemPaddingTop || '0', - paddingRight: generateBlocksStyling.container.gridItemPaddingRight || '0', - paddingBottom: generateBlocksStyling.container.gridItemPaddingBottom || '0', - paddingLeft: generateBlocksStyling.container.gridItemPaddingLeft || '0', - } ), - undefined, - clientId - ); - } } - showTooltip - /> - - + { ( columns > 0 || this.state.selectedLayout ) && + + + { + wp.data.dispatch( 'core/block-editor' ).insertBlocks( + createBlock( 'generateblocks/container', { + isGrid: true, + gridId: uniqueId, + paddingTop: generateBlocksStyling.container.gridItemPaddingTop || '0', + paddingRight: generateBlocksStyling.container.gridItemPaddingRight || '0', + paddingBottom: generateBlocksStyling.container.gridItemPaddingBottom || '0', + paddingLeft: generateBlocksStyling.container.gridItemPaddingLeft || '0', + } ), + undefined, + clientId + ); + } } + showTooltip + /> + + + } Date: Tue, 5 Jan 2021 12:59:46 -0800 Subject: [PATCH 46/53] Update dist --- dist/blocks.asset.php | 2 +- dist/blocks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index 26313cfe1..a48689921 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '4c49d930c7384e9fc1233eee3ee493d6'); \ No newline at end of file + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '143874a818ea0589028f1dae9d4441fd'); \ No newline at end of file diff --git a/dist/blocks.js b/dist/blocks.js index 31c10e4e5..c1bdc5076 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -1,6 +1,6 @@ !function(e){var t={};function a(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(l,i,function(t){return e[t]}.bind(null,i));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=48)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var a=0,l=new Array(t);a1?a-1:0),i=1;i/gm),z=i(/^data-[\-\w.\u00B7-\uFFFF]/),L=i(/^aria-[\-\w]+$/),P=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F=i(/^(?:\w+script|data):/i),A=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function H(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:N(),a=function(t){return e(t)};if(a.version="2.2.4",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var i=t.document,r=t.document,n=t.DocumentFragment,o=t.HTMLTemplateElement,c=t.Node,s=t.NodeFilter,v=t.NamedNodeMap,G=void 0===v?t.NamedNodeMap||t.MozNamedAttrMap:v,V=t.Text,q=t.Comment,W=t.DOMParser,Z=t.trustedTypes;if("function"==typeof o){var K=r.createElement("template");K.content&&K.content.ownerDocument&&(r=K.content.ownerDocument)}var J=I(Z,i),Y=J&&Be?J.createHTML(""):"",Q=r,X=Q.implementation,$=Q.createNodeIterator,ee=Q.getElementsByTagName,te=Q.createDocumentFragment,ae=i.importNode,le={};try{le=O(r).documentMode?r.documentMode:{}}catch(e){}var ie={};a.isSupported=X&&void 0!==X.createHTMLDocument&&9!==le;var re=x,ne=M,oe=z,ce=L,se=F,ge=A,be=P,ue=null,de=w({},[].concat(H(j),H(T),H(C),H(_),H(S))),pe=null,fe=w({},[].concat(H(B),H(D),H(E),H(R))),he=null,me=null,ke=!0,ye=!0,ve=!1,we=!1,Oe=!1,je=!1,Te=!1,Ce=!1,_e=!1,Se=!0,Be=!1,De=!0,Ee=!0,Re=!1,xe={},Me=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),ze=null,Le=w({},["audio","video","img","source","image","track"]),Pe=null,Fe=w({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ae=null,Ue=r.createElement("form"),He=function(e){Ae&&Ae===e||(e&&"object"===(void 0===e?"undefined":U(e))||(e={}),e=O(e),ue="ALLOWED_TAGS"in e?w({},e.ALLOWED_TAGS):de,pe="ALLOWED_ATTR"in e?w({},e.ALLOWED_ATTR):fe,Pe="ADD_URI_SAFE_ATTR"in e?w(O(Fe),e.ADD_URI_SAFE_ATTR):Fe,ze="ADD_DATA_URI_TAGS"in e?w(O(Le),e.ADD_DATA_URI_TAGS):Le,he="FORBID_TAGS"in e?w({},e.FORBID_TAGS):{},me="FORBID_ATTR"in e?w({},e.FORBID_ATTR):{},xe="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ye=!1!==e.ALLOW_DATA_ATTR,ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,we=e.SAFE_FOR_TEMPLATES||!1,Oe=e.WHOLE_DOCUMENT||!1,Ce=e.RETURN_DOM||!1,_e=e.RETURN_DOM_FRAGMENT||!1,Se=!1!==e.RETURN_DOM_IMPORT,Be=e.RETURN_TRUSTED_TYPE||!1,Te=e.FORCE_BODY||!1,De=!1!==e.SANITIZE_DOM,Ee=!1!==e.KEEP_CONTENT,Re=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||be,we&&(ye=!1),_e&&(Ce=!0),xe&&(ue=w({},[].concat(H(S))),pe=[],!0===xe.html&&(w(ue,j),w(pe,B)),!0===xe.svg&&(w(ue,T),w(pe,D),w(pe,R)),!0===xe.svgFilters&&(w(ue,C),w(pe,D),w(pe,R)),!0===xe.mathMl&&(w(ue,_),w(pe,E),w(pe,R))),e.ADD_TAGS&&(ue===de&&(ue=O(ue)),w(ue,e.ADD_TAGS)),e.ADD_ATTR&&(pe===fe&&(pe=O(pe)),w(pe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&w(Pe,e.ADD_URI_SAFE_ATTR),Ee&&(ue["#text"]=!0),Oe&&w(ue,["html","head","body"]),ue.table&&(w(ue,["tbody"]),delete he.tbody),l&&l(e),Ae=e)},Ne=function(e){u(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=Y}catch(t){e.remove()}}},Ie=function(e,t){try{u(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){u(a.removed,{attribute:null,from:t})}t.removeAttribute(e)},Ge=function(e){var t=void 0,a=void 0;if(Te)e=""+e;else{var l=p(e,/^[\r\n\t ]+/);a=l&&l[0]}var i=J?J.createHTML(e):e;try{t=(new W).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var n=(t=X.createHTMLDocument("")).body;n.parentNode.removeChild(n.parentNode.firstElementChild),n.outerHTML=i}return e&&a&&t.body.insertBefore(r.createTextNode(a),t.body.childNodes[0]||null),ee.call(t,Oe?"html":"body")[0]},Ve=function(e){return $.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,(function(){return s.FILTER_ACCEPT}),!1)},qe=function(e){return!(e instanceof V||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof G&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},We=function(e){return"object"===(void 0===c?"undefined":U(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":U(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ze=function(e,t,l){ie[e]&&g(ie[e],(function(e){e.call(a,t,l,Ae)}))},Ke=function(e){var t=void 0;if(Ze("beforeSanitizeElements",e,null),qe(e))return Ne(e),!0;if(p(e.nodeName,/[\u0080-\uFFFF]/))return Ne(e),!0;var l=d(e.nodeName);if(Ze("uponSanitizeElement",e,{tagName:l,allowedTags:ue}),!We(e.firstElementChild)&&(!We(e.content)||!We(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return Ne(e),!0;if(!ue[l]||he[l]){if(Ee&&!Me[l]&&"function"==typeof e.insertAdjacentHTML)try{var i=e.innerHTML;e.insertAdjacentHTML("AfterEnd",J?J.createHTML(i):i)}catch(e){}return Ne(e),!0}return"noscript"!==l&&"noembed"!==l||!k(/<\/no(script|embed)/i,e.innerHTML)?"math"===l&&We(e.firstElementChild)&&e.querySelectorAll(":not("+_.join("):not(")+")").length>0||"svg"===l&&e.querySelectorAll("p, br, table, form, noscript").length>0?(Ne(e),!0):(we&&3===e.nodeType&&(t=e.textContent,t=f(t,re," "),t=f(t,ne," "),e.textContent!==t&&(u(a.removed,{element:e.cloneNode()}),e.textContent=t)),Ze("afterSanitizeElements",e,null),!1):(Ne(e),!0)},Je=function(e,t,a){if(De&&("id"===t||"name"===t)&&(a in r||a in Ue))return!1;if(ye&&k(oe,t));else if(ke&&k(ce,t));else{if(!pe[t]||me[t])return!1;if(Pe[t]);else if(k(be,f(a,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==h(a,"data:")||!ze[e])if(ve&&!k(se,f(a,ge,"")));else if(a)return!1}return!0},Ye=function(e){var t=void 0,l=void 0,i=void 0,r=void 0;Ze("beforeSanitizeAttributes",e,null);var n=e.attributes;if(n){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(r=n.length;r--;){var c=t=n[r],s=c.name,g=c.namespaceURI;if(l=m(t.value),i=d(s),o.attrName=i,o.attrValue=l,o.keepAttr=!0,o.forceKeepAttr=void 0,Ze("uponSanitizeAttribute",e,o),l=o.attrValue,!o.forceKeepAttr&&(Ie(s,e),o.keepAttr))if(k(/\/>/i,l))Ie(s,e);else{we&&(l=f(l,re," "),l=f(l,ne," "));var u=e.nodeName.toLowerCase();if(Je(u,i,l))try{g?e.setAttributeNS(g,s,l):e.setAttribute(s,l),b(a.removed)}catch(e){}}}Ze("afterSanitizeAttributes",e,null)}},Qe=function e(t){var a=void 0,l=Ve(t);for(Ze("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)Ze("uponSanitizeShadowNode",a,null),Ke(a)||(a.content instanceof n&&e(a.content),Ye(a));Ze("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e,l){var r=void 0,o=void 0,s=void 0,g=void 0,b=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!We(e)){if("function"!=typeof e.toString)throw y("toString is not a function");if("string"!=typeof(e=e.toString()))throw y("dirty is not a string, aborting")}if(!a.isSupported){if("object"===U(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(We(e))return t.toStaticHTML(e.outerHTML)}return e}if(je||He(l),a.removed=[],"string"==typeof e&&(Re=!1),Re);else if(e instanceof c)1===(o=(r=Ge("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Ce&&!we&&!Oe&&-1===e.indexOf("<"))return J&&Be?J.createHTML(e):e;if(!(r=Ge(e)))return Ce?null:Y}r&&Te&&Ne(r.firstChild);for(var u=Ve(Re?e:r);s=u.nextNode();)3===s.nodeType&&s===g||Ke(s)||(s.content instanceof n&&Qe(s.content),Ye(s),g=s);if(g=null,Re)return e;if(Ce){if(_e)for(b=te.call(r.ownerDocument);r.firstChild;)b.appendChild(r.firstChild);else b=r;return Se&&(b=ae.call(i,b,!0)),b}var d=Oe?r.outerHTML:r.innerHTML;return we&&(d=f(d,re," "),d=f(d,ne," ")),J&&Be?J.createHTML(d):d},a.setConfig=function(e){He(e),je=!0},a.clearConfig=function(){Ae=null,je=!1},a.isValidAttribute=function(e,t,a){Ae||He({});var l=d(e),i=d(t);return Je(l,i,a)},a.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],u(ie[e],t))},a.removeHook=function(e){ie[e]&&b(ie[e])},a.removeHooks=function(e){ie[e]&&(ie[e]=[])},a.removeAllHooks=function(){ie={}},a}()}()},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var a=[],l=!0,i=!1,r=void 0;try{for(var n,o=e[Symbol.iterator]();!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){var l=a(24);e.exports=function(e){if(Array.isArray(e))return l(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,function(e,t,a){"use strict";a.r(t);var l=a(0),i=(a(26),a(6)),r=a.n(i),n=a(5),o=a.n(n),c=a(7),s=a.n(c),g=a(8),b=a.n(g),u=a(13),d=a.n(u),p=a(9),f=a.n(p),h=a(10),m=a.n(h),k=a(4),y=a.n(k),v=a(12),w=a.n(v),O=wp.element.createElement;function j(e){return"tabs-desktop"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},O("path",{d:"M18.95 4H4.55C3.55589 4 2.75 4.76751 2.75 5.71429V14.2857C2.75 15.2325 3.55589 16 4.55 16H18.95C19.9441 16 20.75 15.2325 20.75 14.2857V5.71429C20.75 4.76751 19.9441 4 18.95 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),O("path",{d:"M1.75 18C1.19772 18 0.75 18.4477 0.75 19C0.75 19.5523 1.19772 20 1.75 20H21.75C22.3023 20 22.75 19.5523 22.75 19C22.75 18.4477 22.3023 18 21.75 18H1.75ZM9 18.8C8.86193 18.8 8.75 18.9119 8.75 19.05C8.75 19.1881 8.86193 19.3 9 19.3H14.5C14.6381 19.3 14.75 19.1881 14.75 19.05C14.75 18.9119 14.6381 18.8 14.5 18.8H9Z",stroke:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):"tabs-tablet"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24"},O("path",{d:"M16.6429 4H7.35714C6.33147 4 5.5 4.71634 5.5 5.6V18.4C5.5 19.2837 6.33147 20 7.35714 20H16.6429C17.6685 20 18.5 19.2837 18.5 18.4V5.6C18.5 4.71634 17.6685 4 16.6429 4Z"}),O("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24"},O("path",{d:"M15.5714 4H8.42857C7.63959 4 7 4.71634 7 5.6V18.4C7 19.2837 7.63959 20 8.42857 20H15.5714C16.3604 20 17 19.2837 17 18.4V5.6C17 4.71634 16.3604 4 15.5714 4Z"}),O("path",{d:"M12 17.5H12.01"})):"sync"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24"},O("path",{d:"m7.34133533 6.23855964v-1.98499625c-2.17404351.03150788-4.03300825 1.38634659-4.85221305 3.27681921-.31507877.72468117-.44111028 1.51237809-.4096024 2.33158289.06301575 1.13428361.47261815 2.20555141 1.16579145 3.05626411.37809452.4411102.28357089 1.1027757-.18904726 1.4493623-.44111028.3150788-1.07126782.2205551-1.41785447-.1890473-.85071268-1.0397599-1.38634658-2.3315829-1.54388597-3.7179294-.12603151-1.00825211-.03150788-2.01650417.25206302-2.9302326.88222055-3.02475619 3.6864216-5.26181546 6.99474868-5.29332334v-1.98499624c0-.09452363.12603151-.15753939.22055514-.09452363l4.09602403 2.99324831c.0630157.06301575.0630157.15753938 0 .18904726l-4.09602403 2.99324831c-.09452363.06301575-.22055514 0-.22055514-.09452363zm.22055514 13.17029256c.09452363.0630158.22055514 0 .22055514-.0945236v-1.9849963c3.30832709-.0315078 6.11252809-2.2685671 6.99474869-5.2933233.252063-.9137284.3780945-1.8904726.252063-2.93023256-.1575394-1.38634658-.7246812-2.67816954-1.543886-3.71792948-.3465866-.44111028-.9767441-.53563391-1.4178544-.18904726-.4726182.34658665-.5671418 1.00825206-.1890473 1.44936234.6931733.85071268 1.1027757 1.89047262 1.1657915 3.05626407.0315078.81920479-.1260315 1.63840959-.4096024 2.33158289-.787697 1.8904726-2.6466617 3.2453113-4.85221309 3.2768192v-1.9849962c0-.0945237-.12603151-.1575394-.22055514-.0945237l-4.096024 2.9932483c-.06301576.0630158-.06301576.1575394 0 .1890473z",transform:"translate(4 2)"})):"headline"===e?O("svg",{width:24,height:24,viewBox:"0 0 20 20",style:{padding:"1px"}},O("path",{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4",fill:"#1e72bd"})):"grid"===e?O("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},O("path",{d:"M20 .6c0-.3-.2-.6-.5-.6H.5C.2 0 0 .3 0 .6v4.6c0 .3.2.6.5.6h19c.3 0 .5-.3.5-.6V.6zM6.7 7.7c0-.3-.2-.6-.5-.6H.5c-.3 0-.5.3-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.3.5-.6l.1-4.6zM19.9 7.7c0-.3-.2-.6-.6-.6H8.6c-.4 0-.6.3-.6.6v4.5c0 .3.2.6.6.6h10.8c.3 0 .6-.3.6-.6l-.1-4.5z",fill:"#1d72ba"}),O("path",{d:"M20 14.8c0-.3-.2-.6-.5-.6h-5.6c-.3 0-.5.2-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.2.5-.6v-4.6zM12 14.8c0-.3-.2-.5-.5-.5H.5c-.3 0-.5.2-.5.5v4.6c0 .4.2.6.5.6h11c.3 0 .5-.2.5-.5v-4.7z",fill:"#1d72ba"})):"container"===e?O("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},O("path",{d:"M2.8 3.4c0-.4.3-.7.7-.7h1.2V0H3.4C1.5 0 0 1.5 0 3.4v1.2h2.8V3.4zM0 7.4h2.8v5.3H0zM17.2 7.4H20v5.3h-2.8zM17.2 16.6c0 .4-.3.7-.7.7h-1.2V20h1.2c1.9 0 3.4-1.5 3.4-3.4v-1.2h-2.8v1.2h.1zM7.4 0h5.3v2.8H7.4zM3.4 17.2c-.4 0-.7-.3-.7-.7v-1.2H0v1.2c0 2 1.5 3.5 3.4 3.5h1.2v-2.8H3.4zM7.4 17.2h5.3V20H7.4zM16.6 2.8c.4 0 .7.3.7.7v1.2H20V3.4C20 1.5 18.5 0 16.6 0h-1.2v2.8h1.2z",fill:"#1e72bd"})):"button"===e?O("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},O("path",{d:"M19.2 0H.8C.4 0 0 .4 0 .8v6.4c0 .4.4.8.8.8h18.4c.4 0 .8-.4.8-.8V.8c0-.4-.4-.8-.8-.8zM18.4 12H1.6c-.9 0-1.6.7-1.6 1.6v4.8c0 .9.7 1.6 1.6 1.6h16.8c.9 0 1.6-.7 1.6-1.6v-4.8c0-.9-.7-1.6-1.6-1.6zm.4 6.4c0 .2-.2.4-.4.4H1.6c-.2 0-.4-.2-.4-.4v-4.8c0-.2.2-.4.4-.4h16.8c.2 0 .4.2.4.4v4.8z",fill:"#1e72bd"})):"paragraph"===e?O("svg",{width:20,height:20,viewBox:"0 0 20 20"},O("path",{d:"M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71A.984.984 0 0 0 15 2z"})):"spacing"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),O("path",{d:"M40.452,77.705c7.802,1.393 23.794,1.393 31.596,0l13.635,13.635c-12.215,3.213 -46.652,3.213 -58.866,0l13.635,-13.635Zm50.888,-50.888c3.213,12.215 3.213,46.653 0,58.866l-13.635,-13.635c1.393,-7.801 1.393,-23.794 0,-31.596l13.635,-13.635Zm-70.18,0l13.635,13.635c-1.393,7.802 -1.393,23.794 0,31.596l-13.635,13.635c-3.213,-12.213 -3.213,-46.651 0,-58.866Zm5.657,-5.657c12.214,-3.213 46.652,-3.213 58.866,0l-13.635,13.635c-7.801,-1.393 -23.795,-1.393 -31.596,0l-13.635,-13.635Z"})):"advanced"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,37.215c6.632,2.124 6.632,23.512 0,25.636c-6.632,2.124 -73.42,2.124 -80.052,0c-6.632,-2.124 -6.632,-23.512 0,-25.636c6.632,-2.124 73.42,-2.124 80.052,0Z"}),O("path",{d:"M48.61,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"}),O("path",{d:"M90.955,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"})):"backgrounds"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M1.491,87.777l37.79,-37.79l31.352,31.352c2.412,2.171 5.656,0 5.656,0l17.248,-17.247l13.186,13.186l4.796,4.797c-0.971,12.199 -2.726,21.685 -5.249,24.208c-8.29,8.289 -91.776,8.289 -100.066,0c-2.113,-2.113 -3.687,-9.113 -4.713,-18.506Z"}),O("path",{d:"M0.631,77.323c-1.742,-27.728 0.125,-65.658 5.573,-71.106c8.29,-8.289 91.776,-8.289 100.066,0c5.07,5.07 7.039,38.265 5.89,65.185l-15.795,-15.795c-2.412,-2.172 -5.657,0 -5.657,0l-17.247,17.246l-31.351,-31.351c-0.731,-0.658 -1.036,-1 -2.619,-1.166c-0.263,0 -0.477,-0.075 -1.245,0.131c-0.912,0.244 -1.793,1.035 -1.793,1.035l-35.822,35.821Zm76.434,-59.584c7.115,0 12.891,5.776 12.891,12.89c0,7.114 -5.776,12.89 -12.891,12.89c-7.114,0 -12.89,-5.776 -12.89,-12.89c0,-7.114 5.776,-12.89 12.89,-12.89Z"})):"colors"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradients"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M112.426,48.746c0.503,25.204 -1.545,52.939 -6.143,57.537c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.289,-8.288 91.748,-8.289 100.061,-0.004c0,0 0.005,0.004 0.005,0.004c3.691,3.692 5.739,22.295 6.143,42.529Zm-16.154,-32.526c-6.656,-6.628 -73.418,-6.627 -80.048,0.004c-6.631,6.63 -6.632,73.392 -0.004,80.048l80.052,-80.052Z"})):"icons"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),O("path",{d:"M89.605,22.895c5.527,5.526 5.527,61.184 0,66.71c-5.526,5.527 -61.184,5.527 -66.71,0c-5.527,-5.526 -5.527,-61.184 0,-66.71c5.526,-5.527 61.184,-5.527 66.71,0Zm-21.066,62.31l0,-2.731c-0.648,-0.074 -1.272,-0.199 -1.87,-0.374c-0.599,-0.174 -1.148,-0.374 -1.646,-0.598c-0.699,-0.299 -1.235,-0.755 -1.609,-1.366c-0.374,-0.611 -0.561,-1.353 -0.561,-2.226l0,-29.703l-0.561,-0.561l-18.331,0.972l0,2.731c0.748,0.075 1.577,0.25 2.488,0.524c0.91,0.274 1.589,0.561 2.038,0.86c0.599,0.399 1.098,0.929 1.497,1.59c0.399,0.661 0.598,1.428 0.598,2.301l0,21.773c0,0.923 -0.162,1.665 -0.486,2.226c-0.324,0.561 -0.885,0.991 -1.683,1.29c-0.449,0.175 -0.986,0.3 -1.609,0.374c-0.624,0.075 -1.26,0.138 -1.908,0.187l0,2.731l23.643,0Zm-12.978,-59.459c4.76,0 8.625,3.864 8.625,8.625c0,4.76 -3.865,8.625 -8.625,8.625c-4.76,0 -8.625,-3.865 -8.625,-8.625c0,-4.761 3.865,-8.625 8.625,-8.625Z"})):"typography"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-8.783,78.583l0,-2.817c-0.661,-0.026 -1.481,-0.165 -2.46,-0.417c-0.979,-0.251 -1.773,-0.562 -2.381,-0.932c-0.9,-0.609 -1.601,-1.23 -2.103,-1.865c-0.503,-0.635 -0.953,-1.468 -1.349,-2.5l-18.769,-48.569l-3.175,0c-2.672,6.878 -5.714,14.721 -9.126,23.53c-3.266,8.43 -6.265,16.06 -8.998,22.891l-11.672,-28.684l-2.304,0c-1.939,4.742 -4.148,10.149 -6.625,16.222c-2.477,6.072 -4.743,11.543 -6.798,16.412c-0.403,0.949 -0.816,1.692 -1.238,2.23c-0.423,0.538 -1.018,1.053 -1.786,1.545c-0.48,0.292 -1.095,0.524 -1.844,0.698c-0.749,0.173 -1.373,0.278 -1.872,0.314l0,1.942l15.382,0l0,-1.942c-1.518,-0.073 -2.881,-0.31 -4.091,-0.711c-1.209,-0.401 -1.814,-0.966 -1.814,-1.696c0,-0.31 0.048,-0.711 0.144,-1.204c0.096,-0.492 0.268,-1.13 0.518,-1.914c0.269,-0.803 0.571,-1.678 0.907,-2.626c0.336,-0.948 0.773,-2.061 1.311,-3.338l14.316,0l3.399,8.699c0.012,0.03 0.024,0.06 0.036,0.092c-0.161,0.119 -0.329,0.237 -0.503,0.355c-0.661,0.423 -1.508,0.76 -2.539,1.012c-1.032,0.251 -1.892,0.403 -2.58,0.456l0,2.817l21.19,0l0,-2.817c-2.09,-0.106 -3.968,-0.45 -5.635,-1.032c-1.666,-0.582 -2.499,-1.402 -2.499,-2.46c0,-0.45 0.066,-1.032 0.198,-1.746c0.132,-0.714 0.37,-1.64 0.714,-2.777c0.371,-1.164 0.787,-2.434 1.25,-3.81c0.463,-1.375 1.065,-2.989 1.806,-4.841l19.721,0l4.682,12.619c0.106,0.264 0.186,0.568 0.238,0.912c0.053,0.344 0.08,0.635 0.08,0.873c0,0.582 -0.681,1.072 -2.044,1.468c-1.362,0.397 -3.075,0.662 -5.138,0.794l0,2.817l23.451,0Zm-56.864,-15.865l-6.193,-15.045l-6.078,15.045l12.271,0Zm34.167,-7.15l-8.532,-21.824l-8.373,21.824l16.905,0Z"})):"addContainer"===e?O("svg",{width:20,height:20,viewBox:"0 0 64 64",fillRule:"evenodd"},O("path",{d:"M41.454,57.126l0,6.409c-6.088,0.286 -12.82,0.286 -18.908,0l0,-6.409c5.957,0.366 12.951,0.366 18.908,0Zm-33.93,-8.899c0.458,3.226 1.086,5.568 1.883,6.366c0.798,0.797 3.14,1.425 6.366,1.883l0,6.592c-6.084,-0.578 -10.706,-1.519 -12.015,-2.826c-1.307,-1.309 -2.248,-5.931 -2.826,-12.015l6.592,0Zm55.544,0c-0.578,6.084 -1.519,10.706 -2.826,12.015c-1.309,1.307 -5.931,2.248 -12.015,2.826l0,-6.592c3.226,-0.458 5.568,-1.086 6.366,-1.883c0.797,-0.798 1.425,-3.14 1.883,-6.366l6.592,0Zm0.467,-25.681c0.286,6.088 0.286,12.82 0,18.908l-6.409,0c0.366,-5.957 0.366,-12.951 0,-18.908l6.409,0Zm-56.661,0c-0.366,5.957 -0.366,12.951 0,18.908l-6.409,0c-0.286,-6.088 -0.286,-12.82 0,-18.908l6.409,0Zm41.353,-21.614c6.084,0.578 10.706,1.519 12.015,2.826c1.307,1.309 2.248,5.931 2.826,12.015l-6.592,0c-0.458,-3.226 -1.086,-5.568 -1.883,-6.366c-0.798,-0.797 -3.14,-1.425 -6.366,-1.883l0,-6.592Zm-32.454,0l0,6.592c-3.226,0.458 -5.568,1.086 -6.366,1.883c-0.797,0.798 -1.425,3.14 -1.883,6.366l-6.592,0c0.578,-6.084 1.519,-10.706 2.826,-12.015c1.309,-1.307 5.931,-2.248 12.015,-2.826Zm6.773,-0.467c6.088,-0.286 12.82,-0.286 18.908,0l0,6.409c-5.957,-0.366 -12.951,-0.366 -18.908,0l0,-6.409Z"}),O("path",{d:"M18.03,29.037l11.007,0l0,-11.007l6.773,0l0,11.007l11.007,0l0,6.773l-11.007,0l0,11.007l-6.773,0l0,-11.007l-11.007,0l0,-6.773Z"})):"gradient"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},O("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"documentation"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.755 6.245c8.327 8.326 8.327 92.184 0 100.51-8.326 8.327-92.184 8.327-100.51 0-8.327-8.326-8.327-92.184 0-100.51 8.326-8.327 92.184-8.327 100.51 0zm-92.661 93.896C9.279 84 9.781 23.714 15.834 17.661c2.491-2.491 19.588-4.132 26.354-4.712 4.748-.408 10.115.671 14.243 1.23 4.128-.559 9.495-1.638 14.243-1.23 6.766.58 23.863 2.221 26.354 4.712 6.053 6.053 6.791 66.339 1.976 82.48-4.729-1.977-19.708-3.436-26.784-3.853-5.234-.308-11.129.739-15.671 1.354-4.543-.615-10.437-1.662-15.672-1.354-7.075.417-22.054 1.876-26.783 3.853z"}),O("path",{d:"M50.188 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM50.277 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 73.799c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0z"}),O("path",{d:"M89.909 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM89.998 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM89.998 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0z"})):"layout"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.719 6.238c8.362 8.362 8.362 92.208 0 100.57-8.362 8.287-92.208 8.287-100.495 0-8.362-8.362-8.362-92.208 0-100.57 8.287-8.286 92.133-8.286 100.495 0zm-9.417 9.417c6.78 6.78 6.78 74.957 0 81.737-6.78 6.78-74.956 6.78-81.661 0-6.78-6.78-6.78-74.957 0-81.737 6.705-6.78 74.881-6.78 81.661 0z"}),O("path",{d:"M93.988 48.877c.602 17.477-.754 37.893-3.993 41.132-3.164 3.164-22.75 4.52-40.002 4.068v-45.2h43.995zm-75.108 0h23.58v44.899c-9.718-.603-17.553-1.808-19.512-3.767-3.24-3.24-4.595-23.655-4.068-41.132zm.377-7.533c.678-9.19 1.883-16.498 3.691-18.306 5.575-5.575 61.472-5.575 67.047 0 1.808 1.808 3.013 9.115 3.691 18.306h-74.43z"})):"shapes"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.756,6.244C115.081,14.571 115.081,98.429 106.756,106.756C98.429,115.081 14.571,115.081 6.244,106.756C-2.081,98.429 -2.081,14.571 6.244,6.244C14.571,-2.081 98.429,-2.081 106.756,6.244ZM67.875,88.052C67.875,86.977 67.003,86.105 65.928,86.105L47.072,86.105C45.997,86.105 45.125,86.977 45.125,88.052L45.125,91.948C45.125,93.023 45.997,93.896 47.072,93.896L65.928,93.896C67.003,93.896 67.875,93.023 67.875,91.948L67.875,88.052ZM57.899,31.409L59.305,31.409C60.853,31.409 62.11,30.152 62.11,28.604L62.11,28.089L73.263,57.543C73.757,58.333 73.731,59.161 73.731,59.403C73.729,62.659 65.231,69.414 65.375,83.611L47.625,83.611C47.769,69.414 39.271,62.659 39.269,59.403C39.269,59.161 39.243,58.333 39.737,57.543L50.89,28.089L50.89,28.604C50.89,30.152 52.147,31.409 53.695,31.409L55.101,31.409C55.111,35.738 55.142,50.367 55.098,54.109C55.093,54.494 54.907,54.988 54.68,55.45C52.915,56.169 51.669,57.903 51.669,59.925C51.669,62.592 53.834,64.756 56.5,64.756C59.166,64.756 61.331,62.592 61.331,59.925C61.331,57.903 60.085,56.169 58.32,55.45C58.093,54.988 57.907,54.494 57.902,54.109C57.858,50.367 57.889,35.738 57.899,31.409ZM52.227,19.451L52.227,18.881C52.227,17.702 53.185,16.745 54.364,16.745L58.636,16.745C59.815,16.745 60.773,17.702 60.773,18.881L60.773,19.451L88.831,19.451C89.457,17.867 91.002,16.745 92.807,16.745C95.165,16.745 97.08,18.66 97.08,21.018C97.08,23.376 95.165,25.29 92.807,25.29C91.03,25.29 89.505,24.203 88.861,22.658L71.798,22.658C83.83,28.003 92.531,39.501 93.898,53.148L94.93,53.148C96.109,53.148 97.067,54.105 97.067,55.284L97.067,59.557C97.067,60.736 96.109,61.693 94.93,61.693L90.657,61.693C89.478,61.693 88.521,60.736 88.521,59.557L88.521,55.284C88.521,54.105 89.478,53.148 90.657,53.148L90.922,53.148C89.19,37.24 76.627,24.564 60.773,22.659L60.773,23.154C60.773,24.333 59.815,25.29 58.636,25.29L54.364,25.29C53.185,25.29 52.227,24.333 52.227,23.154L52.227,22.688C36.484,24.689 24.036,37.318 22.312,53.148L22.329,53.148C23.508,53.148 24.466,54.105 24.466,55.284L24.466,59.557C24.466,60.736 23.508,61.693 22.329,61.693L18.056,61.693C16.877,61.693 15.92,60.736 15.92,59.557L15.92,55.284C15.92,54.105 16.877,53.148 18.056,53.148L19.336,53.148C20.703,39.501 29.405,28.003 41.437,22.658L24.139,22.658C23.495,24.203 21.97,25.29 20.193,25.29C17.835,25.29 15.92,23.376 15.92,21.018C15.92,18.66 17.835,16.745 20.193,16.745C21.998,16.745 23.543,17.867 24.169,19.451L52.227,19.451Z"})):void 0}a(27);var T=a(1),C=a(2),_=a(3);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var B=function(e){f()(a,e);var t=S(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.onClick,a=e.selectedDevice;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"gb-responsive-tabs"},Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Show options for all devices","generateblocks")},Object(l.createElement)(C.Button,{isPressed:"Desktop"===a,onClick:function(){t("Desktop")}},Object(T.__)("Desktop","generateblocks"))),Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Show options for tablet devices","generateblocks")},Object(l.createElement)(C.Button,{isPressed:"Tablet"===a,onClick:function(){t("Tablet")}},Object(T.__)("Tablet","generateblocks"))),Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Show options for mobile devices","generateblocks")},Object(l.createElement)(C.Button,{isPressed:"Mobile"===a,onClick:function(){t("Mobile")}},Object(T.__)("Mobile","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","afterResponsiveTabs",this.props,this.state))}}]),a}(l.Component);a(28);function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var E=function(e){f()(a,e);var t=D(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.label,a=e.value,i=e.onClick,r=e.units;return Object(l.createElement)("div",{className:"components-gblocks-units-control-header__units"},Object(l.createElement)("div",{className:"components-gblocks-units-control-label__units"},t),Object(l.createElement)("div",{className:"components-gblocks-control__units"},Object(l.createElement)(C.ButtonGroup,{className:"components-gblocks-control-buttons__units","aria-label":Object(T.__)("Select Units","generateblocks")},r.map((function(e){var t=e;return"px"===e&&(t=Object(T._x)("Pixel","A size unit for CSS markup","generateblocks")),"em"===e&&(t=Object(T._x)("Em","A size unit for CSS markup","generateblocks")),"%"===e&&(t=Object(T._x)("Percentage","A size unit for CSS markup","generateblocks")),"deg"===e&&(t=Object(T._x)("Degree","A size unit for CSS markup","generateblocks")),Object(l.createElement)(C.Tooltip /* translators: Unit type (px, em, %) */,{text:Object(T.sprintf)(Object(T.__)("%s Units","generateblocks"),t),key:e},Object(l.createElement)(C.Button,{key:e,className:"components-gblocks-control-button__units--"+e,isSmall:!0,isPrimary:a===e,"aria-pressed":a===e -/* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Units","generateblocks"),t),onClick:function(){return i(e)}},e))})))))}}]),a}(l.Component),R=a(19),x=a.n(R);function M(e){for(var t="",a=0,l=Object.entries(e);a0&&(t+=o)}}return t}function z(e,t){return!(!e&&0!==e)&&e+t}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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var P=function(e){f()(a,e);var t=L(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGap,i=e.verticalGap,r=e.verticalAlignment,n=e.horizontalAlignment,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":r,"justify-content":n,"margin-left":"-"+a/2+"px","margin-right":"-"+a/2+"px"}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a/2+"px","padding-right":a/2+"px","margin-bottom":z(i,"px")}],o=Object(_.applyFilters)("generateblocks.editor.mainCSS",o,this.props,"grid"),Object(l.createElement)("style",null,M(o))}}]),a}(l.Component);function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var A=function(e){f()(a,e);var t=F(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"grid"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var H=function(e){f()(a,e);var t=U(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapTablet,i=e.verticalGapTablet,r=e.verticalAlignmentTablet,n=e.horizontalAlignmentTablet,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?z(i,"px"):null}],o=Object(_.applyFilters)("generateblocks.editor.tabletCSS",o,this.props,"grid"),Object(l.createElement)("style",null,M(o))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var I=function(e){f()(a,e);var t=N(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"grid"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var V=function(e){f()(a,e);var t=G(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapMobile,i=e.verticalGapMobile,r=e.verticalAlignmentMobile,n=e.horizontalAlignmentMobile,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?z(i,"px"):null}],o=Object(_.applyFilters)("generateblocks.editor.mobileCSS",o,this.props,"grid"),Object(l.createElement)("style",null,M(o))}}]),a}(l.Component),q=a(18),W=a.n(q);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var K=function(e){f()(a,e);var t=Z(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.children;return Object(_.applyFilters)(t,a||"",this.props)}}]),a}(l.Component);function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Y=function(e){f()(a,e);var t=J(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=void 0!==t&&t,i=e.initialOpen,r=void 0!==i&&i,n=e.icon,o=e.className,c=e.id,s=e.state,g=e.showPanel,b=void 0===g||g,u=e.children;if(!Object(_.applyFilters)("generateblocks.editor.showPanel",b,c,this.props))return null;var d=!0;return""===u&&(d=!1),"object"===W()(u)&&(d=Object.values(u).some((function(e){return null!==e&&!1!==e&&""!==e}))),d?Object(l.createElement)(K,{name:"generateblocks.panel."+c,props:this.props,state:s},a?Object(l.createElement)(C.PanelBody,{title:a,initialOpen:r,icon:n,className:o},Object(_.applyFilters)("generateblocks.editor.panelContents",u,c,this.props)):Object(l.createElement)(C.PanelBody,null,Object(_.applyFilters)("generateblocks.editor.panelContents",u,c,this.props))):null}}]),a}(l.Component),Q=a(11),X=a(14),$=a(15),ee=a(17);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ae=/[\s#]/g,le=[],ie=function(e){f()(a,e);var t=te(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedLayout:!1,selectedDevice:"Desktop"},e.onLayoutSelect=e.onLayoutSelect.bind(d()(e)),e.getColumnsFromLayout=e.getColumnsFromLayout.bind(d()(e)),e.getLayoutsSelector=e.getLayoutsSelector.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?le.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),le.push(e)):le.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),le.push(e)),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId;t.columns;if(this.state.selectedLayout){var i=this.getColumnsFromLayout(this.state.selectedLayout);i.forEach((function(e){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/container",e),void 0,l,!1)})),a({columns:i.length}),this.setState({selectedLayout:!1})}else{var r=wp.data.select("core/block-editor").getBlocksByClientId(l)[0];if(r)a({columns:r.innerBlocks.length})}}},{key:"getColumnsFromLayout",value:function(e){var t=this,a=[],l=e.split("-"),i=0;return l.forEach((function(){var e={isGrid:!0,gridId:t.props.attributes.uniqueId,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"};e.width=Number(l[i]),i++,a.push(e)})),a}},{key:"getLayoutsSelector",value:function(){var e=this;return Object(l.createElement)(C.Placeholder,{label:Object(T.__)("Grid","generateblocks"),instructions:Object(T.__)("Select one layout to get started.","generateblocks"),className:"gb-select-layout"},Object(l.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16.66-16.66-16.66-16.66-16.66-16.66"].map((function(t){var a=e.getColumnsFromLayout(t);return Object(l.createElement)("button",{key:"layout-".concat(t),className:"gb-grid-wrapper-layout-preview-btn",onClick:function(){return e.onLayoutSelect(t)}},a.map((function(e,a){return Object(l.createElement)("div",{key:"layout-".concat(t,"-col-").concat(a),className:w()("gb-col","gb-col-".concat(e.width))})})))}))))}},{key:"onLayoutSelect",value:function(e){this.setState({selectedLayout:e})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.columns,d=i.horizontalGap,p=i.verticalGap,f=i.verticalAlignment,h=i.horizontalGapTablet,m=i.verticalGapTablet,k=i.verticalAlignmentTablet,y=i.horizontalGapMobile,v=i.verticalGapMobile,O=i.verticalAlignmentMobile,S=i.horizontalAlignment,D=i.horizontalAlignmentTablet,R=i.horizontalAlignmentMobile,x=d||0===d?d:"",M=p||0===p?p:"",z=d||0===d?d:"",L=p||0===p?p:"";h&&(z=h),m&&(L=m);var F={className:w()((e={"gb-grid-wrapper":!0},o()(e,"gb-grid-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return F=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",F,"generateblocks/grid",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:j("addContainer"),label:Object(T.__)("Add Grid Item","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/container",{isGrid:!0,gridId:s,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"}),void 0,c)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{id:"gridLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:d||0===d?d:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGap:e})},onBlur:function(){!d&&generateBlocksDefaults.gridContainer.horizontalGap?n({horizontalGap:0}):n({horizontalGap:parseFloat(d)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGap:generateBlocksDefaults.gridContainer.horizontalGap})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(E,{label:Object(T.__)("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:p||0===p?p:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGap:e})},onBlur:function(){!p&&generateBlocksDefaults.gridContainer.verticalGap?n({verticalGap:0}):n({verticalGap:parseFloat(p)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGap:generateBlocksDefaults.gridContainer.verticalGap})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),value:f,help:Object(T.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Horizontal Alignment","generateblocks"),value:S,options:[{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Left","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignment:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:h||0===h?h:"",min:"0",placeholder:x,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapTablet:e})},onBlur:function(){!h&&generateBlocksDefaults.gridContainer.horizontalGapTablet?n({horizontalGapTablet:0}):n({horizontalGapTablet:parseFloat(h)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapTablet:generateBlocksDefaults.gridContainer.horizontalGapTablet})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(E,{label:Object(T.__)("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:m||0===m?m:"",min:"0",placeholder:M,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapTablet:e})},onBlur:function(){!m&&generateBlocksDefaults.gridContainer.verticalGapTablet?n({verticalGapTablet:0}):n({verticalGapTablet:parseFloat(m)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapTablet:generateBlocksDefaults.gridContainer.verticalGapTablet})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),help:Object(T.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:k,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Horizontal Alignment","generateblocks"),value:D,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Left","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:y||0===y?y:"",min:"0",placeholder:z,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapMobile:e})},onBlur:function(){!y&&generateBlocksDefaults.gridContainer.horizontalGapMobile?n({horizontalGapMobile:0}):n({horizontalGapMobile:parseFloat(y)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapMobile:generateBlocksDefaults.gridContainer.horizontalGapMobile})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(E,{label:Object(T.__)("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:v||0===v?v:"",min:"0",placeholder:L,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapMobile:e})},onBlur:function(){!v&&generateBlocksDefaults.gridContainer.verticalGapMobile?n({verticalGapMobile:0}):n({verticalGapMobile:parseFloat(v)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapMobile:generateBlocksDefaults.gridContainer.verticalGapMobile})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),help:Object(T.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:O,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Horizontal Alignment","generateblocks"),value:R,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Left","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","gridLayout",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"gridDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/grid/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","gridDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(ae,"-"),n({anchor:e})}})),Object(l.createElement)(P,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(A,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(H,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(I,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(V,this.props)),Object(l.createElement)("div",F,u>0||this.state.selectedLayout?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/container"],renderAppender:!1})):this.getLayoutsSelector()))}}]),a}(l.Component),re=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(ie),ne={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function oe(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function ce(e){for(var t=1;t0&&(t+=o)}}return t}function z(e,t){return!(!e&&0!==e)&&e+t}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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var P=function(e){f()(a,e);var t=L(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGap,i=e.verticalGap,r=e.verticalAlignment,n=e.horizontalAlignment,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":r,"justify-content":n,"margin-left":"-"+a/2+"px","margin-right":"-"+a/2+"px"}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a/2+"px","padding-right":a/2+"px","margin-bottom":z(i,"px")}],o=Object(_.applyFilters)("generateblocks.editor.mainCSS",o,this.props,"grid"),Object(l.createElement)("style",null,M(o))}}]),a}(l.Component);function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var A=function(e){f()(a,e);var t=F(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"grid"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var H=function(e){f()(a,e);var t=U(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapTablet,i=e.verticalGapTablet,r=e.verticalAlignmentTablet,n=e.horizontalAlignmentTablet,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?z(i,"px"):null}],o=Object(_.applyFilters)("generateblocks.editor.tabletCSS",o,this.props,"grid"),Object(l.createElement)("style",null,M(o))}}]),a}(l.Component);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var I=function(e){f()(a,e);var t=N(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"grid"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var V=function(e){f()(a,e);var t=G(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapMobile,i=e.verticalGapMobile,r=e.verticalAlignmentMobile,n=e.horizontalAlignmentMobile,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?z(i,"px"):null}],o=Object(_.applyFilters)("generateblocks.editor.mobileCSS",o,this.props,"grid"),Object(l.createElement)("style",null,M(o))}}]),a}(l.Component),q=a(18),W=a.n(q);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var K=function(e){f()(a,e);var t=Z(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.children;return Object(_.applyFilters)(t,a||"",this.props)}}]),a}(l.Component);function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Y=function(e){f()(a,e);var t=J(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=void 0!==t&&t,i=e.initialOpen,r=void 0!==i&&i,n=e.icon,o=e.className,c=e.id,s=e.state,g=e.showPanel,b=void 0===g||g,u=e.children;if(!Object(_.applyFilters)("generateblocks.editor.showPanel",b,c,this.props))return null;var d=!0;return""===u&&(d=!1),"object"===W()(u)&&(d=Object.values(u).some((function(e){return null!==e&&!1!==e&&""!==e}))),d?Object(l.createElement)(K,{name:"generateblocks.panel."+c,props:this.props,state:s},a?Object(l.createElement)(C.PanelBody,{title:a,initialOpen:r,icon:n,className:o},Object(_.applyFilters)("generateblocks.editor.panelContents",u,c,this.props)):Object(l.createElement)(C.PanelBody,null,Object(_.applyFilters)("generateblocks.editor.panelContents",u,c,this.props))):null}}]),a}(l.Component),Q=a(11),X=a(14),$=a(15),ee=a(17);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 a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ae=/[\s#]/g,le=[],ie=function(e){f()(a,e);var t=te(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedLayout:!1,selectedDevice:"Desktop"},e.onLayoutSelect=e.onLayoutSelect.bind(d()(e)),e.getColumnsFromLayout=e.getColumnsFromLayout.bind(d()(e)),e.getLayoutsSelector=e.getLayoutsSelector.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?le.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),le.push(e)):le.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),le.push(e)),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId;t.columns;if(this.state.selectedLayout){var i=this.getColumnsFromLayout(this.state.selectedLayout);i.forEach((function(e){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/container",e),void 0,l,!1)})),a({columns:i.length}),this.setState({selectedLayout:!1})}else{var r=wp.data.select("core/block-editor").getBlocksByClientId(l)[0];if(r)a({columns:r.innerBlocks.length})}}},{key:"getColumnsFromLayout",value:function(e){var t=this,a=[],l=e.split("-"),i=0;return l.forEach((function(){var e={isGrid:!0,gridId:t.props.attributes.uniqueId,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"};e.width=Number(l[i]),i++,a.push(e)})),a}},{key:"getLayoutsSelector",value:function(){var e=this;return Object(l.createElement)(C.Placeholder,{label:Object(T.__)("Grid","generateblocks"),instructions:Object(T.__)("Select one layout to get started.","generateblocks"),className:"gb-select-layout"},Object(l.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16.66-16.66-16.66-16.66-16.66-16.66"].map((function(t){var a=e.getColumnsFromLayout(t);return Object(l.createElement)("button",{key:"layout-".concat(t),className:"gb-grid-wrapper-layout-preview-btn",onClick:function(){return e.onLayoutSelect(t)}},a.map((function(e,a){return Object(l.createElement)("div",{key:"layout-".concat(t,"-col-").concat(a),className:w()("gb-col","gb-col-".concat(e.width))})})))}))))}},{key:"onLayoutSelect",value:function(e){this.setState({selectedLayout:e})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.columns,d=i.horizontalGap,p=i.verticalGap,f=i.verticalAlignment,h=i.horizontalGapTablet,m=i.verticalGapTablet,k=i.verticalAlignmentTablet,y=i.horizontalGapMobile,v=i.verticalGapMobile,O=i.verticalAlignmentMobile,S=i.horizontalAlignment,D=i.horizontalAlignmentTablet,R=i.horizontalAlignmentMobile,x=d||0===d?d:"",M=p||0===p?p:"",z=d||0===d?d:"",L=p||0===p?p:"";h&&(z=h),m&&(L=m);var F={className:w()((e={"gb-grid-wrapper":!0},o()(e,"gb-grid-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return F=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",F,"generateblocks/grid",i),Object(l.createElement)(l.Fragment,null,(u>0||this.state.selectedLayout)&&Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:j("addContainer"),label:Object(T.__)("Add Grid Item","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/container",{isGrid:!0,gridId:s,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"}),void 0,c)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{id:"gridLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:d||0===d?d:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGap:e})},onBlur:function(){!d&&generateBlocksDefaults.gridContainer.horizontalGap?n({horizontalGap:0}):n({horizontalGap:parseFloat(d)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGap:generateBlocksDefaults.gridContainer.horizontalGap})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(E,{label:Object(T.__)("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:p||0===p?p:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGap:e})},onBlur:function(){!p&&generateBlocksDefaults.gridContainer.verticalGap?n({verticalGap:0}):n({verticalGap:parseFloat(p)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGap:generateBlocksDefaults.gridContainer.verticalGap})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),value:f,help:Object(T.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Horizontal Alignment","generateblocks"),value:S,options:[{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Left","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignment:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:h||0===h?h:"",min:"0",placeholder:x,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapTablet:e})},onBlur:function(){!h&&generateBlocksDefaults.gridContainer.horizontalGapTablet?n({horizontalGapTablet:0}):n({horizontalGapTablet:parseFloat(h)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapTablet:generateBlocksDefaults.gridContainer.horizontalGapTablet})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(E,{label:Object(T.__)("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:m||0===m?m:"",min:"0",placeholder:M,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapTablet:e})},onBlur:function(){!m&&generateBlocksDefaults.gridContainer.verticalGapTablet?n({verticalGapTablet:0}):n({verticalGapTablet:parseFloat(m)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapTablet:generateBlocksDefaults.gridContainer.verticalGapTablet})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),help:Object(T.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:k,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Horizontal Alignment","generateblocks"),value:D,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Left","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:y||0===y?y:"",min:"0",placeholder:z,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapMobile:e})},onBlur:function(){!y&&generateBlocksDefaults.gridContainer.horizontalGapMobile?n({horizontalGapMobile:0}):n({horizontalGapMobile:parseFloat(y)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapMobile:generateBlocksDefaults.gridContainer.horizontalGapMobile})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(E,{label:Object(T.__)("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:v||0===v?v:"",min:"0",placeholder:L,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapMobile:e})},onBlur:function(){!v&&generateBlocksDefaults.gridContainer.verticalGapMobile?n({verticalGapMobile:0}):n({verticalGapMobile:parseFloat(v)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapMobile:generateBlocksDefaults.gridContainer.verticalGapMobile})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),help:Object(T.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:O,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Horizontal Alignment","generateblocks"),value:R,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Left","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","gridLayout",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"gridDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/grid/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","gridDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(ae,"-"),n({anchor:e})}})),Object(l.createElement)(P,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(A,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(H,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(I,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(V,this.props)),Object(l.createElement)("div",F,u>0||this.state.selectedLayout?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/container"],renderAppender:!1})):this.getLayoutsSelector()))}}]),a}(l.Component),re=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(ie),ne={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function oe(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function ce(e){for(var t=1;t Date: Wed, 6 Jan 2021 10:13:48 -0800 Subject: [PATCH 47/53] Update readme.txt --- readme.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.txt b/readme.txt index d8b8b2b80..819031604 100644 --- a/readme.txt +++ b/readme.txt @@ -98,6 +98,7 @@ GenerateBlocks was built to work hand-in-hand with [GeneratePress](https://gener * Tweak: Add border-radius to pseudo background image elements * Tweak: Change Element Tag label to Tag Name * Tweak: Add placeholder to Headline block +* Tweak: Remove add grid item button from toolbar when selecting layout = 1.2.0 = * Markup change: Remove headline-wrapper element from Headlines with icons From d08f40c2d18bde2b56b9adff2b434cb440506ca5 Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Wed, 6 Jan 2021 10:21:49 -0800 Subject: [PATCH 48/53] 1.3.0-alpha.2 --- package.json | 2 +- plugin.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e3ebb21c3..e2e484a7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generateblocks", - "version": "1.3.0-alpha.1", + "version": "1.3.0-alpha.2", "private": true, "scripts": { "build": "wp-scripts build src/blocks.js src/dashboard.js --output-path=dist", diff --git a/plugin.php b/plugin.php index 676376d0e..6580404eb 100644 --- a/plugin.php +++ b/plugin.php @@ -5,7 +5,7 @@ * Description: A small collection of lightweight WordPress blocks that can accomplish nearly anything. * Author: Tom Usborne * Author URI: https://tomusborne.com - * Version: 1.3.0-alpha.1 + * Version: 1.3.0-alpha.2 * Requires at least: 5.4 * Requires PHP: 5.6 * License: GPL2+ @@ -19,7 +19,7 @@ exit; // Exit if accessed directly. } -define( 'GENERATEBLOCKS_VERSION', '1.3.0-alpha.1' ); +define( 'GENERATEBLOCKS_VERSION', '1.3.0-alpha.2' ); define( 'GENERATEBLOCKS_DIR', plugin_dir_path( __FILE__ ) ); define( 'GENERATEBLOCKS_DIR_URL', plugin_dir_url( __FILE__ ) ); From ef6ef06feedd8b7bdd93d059c27e44c88a37e54d Mon Sep 17 00:00:00 2001 From: Tom Usborne Date: Wed, 6 Jan 2021 21:24:12 -0800 Subject: [PATCH 49/53] Set shapes popover min-width --- src/blocks/container/edit.js | 1 + src/blocks/container/editor.scss | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/blocks/container/edit.js b/src/blocks/container/edit.js index 88cf4fece..c69d12053 100644 --- a/src/blocks/container/edit.js +++ b/src/blocks/container/edit.js @@ -1584,6 +1584,7 @@ class GenerateBlockContainer extends Component { (