Genesis Blocks - Version 1.5.3

Version Description

  • Fixed: Fix a block error with Desktop responsive controls on the Heading and Paragraph blocks.
Download this release

Release Info

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

Code changes from version 1.5.2 to 1.5.3

dist/blocks.build.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('moment', 'react', 'react-dom', 'wp-block-editor/build-module/hooks/utils', 'wp-element'), 'version' => '60a31cc02c0be3e0b551');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-element'), 'version' => 'bec47b16e658e04b0ba9');
dist/blocks.build.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e,t={9945:(e,t,o)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},n.apply(this,arguments)}window.wp.element;var a=o(2779),i=o.n(a);const{Component:r}=wp.element,{applyFilters:l}=wp.hooks;class s extends r{render(){if(void 0===this.props.children)return null;let e=!1;if(void 0!==this.props.children.props&&void 0!==this.props.children.props.name||(e=!0),e&&(void 0===this.props.children._owner||void 0===this.props.children._owner.memoizedProps||void 0===this.props.children._owner.memoizedProps.name))return this.props.children;const t=e?this.props.children._owner.memoizedProps.name:this.props.children.props.name;return l("gb_should_render_block_setting",!0,t,this.props.id,genesis_blocks_globals.user_data)?this.props.children:null}}const{__}=wp.i18n,{Component:c}=wp.element,{InspectorControls:p,PanelColorSettings:g}=wp.blockEditor,{PanelBody:d,RangeControl:u,SelectControl:b}=wp.components;class m extends c{render(){const e=[{value:"left-aligned",label:__("Left Aligned","genesis-blocks")},{value:"right-aligned",label:__("Right Aligned","genesis-blocks")}],{attributes:{testimonialBackgroundColor:t,testimonialTextColor:o,testimonialFontSize:n,testimonialCiteAlign:a},setAttributes:i}=this.props;return React.createElement(p,{key:"inspector"},React.createElement(d,null,React.createElement(s,{id:"gb_testimonial_testimonialFontSize"},React.createElement(u,{label:__("Font Size","genesis-blocks"),value:n,onChange:e=>this.props.setAttributes({testimonialFontSize:e}),min:14,max:24,step:1})),React.createElement(s,{id:"gb_testimonial_testimonialCiteAlign"},React.createElement(b,{label:__("Cite Alignment","genesis-blocks"),description:__("Left or right align the cite name and title.","genesis-blocks"),options:e,value:a,onChange:e=>this.props.setAttributes({testimonialCiteAlign:e})}))),React.createElement(s,{id:"gb_testimonial_testimonialBackgroundColor"},React.createElement(g,{title:__("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:t,onChange:e=>i({testimonialBackgroundColor:e}),label:__("Background Color","genesis-blocks")}]})),React.createElement(s,{id:"gb_testimonial_testimonialTextColor"},React.createElement(g,{title:__("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:e=>i({testimonialTextColor:e}),label:__("Text Color","genesis-blocks")}]})))}}const{Component:h}=wp.element;class k extends h{render(){const{attributes:{testimonialImgURL:e,testimonialBackgroundColor:t,testimonialTextColor:o,testimonialFontSize:n,testimonialCiteAlign:a}}=this.props;return React.createElement("div",{style:{backgroundColor:t||"#f2f2f2",color:o||"#32373c"},className:i()(this.props.className,a,{"gb-has-avatar":e},"gb-font-size-"+n,"gb-block-testimonial")},this.props.children)}}const f={};f.upload=React.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),React.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),React.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"}));const y=f,{__:v}=wp.i18n,{Component:C,Fragment:R}=wp.element,{RichText:E,AlignmentToolbar:w,BlockControls:x,MediaUpload:T}=wp.blockEditor,{Button:_,Dashicon:S}=wp.components,B=["image"];class z extends C{render(){const{attributes:{testimonialName:e,testimonialTitle:t,testimonialContent:o,testimonialAlignment:a,testimonialImgURL:r,testimonialImgID:l,testimonialImgAlt:s,testimonialTextColor:c},setAttributes:p}=this.props,g=()=>{p({testimonialImgURL:null,testimonialImgID:null,testimonialImgAlt:null})};return[React.createElement(x,{key:"controls"},React.createElement(w,{value:a,onChange:e=>p({testimonialAlignment:e})})),React.createElement(m,n({key:"gb-testimonial-inspector-"+this.props.clientId,setAttributes:p},this.props)),React.createElement(k,n({key:"gb-testimonial-editor-"+this.props.clientId},this.props),React.createElement(E,{tagName:"div",multiline:"p",placeholder:v("Add testimonial text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:i()("gb-testimonial-text"),style:{textAlign:a},onChange:e=>p({testimonialContent:e})}),React.createElement("div",{className:"gb-testimonial-info"},React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement(T,{buttonProps:{className:"change-image"},onSelect:e=>p({testimonialImgID:e.id,testimonialImgURL:e.sizes.thumbnail.url,testimonialImgAlt:e.alt}),allowed:B,type:"image",value:l,render:e=>{let{open:t}=e;return React.createElement(R,null,React.createElement(_,{className:l?"gb-change-image":"gb-add-image",onClick:t},l?React.createElement("img",{className:"gb-testimonial-avatar",src:r,alt:s||null}):y.upload),l&&React.createElement(_,{className:"gb-remove-image",onClick:g},React.createElement(S,{icon:"dismiss"})))}}))),React.createElement(E,{tagName:"h2",placeholder:v("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,className:"gb-testimonial-name",style:{color:c},onChange:e=>this.props.setAttributes({testimonialName:e})}),React.createElement(E,{tagName:"small",placeholder:v("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:t,className:"gb-testimonial-title",style:{color:c},onChange:e=>this.props.setAttributes({testimonialTitle:e})})))]}}const{Component:A}=wp.element,{RichText:N}=wp.blockEditor;class L extends A{render(){const{testimonialName:e,testimonialTitle:t,testimonialContent:o,testimonialAlignment:n,testimonialImgURL:a,testimonialImgAlt:i,testimonialTextColor:r}=this.props.attributes;return React.createElement(k,this.props,React.createElement(N.Content,{tagName:"div",className:"gb-testimonial-text",style:{textAlign:n},value:o}),React.createElement("div",{className:"gb-testimonial-info"},a&&React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement("img",{className:"gb-testimonial-avatar",src:a,alt:i||null}))),e&&React.createElement(N.Content,{tagName:"h2",className:"gb-testimonial-name",style:{color:r||"#32373c"},value:e}),t&&React.createElement(N.Content,{tagName:"small",className:"gb-testimonial-title",style:{color:r||"#32373c"},value:t})))}}const{__:P}=wp.i18n,{registerBlockType:I}=wp.blocks;I("genesis-blocks/gb-testimonial",{title:P("Testimonial","genesis-blocks"),description:P("Add a user testimonial with a name and title.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[P("testimonial","genesis-blocks"),P("quote","genesis-blocks"),P("atomic","genesis-blocks")],attributes:{testimonialName:{type:"array",selector:".gb-testimonial-name",source:"children"},testimonialTitle:{type:"array",selector:".gb-testimonial-title",source:"children"},testimonialContent:{type:"array",selector:".gb-testimonial-text",source:"children"},testimonialAlignment:{type:"string"},testimonialImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},testimonialImgID:{type:"number"},testimonialImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},testimonialBackgroundColor:{type:"string",default:"#f2f2f2"},testimonialTextColor:{type:"string",default:"#32373c"},testimonialFontSize:{type:"number",default:18},testimonialCiteAlign:{type:"string",default:"left-aligned"}},gb_settings_data:{gb_testimonial_testimonialFontSize:{title:P("Font Size","genesis-blocks")},gb_testimonial_testimonialCiteAlign:{title:P("Cite Alignment","genesis-blocks")},gb_testimonial_testimonialBackgroundColor:{title:P("Background Color","genesis-blocks")},gb_testimonial_testimonialTextColor:{title:P("Text Color","genesis-blocks")}},edit:e=>React.createElement(z,e),save:e=>React.createElement(L,e)});const{__:M}=wp.i18n,{Component:F}=wp.element,{InspectorControls:O,PanelColorSettings:U}=wp.blockEditor,{PanelBody:D,RangeControl:j,SelectControl:W,TextControl:V}=wp.components;class H extends F{render(){const{profileFontSize:e,profileBackgroundColor:t,profileTextColor:o,profileLinkColor:n,twitter:a,facebook:i,instagram:r,pinterest:l,google:c,youtube:p,github:g,linkedin:d,wordpress:u,email:b,website:m,profileAvatarShape:h}=this.props.attributes,{setAttributes:k}=this.props,f=[{value:"square",label:M("Square","genesis-blocks")},{value:"round",label:M("Round","genesis-blocks")}];return React.createElement(O,{key:"inspector"},React.createElement(D,null,React.createElement(s,{id:"gb_author_profile_profileFontSize"},React.createElement(j,{label:M("Font Size","genesis-blocks"),value:e,onChange:e=>this.props.setAttributes({profileFontSize:e}),min:14,max:24,step:1})),React.createElement(s,{id:"gb_author_profile_profileAvatarShape"},React.createElement(W,{label:M("Avatar Shape","genesis-blocks"),description:M("Choose between a round or square avatar shape.","genesis-blocks"),options:f,value:h,onChange:e=>this.props.setAttributes({profileAvatarShape:e})})),React.createElement(s,{id:"gb_author_profile_profileBackgroundColor"},React.createElement(U,{title:M("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:t,onChange:e=>k({profileBackgroundColor:e}),label:M("Background Color","genesis-blocks")}]})),React.createElement(s,{id:"gb_author_profile_profileTextColor"},React.createElement(U,{title:M("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:e=>k({profileTextColor:e}),label:M("Text Color","genesis-blocks")}]})),React.createElement(s,{id:"gb_author_profile_profileLinkColor"},React.createElement(U,{title:M("Social Link Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:e=>k({profileLinkColor:e}),label:M("Social Link Color","genesis-blocks")}]}))),React.createElement(s,{id:"gb_author_profile_socialLinks"},React.createElement(D,{title:M("Social Links","genesis-blocks"),initialOpen:!1},React.createElement("p",null,M("Add links to your social media site and they will appear in the bottom of the profile box.","genesis-blocks")),React.createElement(V,{label:M("Twitter URL","genesis-blocks"),type:"url",value:a,onChange:e=>this.props.setAttributes({twitter:e})}),React.createElement(V,{label:M("Facebook URL","genesis-blocks"),type:"url",value:i,onChange:e=>this.props.setAttributes({facebook:e})}),React.createElement(V,{label:M("Instagram URL","genesis-blocks"),type:"url",value:r,onChange:e=>this.props.setAttributes({instagram:e})}),React.createElement(V,{label:M("Pinterest URL","genesis-blocks"),type:"url",value:l,onChange:e=>this.props.setAttributes({pinterest:e})}),React.createElement(V,{label:M("Google URL","genesis-blocks"),type:"url",value:c,onChange:e=>this.props.setAttributes({google:e})}),React.createElement(V,{label:M("YouTube URL","genesis-blocks"),type:"url",value:p,onChange:e=>this.props.setAttributes({youtube:e})}),React.createElement(V,{label:M("Github URL","genesis-blocks"),type:"url",value:g,onChange:e=>this.props.setAttributes({github:e})}),React.createElement(V,{label:M("LinkedIn URL","genesis-blocks"),type:"url",value:d,onChange:e=>this.props.setAttributes({linkedin:e})}),React.createElement(V,{label:M("WordPress Profile URL","genesis-blocks"),type:"url",value:u,onChange:e=>this.props.setAttributes({wordpress:e})}),React.createElement(V,{label:M("Email URL","genesis-blocks"),help:M('Supports a URL or an email link. Email links must be prefixed with "mailto:". Example: mailto:test@example.com',"genesis-blocks"),type:"url",value:b,onChange:e=>this.props.setAttributes({email:e})}),React.createElement(V,{label:M("Website URL","genesis-blocks"),type:"url",value:m,onChange:e=>this.props.setAttributes({website:e})}))))}}const{Component:q}=wp.element;class G extends q{render(){const{profileAlignment:e,profileImgURL:t,profileFontSize:o,profileBackgroundColor:n,profileTextColor:a,profileAvatarShape:r}=this.props.attributes;return React.createElement("div",{style:{backgroundColor:n,color:a},className:i()(this.props.className,e,r,{"gb-has-avatar":t},"gb-font-size-"+o,"gb-block-profile","gb-profile-columns")},this.props.children)}}const{__:$}=wp.i18n,{Component:K}=wp.element;class Y extends K{render(){return React.createElement("ul",{className:"gb-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Website","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-website-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-website-"+this.props.clientId},$("Visit Website (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"})))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Twitter","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-twitter-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-twitter-"+this.props.clientId},$("Visit Twitter account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Facebook","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-facebook-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-facebook-"+this.props.clientId},$("Visit Facebook account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Instagram","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-instagram-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-instagram-"+this.props.clientId},$("Visit Instagram account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Pinterest","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-pinterest-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-pinterest-"+this.props.clientId},$("Visit Pinterest account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})))),this.props.attributes.google&&!!this.props.attributes.google.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Google","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-google-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-google-"+this.props.clientId},$("Visit Google account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("YouTube","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-youtube-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-youtube-"+this.props.clientId},$("Visit YouTube account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("LinkedIn","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-linkedin-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-linkedin-"+this.props.clientId},$("Visit LinkedIn account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})))),this.props.attributes.github&&!!this.props.attributes.github.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Github","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-github-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-github-"+this.props.clientId},$("Visit GitHub account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("WordPress","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-wordpress-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-wordpress-"+this.props.clientId},$("Visit WordPress account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M21.469 6.825c.84 1.537 1.318 3.3 1.318 5.175 0 3.979-2.156 7.456-5.363 9.325l3.295-9.527c.615-1.54.82-2.771.82-3.864 0-.405-.026-.78-.07-1.11m-7.981.105c.647-.03 1.232-.105 1.232-.105.582-.075.514-.93-.067-.899 0 0-1.755.135-2.88.135-1.064 0-2.85-.15-2.85-.15-.585-.03-.661.855-.075.885 0 0 .54.061 1.125.09l1.68 4.605-2.37 7.08L5.354 6.9c.649-.03 1.234-.1 1.234-.1.585-.075.516-.93-.065-.896 0 0-1.746.138-2.874.138-.2 0-.438-.008-.69-.015C4.911 3.15 8.235 1.215 12 1.215c2.809 0 5.365 1.072 7.286 2.833-.046-.003-.091-.009-.141-.009-1.06 0-1.812.923-1.812 1.914 0 .89.513 1.643 1.06 2.531.411.72.89 1.643.89 2.977 0 .915-.354 1.994-.821 3.479l-1.075 3.585-3.9-11.61.001.014zM12 22.784c-1.059 0-2.081-.153-3.048-.437l3.237-9.406 3.315 9.087c.024.053.05.101.078.149-1.12.393-2.325.609-3.582.609M1.211 12c0-1.564.336-3.05.935-4.39L7.29 21.709C3.694 19.96 1.212 16.271 1.211 12M12 0C5.385 0 0 5.385 0 12s5.385 12 12 12 12-5.385 12-12S18.615 0 12 0"})))),this.props.attributes.email&&!!this.props.attributes.email.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Email","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-email-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-email-"+this.props.clientId},$("Email","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})))))}}const{Component:Q}=wp.element;class X extends Q{render(){return React.createElement("div",{className:"gb-profile-column gb-profile-avatar-wrap"},React.createElement("div",{className:"gb-profile-image-wrap"},this.props.children))}}const{__:Z}=wp.i18n,{Component:J,Fragment:ee}=wp.element,{RichText:te,AlignmentToolbar:oe,BlockControls:ne,MediaUpload:ae}=wp.blockEditor,{Button:ie,Dashicon:re}=wp.components,le=["image"];class se extends J{constructor(){super(...arguments),this.props.attributes.clientId&&this.props.attributes.clientId===this.props.clientId||this.props.setAttributes({clientId:this.props.clientId})}render(){const{attributes:{profileName:e,profileTitle:t,profileContent:o,profileAlignment:a,profileImgURL:r,profileImgID:l,profileImgAlt:s,profileTextColor:c},setAttributes:p}=this.props;return[React.createElement(ne,{key:"controls"},React.createElement(oe,{value:a,onChange:e=>p({profileAlignment:e})})),React.createElement(H,n({key:"gb-author-profile-inspector-"+this.props.clientId,setAttributes:p},this.props)),React.createElement(G,n({key:"gb-author-profile-"+this.props.clientId},this.props),React.createElement(X,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement(ae,{buttonProps:{className:"change-image"},onSelect:e=>p({profileImgID:e.id,profileImgURL:e.url,profileImgAlt:e.alt}),allowed:le,type:"image",value:l,render:e=>{let{open:t}=e;return React.createElement(ee,null,React.createElement(ie,{onClick:t},l?React.createElement("img",{className:i()("gb-profile-avatar","gb-change-image","wp-image-"+l),src:r,alt:s}):y.upload),l&&React.createElement(ie,{className:"gb-remove-image",onClick:()=>{p({profileImgID:null,profileImgURL:null,profileImgAlt:null})}},React.createElement(re,{icon:"dismiss"})))}}))),React.createElement("div",{className:i()("gb-profile-column gb-profile-content-wrap")},React.createElement(te,{tagName:"h2",placeholder:Z("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,className:"gb-profile-name",style:{color:c},onChange:e=>p({profileName:e})}),React.createElement(te,{tagName:"p",placeholder:Z("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:t,className:"gb-profile-title",style:{color:c},onChange:e=>p({profileTitle:e})}),React.createElement(te,{tagName:"div",className:"gb-profile-text",multiline:"p",placeholder:Z("Add profile text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],onChange:e=>p({profileContent:e})}),React.createElement(Y,this.props)))]}}const{Component:ce}=wp.element,{RichText:pe}=wp.blockEditor;class ge extends ce{render(){const{profileName:e,profileTitle:t,profileContent:o,profileImgURL:n,profileImgAlt:a,profileImgID:r,profileTextColor:l}=this.props.attributes;return React.createElement(G,this.props,n&&r&&React.createElement(X,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement("img",{className:i()("gb-profile-avatar","wp-image-"+r),src:n,alt:a}))),React.createElement("div",{className:i()("gb-profile-column gb-profile-content-wrap")},e&&React.createElement(pe.Content,{tagName:"h2",className:"gb-profile-name",style:{color:l},value:e}),t&&React.createElement(pe.Content,{tagName:"p",className:"gb-profile-title",style:{color:l},value:t}),o&&React.createElement(pe.Content,{tagName:"div",className:"gb-profile-text",value:o}),React.createElement(Y,this.props)))}}const{Component:de}=wp.element;class ue extends de{constructor(e){super(...arguments)}render(){const{profileAlignment:e,profileImgURL:t,profileFontSize:o,profileBackgroundColor:n,profileTextColor:a,profileAvatarShape:r}=this.props.attributes;return React.createElement("div",{style:{backgroundColor:n,color:a},className:i()(this.props.className,e,r,{"gb-has-avatar":t},"gb-font-size-"+o,"gb-block-profile","gb-profile-columns")},this.props.children)}}const{__:be}=wp.i18n,{Component:me}=wp.element;class he extends me{constructor(e){super(...arguments)}render(){return React.createElement("ul",{className:"gb-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer"},be("Website","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fas fa-link"}))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer"},be("Twitter","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-twitter"}))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer"},be("Facebook","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-facebook-f"}))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer"},be("Instagram","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-instagram"}))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer"},be("Pinterest","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-pinterest"}))),this.props.attributes.google&&!!this.props.attributes.google.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer"},be("Google","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-google"}))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer"},be("YouTube","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-youtube"}))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer"},be("LinkedIn","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-linkedin"}))),this.props.attributes.github&&!!this.props.attributes.github.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer"},be("Github","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-github"}))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer"},be("WordPress","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-wordpress-simple"}))),this.props.attributes.email&&!!this.props.attributes.email.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer"},be("Email","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"far fa-envelope"}))))}}const{Component:ke}=wp.element;class fe extends ke{constructor(e){super(...arguments)}render(){return React.createElement("div",{className:"gb-profile-column gb-profile-avatar-wrap"},React.createElement("div",{className:"gb-profile-image-wrap"},this.props.children))}}const{Component:ye}=wp.element,{RichText:ve}=wp.blockEditor,Ce={attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},wordpress:{type:"url"},website:{type:"url"}},save:class extends ye{constructor(){super(...arguments)}render(){const{profileName:e,profileTitle:t,profileContent:o,profileImgURL:n,profileImgAlt:a,profileImgID:r,profileTextColor:l}=this.props.attributes;return React.createElement(ue,this.props,n&&React.createElement(fe,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement("img",{className:i()("gb-profile-avatar","wp-image-"+r),src:n,alt:a}))),React.createElement("div",{className:i()("gb-profile-column gb-profile-content-wrap")},e&&React.createElement(ve.Content,{tagName:"h2",className:"gb-profile-name",style:{color:l},value:e}),t&&React.createElement(ve.Content,{tagName:"p",className:"gb-profile-title",style:{color:l},value:t}),o&&React.createElement(ve.Content,{tagName:"div",className:"gb-profile-text",value:o}),React.createElement(he,this.props)))}}},{Component:Re}=wp.element,{RichText:Ee}=wp.blockEditor,we=[Ce,{attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},website:{type:"url"}},save:class extends Re{constructor(){super(...arguments)}render(){const{profileName:e,profileTitle:t,profileContent:o,profileImgURL:n,profileTextColor:a}=this.props.attributes;return React.createElement(G,this.props,n&&React.createElement(X,this.props,React.createElement("div",{className:"gb-profile-image-square"},React.createElement("img",{className:"gb-profile-avatar",src:n,alt:"avatar"}))),React.createElement("div",{className:i()("gb-profile-column gb-profile-content-wrap")},e&&React.createElement(Ee.Content,{tagName:"h2",className:"gb-profile-name",style:{color:a},value:e}),t&&React.createElement(Ee.Content,{tagName:"p",className:"gb-profile-title",style:{color:a},value:t}),o&&React.createElement(Ee.Content,{tagName:"div",className:"gb-profile-text",value:o}),React.createElement(Y,this.props)))}}}],{__:xe}=wp.i18n,{registerBlockType:Te}=wp.blocks;Te("genesis-blocks/gb-profile-box",{title:xe("Profile Box","genesis-blocks"),description:xe("Add a profile box with bio info and social media links.","genesis-blocks"),icon:"admin-users",category:"genesis-blocks",keywords:[xe("author","genesis-blocks"),xe("profile","genesis-blocks"),xe("atomic","genesis-blocks"),xe("genesis","genesis-blocks")],attributes:{clientId:{type:"string",default:""},profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},wordpress:{type:"url"},website:{type:"url"}},gb_settings_data:{gb_author_profile_profileFontSize:{title:xe("Font Size","genesis-blocks")},gb_author_profile_profileAvatarShape:{title:xe("Avatar Shape","genesis-blocks")},gb_author_profile_profileBackgroundColor:{title:xe("Background Color","genesis-blocks")},gb_author_profile_profileTextColor:{title:xe("Text Color","genesis-blocks")},gb_author_profile_profileLinkColor:{title:xe("Social Link Color","genesis-blocks")},gb_author_profile_socialLinks:{title:xe("Social Links","genesis-blocks")}},edit:e=>React.createElement(se,n({},e,{clientId:e.clientId})),save:e=>React.createElement(ge,n({},e,{clientId:e.attributes.clientId})),deprecated:we});const{__:_e}=wp.i18n,{Component:Se}=wp.element,{PanelColorSettings:Be,InspectorControls:ze}=wp.blockEditor,{PanelBody:Ae,RangeControl:Ne,SelectControl:Le}=wp.components;class Pe extends Se{render(){const e=[{value:null,label:_e("Always Show","genesis-blocks")},{value:"gb-dismissable",label:_e("Dismissible","genesis-blocks")}],{attributes:{noticeBackgroundColor:t,noticeTextColor:o,noticeTitleColor:n,noticeFontSize:a,noticeDismiss:i}}=this.props,{setAttributes:r}=this.props;return React.createElement(ze,{key:"inspector"},React.createElement(Ae,null,React.createElement(s,{id:"gb_notice_noticeFontSize"},React.createElement(Ne,{label:_e("Font Size","genesis-blocks"),value:a,onChange:e=>this.props.setAttributes({noticeFontSize:e}),min:14,max:24,step:1})),React.createElement(s,{id:"gb_notice_noticeDismiss"},React.createElement(Le,{label:_e("Notice Display","genesis-blocks"),description:_e("Do you want the message to always show or dismissible?","genesis-blocks"),options:e,value:i,onChange:e=>this.props.setAttributes({noticeDismiss:e})}))),React.createElement(s,{id:"gb_notice_colorSettings"},React.createElement(Be,{title:_e("Notice Color","genesis-blocks"),colorValue:t,initialOpen:!1,colorSettings:[{value:t,onChange:e=>r({noticeBackgroundColor:e}),colors:[{color:"#00d1b2",name:"teal"},{color:"#3373dc",name:"royal blue"},{color:"#209cef",name:"sky blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"},{color:"#392F43",name:"black"}],label:_e("Notice Color","genesis-blocks")}]}),React.createElement(Be,{title:_e("Title Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:e=>r({noticeTitleColor:e}),label:_e("Title Color","genesis-blocks")}]}),React.createElement(Be,{title:_e("Text Color","genesis-blocks"),colorValue:o,initialOpen:!1,colorSettings:[{value:o,onChange:e=>r({noticeTextColor:e}),label:_e("Text Color","genesis-blocks")}]})))}}var Ie=o(8762),Me=o.n(Ie);const{Component:Fe}=wp.element;class Oe extends Fe{render(){const{attributes:{noticeTitle:e,noticeAlignment:t,noticeBackgroundColor:o,noticeTextColor:n,noticeFontSize:a,noticeDismiss:r}}=this.props,l=(s=r+e,Me()(s).substr(0,6));var s;return React.createElement("div",{style:{color:n,textAlign:t,backgroundColor:o},className:i()(this.props.className,r,"gb-font-size-"+a,"gb-block-notice"),"data-id":l},this.props.children)}}const{Component:Ue}=wp.element;class De extends Ue{render(){const{attributes:{noticeTitleColor:e}}=this.props;return React.createElement("div",{className:"gb-notice-dismiss",style:{fill:e,color:e}},this.props.children)}}const je={};je.upload=React.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),React.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),React.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"})),je.dismiss=React.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},React.createElement("path",{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zM15 13l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z"}));const We=je,{__:Ve}=wp.i18n,{Component:He}=wp.element,{registerBlockType:qe}=wp.blocks,{RichText:Ge,AlignmentToolbar:$e,BlockControls:Ke}=wp.blockEditor;qe("genesis-blocks/gb-notice",{title:Ve("Notice","genesis-blocks"),description:Ve("Add a stylized text notice.","genesis-blocks"),icon:"format-aside",category:"genesis-blocks",keywords:[Ve("notice","genesis-blocks"),Ve("message","genesis-blocks"),Ve("atomic","genesis-blocks")],attributes:{noticeTitle:{type:"string",selector:".gb-notice-title"},noticeContent:{type:"array",selector:".gb-notice-text",source:"children"},noticeAlignment:{type:"string"},noticeBackgroundColor:{type:"string",default:"#00d1b2"},noticeTextColor:{type:"string",default:"#32373c"},noticeTitleColor:{type:"string",default:"#fff"},noticeFontSize:{type:"number",default:18},noticeDismiss:{type:"string",default:""}},gb_settings_data:{gb_notice_noticeFontSize:{title:Ve("Font Size","genesis-blocks")},gb_notice_noticeDismiss:{title:Ve("Notice Display","genesis-blocks")},gb_notice_colorSettings:{title:Ve("Notice Color","genesis-blocks")}},edit:class extends He{render(){const{attributes:{noticeTitle:e,noticeContent:t,noticeAlignment:o,noticeBackgroundColor:a,noticeTitleColor:r,noticeDismiss:l},setAttributes:s}=this.props;return[React.createElement(Ke,{key:"controls"},React.createElement($e,{value:o,onChange:e=>s({noticeAlignment:e})})),React.createElement(Pe,n({key:"gb-notice-inspector-"+this.props.clientId,setAttributes:s},this.props)),React.createElement(Oe,n({key:"gb-notice-noticebox-"+this.props.clientId},this.props),l&&"gb-dismissable"===l&&React.createElement(De,this.props,We.dismiss),React.createElement(Ge,{tagName:"p",placeholder:Ve("Notice Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,className:i()("gb-notice-title"),style:{color:r},onChange:e=>s({noticeTitle:e})}),React.createElement(Ge,{tagName:"div",multiline:"p",placeholder:Ve("Add notice text…","genesis-blocks"),value:t,className:i()("gb-notice-text"),style:{borderColor:a},onChange:e=>s({noticeContent:e})}))]}},save(e){const{noticeTitle:t,noticeContent:o,noticeBackgroundColor:n,noticeTitleColor:a,noticeDismiss:i}=e.attributes;return React.createElement(Oe,e,i&&"gb-dismissable"===i&&React.createElement(De,e,We.dismiss),t&&React.createElement("div",{className:"gb-notice-title",style:{color:a}},React.createElement(Ge.Content,{tagName:"p",value:t})),o&&React.createElement(Ge.Content,{tagName:"div",className:"gb-notice-text",style:{borderColor:n},value:o}))}});const{__:Ye}=wp.i18n,{Component:Qe}=wp.element,{InspectorControls:Xe}=wp.blockEditor,{RangeControl:Ze,SelectControl:Je,PanelBody:et}=wp.components;class tt extends Qe{render(){const{dropCapFontSize:e,dropCapStyle:t}=this.props.attributes,o=[{value:"gb-drop-cap-letter",label:Ye("Letter","genesis-blocks")},{value:"gb-drop-cap-square",label:Ye("Square","genesis-blocks")},{value:"gb-drop-cap-border",label:Ye("Border","genesis-blocks")}];return React.createElement(Xe,{key:"inspector"},React.createElement(et,null,React.createElement(s,{id:"gb_dropcap_dropCapFontSize"},React.createElement(Ze,{label:Ye("Drop Cap Size","genesis-blocks"),value:e,onChange:e=>this.props.setAttributes({dropCapFontSize:e}),min:1,max:6,step:1})),React.createElement(s,{id:"gb_dropcap_dropCapStyle"},React.createElement(Je,{label:Ye("Drop Cap Style","genesis-blocks"),description:Ye("Choose the style of the drop cap in your paragraph","genesis-blocks"),options:o,value:t,onChange:e=>this.props.setAttributes({dropCapStyle:e})}))))}}const{Component:ot}=wp.element;class nt extends ot{render(){const{dropCapAlignment:e,dropCapTextColor:t,dropCapFontSize:o,dropCapStyle:n}=this.props.attributes;return React.createElement("div",{style:{color:t,textAlign:e},className:i()(this.props.className,n,"gb-font-size-"+o,"gb-block-drop-cap")},this.props.children)}}const{__:at}=wp.i18n,{Component:it}=wp.element,{registerBlockType:rt}=wp.blocks,{RichText:lt,AlignmentToolbar:st,BlockControls:ct}=wp.blockEditor;rt("genesis-blocks/gb-drop-cap",{title:at("Drop Cap","genesis-blocks"),description:at("Add a styled drop cap to the beginning of your paragraph.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[at("drop cap","genesis-blocks"),at("quote","genesis-blocks"),at("genesis","genesis-blocks")],attributes:{dropCapContent:{type:"array",selector:".gb-drop-cap-text",source:"children"},dropCapAlignment:{type:"string"},dropCapBackgroundColor:{type:"string",default:"#f2f2f2"},dropCapTextColor:{type:"string",default:"#32373c"},dropCapFontSize:{type:"number",default:3},dropCapStyle:{type:"string",default:"drop-cap-letter"}},gb_settings_data:{gb_dropcap_dropCapFontSize:{title:at("Drop Cap Size","genesis-blocks")},gb_dropcap_dropCapStyle:{title:at("Drop Cap Style","genesis-blocks")}},edit:class extends it{render(){const{attributes:{dropCapContent:e,dropCapAlignment:t,dropCapFontSize:o}}=this.props;return[React.createElement(ct,{key:"controls"},React.createElement(st,{value:t,onChange:e=>this.props.setAttributes({dropCapAlignment:e})})),React.createElement(tt,n({key:"gb-drop-cap-inspector-"+this.props.clientId},this.props)),React.createElement(nt,n({key:"gb-drop-cap-"+this.props.clientId},this.props),React.createElement(lt,{tagName:"div",multiline:"p",placeholder:at("Add paragraph text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:i()("gb-drop-cap-text","gb-font-size-"+o),onChange:e=>this.props.setAttributes({dropCapContent:e})}))]}},save(e){const{dropCapContent:t}=e.attributes;return React.createElement(nt,e,t&&React.createElement(lt.Content,{tagName:"div",className:"gb-drop-cap-text",value:t}))}});const{__:pt}=wp.i18n,{Fragment:gt}=wp.element,{SelectControl:dt,ToggleControl:ut}=wp.components,{PanelColorSettings:bt}=wp.blockEditor;function mt(e){const{enableButtonBackgroundColor:t,buttonBackgroundColor:o,onChangeButtonColor:n=(()=>{}),enableButtonTextColor:a,buttonTextColor:i,onChangeButtonTextColor:r=(()=>{}),enableButtonSize:l,buttonSize:c,onChangeButtonSize:p=(()=>{}),enableButtonShape:g,buttonShape:d,onChangeButtonShape:u=(()=>{}),enableButtonTarget:b,buttonTarget:m,onChangeButtonTarget:h=(()=>{})}=e,k=[{value:"gb-button-size-small",label:pt("Small","genesis-blocks")},{value:"gb-button-size-medium",label:pt("Medium","genesis-blocks")},{value:"gb-button-size-large",label:pt("Large","genesis-blocks")},{value:"gb-button-size-extralarge",label:pt("Extra Large","genesis-blocks")}],f=[{value:"gb-button-shape-square",label:pt("Square","genesis-blocks")},{value:"gb-button-shape-rounded",label:pt("Rounded Square","genesis-blocks")},{value:"gb-button-shape-circular",label:pt("Circular","genesis-blocks")}];return React.createElement(gt,null,React.createElement(s,{id:"gb_button_buttonOptions"},!1!==b&&React.createElement(ut,{label:pt("Open link in new window","genesis-blocks"),checked:m,onChange:h}),!1!==l&&React.createElement(dt,{selected:c,label:pt("Button Size","genesis-blocks"),value:c,options:k.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:p}),!1!==g&&React.createElement(dt,{label:pt("Button Shape","genesis-blocks"),value:d,options:f.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:u}),!1!==t&&React.createElement(bt,{title:pt("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:n,label:pt("Button Color","genesis-blocks")}]}),!1!==a&&React.createElement(bt,{title:pt("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:r,label:pt("Button Text Color","genesis-blocks")}]})))}const{__:ht}=wp.i18n,{Component:kt}=wp.element,{InspectorControls:ft}=wp.blockEditor,{PanelBody:yt}=wp.components;class vt extends kt{render(){const{buttonBackgroundColor:e,buttonTextColor:t,buttonSize:o,buttonShape:n,buttonTarget:a}=this.props.attributes,{setAttributes:i}=this.props;return React.createElement(ft,{key:"inspector"},React.createElement(yt,null,React.createElement(mt,{buttonTarget:a,onChangeButtonTarget:e=>i({buttonTarget:!a}),buttonSize:o,onChangeButtonSize:e=>i({buttonSize:e}),buttonShape:n,onChangeButtonShape:e=>i({buttonShape:e}),buttonBackgroundColor:e,onChangeButtonColor:e=>i({buttonBackgroundColor:e}),buttonTextColor:t,onChangeButtonTextColor:e=>i({buttonTextColor:e})})))}}const{Component:Ct}=wp.element;class Rt extends Ct{render(){return React.createElement("div",{style:{textAlign:this.props.attributes.buttonAlignment},className:i()(this.props.className,"gb-block-button")},this.props.children)}}const{__:Et}=wp.i18n,{Component:wt}=wp.element,{registerBlockType:xt}=wp.blocks,{RichText:Tt,AlignmentToolbar:_t,BlockControls:St,URLInput:Bt}=wp.blockEditor,{Button:zt,Dashicon:At,Icon:Nt}=wp.components;xt("genesis-blocks/gb-button",{title:Et("Button","genesis-blocks"),description:Et("Add a customizable button.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[Et("button","genesis-blocks"),Et("link","genesis-blocks"),Et("genesis","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextColor:{type:"string"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1}},gb_settings_data:{gb_button_buttonOptions:{title:Et("Button Options","genesis-blocks")}},edit:class extends wt{render(){const{attributes:{buttonText:e,buttonUrl:t,buttonAlignment:o,buttonBackgroundColor:a,buttonTextColor:r,buttonSize:l,buttonShape:s},isSelected:c,setAttributes:p}=this.props;return[React.createElement(St,{key:"controls"},React.createElement(_t,{value:o,onChange:e=>{p({buttonAlignment:e})}})),React.createElement(vt,n({key:"gb-button-inspector-"+this.props.clientId},this.props)),React.createElement(Rt,n({key:"gb-button-custombutton-"+this.props.clientId},this.props),React.createElement(Tt,{tagName:"span",placeholder:Et("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,allowedFormats:[],className:i()("gb-button",s,l),style:{color:r||"#ffffff",backgroundColor:a||"#3373dc"},onChange:e=>p({buttonText:e})})),c&&React.createElement("form",{key:"form-link",className:`blocks-button__inline-link gb-button-${o}`,onSubmit:e=>e.preventDefault(),style:{textAlign:o}},React.createElement(At,{icon:"admin-links"}),React.createElement(Bt,{className:"button-url",value:t,onChange:e=>p({buttonUrl:e})}),React.createElement(zt,{label:Et("Apply","genesis-blocks"),type:"submit"},React.createElement(Nt,{icon:"editor-break"})))]}},save(e){const{buttonText:t,buttonUrl:o,buttonBackgroundColor:n,buttonTextColor:a,buttonSize:r,buttonShape:l,buttonTarget:s}=e.attributes;return React.createElement(Rt,e,t&&React.createElement("a",{href:o,target:s?"_blank":null,rel:s?"noopener noreferrer":null,className:i()("gb-button",l,r),style:{color:a||"#ffffff",backgroundColor:n||"#3373dc"}},React.createElement(Tt.Content,{value:t})))}});const{__:Lt}=wp.i18n,{Component:Pt,Fragment:It}=wp.element,{InspectorControls:Mt,PanelColorSettings:Ft}=wp.blockEditor,{PanelBody:Ot,RangeControl:Ut,ToggleControl:Dt,SelectControl:jt}=wp.components;class Wt extends Pt{render(){const{attributes:{spacerHeight:e,spacerDivider:t,spacerDividerStyle:o,spacerDividerColor:n,spacerDividerHeight:a},setAttributes:i}=this.props,r=[{value:"gb-divider-solid",label:Lt("Solid","genesis-blocks")},{value:"gb-divider-dashed",label:Lt("Dashed","genesis-blocks")},{value:"gb-divider-dotted",label:Lt("Dotted","genesis-blocks")}];return React.createElement(Mt,{key:"inspector"},React.createElement(Ot,null,React.createElement(s,{id:"gb_spacer_spacerHeight"},React.createElement(Ut,{label:Lt("Spacer Height","genesis-blocks"),value:e||"",onChange:e=>this.props.setAttributes({spacerHeight:e}),min:30,max:600})),React.createElement(s,{id:"gb_spacer_spacerDivider"},React.createElement(Dt,{label:Lt("Add Divider","genesis-blocks"),checked:t,onChange:()=>this.props.setAttributes({spacerDivider:!t})}))),t?React.createElement(It,null,React.createElement(Ot,null,React.createElement(s,{id:"gb_spacer_spacerDividerStyle"},React.createElement(jt,{label:Lt("Divider Style","genesis-blocks"),value:o,options:r.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({spacerDividerStyle:e})}})),React.createElement(s,{id:"gb_spacer_spacerDividerHeight"},React.createElement(Ut,{label:Lt("Divider Height","genesis-blocks"),value:a||"",onChange:e=>this.props.setAttributes({spacerDividerHeight:e}),min:1,max:5}))),React.createElement(s,{id:"gb_spacer_dividerColor"},React.createElement(Ft,{title:Lt("Divider Color","genesis-blocks"),initialOpen:!1,colorSettings:[{colors:[{color:"#ddd",name:"white"},{color:"#333",name:"black"},{color:"#3373dc",name:"royal blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"}],value:n,onChange:e=>i({spacerDividerColor:e}),label:Lt("Divider Color","genesis-blocks")}]}))):null)}}const{Component:Vt}=wp.element;class Ht extends Vt{render(){const{spacerDivider:e,spacerDividerStyle:t,spacerDividerColor:o,spacerDividerHeight:n}=this.props.attributes;return React.createElement("div",{style:{color:o},className:i()(this.props.className,"gb-block-spacer",t,{"gb-spacer-divider":e},"gb-divider-size-"+n)},this.props.children)}}const qt=window.React;var Gt=o.n(qt);const $t=window.ReactDOM;var Kt,Yt=(Kt=function(e,t){return Kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},Kt(e,t)},function(e,t){function __(){this.constructor=e}Kt(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),Qt=function(){return Qt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Qt.apply(this,arguments)},Xt={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Zt={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Jt={width:"20px",height:"20px",position:"absolute"},eo={top:Qt(Qt({},Xt),{top:"-5px"}),right:Qt(Qt({},Zt),{left:void 0,right:"-5px"}),bottom:Qt(Qt({},Xt),{top:void 0,bottom:"-5px"}),left:Qt(Qt({},Zt),{left:"-5px"}),topRight:Qt(Qt({},Jt),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Qt(Qt({},Jt),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Qt(Qt({},Jt),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Qt(Qt({},Jt),{left:"-10px",top:"-10px",cursor:"nw-resize"})},to=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return Yt(t,e),t.prototype.render=function(){return qt.createElement("div",{className:this.props.className||"",style:Qt(Qt({position:"absolute",userSelect:"none"},eo[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(qt.PureComponent),oo=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function __(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}}(),no=function(){return no=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},no.apply(this,arguments)},ao={width:"auto",height:"auto"},io=function(e,t,o){return Math.max(Math.min(e,o),t)},ro=function(e,t){return Math.round(e/t)*t},lo=function(e,t){return new RegExp(e,"i").test(t)},so=function(e){return Boolean(e.touches&&e.touches.length)},co=function(e,t,o){void 0===o&&(o=0);var n=t.reduce((function(o,n,a){return Math.abs(n-e)<Math.abs(t[o]-e)?a:o}),0),a=Math.abs(t[n]-e);return 0===o||a<o?t[n]:e},po=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},go=function(e,t,o,n){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return o*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return n*(Number(e.replace("vh",""))/100)}return e},uo=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],bo="__resizable_base__",mo=function(e){function t(t){var o=e.call(this,t)||this;return o.ratio=1,o.resizable=null,o.parentLeft=0,o.parentTop=0,o.resizableLeft=0,o.resizableRight=0,o.resizableTop=0,o.resizableBottom=0,o.targetLeft=0,o.targetTop=0,o.appendBase=function(){if(!o.resizable||!o.window)return null;var e=o.parentNode;if(!e)return null;var t=o.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(bo):t.className+=bo,e.appendChild(t),t},o.removeBase=function(e){var t=o.parentNode;t&&t.removeChild(e)},o.ref=function(e){e&&(o.resizable=e)},o.state={isResizing:!1,width:void 0===(o.propsSize&&o.propsSize.width)?"auto":o.propsSize&&o.propsSize.width,height:void 0===(o.propsSize&&o.propsSize.height)?"auto":o.propsSize&&o.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},o.onResizeStart=o.onResizeStart.bind(o),o.onMouseMove=o.onMouseMove.bind(o),o.onMouseUp=o.onMouseUp.bind(o),o}return oo(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||ao},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,n=this.resizable.offsetHeight,a=this.resizable.style.position;"relative"!==a&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=a}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,o=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var o=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/o[t]*100+"%"}return po(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?po(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?po(t.height):o("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,o=this.parentNode.style.flexWrap;"wrap"!==o&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var n={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),n},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var o=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==o&&"auto"!==o?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var o,n,a=this.props.boundsByDirection,i=this.state.direction,r=a&&lo("left",i),l=a&&lo("top",i);if("parent"===this.props.bounds){var s=this.parentNode;s&&(o=r?this.resizableRight-this.parentLeft:s.offsetWidth+(this.parentLeft-this.resizableLeft),n=l?this.resizableBottom-this.parentTop:s.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=r?this.resizableRight:this.window.innerWidth-this.resizableLeft,n=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=r?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),n=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),n&&Number.isFinite(n)&&(t=t&&t<n?t:n),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var o=this.props.scale||1,n=this.props.resizeRatio||1,a=this.state,i=a.direction,r=a.original,l=this.props,s=l.lockAspectRatio,c=l.lockAspectRatioExtraHeight,p=l.lockAspectRatioExtraWidth,g=r.width,d=r.height,u=c||0,b=p||0;return lo("right",i)&&(g=r.width+(e-r.x)*n/o,s&&(d=(g-b)/this.ratio+u)),lo("left",i)&&(g=r.width-(e-r.x)*n/o,s&&(d=(g-b)/this.ratio+u)),lo("bottom",i)&&(d=r.height+(t-r.y)*n/o,s&&(g=(d-u)*this.ratio+b)),lo("top",i)&&(d=r.height-(t-r.y)*n/o,s&&(g=(d-u)*this.ratio+b)),{newWidth:g,newHeight:d}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,n){var a=this.props,i=a.lockAspectRatio,r=a.lockAspectRatioExtraHeight,l=a.lockAspectRatioExtraWidth,s=void 0===n.width?10:n.width,c=void 0===o.width||o.width<0?e:o.width,p=void 0===n.height?10:n.height,g=void 0===o.height||o.height<0?t:o.height,d=r||0,u=l||0;if(i){var b=(p-d)*this.ratio+u,m=(g-d)*this.ratio+u,h=(s-u)/this.ratio+d,k=(c-u)/this.ratio+d,f=Math.max(s,b),y=Math.min(c,m),v=Math.max(p,h),C=Math.min(g,k);e=io(e,f,y),t=io(t,v,C)}else e=io(e,s,c),t=io(t,p,g);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var n=this.resizable.getBoundingClientRect(),a=n.left,i=n.top,r=n.right,l=n.bottom;this.resizableLeft=a,this.resizableRight=r,this.resizableTop=i,this.resizableBottom=l}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var o,n=0,a=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(n=e.nativeEvent.clientX,a=e.nativeEvent.clientY):e.nativeEvent&&so(e.nativeEvent)&&(n=e.nativeEvent.touches[0].clientX,a=e.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable&&!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var r=this.parentNode;if(r){var l=this.window.getComputedStyle(r).flexDirection;this.flexDir=l.startsWith("row")?"row":"column",o=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var s={original:{x:n,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:no(no({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:o};this.setState(s)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&so(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var o=this.props,n=o.maxWidth,a=o.maxHeight,i=o.minWidth,r=o.minHeight,l=so(e)?e.touches[0].clientX:e.clientX,s=so(e)?e.touches[0].clientY:e.clientY,c=this.state,p=c.direction,g=c.original,d=c.width,u=c.height,b=this.getParentSize(),m=function(e,t,o,n,a,i,r){return n=go(n,e.width,t,o),a=go(a,e.height,t,o),i=go(i,e.width,t,o),r=go(r,e.height,t,o),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===a?void 0:Number(a),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===r?void 0:Number(r)}}(b,this.window.innerWidth,this.window.innerHeight,n,a,i,r);n=m.maxWidth,a=m.maxHeight,i=m.minWidth,r=m.minHeight;var h=this.calculateNewSizeFromDirection(l,s),k=h.newHeight,f=h.newWidth,y=this.calculateNewMaxFromBoundary(n,a);this.props.snap&&this.props.snap.x&&(f=co(f,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(k=co(k,this.props.snap.y,this.props.snapGap));var v=this.calculateNewSizeFromAspectRatio(f,k,{width:y.maxWidth,height:y.maxHeight},{width:i,height:r});if(f=v.newWidth,k=v.newHeight,this.props.grid){var C=ro(f,this.props.grid[0]),R=ro(k,this.props.grid[1]),E=this.props.snapGap||0;f=0===E||Math.abs(C-f)<=E?C:f,k=0===E||Math.abs(R-k)<=E?R:k}var w={width:f-g.width,height:k-g.height};d&&"string"==typeof d&&(d.endsWith("%")?f=f/b.width*100+"%":d.endsWith("vw")?f=f/this.window.innerWidth*100+"vw":d.endsWith("vh")&&(f=f/this.window.innerHeight*100+"vh")),u&&"string"==typeof u&&(u.endsWith("%")?k=k/b.height*100+"%":u.endsWith("vw")?k=k/this.window.innerWidth*100+"vw":u.endsWith("vh")&&(k=k/this.window.innerHeight*100+"vh"));var x={width:this.createSizeForCssProperty(f,"width"),height:this.createSizeForCssProperty(k,"height")};"row"===this.flexDir?x.flexBasis=x.width:"column"===this.flexDir&&(x.flexBasis=x.height),(0,$t.flushSync)((function(){t.setState(x)})),this.props.onResize&&this.props.onResize(e,p,this.resizable,w)}},t.prototype.onMouseUp=function(e){var t=this.state,o=t.isResizing,n=t.direction,a=t.original;if(o&&this.resizable){var i={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:no(no({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,o=t.enable,n=t.handleStyles,a=t.handleClasses,i=t.handleWrapperStyle,r=t.handleWrapperClass,l=t.handleComponent;if(!o)return null;var s=Object.keys(o).map((function(t){return!1!==o[t]?qt.createElement(to,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:n&&n[t],className:a&&a[t]},l&&l[t]?l[t]:null):null}));return qt.createElement("div",{className:r,style:i},s)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,o){return-1!==uo.indexOf(o)||(t[o]=e.props[o]),t}),{}),o=no(no(no({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return qt.createElement(n,no({ref:this.ref,style:o,className:this.props.className},t),this.state.isResizing&&qt.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(qt.PureComponent);const{__:ho}=wp.i18n,{Component:ko}=wp.element,{registerBlockType:fo}=wp.blocks;fo("genesis-blocks/gb-spacer",{title:ho("Spacer","genesis-blocks"),description:ho("Add a spacer and divider between your blocks.","genesis-blocks"),icon:"image-flip-vertical",category:"genesis-blocks",keywords:[ho("spacer","genesis-blocks"),ho("divider","genesis-blocks"),ho("atomic","genesis-blocks")],attributes:{spacerHeight:{type:"number",default:30},spacerDivider:{type:"boolean",default:!1},spacerDividerStyle:{type:"string",default:"gb-divider-solid"},spacerDividerColor:{type:"string",default:"#ddd"},spacerDividerHeight:{type:"number",default:1}},gb_settings_data:{gb_spacer_spacerHeight:{title:ho("Spacer Height","genesis-blocks")},gb_spacer_spacerDivider:{title:ho("Add Divider","genesis-blocks")},gb_spacer_spacerDividerStyle:{title:ho("Divider Style","genesis-blocks")},gb_spacer_spacerDividerHeight:{title:ho("Divider Height","genesis-blocks")},gb_spacer_dividerColor:{title:ho("Divider Color","genesis-blocks")}},edit:class extends ko{render(){const{attributes:{spacerHeight:e,spacerDividerColor:t},className:o,setAttributes:a,toggleSelection:r}=this.props;return[React.createElement(Wt,n({key:"gb-spacer-inspector-"+this.props.clientId},this.props)),React.createElement(Ht,n({key:"gb-spacer-editor-"+this.props.clientId},this.props),React.createElement(mo,{className:i()(o,"gb-spacer-handle"),style:{color:t},size:{width:"100%",height:e},minWidth:"100%",maxWidth:"100%",minHeight:"100%",handleClasses:{bottomLeft:"gb-spacer-control__resize-handle"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!0,topLeft:!1},onResizeStart:()=>{r(!1)},onResizeStop:(t,o,n,i)=>{a({spacerHeight:parseInt(e+i.height,10)}),r(!0)}}))]}},save(e){const{spacerHeight:t}=e.attributes;return React.createElement(Ht,e,React.createElement("hr",{style:{height:t?t+"px":void 0}}))}});const{__:yo}=wp.i18n,{Component:vo}=wp.element,{InspectorControls:Co}=wp.blockEditor,{PanelBody:Ro,RangeControl:Eo,ToggleControl:wo}=wp.components;class xo extends vo{render(){return React.createElement(Co,{key:"inspector"},React.createElement(Ro,null,React.createElement(s,{id:"gb_accordion_accordionFontSize"},React.createElement(Eo,{label:yo("Title Font Size","genesis-blocks"),value:this.props.attributes.accordionFontSize,onChange:e=>this.props.setAttributes({accordionFontSize:e}),min:14,max:24,step:1})),React.createElement(s,{id:"gb_accordion_accordionOpen"},React.createElement(wo,{label:yo("Open by default","genesis-blocks"),checked:this.props.attributes.accordionOpen,onChange:()=>this.props.setAttributes({accordionOpen:!this.props.attributes.accordionOpen})}))))}}const{Component:To}=wp.element;class _o extends To{render(){return React.createElement("div",{className:i()(this.props.className,this.props.attributes.accordionAlignment?"gb-align-"+this.props.attributes.accordionAlignment:void 0,"gb-block-accordion",this.props.attributes.accordionFontSize?"gb-font-size-"+this.props.attributes.accordionFontSize:null)},this.props.children)}}const{__:So}=wp.i18n,{Component:Bo}=wp.element,{RichText:zo,AlignmentToolbar:Ao,BlockControls:No,InnerBlocks:Lo}=wp.blockEditor;class Po extends Bo{render(){return[React.createElement(No,{key:"controls"},React.createElement(Ao,{value:this.props.attributes.accordionAlignment,onChange:e=>this.props.setAttributes({accordionAlignment:e})})),React.createElement(xo,n({key:"gb-accordion-inspector-"+this.props.clientId},this.props)),React.createElement(_o,n({key:"gb-accordion-"+this.props.clientId},this.props),React.createElement(zo,{tagName:"p",placeholder:So("Accordion Title","genesis-blocks"),value:this.props.attributes.accordionTitle,className:"gb-accordion-title",onChange:e=>this.props.setAttributes({accordionTitle:e})}),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Lo,null)))]}}const{Component:Io}=wp.element,{RichText:Mo,InnerBlocks:Fo}=wp.blockEditor;class Oo extends Io{render(){return React.createElement(_o,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Mo.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Fo.Content,null))))}}const{Component:Uo}=wp.element;class Do extends Uo{constructor(e){super(...arguments)}render(){const{accordionAlignment:e,accordionFontSize:t}=this.props.attributes;return React.createElement("div",{style:{},className:i()(this.props.className,e,"gb-block-accordion","gb-font-size-"+t)},this.props.children)}}const{Component:jo}=wp.element,{RichText:Wo,InnerBlocks:Vo}=wp.blockEditor;class Ho extends jo{constructor(){super(...arguments)}render(){return React.createElement(Do,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Wo.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Vo.Content,null))))}}const qo=[{attributes:{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:18},accordionOpen:{type:"boolean",default:!1}},save:e=>React.createElement(Ho,e)}],{__:Go}=wp.i18n,{registerBlockType:$o}=wp.blocks;$o("genesis-blocks/gb-accordion",{title:Go("Accordion","genesis-blocks"),description:Go("Add accordion block with a title and text.","genesis-blocks"),icon:"editor-ul",category:"genesis-blocks",keywords:[Go("accordion","genesis-blocks"),Go("list","genesis-blocks"),Go("genesis","genesis-blocks")],attributes:{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:void 0},accordionOpen:{type:"boolean",default:!1}},gb_settings_data:{gb_accordion_accordionFontSize:{title:Go("Title Font Size","genesis-blocks")},gb_accordion_accordionOpen:{title:Go("Open by default","genesis-blocks")}},edit:e=>React.createElement(Po,e),save:e=>React.createElement(Oo,e),deprecated:qo});const{__:Ko}=wp.i18n,{Component:Yo}=wp.element,{InspectorControls:Qo,PanelColorSettings:Xo,MediaUpload:Zo}=wp.blockEditor,{Button:Jo,Icon:en,PanelBody:tn,RangeControl:on,SelectControl:nn,ToggleControl:an}=wp.components;class rn extends Yo{render(){const{buttonBackgroundColor:e,buttonTextColor:t,buttonSize:o,buttonShape:n,buttonTarget:a,titleFontSize:i,ctaTextFontSize:r,ctaBackgroundColor:l,ctaTextColor:c,dimRatio:p,imgURL:g,imgID:d}=this.props.attributes,{setAttributes:u}=this.props,b=[{value:"gb-button-size-small",label:Ko("Small")},{value:"gb-button-size-medium",label:Ko("Medium")},{value:"gb-button-size-large",label:Ko("Large")},{value:"gb-button-size-extralarge",label:Ko("Extra Large")}],m=[{value:"gb-button-shape-square",label:Ko("Square")},{value:"gb-button-shape-rounded",label:Ko("Rounded Square")},{value:"gb-button-shape-circular",label:Ko("Circular")}],h=()=>{u({imgID:null,imgURL:null,imgAlt:null})};return React.createElement(Qo,{key:"inspector"},React.createElement(s,{id:"gb_cta_textOptions"},React.createElement(tn,{title:Ko("Text Options","genesis-blocks"),initialOpen:!0},React.createElement(on,{label:Ko("Title Font Size","genesis-blocks"),value:i,onChange:e=>this.props.setAttributes({titleFontSize:e}),min:24,max:60,step:2}),React.createElement(on,{label:Ko("Text Font Size","genesis-blocks"),value:r,onChange:e=>this.props.setAttributes({ctaTextFontSize:e}),min:14,max:24,step:2}),React.createElement(Xo,{title:Ko("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,onChange:e=>u({ctaTextColor:e}),label:Ko("Text Color","genesis-blocks")}]}))),React.createElement(s,{id:"gb_cta_backgroundOptions"},React.createElement(tn,{title:Ko("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,Ko("Select a background image:","genesis-blocks")),React.createElement(Zo,{onSelect:e=>{u({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:d,render:e=>{let{open:t}=e;return React.createElement("div",null,React.createElement(Jo,{className:"gb-cta-inspector-media",label:Ko("Edit image","genesis-blocks"),onClick:t},React.createElement(en,{icon:"format-image"}),Ko("Select Image","genesis-blocks")),g&&!!g.length&&React.createElement(Jo,{className:"gb-cta-inspector-media",label:Ko("Remove Image","genesis-blocks"),onClick:h},React.createElement(en,{icon:"dismiss"}),Ko("Remove","genesis-blocks")))}}),g&&!!g.length&&React.createElement(on,{label:Ko("Image Opacity","genesis-blocks"),value:p,onChange:e=>this.props.setAttributes({dimRatio:e}),min:0,max:100,step:10}),React.createElement(Xo,{title:Ko("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:l,onChange:e=>u({ctaBackgroundColor:e}),label:Ko("Overlay Color","genesis-blocks")}]}))),React.createElement(s,{id:"gb_cta_buttonOptions"},React.createElement(tn,{title:Ko("Button Options","genesis-blocks"),initialOpen:!1},React.createElement(an,{label:Ko("Open link in new window","genesis-blocks"),checked:a,onChange:()=>this.props.setAttributes({buttonTarget:!a})}),React.createElement(nn,{label:Ko("Button Size","genesis-blocks"),value:o,options:b.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({buttonSize:e})}}),React.createElement(nn,{label:Ko("Button Shape","genesis-blocks"),value:n,options:m.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({buttonShape:e})}}),React.createElement(Xo,{title:Ko("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:e,onChange:e=>u({buttonBackgroundColor:e}),label:Ko("Button Color","genesis-blocks")}]}),React.createElement(Xo,{title:Ko("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:t,onChange:e=>u({buttonTextColor:e}),label:Ko("Button Text Color","genesis-blocks")}]}))))}}const{Component:ln}=wp.element;class sn extends ln{render(){const{attributes:{buttonText:e,buttonUrl:t,buttonAlignment:o,buttonBackgroundColor:n,buttonTextColor:a,buttonSize:r,buttonShape:l,buttonTarget:s,ctaTitle:c,ctaText:p,ctaTitleFontSize:g,ctaTextFontSize:d,ctaWidth:u,ctaBackgroundColor:b,ctaTextColor:m}}=this.props,h=i()([this.props.className,"gb-block-cta"],{["gb-font-size-"+d]:d,["align"+u]:u}),k={backgroundColor:b||void 0,textAlign:o||void 0};return React.createElement("div",{style:k,className:h||void 0},this.props.children)}}const{Component:cn}=wp.element;class pn extends cn{constructor(e){super(...arguments)}render(){const{attributes:{buttonText:e,buttonUrl:t,buttonAlignment:o,buttonBackgroundColor:n,buttonTextColor:a,buttonSize:r,buttonShape:l,buttonTarget:s,ctaTitle:c,ctaText:p,ctaTitleFontSize:g,ctaTextFontSize:d,ctaWidth:u,ctaBackgroundColor:b,ctaTextColor:m}}=this.props,h=i()([this.props.className,"gb-block-cta"],{["gb-font-size-"+d]:d,["align"+u]:u}),k={backgroundColor:b||void 0,textAlign:o||void 0};return React.createElement("div",{style:k,className:h||void 0},this.props.children)}}const{Component:gn}=wp.element;class dn extends gn{constructor(e){super(...arguments)}render(){const{attributes:{buttonText:e,buttonUrl:t,buttonAlignment:o,buttonBackgroundColor:n,buttonTextColor:a,buttonSize:r,buttonShape:l,buttonTarget:s,ctaTitle:c,ctaText:p,ctaTitleFontSize:g,ctaTextFontSize:d,ctaWidth:u,ctaBackgroundColor:b,ctaTextColor:m}}=this.props,h=i()([this.props.className,"gb-block-cta"],{["gb-font-size-"+d]:d}),k={backgroundColor:b||void 0,textAlign:o||void 0};return React.createElement("div",{style:k,className:h||void 0},this.props.children)}}const{Component:un}=wp.element;class bn extends un{constructor(e){super(...arguments)}render(){const{attributes:{buttonText:e,buttonUrl:t,buttonAlignment:o,buttonBackgroundColor:n,buttonTextColor:a,buttonSize:r,buttonShape:l,buttonTarget:s,ctaTitle:c,ctaText:p,ctaTitleFontSize:g,ctaTextFontSize:d,ctaWidth:u,ctaBackgroundColor:b,ctaTextColor:m}}=this.props;return React.createElement("div",{style:{backgroundColor:b,textAlign:o},className:i()(this.props.className,`align${u}`,"gb-block-cta","gb-font-size-"+d)},this.props.children)}}const{RichText:mn}=wp.blockEditor,hn=[{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:e=>{const{buttonText:t,buttonUrl:o,buttonAlignment:n,buttonBackgroundColor:a,buttonTextColor:r,buttonSize:l,buttonShape:s,buttonTarget:c,ctaTitle:p,ctaText:g,ctaTitleFontSize:d,titleFontSize:u,ctaTextFontSize:b,ctaWidth:m,ctaBackgroundColor:h,ctaTextColor:k,imgURL:f,imgID:y,imgAlt:v,dimRatio:C}=e.attributes;return React.createElement(pn,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:i()("gb-cta-image",kn(C),{"has-background-dim":0!==C}),src:f,alt:v})),React.createElement("div",{className:"gb-cta-content"},p&&React.createElement(mn.Content,{tagName:"h2",className:i()("gb-cta-title","gb-font-size-"+u),style:{color:k},value:p}),g&&React.createElement(mn.Content,{tagName:"div",className:i()("gb-cta-text","gb-font-size-"+d),style:{color:k},value:g})),t&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:o,target:c?"_blank":"_self",rel:c?"noopener noreferrer":null,className:i()("gb-button",s,l),style:{color:r,backgroundColor:a}},React.createElement(mn.Content,{value:t}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:e=>{const{buttonText:t,buttonUrl:o,buttonAlignment:n,buttonBackgroundColor:a,buttonTextColor:r,buttonSize:l,buttonShape:s,buttonTarget:c,ctaTitle:p,ctaText:g,ctaTitleFontSize:d,ctaTextFontSize:u,ctaWidth:b,ctaBackgroundColor:m,ctaTextColor:h,imgURL:k,imgID:f,imgAlt:y,dimRatio:v}=e.attributes;return React.createElement(dn,e,k&&!!k.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:i()("gb-cta-image",kn(v),{"has-background-dim":0!==v}),src:k,alt:y})),React.createElement("div",{className:"gb-cta-content"},p&&React.createElement(mn.Content,{tagName:"h2",className:i()("gb-cta-title","gb-font-size-"+d),style:{color:h},value:p}),g&&React.createElement(mn.Content,{tagName:"div",className:i()("gb-cta-text","gb-font-size-"+u),style:{color:h},value:g})),t&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:o,target:c?"_blank":"_self",rel:c?"noopener noreferrer":null,className:i()("gb-button",s,l),style:{color:r,backgroundColor:a}},React.createElement(mn.Content,{value:t}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},ctaTitleFontSize:{type:"string",default:"32"},ctaTextFontSize:{type:"string",default:"20"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string",default:"#f2f2f2"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50}},save:e=>{const{buttonText:t,buttonUrl:o,buttonAlignment:n,buttonBackgroundColor:a,buttonTextColor:r,buttonSize:l,buttonShape:s,buttonTarget:c,ctaTitle:p,ctaText:g,ctaTitleFontSize:d,ctaTextFontSize:u,ctaWidth:b,ctaBackgroundColor:m,ctaTextColor:h,imgURL:k,imgID:f,imgAlt:y,dimRatio:v}=e.attributes;return React.createElement(bn,e,k&&!!k.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:i()("gb-cta-image",kn(v),{"has-background-dim":0!==v}),src:k,alt:y})),React.createElement("div",{className:"gb-cta-content"},p&&React.createElement(mn.Content,{tagName:"h2",className:i()("gb-cta-title","gb-font-size-"+d),style:{color:h},value:p}),g&&React.createElement(mn.Content,{tagName:"div",className:i()("gb-cta-text","gb-font-size-"+u),style:{color:h},value:g})),t&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:o,target:c?"_blank":"_self",className:i()("gb-button",s,l),style:{color:r,backgroundColor:a}},React.createElement(mn.Content,{value:t}))))},migrate:e=>({titleFontSize:e.ctaTitleFontSize,...e})}];function kn(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}const{__:fn}=wp.i18n,{Component:yn}=wp.element,{registerBlockType:vn}=wp.blocks,{AlignmentToolbar:Cn,URLInput:Rn,BlockControls:En,BlockAlignmentToolbar:wn,RichText:xn}=wp.blockEditor,{Button:Tn,Dashicon:Sn,Icon:Bn}=wp.components;function zn(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}vn("genesis-blocks/gb-cta",{title:fn("Call To Action","genesis-blocks"),description:fn("Add a call to action section with a title, text, and a button.","genesis-blocks"),icon:"megaphone",category:"genesis-blocks",keywords:[fn("call to action","genesis-blocks"),fn("cta","genesis-blocks"),fn("atomic","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},gb_settings_data:{gb_cta_textOptions:{title:fn("Text Options","genesis-blocks")},gb_cta_backgroundOptions:{title:fn("Background Options","genesis-blocks")},gb_cta_buttonOptions:{title:fn("Button Options","genesis-blocks")}},getEditWrapperProps(e){let{ctaWidth:t}=e;if("left"===t||"right"===t||"full"===t)return{"data-align":t}},edit:class extends yn{render(){const{attributes:{buttonText:e,buttonUrl:t,buttonAlignment:o,buttonBackgroundColor:a,buttonTextColor:r,buttonSize:l,buttonShape:s,ctaTitle:c,ctaText:p,titleFontSize:g,ctaTextFontSize:d,ctaWidth:u,ctaTextColor:b,imgURL:m,imgAlt:h,dimRatio:k},isSelected:f,setAttributes:y}=this.props;return[React.createElement(En,{key:"gb-cta-block-controls-"+this.props.clientId},React.createElement(wn,{value:u,onChange:e=>y({ctaWidth:e}),controls:["center","wide","full"]}),React.createElement(Cn,{value:o,onChange:e=>{y({buttonAlignment:e})}})),React.createElement(rn,n({key:"gb-cta-inspector-"+this.props.clientId,setAttributes:y},this.props)),React.createElement(sn,n({key:"gb-cta-"+this.props.clientId},this.props),m&&!!m.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:i()("gb-cta-image",zn(k),{"has-background-dim":0!==k}),src:m,alt:h})),React.createElement("div",{className:"gb-cta-content"},React.createElement(xn,{tagName:"h2",placeholder:fn("Call-To-Action Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:c,className:i()("gb-cta-title","gb-font-size-"+g),style:{color:b},onChange:e=>y({ctaTitle:e})}),React.createElement(xn,{tagName:"div",multiline:"p",placeholder:fn("Call To Action Text","genesis-blocks"),keepPlaceholderOnFocus:!0,value:p,className:i()("gb-cta-text","gb-font-size-"+d),style:{color:b},onChange:e=>y({ctaText:e})})),React.createElement("div",{className:"gb-cta-button"},React.createElement(xn,{tagName:"span",placeholder:fn("Button text…","genesis-blocks"),value:e,allowedFormats:[],className:i()("gb-button",s,l),style:{color:r,backgroundColor:a},onChange:e=>y({buttonText:e})}),f&&React.createElement("form",{key:"form-link",className:`blocks-button__inline-link gb-button-${o}`,onSubmit:e=>e.preventDefault(),style:{textAlign:o}},React.createElement(Sn,{icon:"admin-links"}),React.createElement(Rn,{className:"button-url",value:t,onChange:e=>y({buttonUrl:e})}),React.createElement(Tn,{label:fn("Apply","genesis-blocks"),type:"submit"},React.createElement(Bn,{icon:"editor-break"})))))]}},save(e){const{buttonText:t,buttonUrl:o,buttonBackgroundColor:n,buttonTextColor:a,buttonSize:r,buttonShape:l,buttonTarget:s,ctaTitle:c,ctaText:p,ctaTitleFontSize:g,titleFontSize:d,ctaTextColor:u,imgURL:b,imgAlt:m,dimRatio:h}=e.attributes;return React.createElement(sn,e,b&&!!b.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:i()("gb-cta-image",zn(h),{"has-background-dim":0!==h}),src:b,alt:m})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(xn.Content,{tagName:"h2",className:i()("gb-cta-title","gb-font-size-"+d),style:{color:u},value:c}),p&&React.createElement(xn.Content,{tagName:"div",className:i()("gb-cta-text","gb-font-size-"+g),style:{color:u},value:p})),t&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:o,target:s?"_blank":"_self",rel:"noopener noreferrer",className:i()("gb-button",l,r),style:{color:a,backgroundColor:n}},React.createElement(xn.Content,{value:t}))))},deprecated:hn});const{__:An}=wp.i18n,{Component:Nn}=wp.element,{InspectorControls:Ln}=wp.blockEditor,{PanelBody:Pn,SelectControl:In,ToggleControl:Mn}=wp.components;class Fn extends Nn{render(){const e=[{value:"gb-share-icon-text",label:An("Icon and Text","genesis-blocks")},{value:"gb-share-icon-only",label:An("Icon Only","genesis-blocks")},{value:"gb-share-text-only",label:An("Text Only","genesis-blocks")}],t=[{value:"gb-share-shape-square",label:An("Square","genesis-blocks")},{value:"gb-share-shape-rounded",label:An("Rounded Square","genesis-blocks")},{value:"gb-share-shape-circular",label:An("Circular","genesis-blocks")}],o=[{value:"gb-share-size-small",label:An("Small","genesis-blocks")},{value:"gb-share-size-medium",label:An("Medium","genesis-blocks")},{value:"gb-share-size-large",label:An("Large","genesis-blocks")}],n=[{value:"gb-share-color-standard",label:An("Standard","genesis-blocks")},{value:"gb-share-color-social",label:An("Social Colors","genesis-blocks")}];return React.createElement(Ln,{key:"inspector"},React.createElement(s,{id:"gb_sharing_links"},React.createElement(Pn,null,React.createElement("p",null,An("Enable or disable the sharing links you want to output.","genesis-blocks")),React.createElement(Mn,{label:An("Twitter","genesis-blocks"),checked:!!this.props.attributes.twitter,onChange:()=>this.props.setAttributes({twitter:!this.props.attributes.twitter})}),React.createElement(Mn,{label:An("Facebook","genesis-blocks"),checked:!!this.props.attributes.facebook,onChange:()=>this.props.setAttributes({facebook:!this.props.attributes.facebook})}),React.createElement(Mn,{label:An("Pinterest","genesis-blocks"),checked:!!this.props.attributes.pinterest,onChange:()=>this.props.setAttributes({pinterest:!this.props.attributes.pinterest})}),React.createElement(Mn,{label:An("LinkedIn","genesis-blocks"),checked:!!this.props.attributes.linkedin,onChange:()=>this.props.setAttributes({linkedin:!this.props.attributes.linkedin})}),React.createElement(Mn,{label:An("Reddit","genesis-blocks"),checked:!!this.props.attributes.reddit,onChange:()=>this.props.setAttributes({reddit:!this.props.attributes.reddit})}),React.createElement(Mn,{label:An("Email","genesis-blocks"),checked:!!this.props.attributes.email,onChange:()=>this.props.setAttributes({email:!this.props.attributes.email})}))),React.createElement(Pn,{title:An("Sharing Button Options","genesis-blocks"),initialOpen:!1},React.createElement(s,{id:"gb_sharing_shareButtonStyle"},React.createElement(In,{label:An("Button Style","genesis-blocks"),value:this.props.attributes.shareButtonStyle,options:e.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({shareButtonStyle:e})}})),React.createElement(s,{id:"gb_sharing_shareButtonShape"},React.createElement(In,{label:An("Button Shape","genesis-blocks"),value:this.props.attributes.shareButtonShape,options:t.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({shareButtonShape:e})}})),React.createElement(s,{id:"gb_sharing_shareButtonSize"},React.createElement(In,{label:An("Button Size","genesis-blocks"),value:this.props.attributes.shareButtonSize,options:o.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({shareButtonSize:e})}})),React.createElement(s,{id:"gb_sharing_shareButtonColor"},React.createElement(In,{label:An("Button Color","genesis-blocks"),value:this.props.attributes.shareButtonColor,options:n.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({shareButtonColor:e})}}))))}}const{Component:On}=wp.element;class Un extends On{render(){return React.createElement("div",{className:i()(this.props.className,this.props.attributes.shareButtonStyle,this.props.attributes.shareButtonShape,this.props.attributes.shareButtonSize,this.props.attributes.shareButtonColor,this.props.attributes.shareAlignment?"gb-align-"+this.props.attributes.shareAlignment:void 0,"gb-block-sharing")},this.props.children)}}const{__:Dn}=wp.i18n,{Component:jn}=wp.element,{AlignmentToolbar:Wn,BlockControls:Vn}=wp.blockEditor;class Hn extends jn{constructor(){super(...arguments),this.props.attributes.clientId&&this.props.attributes.clientId===this.props.clientId||this.props.setAttributes({clientId:this.props.clientId})}render(){return[React.createElement(Vn,{key:"controls"},React.createElement(Wn,{value:this.props.attributes.shareAlignment,onChange:e=>this.props.setAttributes({shareAlignment:e})})),React.createElement(Fn,n({key:"gb-share-inspector-"+this.props.clientId},this.props)),React.createElement(Un,n({key:"gb-share-links-"+this.props.clientId},this.props),React.createElement("ul",{className:"gb-share-list"},this.props.attributes.twitter&&React.createElement("li",null,React.createElement("a",{className:"gb-share-twitter"},React.createElement("svg",{"aria-labelledby":"gb-link-twitter-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-twitter-"+this.props.clientId},Dn("Visit Twitter account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})),React.createElement("span",{className:"gb-social-text"},Dn("Share on Twitter","genesis-blocks")))),this.props.attributes.facebook&&React.createElement("li",null,React.createElement("a",{className:"gb-share-facebook"},React.createElement("svg",{"aria-labelledby":"gb-link-facebook-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-facebook-"+this.props.clientId},Dn("Visit Facebook account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})),React.createElement("span",{className:"gb-social-text"},Dn("Share on Facebook","genesis-blocks")))),this.props.attributes.pinterest&&React.createElement("li",null,React.createElement("a",{className:"gb-share-pinterest"},React.createElement("svg",{"aria-labelledby":"gb-link-pinterest-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-pinterest-"+this.props.clientId},Dn("Visit Pinterest account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})),React.createElement("span",{className:"gb-social-text"},Dn("Share on Pinterest","genesis-blocks")))),this.props.attributes.linkedin&&React.createElement("li",null,React.createElement("a",{className:"gb-share-linkedin"},React.createElement("svg",{"aria-labelledby":"gb-link-linkedin-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-linkedin-"+this.props.clientId},Dn("Visit LinkedIn account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})),React.createElement("span",{className:"gb-social-text"},Dn("Share on LinkedIn","genesis-blocks")))),this.props.attributes.reddit&&React.createElement("li",null,React.createElement("a",{className:"gb-share-reddit"},React.createElement("svg",{"aria-labelledby":"gb-link-reddit-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-reddit-"+this.props.clientId},Dn("Share on Reddit","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"})),React.createElement("span",{className:"gb-social-text"},Dn("Share on reddit","genesis-blocks")))),this.props.attributes.email&&React.createElement("li",null,React.createElement("a",{className:"gb-share-email"},React.createElement("svg",{"aria-labelledby":"gb-link-email-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-email-"+this.props.clientId},Dn("Email","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})),React.createElement("span",{className:"gb-social-text"},Dn("Share via Email","genesis-blocks"))))))]}}const{__:qn}=wp.i18n,{registerBlockType:Gn}=wp.blocks;Gn("genesis-blocks/gb-sharing",{title:qn("Sharing","genesis-blocks"),description:qn("Add sharing buttons to your posts and pages.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[qn("sharing","genesis-blocks"),qn("social","genesis-blocks"),qn("atomic","genesis-blocks")],gb_settings_data:{gb_sharing_links:{title:qn("Sharing Links","genesis-blocks")},gb_sharing_shareButtonStyle:{title:qn("Button Style","genesis-blocks")},gb_sharing_shareButtonShape:{title:qn("Button Shape","genesis-blocks")},gb_sharing_shareButtonSize:{title:qn("Button Size","genesis-blocks")},gb_sharing_shareButtonColor:{title:qn("Button Color","genesis-blocks")}},edit:e=>React.createElement(Hn,n({},e,{clientId:e.clientId})),save:()=>null});const $n=window.moment;var Kn=o.n($n),Yn=o(417),Qn=o.n(Yn),Xn=o(6760),Zn=o.n(Xn);const{__:Jn}=wp.i18n,{Component:ea,Fragment:ta}=wp.element,{InspectorControls:oa}=wp.blockEditor,{PanelBody:na,QueryControls:aa,RangeControl:ia,SelectControl:ra,TextControl:la,ToggleControl:sa,FormTokenField:ca,Spinner:pa}=wp.components,{addQueryArgs:ga}=wp.url,{apiFetch:da}=wp,ua=[];class ba extends ea{constructor(){super(...arguments),this.state={categoriesList:!1,categoriesTitleToIdRelationships:!1,categoriesIdToTitleRelationships:!1,pagesList:!1,pagesTitleToIdRelationships:!1,pagesIdToTitleRelationships:!1,waitingForApiResponse:!1}}componentDidMount(){this.stillMounted=!0}componentDidUpdate(){if(this.props.isSelected&&!this.state.waitingForApiResponse&&this.props.attributes.categories&&!this.state.categoriesList&&"post"===this.props.attributes.postType&&this.getCategoriesFromServer(!!this.props.attributes.categories&&this.props.attributes.categories,!0),this.props.isSelected&&!this.state.waitingForApiResponse&&this.props.attributes.selectedPages.length>0&&!this.state.pagesList&&"page"===this.props.attributes.postType){const e=[];for(const t in this.props.attributes.selectedPages)e.push(this.props.attributes.selectedPages[t].value);this.getPagesFromServer(e||!1,!0)}}componentWillUnmount(){this.stillMounted=!1}getCategoriesFromServer(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((o=>{if(this.setState({waitingForApiResponse:!0,categoriesList:!1}),!e||0===e.length)return t||this.setState({waitingForApiResponse:!1}),void o();let n={per_page:99,search:e};t&&(n={per_page:99,include:e}),this.fetchRequest=da({path:ga("/wp/v2/categories",n)}).then((e=>{const t=this.state.categoriesTitleToIdRelationships?this.state.categoriesTitleToIdRelationships:{},n=this.state.categoriesIdToTitleRelationships?this.state.categoriesIdToTitleRelationships:{};for(const o in e)t[e[o].name+" ("+e[o].slug+")"]=e[o].id,n[e[o].id]=e[o].name+" ("+e[o].slug+")";this.setState({categoriesList:e,categoriesTitleToIdRelationships:t,categoriesIdToTitleRelationships:n,waitingForApiResponse:!1}),o()})).catch((()=>{console.log(`category request failure: ${error.message}`),this.stillMounted&&(this.setState({categoriesList:[],waitingForApiResponse:!1}),o())}))}))}getPagesFromServer(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((o=>{if(this.setState({waitingForApiResponse:!0,pagesList:!1}),!e||0===e.length)return t||this.setState({waitingForApiResponse:!1}),void o();let n={per_page:-1,search:e};t&&(n={per_page:-1,include:e}),this.fetchRequest=da({path:ga("/wp/v2/pages",n)}).then((e=>{const t=this.state.pagesTitleToIdRelationships?this.state.pagesTitleToIdRelationships:{},n=this.state.pagesIdToTitleRelationships?this.state.pagesIdToTitleRelationships:{};for(const o in e)t[e[o].title.rendered+" ("+e[o].slug+")"]=e[o].id,n[e[o].id]=e[o].title.rendered+" ("+e[o].slug+")";this.setState({pagesList:e,pagesTitleToIdRelationships:t,pagesIdToTitleRelationships:n,waitingForApiResponse:!1}),o()})).catch((()=>{this.stillMounted&&(this.setState({pagesList:[],waitingForApiResponse:!1}),o())}))}))}imageSizeSelect(){const e=wp.data.select("core/block-editor").getSettings();return Qn()(Zn()(e.imageSizes,(e=>{let{name:t,slug:o}=e;return{value:o,label:t}})))}render(){const{attributes:e,setAttributes:t,latestPosts:o}=this.props,{order:n,orderBy:a}=e,{categoriesList:i,categoriesTitleToIdRelationships:r,categoriesIdToTitleRelationships:l,pagesList:c,pagesTitleToIdRelationships:p,pagesIdToTitleRelationships:g}=this.state,d=[{value:"post",label:Jn("Post","genesis-blocks")},{value:"page",label:Jn("Page","genesis-blocks")}],u=[{value:"div",label:Jn("div","genesis-blocks")},{value:"header",label:Jn("header","genesis-blocks")},{value:"section",label:Jn("section","genesis-blocks")},{value:"article",label:Jn("article","genesis-blocks")},{value:"main",label:Jn("main","genesis-blocks")},{value:"aside",label:Jn("aside","genesis-blocks")},{value:"footer",label:Jn("footer","genesis-blocks")}],b=[{value:"h2",label:Jn("H2","genesis-blocks")},{value:"h3",label:Jn("H3","genesis-blocks")},{value:"h4",label:Jn("H4","genesis-blocks")},{value:"h5",label:Jn("H5","genesis-blocks")},{value:"h6",label:Jn("H6","genesis-blocks")}],m=Array.isArray(o)&&o.length,h="post"===e.postType,k={value:"selectimage",label:Jn("Select image size","genesis-blocks")},f={value:"gb-block-post-grid-landscape",label:Jn("GB Grid Landscape","genesis-blocks")},y={value:"gb-block-post-grid-square",label:Jn("GB Grid Square","genesis-blocks")},v=this.imageSizeSelect();return v.push(y,f),v.unshift(k),React.createElement(oa,null,React.createElement(na,{title:Jn("Post and Page Grid Settings","genesis-blocks"),className:h?null:"genesis-blocks-hide-query"},React.createElement(s,{id:"gb_postgrid_postType"},React.createElement(ra,{label:Jn("Content Type","genesis-blocks"),options:d,value:e.postType,onChange:e=>this.props.setAttributes({postType:e})})),"page"===e.postType&&React.createElement(s,{id:"gb_postgrid_selectedPages"},React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field",style:{position:"relative"}},React.createElement(ca,{suggestions:Qn()(Zn()(c,(e=>{let{title:t,slug:o}=e;return t.rendered+" ("+o+")"}))),label:React.createElement(React.Fragment,null,Jn("Enter page names to display","genesis-blocks"),this.state.waitingForApiResponse?React.createElement("div",{style:{position:"absolute",bottom:"30px",right:"0px"}},React.createElement(pa,null)):null),placeholder:Jn("Start typing page name…","genesis-blocks"),value:(()=>{if(!this.props.attributes.selectedPages)return[];const e=[];for(const t in this.props.attributes.selectedPages){const o=this.props.attributes.selectedPages[t].value;g[o]&&e.push(g[this.props.attributes.selectedPages[t].value])}return e})(),onInputChange:e=>{const t="getPagesFromServer";ua[t]&&(clearTimeout(ua[t]),ua[t]=null),ua[t]=setTimeout((()=>{clearTimeout(ua[t]),this.getPagesFromServer(e)}),500)},onChange:e=>{let o=[];for(const t in e)o.push({value:p[e[t]]});o||(o=void 0),t({selectedPages:o})}})))),"post"===e.postType&&React.createElement(s,{id:"gb_postgrid_categories"},React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field",style:{position:"relative"}},React.createElement(ca,{suggestions:Qn()(Zn()(i,(e=>{let{name:t,slug:o}=e;return t+" ("+o+")"}))),label:React.createElement(React.Fragment,null,Jn("Enter category names to display","genesis-blocks"),this.state.waitingForApiResponse?React.createElement("div",{style:{position:"absolute",bottom:"30px",right:"0px"}},React.createElement(pa,null)):null),placeholder:Jn("Start typing category name…","genesis-blocks"),value:(()=>{if(!this.props.attributes.categories)return[];const e=this.props.attributes.categories.split(","),t=[];for(const o in e)l[e[o]]&&t.push(l[e[o]]);return t})(),onInputChange:e=>{const t="getCategoriesFromServer";ua[t]&&(clearTimeout(ua[t]),ua[t]=null),ua[t]=setTimeout((()=>{clearTimeout(ua[t]),this.getCategoriesFromServer(e)}),500)},onChange:e=>{let o="";for(const t in e)r[e[t]]&&(o=o+r[e[t]]+",");o=o.replace(/,\s*$/,""),o||(o=void 0),t({categories:void 0!==o?o:""})}})))),"post"===e.postType&&React.createElement(React.Fragment,null,React.createElement(s,{id:"gb_postgrid_queryControls"},React.createElement(aa,{order:n,orderBy:a,numberOfItems:e.postsToShow,onOrderChange:e=>t({order:e}),onOrderByChange:e=>t({orderBy:e}),onNumberOfItemsChange:e=>t({postsToShow:e})})),React.createElement(s,{id:"gb_postgrid_offset"},React.createElement(ia,{label:Jn("Number of items to offset","genesis-blocks"),value:e.offset,onChange:e=>t({offset:e}),min:0,max:20}))),"grid"===e.postLayout&&React.createElement(s,{id:"gb_postgrid_columns"},React.createElement(ia,{label:Jn("Columns","genesis-blocks"),value:e.columns,onChange:e=>t({columns:e}),min:1,max:m?Math.min(4,o.length):4}))),React.createElement(na,{title:Jn("Post and Page Grid Content","genesis-blocks"),initialOpen:!1},React.createElement(s,{id:"gb_postgrid_displaySectionTitle"},React.createElement(sa,{label:Jn("Display Section Title","genesis-blocks"),checked:e.displaySectionTitle,onChange:()=>this.props.setAttributes({displaySectionTitle:!e.displaySectionTitle})})),e.displaySectionTitle&&React.createElement(s,{id:"gb_postgrid_sectionTitle"},React.createElement(la,{label:Jn("Section Title","genesis-blocks"),type:"text",value:e.sectionTitle,onChange:e=>this.props.setAttributes({sectionTitle:e})})),React.createElement(s,{id:"gb_postgrid_displayPostImage"},React.createElement(sa,{label:Jn("Display Featured Image","genesis-blocks"),checked:e.displayPostImage,onChange:()=>this.props.setAttributes({displayPostImage:!e.displayPostImage})})),e.displayPostImage&&React.createElement(s,{id:"gb_postgrid_imageSizeValue"},React.createElement(ra,{label:Jn("Image Size","genesis-blocks"),value:(()=>{for(let t=0;t<v.length;t++)if(v[t].value===e.imageSize)return e.imageSize;return"full"})(),options:v,onChange:e=>this.props.setAttributes({imageSize:e})})),React.createElement(s,{id:"gb_postgrid_displayPostTitle"},React.createElement(sa,{label:Jn("Display Title","genesis-blocks"),checked:e.displayPostTitle,onChange:()=>this.props.setAttributes({displayPostTitle:!e.displayPostTitle})})),h&&React.createElement(s,{id:"gb_postgrid_displayPostAuthor"},React.createElement(sa,{label:Jn("Display Author","genesis-blocks"),checked:e.displayPostAuthor,onChange:()=>this.props.setAttributes({displayPostAuthor:!e.displayPostAuthor})})),h&&React.createElement(s,{id:"gb_postgrid_displayPostDate"},React.createElement(sa,{label:Jn("Display Date","genesis-blocks"),checked:e.displayPostDate,onChange:()=>this.props.setAttributes({displayPostDate:!e.displayPostDate})})),React.createElement(s,{id:"gb_postgrid_displayPostExcerpt"},React.createElement(sa,{label:Jn("Display Excerpt","genesis-blocks"),checked:e.displayPostExcerpt,onChange:()=>this.props.setAttributes({displayPostExcerpt:!e.displayPostExcerpt})})),e.displayPostExcerpt&&React.createElement(s,{id:"gb_postgrid_excerptLength"},React.createElement(ia,{label:Jn("Excerpt Length","genesis-blocks"),value:e.excerptLength,onChange:e=>t({excerptLength:e}),min:0,max:150})),React.createElement(s,{id:"gb_postgrid_displayPostLink"},React.createElement(sa,{label:Jn("Display Continue Reading Link","genesis-blocks"),checked:e.displayPostLink,onChange:()=>this.props.setAttributes({displayPostLink:!e.displayPostLink})})),e.displayPostLink&&React.createElement(s,{id:"gb_postgrid_readMoreText"},React.createElement(la,{label:Jn("Customize Continue Reading Text","genesis-blocks"),type:"text",value:e.readMoreText,onChange:e=>this.props.setAttributes({readMoreText:e})}))),React.createElement(na,{title:Jn("Post and Page Grid Markup","genesis-blocks"),initialOpen:!1,className:"gb-block-post-grid-markup-settings"},React.createElement(s,{id:"gb_postgrid_sectionTag"},React.createElement(ra,{label:Jn("Post Grid Section Tag","genesis-blocks"),options:u,value:e.sectionTag,onChange:e=>this.props.setAttributes({sectionTag:e}),help:Jn("Change the post grid section tag to match your content hierarchy.","genesis-blocks")})),e.sectionTitle&&React.createElement(s,{id:"gb_postgrid_sectionTitleTag"},React.createElement(ra,{label:Jn("Section Title Heading Tag","genesis-blocks"),options:b,value:e.sectionTitleTag,onChange:e=>this.props.setAttributes({sectionTitleTag:e}),help:Jn("Change the post/page section title tag to match your content hierarchy.","genesis-blocks")})),e.displayPostTitle&&React.createElement(s,{id:"gb_postgrid_postTitleTag"},React.createElement(ra,{label:Jn("Post Title Heading Tag","genesis-blocks"),options:b,value:e.postTitleTag,onChange:e=>this.props.setAttributes({postTitleTag:e}),help:Jn("Change the post/page title tag to match your content hierarchy.","genesis-blocks")}))))}}var ma=o(2579),ha=o.n(ma);const{__:ka}=wp.i18n,{Fragment:fa,Component:ya}=wp.element,{Placeholder:va,Dashicon:Ca}=wp.components;class Ra extends ya{constructor(e){super(...arguments),this.state={imageUrl:"",imageLoaded:!1,setImageUrlSubscription:!1}}componentDidUpdate(e){this.props.imgSize!==e.imgSize&&this.setImageUrl()}componentDidMount(){this.setState({setImageUrlSubscription:wp.data.subscribe((()=>{this.setImageUrl()}))})}componentWillUnmount(){this.state.setImageUrlSubscription()}setImageUrl(){let e=this.getImageUrl();e||(e=this.getFullImageSize()),e&&this.setState({imageUrl:e,imageLoaded:!0})}getImageUrl(){return ha()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes",this.props.imgSize,"source_url"])}getFullImageSize(){return ha()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes","full","source_url"])}render(){return React.createElement(fa,null,React.createElement("div",{className:i()("gb-block-post-grid-image")},React.createElement("a",{href:this.props.imgLink,target:"_blank",rel:"bookmark noopener noreferrer"},React.createElement("img",{src:this.state.imageUrl?this.state.imageUrl:this.props.imgSizeLandscape,alt:this.props.imgAlt,className:this.props.imgClass})),!this.getImageUrl()&&this.state.imageLoaded&&"selectimage"!==this.props.imgSize&&React.createElement(fa,null,React.createElement("div",{className:"gb-post-grid-no-image-icon"},React.createElement(Ca,{icon:"warning"})),React.createElement(va,{className:"gb-post-grid-no-image-placeholder"},React.createElement(Ca,{icon:"info"}),React.createElement("div",{className:"components-placeholder__label"},ka("There is no image generated for the selected image size, so a fallback image size is being used.","genesis-blocks")),React.createElement("div",{className:"gb-post-grid-image-help"},React.createElement("a",{target:"_blank",rel:"noreferrer noopener","aria-label":ka("Learn more about image sizes (opens in a new tab)","genesis-blocks"),href:"https://github.com/studiopress/genesis-blocks/wiki/Post-Grid-Block#featured-image-sizes"},ka("Learn more ","genesis-blocks"),React.createElement("span",null,"→")))))))}}const{useState:Ea,useEffect:wa}=wp.element,{__:xa}=wp.i18n,{decodeEntities:Ta}=wp.htmlEntities,{Placeholder:_a,Spinner:Sa,ToolbarGroup:Ba}=wp.components,{BlockAlignmentToolbar:za,BlockControls:Aa}=wp.blockEditor,{apiFetch:Na}=wp,{addQueryArgs:La}=wp.url,Pa=[],{__:Ia}=wp.i18n,{registerBlockType:Ma}=wp.blocks;Ma("genesis-blocks/gb-post-grid",{title:Ia("Post and Page Grid","genesis-blocks"),description:Ia("Add a grid or list of customizable posts or pages.","genesis-blocks"),icon:"grid-view",category:"genesis-blocks",keywords:[Ia("post","genesis-blocks"),Ia("page","genesis-blocks"),Ia("grid","genesis-blocks"),Ia("atomic","genesis-blocks")],edit:e=>{const[t,o]=Ea(),[a,r]=Ea(e),{attributes:l,setAttributes:s}=e;if(e.attributes.postType!==a.postType||e.attributes.selectedPages!==a.selectedPages||e.attributes.categories!==a.categories||e.attributes.order!==a.order||e.attributes.orderby!==a.orderby||e.attributes.offset!==a.offset||e.attributes.postsToShow!==a.postsToShow){const t="handleUpdateAttributes";Pa[t]&&(clearTimeout(Pa[t]),Pa[t]=null),Pa[t]=setTimeout((()=>{clearTimeout(Pa[t]),r(e.attributes)}),500)}wa((()=>{o(null)}),[a]),wa((()=>{t||("post"===e.attributes.postType&&new Promise((t=>{const n={order:e.attributes.order,orderby:e.attributes.orderBy,per_page:e.attributes.postsToShow,offset:e.attributes.offset};if(wp.data.select("core/editor")){const e=wp.data.select("core/editor").getCurrentPostId();e&&(n.exclude=[e])}e.attributes.categories&&(n.categories=e.attributes.categories),Na({path:La("/wp/v2/posts",n)}).then((e=>{o(e),t()})).catch((e=>{console.log(e)}))})),"page"===e.attributes.postType&&new Promise((t=>{const n=e.attributes.selectedPages&&e.attributes.selectedPages.length>0?e.attributes.selectedPages.map((e=>e.value)):null,a={per_page:6},i=wp.data.select("core/editor").getCurrentPostId();i&&(a.exclude=[i]),n&&(delete a.per_page,a.include=n,a.orderby="include"),Na({path:La("/wp/v2/pages",a)}).then((e=>{o(e),t()})).catch((e=>{console.log(e)}))})))}),[t]);const c=Array.isArray(t)&&t.length,p="post"===l.postType;if(!c)return React.createElement(React.Fragment,null,React.createElement(ba,n({setAttributes:s},e)),React.createElement(_a,{icon:"admin-post",label:xa("Genesis Blocks Post and Page Grid","genesis-blocks")},Array.isArray(t)?xa("No posts found.","genesis-blocks"):React.createElement(Sa,null)));const g=[{icon:"grid-view",title:xa("Grid View","genesis-blocks"),onClick:()=>s({postLayout:"grid"}),isActive:"grid"===l.postLayout},{icon:"list-view",title:xa("List View","genesis-blocks"),onClick:()=>s({postLayout:"list"}),isActive:"list"===l.postLayout}],d=l.sectionTag?l.sectionTag:"section",u=l.sectionTitleTag?l.sectionTitleTag:"h2",b=l.postTitleTag?l.postTitleTag:"h3";return React.createElement(React.Fragment,null,React.createElement(ba,n({setAttributes:s},e)),React.createElement(Aa,null,React.createElement(za,{value:l.align,onChange:e=>{s({align:e})},controls:["center","wide","full"]}),React.createElement(Ba,{controls:g})),React.createElement(d,{className:i()(e.className,"gb-block-post-grid")},l.displaySectionTitle&&l.sectionTitle&&React.createElement(u,{className:"gb-post-grid-section-title"},l.sectionTitle),React.createElement("div",{className:i()({"is-grid":"grid"===l.postLayout,"is-list":"list"===l.postLayout,[`columns-${l.columns}`]:"grid"===l.postLayout,"gb-post-grid-items":"gb-post-grid-items"})},t.map(((t,o)=>{return React.createElement("article",{key:o,id:"post-"+t.id,className:i()("post-"+t.id,t.featured_image_src&&l.displayPostImage?"has-post-thumbnail":null)},l.displayPostImage&&t.featured_media?React.createElement(Ra,n({},e,{imgAlt:Ta(t.title.rendered.trim())||xa("(Untitled)","genesis-blocks"),imgClass:`wp-image-${t.featured_media.toString()}`,imgID:t.featured_media.toString(),imgSize:l.imageSize,imgSizeLandscape:t.featured_image_src,imgSizeSquare:t.featured_image_src_square,imgLink:t.link})):null,React.createElement("div",{className:"gb-block-post-grid-text"},React.createElement("header",{className:"gb-block-post-grid-header"},l.displayPostTitle&&React.createElement(b,{className:"gb-block-post-grid-title"},React.createElement("a",{href:t.link,target:"_blank",rel:"bookmark noopener noreferrer"},Ta(t.title.rendered.trim())||xa("(Untitled)","genesis-blocks"))),p&&t.author_info&&t.author_info.display_name&&React.createElement("div",{className:"gb-block-post-grid-byline"},l.displayPostAuthor&&t.author_info.display_name?React.createElement("div",{className:"gb-block-post-grid-author"},React.createElement("a",{className:"gb-text-link",target:"_blank",rel:"noopener noreferrer",href:t.author_info.author_link},t.author_info.display_name)):null,l.displayPostDate&&t.date_gmt&&React.createElement("time",{dateTime:Kn()(t.date_gmt).utc().format(),className:"gb-block-post-grid-date"},Kn()(t.date_gmt).local().format("MMMM DD, Y","genesis-blocks")))),React.createElement("div",{className:"gb-block-post-grid-excerpt"},l.displayPostExcerpt&&t.excerpt&&React.createElement("div",{dangerouslySetInnerHTML:{__html:(a=t.excerpt.rendered,r=l.excerptLength,a.split(" ").splice(0,r).join(" "))}}),l.displayPostLink&&React.createElement("p",null,React.createElement("a",{className:"gb-block-post-grid-more-link gb-text-link",href:t.link,target:"_blank",rel:"bookmark noopener noreferrer"},l.readMoreText)))));var a,r})))))},gb_settings_data:{gb_postgrid_postType:{title:Ia("Content Type","genesis-blocks")},gb_postgrid_queryControls:{title:Ia("Query Controls","genesis-blocks")},gb_postgrid_offset:{title:Ia("Post Offset","genesis-blocks")},gb_postgrid_columns:{title:Ia("Columns","genesis-blocks")},gb_postgrid_displaySectionTitle:{title:Ia("Display Section Title","genesis-blocks")},gb_postgrid_sectionTitle:{title:Ia("Section Title","genesis-blocks")},gb_postgrid_displayPostImage:{title:Ia("Display Featured Image","genesis-blocks")},gb_postgrid_imageSizeValue:{title:Ia("Image Size","genesis-blocks")},gb_postgrid_displayPostTitle:{title:Ia("Display Post Title","genesis-blocks")},gb_postgrid_displayPostAuthor:{title:Ia("Display Post Author","genesis-blocks")},gb_postgrid_displayPostDate:{title:Ia("Display Post Date","genesis-blocks")},gb_postgrid_displayPostExcerpt:{title:Ia("Display Post Excerpt","genesis-blocks")},gb_postgrid_excerptLength:{title:Ia("Excerpt Length","genesis-blocks")},gb_postgrid_displayPostLink:{title:Ia("Display Continue Reading Link","genesis-blocks")},gb_postgrid_readMoreText:{title:Ia("Read More Text","genesis-blocks")},gb_postgrid_sectionTag:{title:Ia("Post Grid Section Tag","genesis-blocks")},gb_postgrid_sectionTitleTag:{title:Ia("Section Title Heading Tag","genesis-blocks")},gb_postgrid_postTitleTag:{title:Ia("Post Title Heading Tag","genesis-blocks")}},save:()=>null});const{__:Fa}=wp.i18n,{Component:Oa}=wp.element,{InspectorControls:Ua,PanelColorSettings:Da,MediaUpload:ja}=wp.blockEditor,{Button:Wa,Icon:Va,PanelBody:Ha,RangeControl:qa}=wp.components;class Ga extends Oa{render(){const{containerPaddingTop:e,containerPaddingRight:t,containerPaddingBottom:o,containerPaddingLeft:n,containerMarginTop:a,containerMarginBottom:i,containerMaxWidth:r,containerBackgroundColor:l,containerDimRatio:c,containerImgURL:p,containerImgID:g}=this.props.attributes,{setAttributes:d}=this.props,u=()=>{d({containerImgID:null,containerImgURL:null,containerImgAlt:null})};return React.createElement(Ua,{key:"inspector"},React.createElement(s,{id:"gb_container_containerOptions"},React.createElement(Ha,{title:Fa("Container Options","genesis-blocks"),initialOpen:!0},React.createElement(qa,{label:Fa("Padding Top (%)","genesis-blocks"),value:e,onChange:e=>this.props.setAttributes({containerPaddingTop:e}),min:0,max:30,step:.5}),React.createElement(qa,{label:Fa("Padding Bottom (%)","genesis-blocks"),value:o,onChange:e=>this.props.setAttributes({containerPaddingBottom:e}),min:0,max:30,step:.5}),React.createElement(qa,{label:Fa("Padding Left (%)","genesis-blocks"),value:n,onChange:e=>this.props.setAttributes({containerPaddingLeft:e}),min:0,max:30,step:.5}),React.createElement(qa,{label:Fa("Padding Right (%)","genesis-blocks"),value:t,onChange:e=>this.props.setAttributes({containerPaddingRight:e}),min:0,max:30,step:.5}),React.createElement(qa,{label:Fa("Margin Top (%)","genesis-blocks"),value:a,onChange:e=>this.props.setAttributes({containerMarginTop:e}),min:0,max:30,step:1}),React.createElement(qa,{label:Fa("Margin Bottom (%)","genesis-blocks"),value:i,onChange:e=>this.props.setAttributes({containerMarginBottom:e}),min:0,max:30,step:.5}),React.createElement(qa,{label:Fa("Inside Container Max Width (px)","genesis-blocks"),value:r,onChange:e=>this.props.setAttributes({containerMaxWidth:e}),min:500,max:1600,step:1}))),React.createElement(s,{id:"gb_container_backgroundOptions"},React.createElement(Ha,{title:Fa("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,Fa("Select a background image:","genesis-blocks")),React.createElement(ja,{onSelect:e=>{d({containerImgID:e.id,containerImgURL:e.url,containerImgAlt:e.alt})},type:"image",value:g,render:e=>{let{open:t}=e;return React.createElement("div",null,React.createElement(Wa,{className:"gb-container-inspector-media",label:Fa("Edit image","genesis-blocks"),onClick:t},React.createElement(Va,{icon:"format-image"}),Fa("Select Image","genesis-blocks")),p&&!!p.length&&React.createElement(Wa,{className:"gb-container-inspector-media",label:Fa("Remove Image","genesis-blocks"),onClick:u},React.createElement(Va,{icon:"dismiss"}),Fa("Remove","genesis-blocks")))}}),p&&!!p.length&&React.createElement(qa,{label:Fa("Image Opacity","genesis-blocks"),value:c,onChange:e=>this.props.setAttributes({containerDimRatio:e}),min:0,max:100,step:10}),React.createElement(Da,{title:Fa("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:l,label:Fa("Background Color","genesis-blocks"),onChange:e=>d({containerBackgroundColor:e})}]}))))}}const{Component:$a}=wp.element;class Ka extends $a{render(){const{attributes:{containerBackgroundColor:e,containerAlignment:t,containerPaddingTop:o,containerPaddingRight:n,containerPaddingBottom:a,containerPaddingLeft:r,containerMarginTop:l,containerMarginBottom:s,containerWidth:c,containerMaxWidth:p,containerImgURL:g,containerImgAlt:d,containerDimRatio:u}}=this.props,b={backgroundColor:e||void 0,textAlign:t||void 0,paddingLeft:r?`${r}%`:void 0,paddingRight:n?`${n}%`:void 0,paddingBottom:a?`${a}%`:void 0,paddingTop:o?`${o}%`:void 0,marginTop:l?`${l}%`:void 0,marginBottom:s?`${s}%`:void 0},m=i()([this.props.className,"gb-block-container"],{["align"+c]:c});return React.createElement("div",{style:b,className:m||void 0},React.createElement("div",{className:"gb-container-inside"},g&&!!g.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:i()("gb-container-image",(h=u,0===h||50===h?null:"has-background-dim-"+10*Math.round(h/10)),{"has-background-dim":0!==u}),src:g,alt:d})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:p?`${p}px`:void 0}},this.props.children)));var h}}const{Component:Ya}=wp.element;class Qa extends Ya{constructor(e){super(...arguments)}render(){const{attributes:{containerBackgroundColor:e,containerAlignment:t,containerPaddingTop:o,containerPaddingRight:n,containerPaddingBottom:a,containerPaddingLeft:r,containerMarginTop:l,containerMarginBottom:s,containerWidth:c,containerMaxWidth:p}}=this.props,g=i()([this.props.className,"gb-block-container"],{["align"+c]:c});return React.createElement("div",{style:{backgroundColor:e,textAlign:t,paddingLeft:`${r}%`,paddingRight:`${n}%`,paddingBottom:`${a}%`,paddingTop:`${o}%`,marginTop:`${l}%`,marginBottom:`${s}%`},className:g||void 0},this.props.children)}}const{Component:Xa}=wp.element;class Za extends Xa{constructor(e){super(...arguments)}render(){const{attributes:{containerBackgroundColor:e,containerAlignment:t,containerPaddingTop:o,containerPaddingRight:n,containerPaddingBottom:a,containerPaddingLeft:r,containerMarginTop:l,containerMarginBottom:s,containerWidth:c,containerMaxWidth:p,containerImgURL:g,containerImgAlt:d,containerDimRatio:u}}=this.props,b={backgroundColor:e||void 0,textAlign:t||void 0,paddingLeft:r?`${r}%`:void 0,paddingRight:n?`${n}%`:void 0,paddingBottom:a?`${a}%`:void 0,paddingTop:o?`${o}%`:void 0,marginTop:l?`${l}%`:void 0,marginBottom:s?`${s}%`:void 0},m=i()([this.props.className,"gb-block-container"],{["align"+c]:c});return React.createElement("div",{style:b,className:m||void 0},React.createElement("div",{className:"gb-container-inside"},g&&!!g.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:i()("gb-container-image",(h=u,0===h||50===h?null:"has-background-dim-"+10*Math.round(h/10)),{"has-background-dim":0!==u}),src:g,alt:d})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:`${p}px`}},this.props.children)));var h}}const{InnerBlocks:Ja}=wp.blockEditor,ei=[{attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:e=>React.createElement(Za,e,React.createElement(Ja.Content,null))},{attributes:{containerPaddingTop:{type:"number",default:0},containerPaddingRight:{type:"number",default:0},containerPaddingBottom:{type:"number",default:0},containerPaddingLeft:{type:"number",default:0},containerMarginTop:{type:"number",default:0},containerMarginBottom:{type:"number",default:0},containerWidth:{type:"string",default:"center"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string",default:"#fff"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:e=>{const{containerMaxWidth:t,containerImgURL:o,containerImgAlt:n,containerDimRatio:a}=e.attributes;return React.createElement(Qa,e,React.createElement("div",{className:"gb-container-inside"},o&&!!o.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:i()("gb-container-image",(r=a,0===r||50===r?null:"has-background-dim-"+10*Math.round(r/10)),{"has-background-dim":0!==a}),src:o,alt:n})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:`${t}px`}},React.createElement(Ja.Content,null))));var r}}],{__:ti}=wp.i18n,{Component:oi}=wp.element,{registerBlockType:ni}=wp.blocks,{InnerBlocks:ai}=wp.blockEditor;ni("genesis-blocks/gb-container",{title:ti("Container","genesis-blocks"),description:ti("Add a container block to wrap several blocks in a parent container.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[ti("container","genesis-blocks"),ti("section","genesis-blocks"),ti("genesis","genesis-blocks")],supports:{align:["center","wide","full"]},attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number"},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},gb_settings_data:{gb_container_containerOptions:{title:ti("Container Options","genesis-blocks")},gb_container_backgroundOptions:{title:ti("Background Options","genesis-blocks")}},edit:class extends oi{render(){const{setAttributes:e}=this.props;return[React.createElement(Ga,n({key:"gb-container-inspector-"+this.props.clientId,setAttributes:e},this.props)),React.createElement(Ka,n({key:"gb-container-"+this.props.clientId},this.props),React.createElement(ai,null))]}},save:e=>React.createElement(Ka,e,React.createElement(ai.Content,null)),getEditWrapperProps(e){let{containerWidth:t}=e;if("center"===t||"wide"===t||"full"===t)return{"data-align":t}},deprecated:ei});const{__:ii}=wp.i18n,{Component:ri}=wp.element,{InspectorControls:li}=wp.blockEditor,{PanelBody:si,RangeControl:ci}=wp.components;class pi extends ri{render(){const{attributes:{columns:e,columnsGap:t}}=this.props;return React.createElement(li,{key:"inspector"},React.createElement(si,null,React.createElement(s,{id:"gb_pricing_columns"},React.createElement(ci,{label:ii("Pricing Columns","genesis-blocks"),value:e,onChange:e=>this.props.setAttributes({columns:e}),min:1,max:4})),React.createElement(s,{id:"gb_pricing_columnsGap"},React.createElement(ci,{label:ii("Pricing Columns Gap","genesis-blocks"),value:t,onChange:e=>this.props.setAttributes({columnsGap:e}),min:0,max:5,step:1}))))}}const{Component:gi}=wp.element;class di extends gi{render(){const{attributes:{columns:e,align:t}}=this.props,o=i()([this.props.className,"gb-pricing-columns-"+e],{["align"+t]:t});return React.createElement("div",{className:o||void 0},this.props.children)}}var ui=o(6770),bi=o.n(ui),mi=o(1258),hi=o.n(mi);const{__:ki}=wp.i18n,{Component:fi}=wp.element,{registerBlockType:yi}=wp.blocks,{BlockControls:vi,BlockAlignmentToolbar:Ci,InnerBlocks:Ri}=wp.blockEditor,{dispatch:Ei}=wp.data,wi=["genesis-blocks/gb-pricing-table"],xi=bi()((e=>hi()(e,(()=>["genesis-blocks/gb-pricing-table"]))));yi("genesis-blocks/gb-pricing",{title:ki("Pricing","genesis-blocks"),description:ki("Add a pricing table.","genesis-blocks"),icon:"cart",category:"genesis-blocks",keywords:[ki("pricing table","genesis-blocks"),ki("shop","genesis-blocks"),ki("purchase","genesis-blocks")],attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:2},align:{type:"string"}},gb_settings_data:{gb_pricing_columns:{title:ki("Pricing Columns","genesis-blocks")},gb_pricing_columnsGap:{title:ki("Pricing Columns Gap","genesis-blocks")}},getEditWrapperProps(e){let{align:t}=e;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:class extends fi{componentDidUpdate(e){this.props.attributes.columns!==e.attributes.columns&&Ei("core/block-editor").synchronizeTemplate()}render(){const{attributes:{columns:e,columnsGap:t,align:o},setAttributes:a}=this.props;return[React.createElement(vi,{key:"controls"},React.createElement(Ci,{value:o,onChange:e=>a({align:e}),controls:["center","wide","full"]})),React.createElement(pi,n({key:"gb-pricing-table-inspector-"+this.props.clientId,setAttributes:a},this.props)),React.createElement(di,n({key:"gb-pricing-table-"+this.props.clientId},this.props),React.createElement("div",{className:i()("gb-pricing-table-wrap-admin","gb-block-pricing-table-gap-"+t)},React.createElement(Ri,{template:xi(e),templateLock:"all",allowedBlocks:wi})))]}},save(e){const{columnsGap:t}=e.attributes,o=i()(["gb-pricing-table-wrap","gb-block-pricing-table-gap-"+t]);return React.createElement(di,e,React.createElement("div",{className:o||void 0},React.createElement(Ri.Content,null)))}});const{__:Ti}=wp.i18n,{Component:_i}=wp.element,{InspectorControls:Si,PanelColorSettings:Bi}=wp.blockEditor,{PanelBody:zi,RangeControl:Ai}=wp.components;class Ni extends _i{render(){const{attributes:{borderWidth:e,borderColor:t,borderRadius:o,backgroundColor:n,padding:a},setAttributes:i}=this.props;return React.createElement(Si,{key:"inspector"},React.createElement(zi,null,React.createElement(s,{id:"gb_pricing_inner_padding"},React.createElement(Ai,{label:Ti("Pricing Column Padding","genesis-blocks"),value:a,onChange:e=>this.props.setAttributes({padding:e}),min:0,max:20,step:1})),React.createElement(s,{id:"gb_pricing_inner_borderWidth"},React.createElement(Ai,{label:Ti("Pricing Column Border","genesis-blocks"),value:e,onChange:e=>this.props.setAttributes({borderWidth:e}),min:0,max:10,step:1})),React.createElement(s,{id:"gb_pricing_inner_borderRadius"},React.createElement(Ai,{label:Ti("Pricing Column Border Radius","genesis-blocks"),value:o,onChange:e=>this.props.setAttributes({borderRadius:e}),min:0,max:20,step:1}))),0<e&&React.createElement(s,{id:"gb_pricing_inner_borderColor"},React.createElement(Bi,{title:Ti("Pricing Column Border Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:t,onChange:e=>i({borderColor:e}),label:Ti("Border Color","genesis-blocks")}]})),React.createElement(s,{id:"gb_pricing_inner_colorSettings"},React.createElement(Bi,{title:Ti("Pricing Column Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:e=>i({backgroundColor:e}),label:Ti("Background Color","genesis-blocks")}]})))}}const{__:Li}=wp.i18n,{Component:Pi}=wp.element,{registerBlockType:Ii}=wp.blocks,{InnerBlocks:Mi,AlignmentToolbar:Fi,BlockControls:Oi}=wp.blockEditor,{Fragment:Ui}=wp.element,Di=["genesis-blocks/gb-pricing-table-description","genesis-blocks/gb-pricing-table-price","genesis-blocks/gb-pricing-table-subtitle","genesis-blocks/gb-pricing-table-title","genesis-blocks/gb-pricing-table-button","core/paragraph","core/image","core/html","core/shortcode"];Ii("genesis-blocks/gb-pricing-table",{title:Li("Pricing Column","genesis-blocks"),description:Li("Add a pricing column.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing"],keywords:[Li("pricing","genesis-blocks"),Li("shop","genesis-blocks"),Li("buy","genesis-blocks")],attributes:{borderWidth:{type:"number",default:2},borderColor:{type:"string"},borderRadius:{type:"number",default:0},backgroundColor:{type:"string"},alignment:{type:"string"},padding:{type:"number"}},gb_settings_data:{gb_pricing_inner_padding:{title:Li("Pricing Column Padding","genesis-blocks")},gb_pricing_inner_borderWidth:{title:Li("Pricing Column Border","genesis-blocks")},gb_pricing_inner_borderRadius:{title:Li("Pricing Column Border Radius","genesis-blocks")},gb_pricing_inner_borderColor:{title:Li("Pricing Column Border Color","genesis-blocks")},gb_pricing_inner_colorSettings:{title:Li("Pricing Column Background Color","genesis-blocks")}},edit:class extends Pi{render(){const{attributes:{borderWidth:e,borderColor:t,borderRadius:o,backgroundColor:a,padding:r,alignment:l},setAttributes:s}=this.props,c={borderWidth:e||null,borderStyle:0<e?"solid":null,borderColor:t||null,borderRadius:o||null,backgroundColor:a||null,padding:r?r+"%":null};return[React.createElement(Oi,{key:"controls"},React.createElement(Fi,{value:l,onChange:e=>{s({alignment:e})}})),React.createElement(Ni,n({key:"gb-pricing-table-inner-inspector-"+this.props.clientId,setAttributes:s},this.props)),React.createElement(Ui,{key:"gb-pricing-table-inner-fragment-"+this.props.clientId},React.createElement("div",{className:i()(l?"gb-block-pricing-table-"+l:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:c},React.createElement(Mi,{template:[["genesis-blocks/gb-pricing-table-title",{title:"<strong>Price Title</strong>",fontSize:"medium",paddingTop:30,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-subtitle",{subtitle:"Price Subtitle Description",customFontSize:20,paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-price",{price:"49",currency:"$",customFontSize:60,term:"/mo",paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-features",{features:"<li>Product Feature One</li><li>Product Feature Two</li><li>Product Feature Three</li>",multilineTag:"li",ordered:!1,customFontSize:20,paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:20}],["genesis-blocks/gb-pricing-table-button",{buttonText:"Buy Now",buttonBackgroundColor:"#272c30",paddingTop:15,paddingRight:20,paddingBottom:35,paddingLeft:20}]],templateLock:!1,allowedBlocks:Di,templateInsertUpdatesSelection:!1}))))]}},save(e){const{borderWidth:t,borderColor:o,borderRadius:n,backgroundColor:a,alignment:r,padding:l}=e.attributes,s={borderWidth:t||null,borderStyle:0<t?"solid":null,borderColor:o||null,borderRadius:n||null,backgroundColor:a||null,padding:l?l+"%":null};return React.createElement("div",{className:i()(r?"gb-block-pricing-table-"+r:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:s},React.createElement(Mi.Content,null)))}});const{__:ji}=wp.i18n,{Fragment:Wi}=wp.element,{RangeControl:Vi}=wp.components;function Hi(e){const{padding:t,paddingTitle:o,paddingHelp:n,paddingMin:a,paddingMax:i,paddingEnable:r,onChangePadding:l=(()=>{}),paddingTop:s,paddingTopMin:c,paddingTopMax:p,paddingEnableTop:g,onChangePaddingTop:d=(()=>{}),paddingRight:u,paddingRightMin:b,paddingRightMax:m,paddingEnableRight:h,onChangePaddingRight:k=(()=>{}),paddingBottom:f,paddingBottomMin:y,paddingBottomMax:v,paddingEnableBottom:C,onChangePaddingBottom:R=(()=>{}),paddingLeft:E,paddingLeftMin:w,paddingLeftMax:x,paddingEnableLeft:T,onChangePaddingLeft:_=(()=>{}),paddingVertical:S,paddingEnableVertical:B,paddingVerticalMin:z,paddingVerticalMax:A,onChangePaddingVertical:N=(()=>{}),paddingHorizontal:L,paddingEnableHorizontal:P,paddingHorizontalMin:I,paddingHorizontalMax:M,onChangePaddingHorizontal:F=(()=>{})}=e;return React.createElement(Wi,null,r&&React.createElement(Vi,{label:o||ji("Padding","genesis-blocks"),help:n||null,value:t,min:a,max:i,onChange:l}),g&&React.createElement(Vi,{label:ji("Padding Top","genesis-blocks"),value:s,min:c,max:p,onChange:d}),h&&React.createElement(Vi,{label:ji("Padding Right","genesis-blocks"),value:u,min:b,max:m,onChange:k}),C&&React.createElement(Vi,{label:ji("Padding Bottom","genesis-blocks"),value:f,min:y,max:v,onChange:R}),T&&React.createElement(Vi,{label:ji("Padding Left","genesis-blocks"),value:E,min:w,max:x,onChange:_}),B&&React.createElement(Vi,{label:ji("Padding Vertical","genesis-blocks"),value:S,min:z,max:A,onChange:N}),P&&React.createElement(Vi,{label:ji("Padding Horizontal","genesis-blocks"),value:L,min:I,max:M,onChange:F}))}const{__:qi}=wp.i18n,{Component:Gi}=wp.element,{compose:$i}=wp.compose,{InspectorControls:Ki,FontSizePicker:Yi,withFontSizes:Qi,withColors:Xi,ContrastChecker:Zi,PanelColorSettings:Ji}=wp.blockEditor,{withFallbackStyles:er,PanelBody:tr,ToggleControl:or,TextControl:nr,RangeControl:ar}=wp.components,ir=$i([er(((e,t)=>{const{textColor:o,backgroundColor:n,fontSize:a,customFontSize:i}=t.attributes,r=e.querySelector('[contenteditable="true"]'),l=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!l?void 0:l.backgroundColor,fallbackTextColor:o||!l?void 0:l.color,fallbackFontSize:a||i||!l?void 0:parseInt(l.fontSize)||void 0}})),Qi("fontSize"),Xi("backgroundColor",{textColor:"color"})])(class extends Gi{render(){const{attributes:{showTerm:e,showCurrency:t,term:o,currency:n,paddingTop:a,paddingRight:i,paddingBottom:r,paddingLeft:l},isSelected:s,setAttributes:c,fallbackFontSize:p,fontSize:g,setFontSize:d,backgroundColor:u,textColor:b,setBackgroundColor:m,setTextColor:h,fallbackBackgroundColor:k,fallbackTextColor:f}=this.props;return React.createElement(Ki,{key:"inspector"},React.createElement(tr,{title:qi("Text Settings","genesis-blocks")},React.createElement(Yi,{fallbackFontSize:p,value:g.size,onChange:d}),React.createElement(or,{label:qi("Show currency symbol","genesis-blocks"),checked:t,onChange:()=>this.props.setAttributes({showCurrency:!t})}),t&&React.createElement(nr,{label:qi("Currency Symbol","genesis-blocks"),type:"text",value:n,onChange:e=>this.props.setAttributes({currency:e})}),React.createElement(or,{label:qi("Show pricing duration","genesis-blocks"),checked:e,onChange:()=>this.props.setAttributes({showTerm:!e})}),e&&React.createElement(nr,{label:qi("Pricing Duration","genesis-blocks"),type:"text",value:o,onChange:e=>this.props.setAttributes({term:e})})),React.createElement(tr,{title:qi("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Hi,{paddingEnableTop:!0,paddingTop:a,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>c({paddingTop:e}),paddingEnableRight:!0,paddingRight:i,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>c({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:r,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>c({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:l,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>c({paddingLeft:e})})),React.createElement(Ji,{title:qi("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u.color,onChange:m,label:qi("Background Color","genesis-blocks")},{value:b.color,onChange:h,label:qi("Text Color","genesis-blocks")}]},React.createElement(Zi,{textColor:b.color,backgroundColor:u.color,fallbackTextColor:f,fallbackBackgroundColor:k,fontSize:g.size})))}}),{__:rr}=wp.i18n,{registerBlockType:lr}=wp.blocks,{compose:sr}=wp.compose,{Component:cr,Fragment:pr}=wp.element,{RichText:gr,withFontSizes:dr,withColors:ur}=wp.blockEditor,br=sr([dr("fontSize"),ur("backgroundColor",{textColor:"color"})])(class extends cr{render(){const{attributes:{price:e,currency:t,term:o,showTerm:n,showCurrency:a,paddingTop:r,paddingRight:l,paddingBottom:s,paddingLeft:c},isSelected:p,className:g,setAttributes:d,fallbackFontSize:u,fontSize:b,backgroundColor:m,textColor:h}=this.props,k=i()({"gb-pricing-table-price-wrap":!0,"has-text-color":h.color,"has-background":m.color,[m.class]:m.class,[h.class]:h.class,"gb-pricing-has-currency":a}),f=i()({"gb-pricing-table-price":!0,[b.class]:b.class}),y={backgroundColor:m.color,color:h.color,paddingTop:r?r+"px":void 0,paddingRight:l?l+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:c?c+"px":void 0},v={fontSize:b.size?b.size+"px":void 0},C=Math.floor(b.size/2.5),R={fontSize:b.size?C+"px":void 0},E=Math.floor(b.size/2.5),w={fontSize:b.size?E+"px":void 0};return[React.createElement(pr,{key:"gb-pricing-table-inner-component-price-"+this.props.clientId},React.createElement(ir,this.props),React.createElement("div",{className:k||void 0,style:y},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&React.createElement(gr,{tagName:"span",itemProp:"priceCurrency",placeholder:rr("$","genesis-blocks"),keepPlaceholderOnFocus:!0,value:t,onChange:e=>d({currency:e}),className:"gb-pricing-table-currency",style:R}),React.createElement(gr,{tagName:"div",itemProp:"price",placeholder:rr("49","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,onChange:e=>d({price:e}),style:v,className:f||void 0}),n&&React.createElement(gr,{tagName:"span",value:o,placeholder:rr("/mo","genesis-blocks"),keepPlaceholderOnFocus:!0,onChange:e=>d({term:e}),className:"gb-pricing-table-term",style:w}))))]}}),{__:mr}=wp.i18n,{RichText:hr,getFontSizeClass:kr,getColorClassName:fr}=wp.blockEditor,yr=[{attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},save:e=>{const{price:t,currency:o,fontSize:n,customFontSize:a,backgroundColor:r,textColor:l,customBackgroundColor:s,customTextColor:c,term:p,showTerm:g,showCurrency:d,paddingTop:u,paddingRight:b,paddingBottom:m,paddingLeft:h}=e.attributes,k=kr(n),f=fr("color",l),y=fr("background-color",r),v=i()({"has-background":r||s,"gb-pricing-table-price-wrap":!0,[f]:f,[y]:y,"gb-pricing-has-currency":d&&o}),C=i()({"gb-pricing-table-price":!0,[k]:k}),R={backgroundColor:y?void 0:s,color:f?void 0:c,paddingTop:u?u+"px":void 0,paddingRight:b?b+"px":void 0,paddingBottom:m?m+"px":void 0,paddingLeft:h?h+"px":void 0},E={fontSize:k?void 0:a},w=k?void 0:a,x=Math.floor(w/2.5),T={fontSize:w?x+"px":void 0},_=Math.floor(w/2.5),S={fontSize:w?_+"px":void 0};return React.createElement("div",{className:v||void 0,style:R},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},o&&d&&React.createElement(hr.Content,{tagName:"span",itemProp:"priceCurrency",placeholder:mr("$","genesis-blocks"),value:o,className:"gb-pricing-table-currency",style:T}),React.createElement(hr.Content,{tagName:"div",itemProp:"price",value:t,className:C||void 0,style:E}),p&&g&&React.createElement(hr.Content,{tagName:"span",value:p,className:"gb-pricing-table-term",style:S})))}}],vr=yr,{__:Cr}=wp.i18n,{registerBlockType:Rr}=wp.blocks,{Component:Er,Fragment:wr}=wp.element,{RichText:xr,getFontSizeClass:Tr,FontSizePicker:_r,withFontSizes:Sr,getColorClassName:Br}=wp.blockEditor;Rr("genesis-blocks/gb-pricing-table-price",{title:Cr("Product Price","genesis-blocks"),description:Cr("Adds a product price component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Cr("pricing table","genesis-blocks"),Cr("price","genesis-blocks"),Cr("shop","genesis-blocks")],attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:br,save(e){const{price:t,currency:o,fontSize:n,customFontSize:a,backgroundColor:r,textColor:l,customBackgroundColor:s,customTextColor:c,term:p,showTerm:g,showCurrency:d,paddingTop:u,paddingRight:b,paddingBottom:m,paddingLeft:h}=e.attributes,k=Tr(n),f=Br("color",l),y=Br("background-color",r),v=i()({"has-background":r||s,"gb-pricing-table-price-wrap":!0,[f]:f,[y]:y,"gb-pricing-has-currency":d&&o}),C=i()({"gb-pricing-table-price":!0,[k]:k}),R={backgroundColor:y?void 0:s,color:f?void 0:c,paddingTop:u?u+"px":void 0,paddingRight:b?b+"px":void 0,paddingBottom:m?m+"px":void 0,paddingLeft:h?h+"px":void 0},E={fontSize:k?void 0:a},w=k?void 0:a,x=Math.floor(w/2.5),T={fontSize:w?x+"px":void 0},_=Math.floor(w/2.5),S={fontSize:w?_+"px":void 0};return React.createElement("div",{className:v||void 0,style:R},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},o&&d&&React.createElement(xr.Content,{tagName:"span",itemProp:"priceCurrency",value:o,className:"gb-pricing-table-currency",style:T}),React.createElement(xr.Content,{tagName:"div",itemProp:"price",value:t,className:C||void 0,style:E}),p&&g&&React.createElement(xr.Content,{tagName:"span",value:p,className:"gb-pricing-table-term",style:S})))},deprecated:vr});const{__:zr}=wp.i18n,{Component:Ar}=wp.element,{compose:Nr}=wp.compose,{InspectorControls:Lr,FontSizePicker:Pr,withFontSizes:Ir,withColors:Mr,ContrastChecker:Fr,PanelColorSettings:Or,ColorPalette:Ur}=wp.blockEditor,{withFallbackStyles:Dr,PanelBody:jr,PanelRow:Wr,SelectControl:Vr,BaseControl:Hr,RangeControl:qr}=wp.components,Gr=Nr([Dr(((e,t)=>{const{textColor:o,backgroundColor:n,fontSize:a,customFontSize:i}=t.attributes,r=e.querySelector('[contenteditable="true"]'),l=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!l?void 0:l.backgroundColor,fallbackTextColor:o||!l?void 0:l.color,fallbackFontSize:a||i||!l?void 0:parseInt(l.fontSize)||void 0}})),Ir("fontSize"),Mr("backgroundColor",{textColor:"color"})])(class extends Ar{render(){const{attributes:{borderStyle:e,borderColor:t,borderWidth:o,paddingTop:n,paddingRight:a,paddingBottom:i,paddingLeft:r},isSelected:l,setAttributes:s,fallbackFontSize:c,fontSize:p,setFontSize:g,backgroundColor:d,textColor:u,setBackgroundColor:b,setTextColor:m,fallbackBackgroundColor:h,fallbackTextColor:k}=this.props,f=[{value:"gb-list-border-none",label:zr("None")},{value:"gb-list-border-solid",label:zr("Solid")},{value:"gb-list-border-dotted",label:zr("Dotted")},{value:"gb-list-border-dashed",label:zr("Dashed")}];return React.createElement(Lr,{key:"inspector"},React.createElement(jr,{title:zr("Text Settings","genesis-blocks")},React.createElement(Pr,{fallbackFontSize:c,value:p.size,onChange:g}),React.createElement(Vr,{label:zr("List Border Style","genesis-blocks"),value:e,options:f.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({borderStyle:e})}}),"gb-list-border-none"!==e&&React.createElement(qr,{label:zr("List Border Width","genesis-blocks"),value:o,onChange:e=>this.props.setAttributes({borderWidth:e}),min:1,max:5,step:1}),"gb-list-border-none"!==e&&React.createElement(Wr,null,React.createElement(Hr,{label:zr("List Border Color","genesis-blocks"),id:"gb-list-border-color-"+this.props.clientId},React.createElement(Ur,{initialOpen:!1,value:t,onChange:e=>s({borderColor:e})})))),React.createElement(jr,{title:zr("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Hi,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>s({paddingTop:e}),paddingEnableRight:!0,paddingRight:a,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>s({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:i,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>s({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:r,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>s({paddingLeft:e})})),React.createElement(Or,{title:zr("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:d.color,onChange:b,label:zr("Background Color","genesis-blocks")},{value:u.color,onChange:m,label:zr("Text Color","genesis-blocks")}]},React.createElement(Fr,{textColor:u.color,backgroundColor:d.color,fallbackTextColor:k,fallbackBackgroundColor:h,fontSize:p.size})))}}),{__:$r}=wp.i18n,{registerBlockType:Kr}=wp.blocks,{compose:Yr}=wp.compose,{Component:Qr,Fragment:Xr}=wp.element,{RichText:Zr,withFontSizes:Jr,withColors:el}=wp.blockEditor,tl=Yr([Jr("fontSize"),el("backgroundColor",{textColor:"color"})])(class extends Qr{render(){const{attributes:{features:e,borderStyle:t,borderColor:o,borderWidth:n,paddingTop:a,paddingRight:r,paddingBottom:l,paddingLeft:s},isSelected:c,className:p,setAttributes:g,fallbackFontSize:d,fontSize:u,backgroundColor:b,textColor:m}=this.props,h=i()({"gb-pricing-table-features":!0,[u.class]:u.class,"has-text-color":m.color,"has-background":b.color,[b.class]:b.class,[m.class]:m.class,[t]:t,["gb-list-border-width-"+n]:n}),k={fontSize:u.size?u.size+"px":void 0,backgroundColor:b.color,color:m.color,borderColor:o||void 0,paddingTop:a?a+"px":void 0,paddingRight:r?r+"px":void 0,paddingBottom:l?l+"px":void 0,paddingLeft:s?s+"px":void 0};return[React.createElement(Xr,{key:"gb-pricing-table-inner-component-description-"+this.props.clientId},React.createElement(Gr,this.props),React.createElement(Zr,{tagName:"ul",multiline:"li",itemProp:"description",placeholder:$r("Add a product feature","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,onChange:e=>g({features:e}),style:k,className:h||void 0}))]}}),{__:ol}=wp.i18n,{registerBlockType:nl}=wp.blocks,{Component:al}=wp.element,{RichText:il,getFontSizeClass:rl,FontSizePicker:ll,withFontSizes:sl,getColorClassName:cl}=wp.blockEditor;nl("genesis-blocks/gb-pricing-table-features",{title:ol("Product Features","genesis-blocks"),description:ol("Adds a product feature component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[ol("pricing table","genesis-blocks"),ol("features","genesis-blocks"),ol("shop","genesis-blocks")],attributes:{features:{type:"string",source:"html",selector:"ol,ul",multiline:"li"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},borderStyle:{type:"string",default:"gb-list-border-none"},borderColor:{type:"string"},borderWidth:{type:"number",default:1},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:tl,save(e){const{features:t,fontSize:o,customFontSize:n,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:s,borderStyle:c,borderColor:p,borderWidth:g,paddingTop:d,paddingRight:u,paddingBottom:b,paddingLeft:m}=e.attributes,h=rl(o),k=cl("color",r),f=cl("background-color",a),y=i()({"has-background":a||l,"gb-pricing-table-features":!0,[h]:h,[k]:k,[f]:f,[c]:c,["gb-list-border-width-"+g]:g}),v={fontSize:h?void 0:n,backgroundColor:f?void 0:l,color:k?void 0:s,borderColor:p||void 0,paddingTop:d?d+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:b?b+"px":void 0,paddingLeft:m?m+"px":void 0};return React.createElement(il.Content,{tagName:"ul",itemProp:"description",value:t,className:y||void 0,style:v})}});const{__:pl}=wp.i18n,{Component:gl}=wp.element,{compose:dl}=wp.compose,{InspectorControls:ul,FontSizePicker:bl,withFontSizes:ml,withColors:hl,ContrastChecker:kl,PanelColorSettings:fl,RangeControl:yl}=wp.blockEditor,{withFallbackStyles:vl,PanelBody:Cl}=wp.components,Rl=dl([vl(((e,t)=>{const{textColor:o,backgroundColor:n,fontSize:a,customFontSize:i}=t.attributes,r=e.querySelector('[contenteditable="true"]'),l=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!l?void 0:l.backgroundColor,fallbackTextColor:o||!l?void 0:l.color,fallbackFontSize:a||i||!l?void 0:parseInt(l.fontSize)||void 0}})),ml("fontSize"),hl("backgroundColor",{textColor:"color"})])(class extends gl{render(){const{attributes:{paddingTop:e,paddingRight:t,paddingBottom:o,paddingLeft:n},isSelected:a,setAttributes:i,fallbackFontSize:r,fontSize:l,setFontSize:s,backgroundColor:c,textColor:p,setBackgroundColor:g,setTextColor:d,fallbackBackgroundColor:u,fallbackTextColor:b}=this.props;return React.createElement(ul,{key:"inspector"},React.createElement(Cl,{title:pl("Text Settings","genesis-blocks")},React.createElement(bl,{fallbackFontSize:r,value:l.size,onChange:s})),React.createElement(Cl,{title:pl("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Hi,{paddingEnableTop:!0,paddingTop:e,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>i({paddingTop:e}),paddingEnableRight:!0,paddingRight:t,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>i({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>i({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:n,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>i({paddingLeft:e})})),React.createElement(fl,{title:pl("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c.color,onChange:g,label:pl("Background Color","genesis-blocks")},{value:p.color,onChange:d,label:pl("Text Color","genesis-blocks")}]},React.createElement(kl,{textColor:p.color,backgroundColor:c.color,fallbackTextColor:b,fallbackBackgroundColor:u,fontSize:l.size})))}}),{__:El}=wp.i18n,{registerBlockType:wl}=wp.blocks,{compose:xl}=wp.compose,{Component:Tl,Fragment:_l}=wp.element,{RichText:Sl,withFontSizes:Bl,withColors:zl}=wp.blockEditor,Al=xl([Bl("fontSize"),zl("backgroundColor",{textColor:"color"})])(class extends Tl{render(){const{attributes:{title:e,paddingTop:t,paddingRight:o,paddingBottom:n,paddingLeft:a},isSelected:r,className:l,setAttributes:s,fallbackFontSize:c,fontSize:p,backgroundColor:g,textColor:d}=this.props,u=i()({"gb-pricing-table-title":!0,[p.class]:p.class,"has-text-color":d.color,"has-background":g.color,[g.class]:g.class,[d.class]:d.class}),b={fontSize:p.size?p.size+"px":void 0,backgroundColor:g.color,color:d.color,paddingTop:t?t+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:n?n+"px":void 0,paddingLeft:a?a+"px":void 0};return[React.createElement(_l,{key:"gb-pricing-table-inner-component-title-"+this.props.clientId},React.createElement(Rl,this.props),React.createElement(Sl,{tagName:"div",itemProp:"name",placeholder:El("Price Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,onChange:e=>s({title:e}),style:b,className:u||void 0}))]}}),{__:Nl}=wp.i18n,{registerBlockType:Ll}=wp.blocks,{Component:Pl}=wp.element,{RichText:Il,getFontSizeClass:Ml,FontSizePicker:Fl,withFontSizes:Ol,getColorClassName:Ul}=wp.blockEditor;Ll("genesis-blocks/gb-pricing-table-title",{title:Nl("Product Title","genesis-blocks"),description:Nl("Adds a product title component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Nl("pricing table","genesis-blocks"),Nl("title","genesis-blocks"),Nl("shop","genesis-blocks")],attributes:{title:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Al,save(e){const{title:t,fontSize:o,customFontSize:n,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:s,paddingTop:c,paddingRight:p,paddingBottom:g,paddingLeft:d}=e.attributes,u=Ml(o),b=Ul("color",r),m=Ul("background-color",a),h={fontSize:u?void 0:n,backgroundColor:m?void 0:l,color:b?void 0:s,paddingTop:c?c+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:d?d+"px":void 0},k=i()({"has-background":a||l,"gb-pricing-table-title":!0,[u]:u,[b]:b,[m]:m});return React.createElement(Il.Content,{tagName:"div",itemProp:"name",value:t,style:h,className:k||void 0})}});const{__:Dl}=wp.i18n,{registerBlockType:jl}=wp.blocks,{compose:Wl}=wp.compose,{Component:Vl,Fragment:Hl}=wp.element,{RichText:ql,withFontSizes:Gl,withColors:$l}=wp.blockEditor,Kl=Wl([Gl("fontSize"),$l("backgroundColor",{textColor:"color"})])(class extends Vl{render(){const{attributes:{subtitle:e,paddingTop:t,paddingRight:o,paddingBottom:n,paddingLeft:a},isSelected:r,className:l,setAttributes:s,fallbackFontSize:c,fontSize:p,backgroundColor:g,textColor:d}=this.props,u=i()({"gb-pricing-table-subtitle":!0,[p.class]:p.class,"has-text-color":d.color,"has-background":g.color,[g.class]:g.class,[d.class]:d.class}),b={fontSize:p.size?p.size+"px":void 0,backgroundColor:g.color,color:d.color,paddingTop:t?t+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:n?n+"px":void 0,paddingLeft:a?a+"px":void 0};return[React.createElement(Hl,{key:"gb-pricing-table-inner-component-subtitle-"+this.props.clientId},React.createElement(Rl,this.props),React.createElement(ql,{tagName:"div",placeholder:Dl("Price Subtitle","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,onChange:e=>s({subtitle:e}),style:b,className:u||void 0}))]}}),{__:Yl}=wp.i18n,{registerBlockType:Ql}=wp.blocks,{Component:Xl}=wp.element,{RichText:Zl,getFontSizeClass:Jl,FontSizePicker:es,withFontSizes:ts,getColorClassName:os}=wp.blockEditor;Ql("genesis-blocks/gb-pricing-table-subtitle",{title:Yl("Product Subtitle","genesis-blocks"),description:Yl("Adds a product subtitle component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Yl("pricing table","genesis-blocks"),Yl("subtitle","genesis-blocks"),Yl("shop","genesis-blocks")],attributes:{subtitle:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Kl,save(e){const{subtitle:t,fontSize:o,customFontSize:n,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:s,paddingTop:c,paddingRight:p,paddingBottom:g,paddingLeft:d}=e.attributes,u=Jl(o),b=os("color",r),m=os("background-color",a),h=i()({"has-background":a||l,"gb-pricing-table-subtitle":!0,[u]:u,[b]:b,[m]:m}),k={fontSize:u?void 0:n,backgroundColor:m?void 0:l,color:b?void 0:s,paddingTop:c?c+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:d?d+"px":void 0};return React.createElement(Zl.Content,{tagName:"div",value:t,className:h||void 0,style:k})}});const{__:ns}=wp.i18n,{Component:as}=wp.element,{compose:is}=wp.compose,{InspectorControls:rs,FontSizePicker:ls,withFontSizes:ss,withColors:cs,ContrastChecker:ps,PanelColorSettings:gs}=wp.blockEditor,{withFallbackStyles:ds,PanelBody:us,ToggleControl:bs,TextControl:ms,RangeControl:hs}=wp.components,ks=is([ds(((e,t)=>{const{backgroundColor:o}=t.attributes,n=e.querySelector('[contenteditable="true"]'),a=n?getComputedStyle(n):null;return{fallbackBackgroundColor:o||!a?void 0:a.backgroundColor}})),ss("fontSize"),cs("backgroundColor")])(class extends as{render(){const{attributes:{paddingTop:e,paddingRight:t,paddingBottom:o,paddingLeft:n,buttonText:a,buttonUrl:i,buttonAlignment:r,buttonBackgroundColor:l,buttonTextColor:s,buttonSize:c,buttonShape:p,buttonTarget:g},isSelected:d,setAttributes:u,backgroundColor:b,setBackgroundColor:m,fallbackBackgroundColor:h}=this.props;return React.createElement(rs,{key:"inspector"},React.createElement(us,{title:ns("Button Settings","genesis-blocks")},React.createElement(mt,{buttonTarget:g,onChangeButtonTarget:e=>u({buttonTarget:!g}),buttonSize:c,onChangeButtonSize:e=>u({buttonSize:e}),buttonShape:p,onChangeButtonShape:e=>u({buttonShape:e}),buttonBackgroundColor:l,onChangeButtonColor:e=>u({buttonBackgroundColor:e}),buttonTextColor:s,onChangeButtonTextColor:e=>u({buttonTextColor:e})})),React.createElement(us,{title:ns("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Hi,{paddingEnableTop:!0,paddingTop:e,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>u({paddingTop:e}),paddingEnableRight:!0,paddingRight:t,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>u({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>u({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:n,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>u({paddingLeft:e})})),React.createElement(gs,{title:ns("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:b.color,onChange:m,label:ns("Background Color","genesis-blocks")}]}))}}),{__:fs}=wp.i18n,{registerBlockType:ys}=wp.blocks,{compose:vs}=wp.compose,{Component:Cs,Fragment:Rs}=wp.element,{RichText:Es,withFontSizes:ws,withColors:xs,InnerBlocks:Ts,URLInput:_s}=wp.blockEditor,{Button:Ss,Dashicon:Bs,Icon:zs}=wp.components,As=vs([ws("fontSize"),xs("backgroundColor",{textColor:"color"})])(class extends Cs{render(){const{attributes:{subtitle:e,paddingTop:t,paddingRight:o,paddingBottom:n,paddingLeft:a,buttonText:r,buttonUrl:l,buttonAlignment:s,buttonBackgroundColor:c,buttonTextColor:p,buttonSize:g,buttonShape:d,buttonTarget:u},isSelected:b,className:m,setAttributes:h,backgroundColor:k}=this.props,f=i()({"gb-pricing-table-button":!0}),y={backgroundColor:k.color,paddingTop:t?t+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:n?n+"px":void 0,paddingLeft:a?a+"px":void 0};return[React.createElement(Rs,{key:"gb-pricing-table-inner-component-button-"+this.props.clientId},React.createElement(ks,this.props),React.createElement("div",{className:f||void 0,style:y},React.createElement(Rt,this.props,React.createElement(Es,{tagName:"span",placeholder:fs("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,allowedFormats:[],className:i()("gb-button",d,g),style:{color:p,backgroundColor:c},onChange:e=>h({buttonText:e})})),b&&React.createElement("form",{key:"form-link",className:`blocks-button__inline-link gb-button-${s}`,onSubmit:e=>e.preventDefault(),style:{textAlign:s}},React.createElement(Bs,{icon:"admin-links"}),React.createElement(_s,{className:"button-url",value:l,onChange:e=>h({buttonUrl:e})}),React.createElement(Ss,{label:fs("Apply","genesis-blocks"),type:"submit"},React.createElement(zs,{icon:"editor-break"})))))]}}),{__:Ns}=wp.i18n,{registerBlockType:Ls}=wp.blocks,{Component:Ps}=wp.element,{RichText:Is,getFontSizeClass:Ms,FontSizePicker:Fs,withFontSizes:Os,getColorClassName:Us}=wp.blockEditor;Ls("genesis-blocks/gb-pricing-table-button",{title:Ns("Product Button","genesis-blocks"),description:Ns("Adds a product button component.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Ns("pricing table","genesis-blocks"),Ns("subtitle","genesis-blocks"),Ns("shop","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:As,save(e){const{backgroundColor:t,customBackgroundColor:o,paddingTop:n,paddingRight:a,paddingBottom:r,paddingLeft:l,buttonText:s,buttonUrl:c,buttonAlignment:p,buttonBackgroundColor:g,buttonTextColor:d,buttonSize:u,buttonShape:b,buttonTarget:m}=e.attributes,h=Us("background-color",t),k=i()({"has-background":t||o,"gb-pricing-table-button":!0,[h]:h}),f={backgroundColor:h?void 0:o,paddingTop:n?n+"px":void 0,paddingRight:a?a+"px":void 0,paddingBottom:r?r+"px":void 0,paddingLeft:l?l+"px":void 0};return React.createElement("div",{className:k||void 0,style:f},React.createElement(Rt,e,s&&React.createElement("a",{href:c,target:m?"_blank":null,rel:m?"noopener noreferrer":null,className:i()("gb-button",b,u),style:{color:d,backgroundColor:g}},React.createElement(Is.Content,{value:s}))))}});const{__:Ds}=wp.i18n,{Fragment:js}=wp.element,{RangeControl:Ws}=wp.components;function Vs(e){const{marginTop:t,marginTopLabel:o,marginTopMin:n,marginTopMax:a,marginEnableTop:i,onChangeMarginTop:r=(()=>{}),marginRight:l,marginRightLabel:s,marginRightMin:c,marginRightMax:p,marginEnableRight:g,onChangeMarginRight:d=(()=>{}),marginBottom:u,marginBottomLabel:b,marginBottomMin:m,marginBottomMax:h,marginEnableBottom:k,onChangeMarginBottom:f=(()=>{}),marginLeft:y,marginLeftLabel:v,marginLeftMin:C,marginLeftMax:R,marginEnableLeft:E,onChangeMarginLeft:w=(()=>{}),marginVertical:x,marginVerticalLabel:T,marginEnableVertical:_,marginVerticalMin:S,marginVerticalMax:B,onChangeMarginVertical:z=(()=>{}),marginHorizontal:A,marginHorizontalLabel:N,marginEnableHorizontal:L,marginHorizontalMin:P,marginHorizontalMax:I,onChangeMarginHorizontal:M=(()=>{})}=e;return React.createElement(js,null,i&&React.createElement(Ws,{label:o||Ds("Margin Top","genesis-blocks"),value:t,min:n,max:a,onChange:r}),g&&React.createElement(Ws,{label:s||Ds("Margin Right","genesis-blocks"),value:l,min:c,max:p,onChange:d}),k&&React.createElement(Ws,{label:b||Ds("Margin Bottom","genesis-blocks"),value:u,min:m,max:h,onChange:f}),E&&React.createElement(Ws,{label:v||Ds("Margin Left","genesis-blocks"),value:y,min:C,max:R,onChange:w}),_&&React.createElement(Ws,{label:T||Ds("Margin Vertical","genesis-blocks"),value:x,min:S,max:B,onChange:z}),L&&React.createElement(Ws,{label:N||Ds("Margin Horizontal","genesis-blocks"),value:A,min:P,max:I,onChange:M}))}const{__:Hs}=wp.i18n,{Component:qs}=wp.element,{compose:Gs}=wp.compose,{InspectorControls:$s,withColors:Ks,ContrastChecker:Ys,PanelColorSettings:Qs}=wp.blockEditor,{PanelBody:Xs,SelectControl:Zs,TextControl:Js,FormToggle:ec,withFallbackStyles:tc}=wp.components,oc=Gs([tc(((e,t)=>{const{backgroundColor:o,textColor:n,buttonBackgroundColor:a,buttonTextColor:i}=t.attributes,r=e.querySelector('[contenteditable="true"]'),l=r?getComputedStyle(r):null;return{fallbackBackgroundColor:o||!l?void 0:l.backgroundColor,fallbackTextColor:n||!l?void 0:l.color,fallbackButtonBackgroundColor:a||!l?void 0:l.buttonBackgroundColor,fallbackButtonTextColor:i||!l?void 0:l.buttonTextColor}})),Ks("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(class extends qs{doubleOptInChange(e){this.props.doubleOptIn&&this.props.doubleOptIn(e.target.checked)}render(){const{attributes:e,setAttributes:t,backgroundColor:o,setBackgroundColor:n,fallbackBackgroundColor:a,textColor:i,fallbackTextColor:r,setTextColor:l,buttonBackgroundColor:c,fallbackButtonBackgroundColor:p,buttonTextColor:g,fallbackButtonTextColor:d,setButtonBackgroundColor:u,setButtonTextColor:b}=this.props,m={mailchimp:{label:"Mailchimp",value:"mailchimp",lists:[{label:Hs("Select a list","genesis-blocks"),value:""}]}};return genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.lists.map((e=>m.mailchimp.lists.push({label:e.name,value:e.id}))),React.createElement($s,null,React.createElement(Xs,{title:Hs("Newsletter","genesis-blocks"),initialOpen:!e.mailingList},React.createElement(s,{id:"gb_newsletter_mailingList"},React.createElement(Zs,{label:Hs("Mailing List","genesis-blocks"),help:Hs("The list people will be subscribed to.","genesis-blocks"),options:m.mailchimp.lists,value:e.mailingList,onChange:e=>t({mailingList:e})})),React.createElement(s,{id:"gb_newsletter_successMessage"},React.createElement(Js,{type:"string",label:Hs("Success Message","genesis-blocks"),help:Hs("The message shown when people successfully subscribe.","genesis-blocks"),value:e.successMessage,onChange:e=>t({successMessage:e})})),React.createElement(s,{id:"gb_newsletter_doubleOptIn"},React.createElement("div",{className:"gb-newsletter-double-opt-in-setting-wrapper"},React.createElement(ec,{id:"double-opt-in-toggle-"+this.props.instanceId,className:"gb-newsletter-double-opt-in-toggle",checked:e.doubleOptIn,onChange:e=>t({doubleOptIn:e.target.checked})}),React.createElement("label",{className:"gb-newsletter-double-opt-in-setting-label",htmlFor:"double-opt-in-toggle-"+this.props.instanceId},Hs("Enable Double Opt-In","genesis-blocks")),React.createElement("p",{className:"description"},Hs("Send contacts an opt-in confirmation email when they subscribe to your list.","genesis-blocks"))))),React.createElement(Xs,{title:Hs("General","genesis-blocks"),initialOpen:!!e.mailingList},React.createElement(s,{id:"gb_newsletter_containerPadding"},React.createElement(Hi,{paddingEnable:!0,paddingTitle:Hs("Block Padding","genesis-blocks"),paddingHelp:Hs("Adjust the padding applied to the inside of the block.","genesis-blocks"),padding:e.containerPadding,paddingMin:"0",paddingMax:"100",onChangePadding:e=>t({containerPadding:e})})),React.createElement(s,{id:"gb_newsletter_containerMargin"},React.createElement(Vs,{marginEnableTop:!0,marginTopLabel:Hs("Block Margin Top","genesis-blocks"),marginTop:e.containerMarginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:e=>t({containerMarginTop:e}),marginEnableBottom:!0,marginBottomLabel:Hs("Block Margin Bottom","genesis-blocks"),marginBottom:e.containerMarginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:e=>t({containerMarginBottom:e})})),React.createElement(mt,{enableButtonTarget:!1,buttonSize:e.buttonSize,onChangeButtonSize:e=>t({buttonSize:e}),buttonShape:e.buttonShape,onChangeButtonShape:e=>t({buttonShape:e}),enableButtonBackgroundColor:!1,enableButtonTextColor:!1})),React.createElement(s,{id:"gb_newsletter_colorOptions"},React.createElement(Qs,{title:Hs("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o.color,onChange:n,label:Hs("Block Background Color","genesis-blocks")},{value:i.color,onChange:l,label:Hs("Block Text Color","genesis-blocks")},{value:c.color,onChange:u,label:Hs("Button Background Color","genesis-blocks")},{value:g.color,onChange:b,label:Hs("Button Text Color","genesis-blocks")}]},React.createElement(Ys,{textColor:i.color,backgroundColor:o.color,fallbackTextColor:r,fallbackBackgroundColor:a}),React.createElement(Ys,{textColor:g.color,backgroundColor:c.color,fallbackButtonTextColor:d,fallbackButtonBackgroundColor:p}),React.createElement(Ys,{textColor:c.color,backgroundColor:o.color,fallbackButtonBackgroundColor:p,fallbackBackgroundColor:a}))))}}),{Component:nc}=wp.element,{getColorClassName:ac}=wp.blockEditor;class ic extends nc{render(){const{attributes:e,backgroundColor:t,textColor:o}=this.props;let n,a;return n=e.customBackgroundColor?"gb-has-custom-background-color":e.backgroundColor?"has-"+e.backgroundColor+"-background-color":null,a=e.customTextColor?"gb-has-custom-text-color":e.textColor?"has-"+e.textColor+"-color":null,React.createElement("div",{style:{backgroundColor:t.color,padding:e.containerPadding?e.containerPadding:void 0,marginTop:e.containerMarginTop?e.containerMarginTop:void 0,marginBottom:e.containerMarginBottom?e.containerMarginBottom:void 0,color:o.color},className:i()([this.props.className],{"gb-block-newsletter":!0,"gb-form-styles":!0,"has-background":e.backgroundColor||e.customBackgroundColor,[n]:n,[a]:a})},this.props.children)}}const{__:rc}=wp.i18n,{compose:lc,withInstanceId:sc}=wp.compose,{getColorClassName:cc,RichText:pc,withColors:gc}=wp.blockEditor,{Fragment:dc,Component:uc}=wp.element,{TextControl:bc,withFallbackStyles:mc}=wp.components,hc=lc([mc(((e,t)=>{const{backgroundColor:o,textColor:n,buttonBackgroundColor:a}=t.attributes,i=e.querySelector('[contenteditable="true"]'),r=i?getComputedStyle(i):null;return{fallbackBackgroundColor:o||!r?void 0:r.backgroundColor,fallbackTextColor:n||!r?void 0:r.color,fallbackButtonBackgroundColor:a||!r?void 0:r.buttonBackgroundColor}})),gc("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(sc(class extends uc{constructor(){super(...arguments),this.props.setAttributes({instanceId:this.props.instanceId})}render(){const{attributes:e,isSelected:t,setAttributes:o,buttonBackgroundColor:a,buttonTextColor:r}=this.props,l=genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.api_key_defined;let s,c;return s=e.customButtonBackgroundColor?"gb-has-custom-background-color":e.buttonBackgroundColor?`has-${e.buttonBackgroundColor}-background-color`:null,c=e.customButtonTextColor?"gb-has-custom-text-color":e.buttonTextColor?"has-"+e.buttonTextColor+"-color":null,[React.createElement(oc,n({key:"gb-newsletter-inspector-"+this.props.clientId,setAttributes:o},this.props)),React.createElement(ic,n({key:"gb-newsletter-container-"+this.props.clientId},this.props),!l&&React.createElement(dc,null,React.createElement("div",{className:"gb-newsletter-notice"},rc("You must define your newsletter provider API keys to use this block.","genesis-blocks"),React.createElement("p",null,React.createElement("a",{href:genesis_blocks_newsletter_block_vars.plugin_settings_page_url,target:"_blank",rel:"noopener noreferrer"},rc("Configure your settings","genesis-blocks"))))),l&&React.createElement(dc,null,React.createElement(pc,{tagName:"span",className:"gb-block-newsletter-label",keepPlaceholderOnFocus:!0,allowedFormats:[],value:e.emailInputLabel,onChange:e=>this.props.setAttributes({emailInputLabel:e})}),React.createElement(bc,{name:"gb-newsletter-email-address"}),React.createElement("div",{className:i()("gb-block-button")},React.createElement(Rt,this.props,React.createElement(pc,{tagName:"span",placeholder:rc("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e.buttonText,allowedFormats:[],className:i()("gb-button",e.buttonClass,e.buttonShape,e.buttonSize,s,c,{"has-background":e.buttonBackgroundColor||e.customButtonBackgroundColor,"has-text-color":e.buttonTextColor||e.customButtonTextColor}),style:{backgroundColor:a.color,color:r.color},onChange:e=>this.props.setAttributes({buttonText:e})})),t&&React.createElement("form",{key:"form-link",className:`blocks-button__inline-link gb-button-${e.buttonAlignment}`,onSubmit:e=>e.preventDefault(),style:{textAlign:e.buttonAlignment}}))))]}})),{__:kc}=wp.i18n,{registerBlockType:fc}=wp.blocks;fc("genesis-blocks/gb-newsletter",{title:kc("Email newsletter","genesis-blocks"),description:kc("Add an email newsletter sign-up form.","genesis-blocks"),category:"genesis-blocks",icon:"email-alt",keywords:[kc("Mailchimp","genesis-blocks"),kc("Subscribe","genesis-blocks"),kc("Newsletter","genesis-blocks")],edit:hc,gb_settings_data:{gb_newsletter_mailingList:{title:kc("Mailing List","genesis-blocks")},gb_newsletter_successMessage:{title:kc("Success Message","genesis-blocks")},gb_newsletter_doubleOptIn:{title:kc("Enable Double Opt-In","genesis-blocks")},gb_newsletter_containerPadding:{title:kc("Form Padding","genesis-blocks")},gb_newsletter_containerMargin:{title:kc("Form Margin","genesis-blocks")},gb_newsletter_colorOptions:{title:kc("Color Options","genesis-blocks")}},save:()=>null});const yc=function(e){return[void 0!==e.backgroundDimRatio&&100!==e.backgroundDimRatio?"gb-has-background-dim":null,(t=e.backgroundDimRatio,100>t?"gb-has-background-dim-"+10*Math.round(t/10):null),e.backgroundImgURL&&e.backgroundSize&&"no-repeat"===e.backgroundRepeat?"gb-background-"+e.backgroundSize:null,e.backgroundImgURL&&e.backgroundRepeat?"gb-background-"+e.backgroundRepeat:null,e.hasParallax?"gb-has-parallax":null];var t},vc=e=>({backgroundImage:e.backgroundImgURL?`url(${e.backgroundImgURL})`:void 0,backgroundPosition:e.focalPoint?`${100*e.focalPoint.x}% ${100*e.focalPoint.y}%`:void 0}),{Component:Cc}=wp.element;class Rc extends Cc{render(){const{attributes:e}=this.props;let t,o;t=e.customBackgroundColor?"gb-has-custom-background-color":e.backgroundColor?"has-"+e.backgroundColor+"-background-color":null,o=e.customTextColor?"gb-has-custom-text-color":e.textColor?"has-"+e.textColor+"-color":null;const n=i()([this.props.className,"gb-layout-columns-"+e.columns,e.layout,...yc(e),t,o,e.columnMaxWidth&&e.centerColumns?"gb-columns-center":null],{["align"+e.align]:e.align});let a,r;a=e.marginSync?{marginTop:0<e.margin?e.margin+e.marginUnit:null,marginBottom:0<e.margin?e.margin+e.marginUnit:null}:{marginTop:0<e.marginTop?e.marginTop+e.marginUnit:null,marginBottom:0<e.marginBottom?e.marginBottom+e.marginUnit:null},r=e.paddingSync?{padding:0<e.padding?e.padding+e.paddingUnit:null}:{paddingTop:0<e.paddingTop?e.paddingTop+e.paddingUnit:null,paddingRight:0<e.paddingRight?e.paddingRight+e.paddingUnit:null,paddingBottom:0<e.paddingBottom?e.paddingBottom+e.paddingUnit:null,paddingLeft:0<e.paddingLeft?e.paddingLeft+e.paddingUnit:null};const l={backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,...vc(e)};return React.createElement("div",{className:n||void 0,style:Object.assign(a,r,l)},this.props.children)}}const Ec={};Ec.oneEqual=React.createElement("svg",{className:"dashicon",height:"26",viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"60",height:"30",fill:"#6d6a6f"})),Ec.twoEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"33",y:"0",width:"29",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"29",height:"30",fill:"#6d6a6f"})),Ec.twoLeftWide=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"43",y:"0",width:"16",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"39",height:"30",fill:"#6d6a6f"})),Ec.twoRightWide=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"20",y:"0",width:"39",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"16",height:"30",fill:"#6d6a6f"})),Ec.threeEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"21.500",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"43",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"})),Ec.threeWideCenter=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"31",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"50",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),Ec.threeWideLeft=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"30",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"34",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),Ec.threeWideRight=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30",y:"0",width:"30",height:"30",fill:"#6d6a6f"})),Ec.fourEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"16",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"32",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"48",y:"0",width:"12",height:"30",fill:"#6d6a6f"})),Ec.fourLeft=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"21",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),Ec.fourRight=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38.400",y:"0",width:"21",height:"30",fill:"#6d6a6f"})),Ec.fiveEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.400",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"24.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"37.200",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),Ec.sixEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"10.330",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"20.660",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30.990",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"41.320",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51.650",y:"0",width:"7",height:"30",fill:"#6d6a6f"})),Ec.blockIcon=React.createElement("svg",{viewBox:"0 0 60 34",height:"34",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"38",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"22",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"6",y:"0",width:"12",height:"34",fill:"#6d6a6f"}));const wc=Ec,{__:xc}=wp.i18n,Tc={1:[{name:xc("1 Column","genesis-blocks"),key:"gb-1-col-equal",col:1,icon:wc.oneEqual}],2:[{name:xc("2 Columns - 50/50","genesis-blocks"),key:"gb-2-col-equal",col:2,icon:wc.twoEqual},{name:xc("2 Columns - 75/25","genesis-blocks"),key:"gb-2-col-wideleft",col:2,icon:wc.twoLeftWide},{name:xc("2 Columns - 25/75","genesis-blocks"),key:"gb-2-col-wideright",col:2,icon:wc.twoRightWide}],3:[{name:xc("3 Columns - 33/33/33","genesis-blocks"),key:"gb-3-col-equal",col:3,icon:wc.threeEqual},{name:xc("3 Columns - 25/50/25","genesis-blocks"),key:"gb-3-col-widecenter",col:3,icon:wc.threeWideCenter},{name:xc("3 Columns - 50/25/25","genesis-blocks"),key:"gb-3-col-wideleft",col:3,icon:wc.threeWideLeft},{name:xc("3 Columns - 25/25/50","genesis-blocks"),key:"gb-3-col-wideright",col:3,icon:wc.threeWideRight}],4:[{name:xc("4 Columns - 25/25/25/25","genesis-blocks"),key:"gb-4-col-equal",col:4,icon:wc.fourEqual},{name:xc("4 Columns - 40/20/20/20","genesis-blocks"),key:"gb-4-col-wideleft",col:4,icon:wc.fourLeft},{name:xc("4 Columns - 20/20/20/40","genesis-blocks"),key:"gb-4-col-wideright",col:4,icon:wc.fourRight}],5:[{name:xc("5 Columns","genesis-blocks"),key:"gb-5-col-equal",col:5,icon:wc.fiveEqual}],6:[{name:xc("6 Columns","genesis-blocks"),key:"gb-6-col-equal",col:6,icon:wc.sixEqual}]},{__:_c}=wp.i18n,{Fragment:Sc,Component:Bc}=wp.element,{PanelBody:zc,RangeControl:Ac,Button:Nc,ButtonGroup:Lc,FocalPointPicker:Pc,Icon:Ic,ToggleControl:Mc,SelectControl:Fc}=wp.components,{MediaUpload:Oc,MediaUploadCheck:Uc}=wp.blockEditor,Dc=class extends Bc{render(){const{attributes:e,setAttributes:t}=this.props,o=[{value:"no-repeat",label:_c("No Repeat","genesis-blocks")},{value:"repeat",label:_c("Repeat","genesis-blocks")},{value:"repeat-x",label:_c("Repeat Horizontally","genesis-blocks")},{value:"repeat-y",label:_c("Repeat Vertically","genesis-blocks")}],n=[{value:"auto",label:_c("Auto","genesis-blocks")},{value:"cover",label:_c("Cover","genesis-blocks")},{value:"contain",label:_c("Contain","genesis-blocks")}];let a;return"cover"===e.backgroundSize&&(a=_c("Scales the image as large as possible without stretching the image. Cropped either vertically or horizontally so that no empty space remains.","genesis-blocks")),"contain"===e.backgroundSize&&(a=_c("Scales the image as large as possible without cropping or stretching the image.","genesis-blocks")),"auto"===e.backgroundSize&&(a=_c("Scales the background image in the corresponding direction such that its intrinsic proportions are maintained.","genesis-blocks")),React.createElement(Sc,null,React.createElement(zc,{title:_c("Background Image","genesis-blocks"),initialOpen:!1},React.createElement(Uc,null,React.createElement(Oc,{onSelect:e=>{t({backgroundImgURL:e.url})},type:"image",value:e.backgroundImgURL,render:o=>{let{open:n}=o;return React.createElement("div",null,React.createElement(Lc,{className:"gb-background-button-group"},React.createElement(Nc,{className:"gb-inspector-icon-button gb-background-add-button is-button is-default",label:_c("Edit image","genesis-blocks"),onClick:n},React.createElement(Ic,{icon:"format-image"}),_c("Select Image","genesis-blocks")),e.backgroundImgURL&&React.createElement(Nc,{className:"gb-inspector-icon-button gb-background-remove-button is-button is-default",label:_c("Remove Image","genesis-blocks"),onClick:()=>t({backgroundImgURL:null})},React.createElement(Ic,{icon:"dismiss"}),_c("Remove","genesis-blocks"))))}})),e.backgroundImgURL&&React.createElement(Sc,null,React.createElement(Pc,{label:_c("Focal Point","genesis-blocks"),url:e.backgroundImgURL,value:e.focalPoint,onChange:e=>t({focalPoint:e})}),React.createElement(Ac,{label:_c("Image Opacity","genesis-blocks"),value:e.backgroundDimRatio,onChange:e=>this.props.setAttributes({backgroundDimRatio:e}),min:0,max:100,step:10}),React.createElement(Mc,{label:_c("Fixed Background","genesis-blocks"),checked:e.hasParallax,onChange:()=>{t({hasParallax:!e.hasParallax,...e.hasParallax?{}:{focalPoint:void 0}})}}),React.createElement(Fc,{className:"gb-inspector-help-text",label:_c("Image Display","genesis-blocks"),value:e.backgroundSize,help:a,options:n,onChange:e=>this.props.setAttributes({backgroundSize:e})}),"cover"!==e.backgroundSize&&React.createElement(Fc,{label:_c("Image Repeat","genesis-blocks"),value:e.backgroundRepeat,options:o,onChange:e=>this.props.setAttributes({backgroundRepeat:e})}))))}},{__:jc}=wp.i18n,{Component:Wc,Fragment:Vc}=wp.element,{InspectorControls:Hc,PanelColorSettings:qc,ContrastChecker:Gc}=wp.blockEditor,{PanelBody:$c,RangeControl:Kc,ButtonGroup:Yc,Button:Qc,Tooltip:Xc,ToggleControl:Zc,SelectControl:Jc}=wp.components;class ep extends Wc{render(){const{attributes:e,setAttributes:t,backgroundColor:o,setBackgroundColor:n,textColor:a,setTextColor:i}=this.props;let r=1;e.columns&&(r=parseInt(e.columns.toString().split("-")));const l=[{value:"px",label:jc("Pixel (px)","genesis-blocks")},{value:"%",label:jc("Percent (%)","genesis-blocks")},{value:"em",label:jc("Em (em)","genesis-blocks")}];return React.createElement(Hc,{key:"inspector"},e.layout&&React.createElement($c,{title:jc("General","genesis-blocks"),initialOpen:!0,className:"gb-column-select-panel"},React.createElement(s,{id:"gb_column_columns"},React.createElement(Kc,{label:jc("Column Count","genesis-blocks"),help:jc("Note: Changing the column count after you've added content to the column can cause loss of content.","genesis-blocks"),value:e.columns,onChange:e=>this.props.setAttributes({columns:e,layout:"gb-"+e+"-col-equal"}),min:1,max:6,step:1})),React.createElement("hr",null),(2===e.columns||3===e.columns||4===e.columns)&&React.createElement(Vc,null,React.createElement(s,{id:"gb_column_columnLayouts"},React.createElement("p",null,jc("Column Layout","genesis-blocks")),React.createElement(Yc,{"aria-label":jc("Column Layout","genesis-blocks")},Zn()(Tc[r],(e=>{let{name:o,key:n,icon:a}=e;return React.createElement(Xc,{text:o,key:n},React.createElement(Qc,{key:n,className:"gb-column-selector-button",isSmall:!0,onClick:()=>{t({layout:n}),this.setState({selectLayout:!1})}},a))}))),React.createElement("p",null,React.createElement("i",null,jc("Change the layout of your columns.","genesis-blocks"))),React.createElement("hr",null))),React.createElement(s,{id:"gb_column_columnsGap"},React.createElement(Kc,{label:jc("Column Gap","genesis-blocks"),help:jc("Adjust the spacing between columns.","genesis-blocks"),value:e.columnsGap,onChange:e=>this.props.setAttributes({columnsGap:e}),min:0,max:10,step:1})),React.createElement("hr",null),React.createElement(s,{id:"gb_column_columnMaxWidth"},React.createElement(Kc,{label:jc("Column Inner Max Width (px)"),help:jc("Adjust the width of the content inside the container wrapper.","genesis-blocks"),value:e.columnMaxWidth,onChange:e=>this.props.setAttributes({columnMaxWidth:e}),min:0,max:2e3,step:1})),0<e.columnMaxWidth&&React.createElement(s,{id:"gb_column_centerColumns"},React.createElement(Zc,{label:jc("Center Columns In Container","genesis-blocks"),help:jc("Center the columns in the container when max-width is used.","genesis-blocks"),checked:e.centerColumns,onChange:()=>this.props.setAttributes({centerColumns:!e.centerColumns})})),React.createElement("hr",null),React.createElement(s,{id:"gb_column_responsiveToggle"},React.createElement(Zc,{label:jc("Responsive Columns","genesis-blocks"),help:jc("Columns will be adjusted to fit on tablets and mobile devices.","genesis-blocks"),checked:e.responsiveToggle,onChange:()=>this.props.setAttributes({responsiveToggle:!e.responsiveToggle})}))),React.createElement(s,{id:"gb_column_marginPadding"},React.createElement($c,{title:jc("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(Jc,{label:jc("Margin Unit","genesis-blocks"),help:jc("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:e.marginUnit,onChange:e=>this.props.setAttributes({marginUnit:e})}),React.createElement(Zc,{label:jc("Sync Margin","genesis-blocks"),help:jc("Top and bottom margins will have the same value.","genesis-blocks"),checked:e.marginSync,onChange:()=>this.props.setAttributes({marginSync:!e.marginSync})}),e.marginSync?React.createElement(Vs,{marginEnableVertical:!0,marginVerticalLabel:jc("Margin Top/Bottom","genesis-blocks"),marginVertical:e.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:e=>t({margin:e})}):React.createElement(Vs,{marginEnableTop:!0,marginTop:e.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:e=>t({marginTop:e}),marginEnableBottom:!0,marginBottom:e.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:e=>t({marginBottom:e})}),React.createElement("hr",null),React.createElement(Jc,{label:jc("Padding Unit","genesis-blocks"),help:jc("Choose between pixel, percent, or em units.","genesis-blocks"),options:l,value:e.paddingUnit,onChange:e=>this.props.setAttributes({paddingUnit:e})}),React.createElement(Zc,{label:jc("Sync Padding","genesis-blocks"),help:jc("Padding on all sides will have the same value.","genesis-blocks"),checked:e.paddingSync,onChange:()=>this.props.setAttributes({paddingSync:!e.paddingSync})}),e.paddingSync?React.createElement(Hi,{paddingEnable:!0,padding:e.padding,paddingMin:"0",paddingMax:"200",onChangePadding:e=>t({padding:e})}):React.createElement(Hi,{paddingEnableTop:!0,paddingTop:e.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:e=>t({paddingTop:e}),paddingEnableRight:!0,paddingRight:e.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:e=>t({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:e.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:e=>t({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:e.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:e=>t({paddingLeft:e})}))),React.createElement(s,{id:"gb_column_colorSettings"},React.createElement(qc,{title:jc("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o.color,onChange:n,label:jc("Background Color","genesis-blocks")},{value:a.color,onChange:i,label:jc("Text Color","genesis-blocks")}]},React.createElement(Gc,{textColor:a.color,backgroundColor:o.color}))),React.createElement(s,{id:"gb_column_backgroundImagePanel"},React.createElement(Dc,this.props)))}}const{__:tp}=wp.i18n,{Component:op,Fragment:np}=wp.element,{compose:ap}=wp.compose,{BlockControls:ip,BlockAlignmentToolbar:rp,InnerBlocks:lp,withColors:sp}=wp.blockEditor,{Placeholder:cp,ButtonGroup:pp,Tooltip:gp,Button:dp}=wp.components,up=["genesis-blocks/gb-column"],bp=bi()((e=>hi()(e,(()=>["genesis-blocks/gb-column"])))),mp=ap([sp("backgroundColor",{textColor:"color"})])(class extends op{constructor(){super(...arguments),this.state={selectLayout:!0}}render(){const{attributes:e,setAttributes:t}=this.props;let o=1;e.columns&&(o=parseInt(e.columns.toString().split("-")));const a=[{name:tp("1 Column","genesis-blocks"),key:"one-column",columns:1,icon:wc.oneEqual},{name:tp("2 Columns","genesis-blocks"),key:"two-column",columns:2,icon:wc.twoEqual},{name:tp("3 Columns","genesis-blocks"),key:"three-column",columns:3,icon:wc.threeEqual},{name:tp("4 Columns","genesis-blocks"),key:"four-column",columns:4,icon:wc.fourEqual},{name:tp("5 Columns","genesis-blocks"),key:"five-column",columns:5,icon:wc.fiveEqual},{name:tp("6 Columns","genesis-blocks"),key:"six-column",columns:6,icon:wc.sixEqual}];return!e.layout&&this.state.selectLayout?[React.createElement(cp,{key:"placeholder",icon:"editor-table",label:e.columns?tp("Column Layout","genesis-blocks"):tp("Column Number","genesis-blocks"),instructions:e.columns?tp("Select a layout for this column.","genesis-blocks"):tp("Select the number of columns for this layout.","genesis-blocks"),className:"gb-column-selector-placeholder"},e.columns?React.createElement(np,null,React.createElement(pp,{"aria-label":tp("Select Column Layout","genesis-blocks"),className:"gb-column-selector-group"},Zn()(Tc[o],(e=>{let{name:o,key:n,icon:a}=e;return React.createElement(gp,{text:o,key:n},React.createElement("div",{className:"gb-column-selector"},React.createElement(dp,{key:n,className:i()("gb-column-selector-button",n),isSmall:!0,onClick:()=>{t({layout:n}),this.setState({selectLayout:!1})}},a)))}))),React.createElement(dp,{className:"gb-column-selector-button-back",onClick:()=>{t({columns:null}),this.setState({selectLayout:!0})}},tp("Return to Column Selection","genesis-blocks"))):React.createElement(pp,{"aria-label":tp("Select Row Columns","genesis-blocks"),className:"gb-column-selector-group"},Zn()(a,(e=>{let{name:o,key:n,icon:a,columns:r}=e;return React.createElement(gp,{text:o,key:n},React.createElement("div",{className:"gb-column-selector"},React.createElement(dp,{className:i()("gb-column-selector-button","gb-select-"+n),isSmall:!0,onClick:()=>{t({columns:r,layout:1===r||5===r||6===r?n:null}),1===r&&this.setState({selectLayout:!1})}},a)))}))))]:[React.createElement(ip,{key:"controls"},React.createElement(rp,{value:e.align,onChange:e=>t({align:e}),controls:["center","wide","full"]})),React.createElement(ep,n({},this.props,{key:"inspector"})),React.createElement(Rc,n({},this.props,{backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color,key:"columns"}),React.createElement("div",{className:i()("gb-layout-column-wrap-admin","gb-block-layout-column-gap-"+e.columnsGap,e.responsiveToggle?"gb-is-responsive-column":null),style:{maxWidth:e.columnMaxWidth?e.columnMaxWidth:null}},React.createElement(lp,{template:bp(e.columns),templateLock:"all",allowedBlocks:up})))]}}),{Component:hp}=wp.element,{InnerBlocks:kp}=wp.blockEditor;class fp extends hp{render(){const{attributes:e}=this.props,t=i()(["gb-layout-column-wrap","gb-block-layout-column-gap-"+e.columnsGap,e.responsiveToggle?"gb-is-responsive-column":null]);return React.createElement(Rc,n({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement("div",{className:t||void 0,style:{maxWidth:e.columnMaxWidth?e.columnMaxWidth:null}},React.createElement(kp.Content,null)))}}const yp={backgroundImgURL:{type:"string"},backgroundDimRatio:{type:"number",default:100},backgroundRepeat:{type:"string",default:"no-repeat"},backgroundSize:{type:"string",default:"cover"},hasParallax:{type:"boolean",default:!1},focalPoint:{type:"object"}},{__:vp}=wp.i18n,{registerBlockType:Cp}=wp.blocks;Cp("genesis-blocks/gb-columns",{title:vp("Advanced Columns","genesis-blocks"),description:vp("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[vp("column","genesis-blocks"),vp("grid","genesis-blocks"),vp("row","genesis-blocks")],attributes:{...yp,columns:{type:"number"},layout:{type:"string"},columnsGap:{type:"number",default:2},align:{type:"string"},responsiveToggle:{type:"boolean",default:!0},marginSync:{type:"boolean",default:!1},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},marginUnit:{type:"string",default:"px"},paddingSync:{type:"boolean",default:!1},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingUnit:{type:"string",default:"px"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},columnMaxWidth:{type:"number"},centerColumns:{type:"boolean",default:!0}},gb_settings_data:{gb_column_columns:{title:vp("Column Count","genesis-blocks")},gb_column_columnLayouts:{title:vp("Column Layout","genesis-blocks")},gb_column_columnsGap:{title:vp("Column Gap","genesis-blocks")},gb_column_columnMaxWidth:{title:vp("Column Inner Max Width","genesis-blocks")},gb_column_centerColumns:{title:vp("Center Columns In Container","genesis-blocks")},gb_column_responsiveToggle:{title:vp("Responsive Columns","genesis-blocks")},gb_column_marginPadding:{title:vp("Margin / Padding","genesis-blocks")},gb_column_colorSettings:{title:vp("Color Settings","genesis-blocks")},gb_column_backgroundImagePanel:{title:vp("Background Settings","genesis-blocks")}},getEditWrapperProps(e){let{align:t}=e;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:e=>React.createElement(mp,e),save:e=>React.createElement(fp,e)});const{__:Rp}=wp.i18n,{Component:Ep}=wp.element,{compose:xp}=wp.compose,{InspectorControls:Tp,PanelColorSettings:_p,withColors:Sp,ContrastChecker:Bp}=wp.blockEditor,{PanelBody:zp,ToggleControl:Ap,SelectControl:Np}=wp.components,Lp=xp([Sp("backgroundColor",{textColor:"color"})])(class extends Ep{render(){const{backgroundColor:e,setBackgroundColor:t,textColor:o,setTextColor:n,attributes:a,setAttributes:i}=this.props,r=[{value:"px",label:Rp("Pixel (px)","genesis-blocks")},{value:"%",label:Rp("Percent (%)","genesis-blocks")},{value:"em",label:Rp("Em (em)","genesis-blocks")}];return React.createElement(Tp,{key:"inspector"},React.createElement(s,{id:"gb_column_inner_marginPadding"},React.createElement(zp,{title:Rp("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(Np,{label:Rp("Margin Unit","genesis-blocks"),help:Rp("Choose between pixel, percent, or em units.","genesis-blocks"),options:r,value:a.marginUnit,onChange:e=>this.props.setAttributes({marginUnit:e})}),React.createElement(Ap,{label:Rp("Sync Margin","genesis-blocks"),help:Rp("Top and bottom margins will have the same value.","genesis-blocks"),checked:a.marginSync,onChange:()=>this.props.setAttributes({marginSync:!a.marginSync})}),a.marginSync?React.createElement(Vs,{marginEnableVertical:!0,marginVerticalLabel:Rp("Margin Top/Bottom","genesis-blocks"),marginVertical:a.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:e=>i({margin:e})}):React.createElement(Vs,{marginEnableTop:!0,marginTop:a.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:e=>i({marginTop:e}),marginEnableBottom:!0,marginBottom:a.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:e=>i({marginBottom:e})}),React.createElement("hr",null),React.createElement(Np,{label:Rp("Padding Unit","genesis-blocks"),help:Rp("Choose between pixel, percent, or em units.","genesis-blocks"),options:r,value:a.paddingUnit,onChange:e=>this.props.setAttributes({paddingUnit:e})}),React.createElement(Ap,{label:Rp("Sync Padding","genesis-blocks"),help:Rp("Padding on all sides will have the same value.","genesis-blocks"),checked:a.paddingSync,onChange:()=>this.props.setAttributes({paddingSync:!a.paddingSync})}),a.paddingSync?React.createElement(Hi,{paddingEnable:!0,padding:a.padding,paddingMin:"0",paddingMax:"200",onChangePadding:e=>i({padding:e})}):React.createElement(Hi,{paddingEnableTop:!0,paddingTop:a.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:e=>i({paddingTop:e}),paddingEnableRight:!0,paddingRight:a.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:e=>i({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:a.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:e=>i({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:a.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:e=>i({paddingLeft:e})}))),React.createElement(s,{id:"gb_column_inner_colorSettings"},React.createElement(_p,{title:Rp("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:e.color,onChange:t,label:Rp("Background Color","genesis-blocks")},{value:o.color,onChange:n,label:Rp("Text Color","genesis-blocks")}]},React.createElement(Bp,{textColor:o.color,backgroundColor:e.color}))),React.createElement(s,{id:"gb_column_inner_backgroundImagePanel"},React.createElement(Dc,this.props)))}}),{Component:Pp}=wp.element;class Ip extends Pp{render(){const{attributes:e}=this.props;let t,o;t=e.marginSync?{marginTop:0<e.margin?e.margin+e.marginUnit:null,marginBottom:0<e.margin?e.margin+e.marginUnit:null}:{marginTop:0<e.marginTop?e.marginTop+e.marginUnit:null,marginBottom:0<e.marginBottom?e.marginBottom+e.marginUnit:null},o=e.paddingSync?{padding:0<e.padding?e.padding+e.paddingUnit:null}:{paddingTop:0<e.paddingTop?e.paddingTop+e.paddingUnit:null,paddingRight:0<e.paddingRight?e.paddingRight+e.paddingUnit:null,paddingBottom:0<e.paddingBottom?e.paddingBottom+e.paddingUnit:null,paddingLeft:0<e.paddingLeft?e.paddingLeft+e.paddingUnit:null};const n={backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:e.textAlign?e.textAlign:null,...vc(e)};let a,r;return a=e.customBackgroundColor?"gb-has-custom-background-color":e.backgroundColor?"has-"+e.backgroundColor+"-background-color":null,r=e.customTextColor?"gb-has-custom-text-color":e.textColor?"has-"+e.textColor+"-color":null,React.createElement("div",{className:i()(this.props.className,"gb-block-layout-column",e.columnVerticalAlignment?"gb-is-vertically-aligned-"+e.columnVerticalAlignment:null)},React.createElement("div",{className:i()("gb-block-layout-column-inner",a,r,...yc(e)),style:Object.assign(t,o,n)},this.props.children))}}const{__:Mp}=wp.i18n,{compose:Fp}=wp.compose,{Component:Op}=wp.element,{ToolbarGroup:Up}=wp.components,{AlignmentToolbar:Dp,BlockControls:jp,InnerBlocks:Wp,withColors:Vp}=wp.blockEditor,Hp=Fp([Vp("backgroundColor",{textColor:"color"})])(class extends Op{render(){const{attributes:e,setAttributes:t}=this.props,o=[{icon:"arrow-up-alt2",title:Mp("Vertical Align Top","genesis-blocks"),isActive:"top"===e.columnVerticalAlignment,onClick:()=>t({columnVerticalAlignment:"top"})},{icon:"minus",title:Mp("Vertical Align Middle","genesis-blocks"),isActive:"center"===e.columnVerticalAlignment,onClick:()=>t({columnVerticalAlignment:"center"})},{icon:"arrow-down-alt2",title:Mp("Vertical Align Bottom","genesis-blocks"),isActive:"bottom"===e.columnVerticalAlignment,onClick:()=>t({columnVerticalAlignment:"bottom"})}];return[React.createElement(jp,{key:"controls"},React.createElement(Dp,{value:e.textAlign,onChange:e=>{t({textAlign:e})}}),React.createElement(Up,{controls:o})),React.createElement(Lp,n({},this.props,{key:"inspector"})),React.createElement(Ip,n({backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color},this.props,{key:"column"}),React.createElement(Wp,{template:[["core/paragraph"]],templateLock:!1,templateInsertUpdatesSelection:!1}))]}}),{Component:qp}=wp.element,{InnerBlocks:Gp}=wp.blockEditor;class $p extends qp{render(){const{attributes:e}=this.props;return React.createElement(Ip,n({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(Gp.Content,null))}}const{Component:Kp}=wp.element;class Yp extends Kp{constructor(e){super(...arguments)}render(){const{attributes:e}=this.props;let t,o;t=e.marginSync?{marginTop:0<e.margin?e.margin+e.marginUnit:null,marginBottom:0<e.margin?e.margin+e.marginUnit:null}:{marginTop:0<e.marginTop?e.marginTop+e.marginUnit:null,marginBottom:0<e.marginBottom?e.marginBottom+e.marginUnit:null},o=e.paddingSync?{padding:0<e.padding?e.padding+e.paddingUnit:null}:{paddingTop:0<e.paddingTop?e.paddingTop+e.paddingUnit:null,paddingRight:0<e.paddingRight?e.paddingRight+e.paddingUnit:null,paddingBottom:0<e.paddingBottom?e.paddingBottom+e.paddingUnit:null,paddingLeft:0<e.paddingLeft?e.paddingLeft+e.paddingUnit:null};const n={backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:e.textAlign?e.textAlign:null};let a,r;return a=e.customBackgroundColor?"gb-has-custom-background-color":e.backgroundColor?"has-"+e.backgroundColor+"-background-color":null,r=e.customTextColor?"gb-has-custom-text-color":e.textColor?"has-"+e.textColor+"-color":null,React.createElement("div",{className:i()("gb-block-layout-column",e.columnVerticalAlignment?"gb-is-vertically-aligned-"+e.columnVerticalAlignment:null)},React.createElement("div",{className:i()("gb-block-layout-column-inner",a,r),style:Object.assign(t,o,n)},this.props.children))}}const{Component:Qp}=wp.element,{InnerBlocks:Xp}=wp.blockEditor;class Zp extends Qp{render(){const{attributes:e}=this.props;return React.createElement(Yp,n({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(Xp.Content,null))}}const Jp=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}},save:e=>React.createElement(Zp,e)}],{__:eg}=wp.i18n,{registerBlockType:tg}=wp.blocks;tg("genesis-blocks/gb-column",{title:eg("Column","genesis-blocks"),description:eg("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",parent:["genesis-blocks/gb-columns"],keywords:[eg("column","genesis-blocks"),eg("layout","genesis-blocks"),eg("row","genesis-blocks")],attributes:{...yp,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}},gb_settings_data:{gb_column_inner_marginPadding:{title:eg("Margin and Padding","genesis-blocks")},gb_column_inner_colorSettings:{title:eg("Color","genesis-blocks")},gb_column_inner_backgroundImagePanel:{title:eg("Background Image","genesis-blocks")}},edit:e=>React.createElement(Hp,e),save:e=>React.createElement($p,e),deprecated:Jp});const og=wp.compose.createHigherOrderComponent((e=>t=>"genesis-blocks/gb-column"===t.block.name&&t.block.attributes.columnVerticalAlignment?React.createElement(e,n({},t,{className:"gb-is-vertically-aligned-"+t.block.attributes.columnVerticalAlignment})):React.createElement(e,t)),"withClientIdClassName");wp.hooks.addFilter("editor.BlockListBlock","genesis-blocks/add-vertical-align-class",og);const{__:ng}=wp.i18n,{Component:ag,Fragment:ig}=wp.element,{Button:rg,Dashicon:lg,Tooltip:sg}=wp.components;class cg extends ag{addDefaultSrc(e){e.target.src=genesis_blocks_globals.pattern_fallback_image}render(){return React.createElement(ig,null,React.createElement("div",{key:"gb-layout-design-"+this.props.itemKey,className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(rg,{key:this.props.itemKey,className:"gb-layout-insert-button",isSmall:!0,onClick:()=>{this.props.import(this.props.content,this.props.clientId)}},React.createElement("img",{src:this.props.image?this.props.image:genesis_blocks_globals.pattern_fallback_image,alt:this.props.name,onError:this.addDefaultSrc})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},this.props.name,React.createElement(sg,{text:this.props.context.favoriteKeys.includes(this.props.itemKey)?ng("Remove from Favorites","genesis-blocks"):ng("Add to Favorites","genesis-blocks")},React.createElement(rg,{key:"buttonFavorite",className:"gb-layout-favorite-button",isSmall:!0,onClick:()=>{this.props.context.toggleFavorite(this.props.itemKey)}},React.createElement(lg,{icon:"heart",className:i()("gb-layout-icon-favorite",this.props.context.favoriteKeys.includes(this.props.itemKey)&&"gb-layout-icon-favorite-active")})))))))))}}const{__:pg}=wp.i18n,{addQueryArgs:gg}=wp.url,{Component:dg,Fragment:ug}=wp.element;class bg extends dg{render(){const e=this.props.itemKey.match(/\d+/g)[0];return React.createElement(ug,null,React.createElement("div",{className:"gb-layout-reusable"},React.createElement("div",null,React.createElement("a",{role:"button",key:this.props.itemKey,className:"gb-layout-insert-button",onClick:()=>{this.props.import(this.props.content)}},this.props.name)),React.createElement("div",{className:"gb-layout-reusable-actions"},React.createElement("span",null,React.createElement("a",{href:gg("post.php",{post:e,post_type:"wp_block",action:"edit"}),target:"_blank",rel:"noopener noreferrer"},pg("Edit","genesis-blocks"))))))}}const{rawHandler:mg}=wp.blocks;function hg(e,t){wp.data.dispatch("core/block-editor").replaceBlocks(t,mg({HTML:e,mode:"BLOCKS"}))}const{useState:kg}=wp.element,{Button:fg}=wp.components;function yg(e){return React.createElement(React.Fragment,null,React.createElement("div",{className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(fg,{className:"gb-layout-insert-button gb-layout-collection-button",isSmall:!0,onClick:()=>{e.collectionsView.setCurrentView("collection"),e.setCurrentCollection(e.collectionSlug)}},React.createElement("div",{className:"gb-layout-collection-cover"},React.createElement("img",{src:e.context.collections[e.collectionSlug].thumbnail?e.context.collections[e.collectionSlug].thumbnail:genesis_blocks_globals.pattern_fallback_image,alt:e.context.collections[e.collectionSlug].label,onError:e=>{e.target.src=genesis_blocks_globals.pattern_fallback_image}})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},React.createElement("span",{className:"gb-layout-collection-label"},e.context.collections[e.collectionSlug].label))))))))}const{useDispatch:vg,useSelect:Cg}=wp.data,{__:Rg}=wp.i18n,{ButtonGroup:Eg}=wp.components;function wg(e){const{currentCollection:t}=Cg((e=>e("core/block-editor").getSettings())),o=function(e){const[t,o]=kg(e.view);return{currentView:t,setCurrentView:o}}({view:t?"collection":"collections"}),{updateSettings:a}=vg("core/block-editor"),i=e=>a({currentCollection:e});function r(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"layouts";const n=[];for(const a in e.context[o]){const i=e.context[o][a];i.hasOwnProperty("collection")&&t===i.collection.slug&&n.push(React.createElement(cg,{key:i.key,itemKey:i.key,name:i.name,image:i.image,import:hg,content:i.content,context:e.context,clientId:e.clientId}))}return 0===n.length?"":React.createElement(React.Fragment,null,React.createElement("h3",{className:"gb-collection-type-title"},"layouts"===o?Rg("Page Layouts","genesis-blocks"):"sections"===o?Rg("Page Sections","genesis-blocks"):void 0),React.createElement(Eg,{className:"gb-layout-choices","aria-label":Rg("Layout Options in this Collection","genesis-blocks")},n))}return React.createElement("div",{className:"gb-collections"},React.createElement("div",{className:"gb-collections-header"},React.createElement("div",{className:"gb-collections-header-left"},"collection"!==o.currentView?"":React.createElement("div",{className:"gb-collections-view-all-container"},React.createElement("button",{className:"gb-collections-view-all-link",onClick:()=>{o.setCurrentView("collections"),o.setCurrentCollection(null)}},React.createElement("span",{className:"dashicons dashicons-arrow-left-alt"}),Rg("View All Collections ","genesis-blocks"))),"collections"===o.currentView?React.createElement("h2",{className:"gb-collection-title"},Rg("Collections ","genesis-blocks")):"collection"===o.currentView?React.createElement("h2",{className:"gb-collection-title"},Rg("Browsing ","genesis-blocks")+(null===(l=e.context.collections[t])||void 0===l?void 0:l.label)):void 0),React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://developer.wpengine.com/genesis-blocks/layouts-block/#collections",tabIndex:"0",className:"gb-collections-link"},React.createElement("span",{className:"dashicons dashicons-info"}),Rg("Learn about Collections","genesis-blocks"))),React.createElement("div",{className:"gb-collections-body"},function(t){if("collections"!==o.currentView)return"";const a=[];for(const r in t)a.push(React.createElement(yg,n({key:r,collectionSlug:r,collectionsView:o,setCurrentCollection:i},e)));return React.createElement(Eg,{className:"gb-layout-choices","aria-label":Rg("Collections Available","genesis-blocks")},a)}(e.context.collections),"collection"!==o.currentView?"":React.createElement(React.Fragment,null,r("sections"),r("layouts"))));var l}const{compose:xg}=wp.compose,{rawHandler:Tg}=wp.blocks,{withSelect:_g,withDispatch:Sg}=wp.data,{Component:Bg,Fragment:zg}=wp.element,Ag=xg(_g(((e,t)=>{let{clientId:o}=t;const{getBlock:n}=e("core/block-editor");let a;return e("core/editor")?(a=e("core/editor").canUserUseUnfilteredHTML,a=a()):a=!0,{block:n(o),canUserUseUnfilteredHTML:a}})),Sg(((e,t)=>{let{block:o,canUserUseUnfilteredHTML:n}=t;return{import:t=>e("core/block-editor").replaceBlocks(o.clientId,Tg({HTML:t,mode:"BLOCKS",canUserUseUnfilteredHTML:n}))}})))(class extends Bg{layoutTabContent(){let e=[];return e="gb-layout-tab-reusable-blocks"===this.props.currentTab?React.createElement(bg,this.props):"gb-layout-tab-collections"===this.props.currentTab?React.createElement(wg,this.props):React.createElement(cg,this.props),e}render(){return React.createElement(zg,null,this.layoutTabContent())}}),{apiFetch:Ng}=wp,Lg=(0,qt.createContext)({favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""});class Pg extends qt.Component{constructor(){var e,t;super(...arguments),t={favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""},(e="state")in this?Object.defineProperty(this,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[e]=t}getFavoriteKeys(){return Ng({path:"/genesisblocks/v1/layouts/favorites",method:"GET"}).then((e=>e)).catch((e=>console.error(e)))}getFavorites(){return Ng({path:"/genesisblocks/v1/layouts/favorites",method:"GET"}).then((e=>{const t=[];return Object.values(this.state.all).forEach((function(o){e.includes(o.key)&&t.push(o)})),t})).catch((e=>console.error(e)))}addFavorite(e){return Ng({path:"/genesisblocks/v1/layouts/favorites",method:"PATCH",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).catch((e=>console.error(e)))}removeFavorite(e){return Ng({path:"/genesisblocks/v1/layouts/favorites",method:"DELETE",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).catch((e=>console.error(e)))}async componentDidMount(){const e=await this.getFavoriteKeys();wp.apiFetch({method:"GET",path:"/genesisblocks/v1/layouts/all?filter=allowed"}).then((async t=>{const o=[],n=[],a=[],i=[],r=[];Object.values(t).forEach((function(t){"layout"===t.type&&o.push(t),"section"===t.type&&n.push(t),"wp_block"===t.type&&a.push(t),t.hasOwnProperty("collection")&&(r.hasOwnProperty(t.collection.slug)||(r[t.collection.slug]=[],t.collection.image=t.image,r[t.collection.slug]=t.collection)),e.includes(t.key)&&i.push(t)})),this.setState({all:t,layouts:o,sections:n,favorites:i,favoriteKeys:e,reusableBlocks:a,collections:r})}))}render(){return this.state.all?Gt().createElement(Lg.Provider,{value:{favorites:this.state.favorites,favoriteKeys:this.state.favoriteKeys,layouts:this.state.layouts,sections:this.state.sections,all:this.state.all,reusableBlocks:this.state.reusableBlocks,collections:this.state.collections,toggleFavorite:async e=>{let t=await this.getFavoriteKeys();t=t.includes(e)?await this.removeFavorite(e):await this.addFavorite(e);const o=await this.getFavorites();return this.setState({favorites:o,favoriteKeys:t}),o}}},this.props.children):null}}const{__:Ig}=wp.i18n,{addQueryArgs:Mg}=wp.url,{Component:Fg,Fragment:Og}=wp.element,{ButtonGroup:Ug,TextControl:Dg,SelectControl:jg}=wp.components;class Wg extends Fg{constructor(){super(...arguments),this.state={category:"all",search:void 0,activeView:"grid"}}getLayoutArray(){let e=[];switch(this.props.currentTab){case"gb-layout-tab-layouts":e=this.props.context.layouts;break;case"gb-layout-tab-sections":e=this.props.context.sections;break;case"gb-layout-tab-favorites":e=this.props.context.favorites;break;case"gb-layout-tab-reusable-blocks":e=this.props.context.reusableBlocks;break;case"gb-layout-tab-collections":e=this.props.context.collections}return e}render(){const e=this.getLayoutArray(),t=["all"];if("gb-layout-tab-collections"!==this.props.currentTab)for(let o=0;o<e.length;o++)for(let n=0;n<e[o].category.length;n++)t.includes(e[o].category[n])||t.push(e[o].category[n]);const o=t.map((e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}))),a=this.props.data;return"gb-layout-tab-collections"===this.props.currentTab?React.createElement(wg,n({key:this.props.data.key},this.props)):React.createElement(Og,{key:"layout-library-fragment-"+this.props.clientId},"gb-layout-tab-reusable-blocks"!==this.props.currentTab?React.createElement(Og,null,React.createElement("div",{className:"gb-layout-modal-header"},React.createElement(jg,{key:"layout-library-select-categories-"+this.props.clientId,label:Ig("Layout Categories","genesis-blocks"),value:this.state.category,options:o,onChange:e=>{this.setState({category:e})}}),React.createElement(Dg,{key:"layout-library-search-layouts-"+this.props.clientId,type:"text",value:this.state.search,placeholder:Ig("Search Layouts","genesis-blocks"),onChange:e=>{this.setState({search:e})}}))):React.createElement(Og,null,React.createElement("div",{className:"gb-layout-modal-header gb-layout-modal-header-reusable"},React.createElement("div",null,Ig("Reusable Blocks","genesis-blocks")),React.createElement("div",{className:"gb-layout-modal-header-reusable-actions"},React.createElement("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:Mg("edit.php",{post_type:"wp_block"}),target:"_blank",rel:"noopener noreferrer"},Ig("Manage All Reusable Blocks","genesis-blocks"))))),React.createElement(Lg.Consumer,null,(e=>React.createElement(Ug,{key:"layout-library-context-button-group-"+this.props.clientId,className:i()("gb-layout-choices","current-tab-"+this.props.currentTab,"full"===this.state.activeView?"gb-layout-view-full":null),"aria-label":Ig("Layout Options","genesis-blocks")},Zn()(a,(t=>{let{name:o,key:n,image:a,content:i,category:r,keywords:l,type:s}=t;if(("all"===this.state.category||r.includes(this.state.category))&&(!this.state.search||l&&l.some((e=>e.toLowerCase().includes(this.state.search.toLowerCase())))))return React.createElement(Ag,{key:"layout-library-item-"+n,name:o,type:s,itemKey:n,image:a,content:i,context:e,clientId:this.props.clientId,currentTab:this.props.currentTab})}))))))}}const{__:Vg}=wp.i18n,{Fragment:Hg,useState:qg}=wp.element,{Button:Gg,Dashicon:$g,Modal:Kg,TabPanel:Yg}=wp.components,{useDispatch:Qg}=wp.data,Xg=function(e){const[t,o]=qg("gb-layout-tab-collections"),[n,a]=qg(!0),{removeBlock:i}=Qg("core/block-editor"),r=[];return Object.keys(e.context.collections).length>0&&r.push({name:"gb-layout-tab-collections",title:Vg("Collections","genesis-blocks"),className:"gb-layout-tab-collections"}),e.context.sections.length>0&&r.push({name:"gb-layout-tab-sections",title:Vg("Sections","genesis-blocks"),className:"gb-layout-tab-sections"}),e.context.layouts.length>0&&r.push({name:"gb-layout-tab-layouts",title:Vg("Layouts","genesis-blocks"),className:"gb-layout-tab-layouts"}),r.push({name:"gb-layout-tab-favorites",title:Vg("Favorites","genesis-blocks"),className:"gb-layout-tab-favorites"}),e.context.reusableBlocks.length&&r.push({name:"gb-layout-tab-reusable-blocks",title:Vg("Reusable Blocks","genesis-blocks"),className:"gb-layout-tab-reusable-blocks"}),React.createElement(Hg,{key:"layout-modal-fragment-"+e.clientId},React.createElement(Gg,{key:"layout-modal-library-button-"+e.clientId,isPrimary:!0,className:"gb-layout-modal-button",onClick:()=>{a(!0)}},Vg("Layout Library","genesis-blocks")),n?React.createElement(Kg,{key:"layout-modal-modal-component-"+e.clientId,className:"gb-layout-modal",title:Vg("Layout Selector","genesis-blocks"),onRequestClose:()=>{a(!1),o(null),i(e.clientId)}},genesis_blocks_globals.pro_activated&&React.createElement("div",{className:"gb-layout-modal-footer"},React.createElement($g,{icon:"editor-help"}),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/",target:"_blank",rel:"noopener noreferrer"},Vg("Add Custom Layouts","genesis-blocks")),React.createElement("span",null,"·"),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/reusable-blocks/",target:"_blank",rel:"noopener noreferrer"},Vg("Reusable Blocks","genesis-blocks")),React.createElement("a",{href:"https://www.research.net/r/XFQYFPP",target:"_blank",rel:"noopener noreferrer",className:"gb-pro-feedback"},React.createElement($g,{icon:"admin-comments"})," ",Vg("Send Feedback","genesis-blocks"))),React.createElement(Yg,{key:"layout-modal-tabpanel-"+e.clientId,className:"gb-layout-modal-panel",activeClass:"gb-layout-modal-active-tab",onSelect:e=>{o(e)},tabs:r},(o=>{const n=Vg("Default tab content","genesis-blocks");if(o.name){if("gb-layout-tab-sections"===o.name)return[React.createElement(Wg,{key:"layout-library-sections-"+e.clientId,clientId:e.clientId,currentTab:t,data:e.context.sections,context:e.context})];if("gb-layout-tab-layouts"===o.name)return[React.createElement(Wg,{key:"layout-library-layouts-"+e.clientId,clientId:e.clientId,currentTab:t,data:e.context.layouts,context:e.context})];if("gb-layout-tab-collections"===o.name)return[React.createElement(Wg,{key:"layout-library-collections-"+e.clientId,clientId:e.clientId,currentTab:t,data:e.context.collections,context:e.context})];if("gb-layout-tab-favorites"===o.name)return[React.createElement(Wg,{key:"layout-library-favorites-"+e.clientId,clientId:e.clientId,currentTab:t,data:e.context.favorites,context:e.context})];if("gb-layout-tab-reusable-blocks"===o.name)return[React.createElement(Wg,{key:"layout-library-reusable-blocks-"+e.clientId,clientId:e.clientId,currentTab:t,data:e.context.reusableBlocks,context:e.context})]}return React.createElement("div",null,n)}))):null)},{__:Zg}=wp.i18n,{Placeholder:Jg}=wp.components,{Component:ed,Fragment:td}=wp.element,{BlockControls:od,BlockAlignmentToolbar:nd}=wp.blockEditor;class ad extends ed{render(){const{attributes:e,setAttributes:t,clientId:o}=this.props;return[React.createElement(td,{key:this.props.clientId},React.createElement(od,{key:"controls"},React.createElement(nd,{value:e.align,onChange:e=>t({align:e}),controls:[]})),React.createElement(Jg,{key:"placeholder",label:Zg("Layout Selector","genesis-blocks"),instructions:Zg("Launch the layout library to browse pre-designed sections.","genesis-blocks"),className:"gb-layout-selector-placeholder",icon:"layout"},React.createElement(Lg.Consumer,{key:"layouts-context-provider-"+this.props.clientId},(e=>React.createElement(Xg,{clientId:o,context:e})))))]}}const{__:id}=wp.i18n,{registerBlockType:rd}=wp.blocks;rd("genesis-blocks/gb-layouts",{title:id("Layouts","genesis-blocks"),description:id("Add a pre-defined section or layout to posts and pages.","genesis-blocks"),icon:"layout",category:"genesis-blocks",keywords:[id("layout","genesis-blocks"),id("column","genesis-blocks"),id("section","genesis-blocks")],edit:e=>React.createElement(Pg,null,React.createElement(ad,e)),save:()=>null});let ld=!1;function sd(){const e=wp.blocks.createBlock("genesis-blocks/gb-layouts");wp.data.dispatch("core/block-editor").insertBlocks(e)}wp.data.subscribe((()=>{!function(){if(ld)return;const e=document.querySelector(".edit-post-header__toolbar");if(!e)return;const t=document.createElement("div");let o='<div class="gb-toolbar-insert-layout">';o+=`<button id="gbLayoutInsertButton" class="components-button components-icon-button" aria-label="${id("Insert Layout","genesis-blocks")}"><i class="dashicons dashicons-layout gb-toolbar-insert-layout-button"></i> ${id("Layouts","genesis-blocks")}</button>`,o+="</div>",t.innerHTML=o,e.appendChild(t);const n=document.querySelector(".components-accessible-toolbar.edit-post-header-toolbar");n&&(n.style.flexGrow=0),document.getElementById("gbLayoutInsertButton").addEventListener("click",sd),ld=!0}()}));const cd=["core/paragraph","core/heading"],pd="Desktop",gd="Tablet",dd="Mobile",ud={Desktop:"default",Tablet:"1200px",Mobile:"600px"},bd="gbResponsiveSettings",md=e=>e.replace(/([a-z])([A-Z1-9])/g,((e,t,o)=>t+"-"+o)).toLowerCase(),hd=e=>"string"!=typeof e||e.match(/[A-Za-z]+$/)?e:`${e}px`,kd=(e,t)=>{var o;return null===(o=t.find((t=>e===t.slug)))||void 0===o?void 0:o.size},fd=window.wp["blockEditor/buildModule/hooks/utils"],yd=e=>{let{clientId:t,device:o,selectedDevice:n,settingName:a,settingValue:i}=e;return React.createElement(React.Fragment,null,i?`@media only screen and (max-width: ${o}) {\n\t\t\t\t#block-${t} {\n\t\t\t\t\t${md(a)}: ${i} !important\n\t\t\t\t}\n\t\t\t}`:null,n===o&&i?`#block-${t} {\n\t\t\t\t${md(a)}: ${i} !important\n\t\t\t}`:null)},{InspectorControls:vd,LineHeightControl:Cd}=wp.blockEditor,{hasBlockSupport:Rd}=wp.blocks,{Button:Ed,FontSizePicker:wd,NavigableMenu:xd,PanelBody:Td}=wp.components,{createHigherOrderComponent:_d}=wp.compose,{useDispatch:Sd,useSelect:Bd}=wp.data,{__:zd}=wp.i18n,Ad=_d((e=>t=>{const{disableCustomFontSizes:o,enableCustomLineHeight:n,fontSizes:a}=Bd((e=>e("core/block-editor").getSettings())),i=Bd((e=>{const{__experimentalGetPreviewDeviceType:t}=e("core/edit-post");return t?t():pd})),{__experimentalSetPreviewDeviceType:r}=Sd("core/edit-post"),l=!Rd(t.name,"typography.fontSize",!0)||!(null!=a&&a.length),s=!Rd(t.name,"typography.lineHeight",!0)||!n;if(!cd.includes(t.name)||l&&s)return React.createElement(e,t);const c=e=>{r&&r(e)},p=(e,o)=>t.attributes.gbResponsiveSettings&&t.attributes.gbResponsiveSettings[o]?t.attributes.gbResponsiveSettings[o][e]:"",g=(e,o)=>{t.setAttributes({[bd]:{...t.attributes.gbResponsiveSettings,[ud[i]]:{...t.attributes.gbResponsiveSettings[ud[i]],[e]:o}}})},d=p("fontSize",ud.Mobile),u=p("fontSize",ud.Tablet);return React.createElement(React.Fragment,null,Object.keys(t.attributes.gbResponsiveSettings).length?React.createElement("style",null,l?null:React.createElement(React.Fragment,null,React.createElement(yd,{device:ud.Tablet,selectedDevice:ud[i],settingName:"fontSize",settingValue:hd(kd(u,a)||u),clientId:t.clientId}),React.createElement(yd,{device:ud.Mobile,selectedDevice:ud[i],settingName:"fontSize",settingValue:hd(kd(d,a)||d),clientId:t.clientId})),s?null:React.createElement(React.Fragment,null,React.createElement(yd,{device:ud.Tablet,selectedDevice:ud[i],settingName:"lineHeight",settingValue:p("lineHeight",ud.Tablet),clientId:t.clientId}),React.createElement(yd,{device:ud.Mobile,selectedDevice:ud[i],settingName:"lineHeight",settingValue:p("lineHeight",ud.Mobile),clientId:t.clientId}))):null,React.createElement(e,t),React.createElement(vd,null,React.createElement(Td,{title:zd("Responsive Typography","genesis-blocks")},React.createElement(xd,{className:"gb-responsive-toggle",onNavigate:()=>{},orientation:"horizontal"},React.createElement(Ed,{icon:"laptop",showTooltip:!0,label:zd("Desktop view","genesis-blocks"),onClick:()=>c(pd),isPrimary:pd===i,isSecondary:pd!==i},zd("Desktop","genesis-blocks")),React.createElement(Ed,{icon:"tablet",showTooltip:!0,label:zd("Tablet view","genesis-blocks"),onClick:()=>c(gd),isPrimary:gd===i,isSecondary:gd!==i},zd("Tablet","genesis-blocks")),React.createElement(Ed,{icon:"smartphone",showTooltip:!0,label:zd("Mobile view","genesis-blocks"),onClick:()=>c(dd),isPrimary:dd===i,isSecondary:dd!==i},zd("Mobile","genesis-blocks"))),l?null:React.createElement(wd,{value:(()=>{var e,o,n,r,l,s;if(pd===i)return kd(t.attributes.fontSize,a)||kd(null===(e=t.attributes)||void 0===e||null===(o=e.style)||void 0===o||null===(n=o.typography)||void 0===n?void 0:n.fontSize,a)||(null===(r=t.attributes)||void 0===r||null===(l=r.style)||void 0===l||null===(s=l.typography)||void 0===s?void 0:s.fontSize);const c=p("fontSize",ud[i]);return kd(c,a)||c})(),onChange:e=>{const o=((e,t)=>{var o;return null===(o=t.find((t=>e===t.size)))||void 0===o?void 0:o.slug})(e,a);if(pd!==i)g("fontSize",o||e);else{var n,r,l;const a={...null===(n=t.attributes)||void 0===n?void 0:n.style,typography:{...null===(r=t.attributes)||void 0===r||null===(l=r.style)||void 0===l?void 0:l.typography,fontSize:o?void 0:e}};t.setAttributes({style:fd.cleanEmptyObject?(0,fd.cleanEmptyObject)(a):a,fontSize:o})}},fontSizes:a,disableCustomFontSizes:o}),s||!Cd?null:React.createElement(Cd,{__nextHasNoMarginBottom:!0,value:pd===i?null===(b=t.attributes)||void 0===b||null===(m=b.style)||void 0===m||null===(h=m.typography)||void 0===h?void 0:h.lineHeight:p("lineHeight",ud[i]),onChange:e=>{if(pd!==i)g("lineHeight",e);else{var o,n,a;const i={...null===(o=t.attributes)||void 0===o?void 0:o.style,typography:{...null===(n=t.attributes)||void 0===n||null===(a=n.style)||void 0===a?void 0:a.typography,lineHeight:e}};t.setAttributes({style:fd.cleanEmptyObject?(0,fd.cleanEmptyObject)(i):i})}}}))));var b,m,h}),"withResponsiveSettings"),{addFilter:Nd}=wp.hooks;Nd("blocks.registerBlockType","genesis-blocks/add-responsive-controls-attributes",((e,t)=>cd.includes(t)?{...e,attributes:{...null==e?void 0:e.attributes,[bd]:{type:"object",default:{}}}}:e)),Nd("editor.BlockEdit","genesis-blocks/add-responsive-controls",Ad)},5792:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],o=0;o<e.length;o++)t.push(255&e.charCodeAt(o));return t},bytesToString:function(e){for(var t=[],o=0;o<e.length;o++)t.push(String.fromCharCode(e[o]));return t.join("")}}};e.exports=t},2779:(e,t)=>{var o;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var r=a.apply(null,o);r&&e.push(r)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var l in o)n.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(o=function(){return a}.apply(t,[]))||(e.exports=o)}()},9562:e=>{var t,o;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&o.rotl(e,8)|4278255360&o.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=o.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],o=0,n=0;o<e.length;o++,n+=8)t[n>>>5]|=e[o]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],o=0;o<32*e.length;o+=8)t.push(e[o>>>5]>>>24-o%32&255);return t},bytesToHex:function(e){for(var t=[],o=0;o<e.length;o++)t.push((e[o]>>>4).toString(16)),t.push((15&e[o]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],o=0;o<e.length;o+=2)t.push(parseInt(e.substr(o,2),16));return t},bytesToBase64:function(e){for(var o=[],n=0;n<e.length;n+=3)for(var a=e[n]<<16|e[n+1]<<8|e[n+2],i=0;i<4;i++)8*n+6*i<=8*e.length?o.push(t.charAt(a>>>6*(3-i)&63)):o.push("=");return o.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],n=0,a=0;n<e.length;a=++n%4)0!=a&&o.push((t.indexOf(e.charAt(n-1))&Math.pow(2,-2*a+8)-1)<<2*a|t.indexOf(e.charAt(n))>>>6-2*a);return o}},e.exports=o},3335:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},9515:(e,t,o)=>{var n=o(8761)(o(7772),"DataView");e.exports=n},9612:(e,t,o)=>{var n=o(2118),a=o(6909),i=o(8138),r=o(4174),l=o(7942);function s(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=a,s.prototype.get=i,s.prototype.has=r,s.prototype.set=l,e.exports=s},235:(e,t,o)=>{var n=o(3945),a=o(1846),i=o(8028),r=o(2344),l=o(4769);function s(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=a,s.prototype.get=i,s.prototype.has=r,s.prototype.set=l,e.exports=s},326:(e,t,o)=>{var n=o(8761)(o(7772),"Map");e.exports=n},6738:(e,t,o)=>{var n=o(2411),a=o(6417),i=o(6928),r=o(9493),l=o(4150);function s(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=a,s.prototype.get=i,s.prototype.has=r,s.prototype.set=l,e.exports=s},2760:(e,t,o)=>{var n=o(8761)(o(7772),"Promise");e.exports=n},2143:(e,t,o)=>{var n=o(8761)(o(7772),"Set");e.exports=n},5386:(e,t,o)=>{var n=o(6738),a=o(2842),i=o(2482);function r(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new n;++t<o;)this.add(e[t])}r.prototype.add=r.prototype.push=a,r.prototype.has=i,e.exports=r},6571:(e,t,o)=>{var n=o(235),a=o(5243),i=o(2858),r=o(4417),l=o(8605),s=o(1418);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=r,c.prototype.has=l,c.prototype.set=s,e.exports=c},857:(e,t,o)=>{var n=o(7772).Symbol;e.exports=n},9162:(e,t,o)=>{var n=o(7772).Uint8Array;e.exports=n},3215:(e,t,o)=>{var n=o(8761)(o(7772),"WeakMap");e.exports=n},7552:e=>{e.exports=function(e,t){for(var o=-1,n=null==e?0:e.length,a=0,i=[];++o<n;){var r=e[o];t(r,o,e)&&(i[a++]=r)}return i}},1634:(e,t,o)=>{var n=o(6473),a=o(9631),i=o(6152),r=o(3226),l=o(9045),s=o(7598),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var o=i(e),p=!o&&a(e),g=!o&&!p&&r(e),d=!o&&!p&&!g&&s(e),u=o||p||g||d,b=u?n(e.length,String):[],m=b.length;for(var h in e)!t&&!c.call(e,h)||u&&("length"==h||g&&("offset"==h||"parent"==h)||d&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||l(h,m))||b.push(h);return b}},343:e=>{e.exports=function(e,t){for(var o=-1,n=null==e?0:e.length,a=Array(n);++o<n;)a[o]=t(e[o],o,e);return a}},5067:e=>{e.exports=function(e,t){for(var o=-1,n=t.length,a=e.length;++o<n;)e[a+o]=t[o];return e}},7064:e=>{e.exports=function(e,t){for(var o=-1,n=null==e?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1}},2218:(e,t,o)=>{var n=o(1225);e.exports=function(e,t){for(var o=e.length;o--;)if(n(e[o][0],t))return o;return-1}},4303:(e,t,o)=>{var n=o(6548),a=o(2019)(n);e.exports=a},5308:(e,t,o)=>{var n=o(5463)();e.exports=n},6548:(e,t,o)=>{var n=o(5308),a=o(249);e.exports=function(e,t){return e&&n(e,t,a)}},3324:(e,t,o)=>{var n=o(7297),a=o(3812);e.exports=function(e,t){for(var o=0,i=(t=n(t,e)).length;null!=e&&o<i;)e=e[a(t[o++])];return o&&o==i?e:void 0}},1897:(e,t,o)=>{var n=o(5067),a=o(6152);e.exports=function(e,t,o){var i=t(e);return a(e)?i:n(i,o(e))}},3366:(e,t,o)=>{var n=o(857),a=o(2107),i=o(7157),r=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?a(e):i(e)}},187:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},5183:(e,t,o)=>{var n=o(3366),a=o(5125);e.exports=function(e){return a(e)&&"[object Arguments]"==n(e)}},8746:(e,t,o)=>{var n=o(1952),a=o(5125);e.exports=function e(t,o,i,r,l){return t===o||(null==t||null==o||!a(t)&&!a(o)?t!=t&&o!=o:n(t,o,i,r,e,l))}},1952:(e,t,o)=>{var n=o(6571),a=o(4871),i=o(1491),r=o(7416),l=o(940),s=o(6152),c=o(3226),p=o(7598),g="[object Arguments]",d="[object Array]",u="[object Object]",b=Object.prototype.hasOwnProperty;e.exports=function(e,t,o,m,h,k){var f=s(e),y=s(t),v=f?d:l(e),C=y?d:l(t),R=(v=v==g?u:v)==u,E=(C=C==g?u:C)==u,w=v==C;if(w&&c(e)){if(!c(t))return!1;f=!0,R=!1}if(w&&!R)return k||(k=new n),f||p(e)?a(e,t,o,m,h,k):i(e,t,v,o,m,h,k);if(!(1&o)){var x=R&&b.call(e,"__wrapped__"),T=E&&b.call(t,"__wrapped__");if(x||T){var _=x?e.value():e,S=T?t.value():t;return k||(k=new n),h(_,S,o,m,k)}}return!!w&&(k||(k=new n),r(e,t,o,m,h,k))}},7036:(e,t,o)=>{var n=o(6571),a=o(8746);e.exports=function(e,t,o,i){var r=o.length,l=r,s=!i;if(null==e)return!l;for(e=Object(e);r--;){var c=o[r];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++r<l;){var p=(c=o[r])[0],g=e[p],d=c[1];if(s&&c[2]){if(void 0===g&&!(p in e))return!1}else{var u=new n;if(i)var b=i(g,d,p,e,t,u);if(!(void 0===b?a(d,g,3,i,u):b))return!1}}return!0}},6840:(e,t,o)=>{var n=o(1049),a=o(7394),i=o(9259),r=o(7035),l=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,p=s.toString,g=c.hasOwnProperty,d=RegExp("^"+p.call(g).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(n(e)?d:l).test(r(e))}},5522:(e,t,o)=>{var n=o(3366),a=o(1158),i=o(5125),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!r[n(e)]}},8286:(e,t,o)=>{var n=o(6423),a=o(4716),i=o(3059),r=o(6152),l=o(5798);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?r(e)?a(e[0],e[1]):n(e):l(e)}},6411:(e,t,o)=>{var n=o(6001),a=o(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=[];for(var o in Object(e))i.call(e,o)&&"constructor"!=o&&t.push(o);return t}},3401:(e,t,o)=>{var n=o(4303),a=o(7878);e.exports=function(e,t){var o=-1,i=a(e)?Array(e.length):[];return n(e,(function(e,n,a){i[++o]=t(e,n,a)})),i}},6423:(e,t,o)=>{var n=o(7036),a=o(9882),i=o(3477);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(o){return o===e||n(o,e,t)}}},4716:(e,t,o)=>{var n=o(8746),a=o(2579),i=o(5041),r=o(1401),l=o(8792),s=o(3477),c=o(3812);e.exports=function(e,t){return r(e)&&l(t)?s(c(e),t):function(o){var r=a(o,e);return void 0===r&&r===t?i(o,e):n(t,r,3)}}},256:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},2952:(e,t,o)=>{var n=o(3324);e.exports=function(e){return function(t){return n(t,e)}}},6473:e=>{e.exports=function(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}},1054:(e,t,o)=>{var n=o(857),a=o(343),i=o(6152),r=o(4795),l=n?n.prototype:void 0,s=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return a(t,e)+"";if(r(t))return s?s.call(t):"";var o=t+"";return"0"==o&&1/t==-1/0?"-0":o}},1704:(e,t,o)=>{var n=o(2153),a=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9950:e=>{e.exports=function(e,t){return e.has(t)}},9419:(e,t,o)=>{var n=o(3059);e.exports=function(e){return"function"==typeof e?e:n}},7297:(e,t,o)=>{var n=o(6152),a=o(1401),i=o(4452),r=o(6188);e.exports=function(e,t){return n(e)?e:a(e,t)?[e]:i(r(e))}},4019:(e,t,o)=>{var n=o(7772)["__core-js_shared__"];e.exports=n},2019:(e,t,o)=>{var n=o(7878);e.exports=function(e,t){return function(o,a){if(null==o)return o;if(!n(o))return e(o,a);for(var i=o.length,r=t?i:-1,l=Object(o);(t?r--:++r<i)&&!1!==a(l[r],r,l););return o}}},5463:e=>{e.exports=function(e){return function(t,o,n){for(var a=-1,i=Object(t),r=n(t),l=r.length;l--;){var s=r[e?l:++a];if(!1===o(i[s],s,i))break}return t}}},4871:(e,t,o)=>{var n=o(5386),a=o(7064),i=o(9950);e.exports=function(e,t,o,r,l,s){var c=1&o,p=e.length,g=t.length;if(p!=g&&!(c&&g>p))return!1;var d=s.get(e),u=s.get(t);if(d&&u)return d==t&&u==e;var b=-1,m=!0,h=2&o?new n:void 0;for(s.set(e,t),s.set(t,e);++b<p;){var k=e[b],f=t[b];if(r)var y=c?r(f,k,b,t,e,s):r(k,f,b,e,t,s);if(void 0!==y){if(y)continue;m=!1;break}if(h){if(!a(t,(function(e,t){if(!i(h,t)&&(k===e||l(k,e,o,r,s)))return h.push(t)}))){m=!1;break}}else if(k!==f&&!l(k,f,o,r,s)){m=!1;break}}return s.delete(e),s.delete(t),m}},1491:(e,t,o)=>{var n=o(857),a=o(9162),i=o(1225),r=o(4871),l=o(5179),s=o(4207),c=n?n.prototype:void 0,p=c?c.valueOf:void 0;e.exports=function(e,t,o,n,c,g,d){switch(o){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!g(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var u=l;case"[object Set]":var b=1&n;if(u||(u=s),e.size!=t.size&&!b)return!1;var m=d.get(e);if(m)return m==t;n|=2,d.set(e,t);var h=r(u(e),u(t),n,c,g,d);return d.delete(e),h;case"[object Symbol]":if(p)return p.call(e)==p.call(t)}return!1}},7416:(e,t,o)=>{var n=o(3483),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,o,i,r,l){var s=1&o,c=n(e),p=c.length;if(p!=n(t).length&&!s)return!1;for(var g=p;g--;){var d=c[g];if(!(s?d in t:a.call(t,d)))return!1}var u=l.get(e),b=l.get(t);if(u&&b)return u==t&&b==e;var m=!0;l.set(e,t),l.set(t,e);for(var h=s;++g<p;){var k=e[d=c[g]],f=t[d];if(i)var y=s?i(f,k,d,t,e,l):i(k,f,d,e,t,l);if(!(void 0===y?k===f||r(k,f,o,i,l):y)){m=!1;break}h||(h="constructor"==d)}if(m&&!h){var v=e.constructor,C=t.constructor;v==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof C&&C instanceof C||(m=!1)}return l.delete(e),l.delete(t),m}},1242:(e,t,o)=>{var n="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g;e.exports=n},3483:(e,t,o)=>{var n=o(1897),a=o(633),i=o(249);e.exports=function(e){return n(e,i,a)}},7937:(e,t,o)=>{var n=o(8304);e.exports=function(e,t){var o=e.__data__;return n(t)?o["string"==typeof t?"string":"hash"]:o.map}},9882:(e,t,o)=>{var n=o(8792),a=o(249);e.exports=function(e){for(var t=a(e),o=t.length;o--;){var i=t[o],r=e[i];t[o]=[i,r,n(r)]}return t}},8761:(e,t,o)=>{var n=o(6840),a=o(8109);e.exports=function(e,t){var o=a(e,t);return n(o)?o:void 0}},2107:(e,t,o)=>{var n=o(857),a=Object.prototype,i=a.hasOwnProperty,r=a.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),o=e[l];try{e[l]=void 0;var n=!0}catch(e){}var a=r.call(e);return n&&(t?e[l]=o:delete e[l]),a}},633:(e,t,o)=>{var n=o(7552),a=o(981),i=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,l=r?function(e){return null==e?[]:(e=Object(e),n(r(e),(function(t){return i.call(e,t)})))}:a;e.exports=l},940:(e,t,o)=>{var n=o(9515),a=o(326),i=o(2760),r=o(2143),l=o(3215),s=o(3366),c=o(7035),p="[object Map]",g="[object Promise]",d="[object Set]",u="[object WeakMap]",b="[object DataView]",m=c(n),h=c(a),k=c(i),f=c(r),y=c(l),v=s;(n&&v(new n(new ArrayBuffer(1)))!=b||a&&v(new a)!=p||i&&v(i.resolve())!=g||r&&v(new r)!=d||l&&v(new l)!=u)&&(v=function(e){var t=s(e),o="[object Object]"==t?e.constructor:void 0,n=o?c(o):"";if(n)switch(n){case m:return b;case h:return p;case k:return g;case f:return d;case y:return u}return t}),e.exports=v},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1369:(e,t,o)=>{var n=o(7297),a=o(9631),i=o(6152),r=o(9045),l=o(1158),s=o(3812);e.exports=function(e,t,o){for(var c=-1,p=(t=n(t,e)).length,g=!1;++c<p;){var d=s(t[c]);if(!(g=null!=e&&o(e,d)))break;e=e[d]}return g||++c!=p?g:!!(p=null==e?0:e.length)&&l(p)&&r(d,p)&&(i(e)||a(e))}},2118:(e,t,o)=>{var n=o(9191);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,o)=>{var n=o(9191),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return a.call(t,e)?t[e]:void 0}},4174:(e,t,o)=>{var n=o(9191),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:a.call(t,e)}},7942:(e,t,o)=>{var n=o(9191);e.exports=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,o){var n=typeof e;return!!(o=null==o?9007199254740991:o)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<o}},1401:(e,t,o)=>{var n=o(6152),a=o(4795),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var o=typeof e;return!("number"!=o&&"symbol"!=o&&"boolean"!=o&&null!=e&&!a(e))||r.test(e)||!i.test(e)||null!=t&&e in Object(t)}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,o)=>{var n,a=o(4019),i=(n=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var o=e&&e.constructor;return e===("function"==typeof o&&o.prototype||t)}},8792:(e,t,o)=>{var n=o(9259);e.exports=function(e){return e==e&&!n(e)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,o)=>{var n=o(2218),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,o=n(t,e);return!(o<0||(o==t.length-1?t.pop():a.call(t,o,1),--this.size,0))}},8028:(e,t,o)=>{var n=o(2218);e.exports=function(e){var t=this.__data__,o=n(t,e);return o<0?void 0:t[o][1]}},2344:(e,t,o)=>{var n=o(2218);e.exports=function(e){return n(this.__data__,e)>-1}},4769:(e,t,o)=>{var n=o(2218);e.exports=function(e,t){var o=this.__data__,a=n(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}},2411:(e,t,o)=>{var n=o(9612),a=o(235),i=o(326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||a),string:new n}}},6417:(e,t,o)=>{var n=o(7937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,o)=>{var n=o(7937);e.exports=function(e){return n(this,e).get(e)}},9493:(e,t,o)=>{var n=o(7937);e.exports=function(e){return n(this,e).has(e)}},4150:(e,t,o)=>{var n=o(7937);e.exports=function(e,t){var o=n(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,o=Array(e.size);return e.forEach((function(e,n){o[++t]=[n,e]})),o}},3477:e=>{e.exports=function(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}},7777:(e,t,o)=>{var n=o(733);e.exports=function(e){var t=n(e,(function(e){return 500===o.size&&o.clear(),e})),o=t.cache;return t}},9191:(e,t,o)=>{var n=o(8761)(Object,"create");e.exports=n},4248:(e,t,o)=>{var n=o(241)(Object.keys,Object);e.exports=n},4146:(e,t,o)=>{e=o.nmd(e);var n=o(1242),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,r=i&&i.exports===a&&n.process,l=function(){try{return i&&i.require&&i.require("util").types||r&&r.binding&&r.binding("util")}catch(e){}}();e.exports=l},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(o){return e(t(o))}}},7772:(e,t,o)=>{var n=o(1242),a="object"==typeof self&&self&&self.Object===Object&&self,i=n||a||Function("return this")();e.exports=i},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,o=Array(e.size);return e.forEach((function(e){o[++t]=e})),o}},5243:(e,t,o)=>{var n=o(235);e.exports=function(){this.__data__=new n,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,o)=>{var n=o(235),a=o(326),i=o(6738);e.exports=function(e,t){var o=this.__data__;if(o instanceof n){var r=o.__data__;if(!a||r.length<199)return r.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(r)}return o.set(e,t),this.size=o.size,this}},4452:(e,t,o)=>{var n=o(7777),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,r=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,o,n,a){t.push(n?a.replace(i,"$1"):o||e)})),t}));e.exports=r},3812:(e,t,o)=>{var n=o(4795);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2153:e=>{var t=/\s/;e.exports=function(e){for(var o=e.length;o--&&t.test(e.charAt(o)););return o}},417:e=>{e.exports=function(e){for(var t=-1,o=null==e?0:e.length,n=0,a=[];++t<o;){var i=e[t];i&&(a[n++]=i)}return a}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2579:(e,t,o)=>{var n=o(3324);e.exports=function(e,t,o){var a=null==e?void 0:n(e,t);return void 0===a?o:a}},5041:(e,t,o)=>{var n=o(187),a=o(1369);e.exports=function(e,t){return null!=e&&a(e,t,n)}},3059:e=>{e.exports=function(e){return e}},9631:(e,t,o)=>{var n=o(5183),a=o(5125),i=Object.prototype,r=i.hasOwnProperty,l=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return a(e)&&r.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,o)=>{var n=o(1049),a=o(1158);e.exports=function(e){return null!=e&&a(e.length)&&!n(e)}},3226:(e,t,o)=>{e=o.nmd(e);var n=o(7772),a=o(6330),i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,l=r&&r.exports===i?n.Buffer:void 0,s=(l?l.isBuffer:void 0)||a;e.exports=s},1049:(e,t,o)=>{var n=o(3366),a=o(9259);e.exports=function(e){if(!a(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4795:(e,t,o)=>{var n=o(3366),a=o(5125);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==n(e)}},7598:(e,t,o)=>{var n=o(5522),a=o(7826),i=o(4146),r=i&&i.isTypedArray,l=r?a(r):n;e.exports=l},249:(e,t,o)=>{var n=o(1634),a=o(6411),i=o(7878);e.exports=function(e){return i(e)?n(e):a(e)}},6760:(e,t,o)=>{var n=o(343),a=o(8286),i=o(3401),r=o(6152);e.exports=function(e,t){return(r(e)?n:i)(e,a(t,3))}},733:(e,t,o)=>{var n=o(6738);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var o=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=o.cache;if(i.has(a))return i.get(a);var r=e.apply(this,n);return o.cache=i.set(a,r)||i,r};return o.cache=new(a.Cache||n),o}a.Cache=n,e.exports=a},5798:(e,t,o)=>{var n=o(256),a=o(2952),i=o(1401),r=o(3812);e.exports=function(e){return i(e)?n(r(e)):a(e)}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},1258:(e,t,o)=>{var n=o(6473),a=o(9419),i=o(8101),r=4294967295,l=Math.min;e.exports=function(e,t){if((e=i(e))<1||e>9007199254740991)return[];var o=r,s=l(e,r);t=a(t),e-=r;for(var c=n(s,t);++o<e;)t(o);return c}},5707:(e,t,o)=>{var n=o(7642);e.exports=function(e){return e?Infinity===(e=n(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},8101:(e,t,o)=>{var n=o(5707);e.exports=function(e){var t=n(e),o=t%1;return t==t?o?t-o:t:0}},7642:(e,t,o)=>{var n=o(1704),a=o(9259),i=o(4795),r=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var o=l.test(e);return o||s.test(e)?c(e.slice(2),o?2:8):r.test(e)?NaN:+e}},6188:(e,t,o)=>{var n=o(1054);e.exports=function(e){return null==e?"":n(e)}},8762:(e,t,o)=>{var n,a,i,r,l;n=o(9562),a=o(5792).utf8,i=o(3335),r=o(5792).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?r.stringToBytes(e):a.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var o=n.bytesToWords(e),s=8*e.length,c=1732584193,p=-271733879,g=-1732584194,d=271733878,u=0;u<o.length;u++)o[u]=16711935&(o[u]<<8|o[u]>>>24)|4278255360&(o[u]<<24|o[u]>>>8);o[s>>>5]|=128<<s%32,o[14+(s+64>>>9<<4)]=s;var b=l._ff,m=l._gg,h=l._hh,k=l._ii;for(u=0;u<o.length;u+=16){var f=c,y=p,v=g,C=d;c=b(c,p,g,d,o[u+0],7,-680876936),d=b(d,c,p,g,o[u+1],12,-389564586),g=b(g,d,c,p,o[u+2],17,606105819),p=b(p,g,d,c,o[u+3],22,-1044525330),c=b(c,p,g,d,o[u+4],7,-176418897),d=b(d,c,p,g,o[u+5],12,1200080426),g=b(g,d,c,p,o[u+6],17,-1473231341),p=b(p,g,d,c,o[u+7],22,-45705983),c=b(c,p,g,d,o[u+8],7,1770035416),d=b(d,c,p,g,o[u+9],12,-1958414417),g=b(g,d,c,p,o[u+10],17,-42063),p=b(p,g,d,c,o[u+11],22,-1990404162),c=b(c,p,g,d,o[u+12],7,1804603682),d=b(d,c,p,g,o[u+13],12,-40341101),g=b(g,d,c,p,o[u+14],17,-1502002290),c=m(c,p=b(p,g,d,c,o[u+15],22,1236535329),g,d,o[u+1],5,-165796510),d=m(d,c,p,g,o[u+6],9,-1069501632),g=m(g,d,c,p,o[u+11],14,643717713),p=m(p,g,d,c,o[u+0],20,-373897302),c=m(c,p,g,d,o[u+5],5,-701558691),d=m(d,c,p,g,o[u+10],9,38016083),g=m(g,d,c,p,o[u+15],14,-660478335),p=m(p,g,d,c,o[u+4],20,-405537848),c=m(c,p,g,d,o[u+9],5,568446438),d=m(d,c,p,g,o[u+14],9,-1019803690),g=m(g,d,c,p,o[u+3],14,-187363961),p=m(p,g,d,c,o[u+8],20,1163531501),c=m(c,p,g,d,o[u+13],5,-1444681467),d=m(d,c,p,g,o[u+2],9,-51403784),g=m(g,d,c,p,o[u+7],14,1735328473),c=h(c,p=m(p,g,d,c,o[u+12],20,-1926607734),g,d,o[u+5],4,-378558),d=h(d,c,p,g,o[u+8],11,-2022574463),g=h(g,d,c,p,o[u+11],16,1839030562),p=h(p,g,d,c,o[u+14],23,-35309556),c=h(c,p,g,d,o[u+1],4,-1530992060),d=h(d,c,p,g,o[u+4],11,1272893353),g=h(g,d,c,p,o[u+7],16,-155497632),p=h(p,g,d,c,o[u+10],23,-1094730640),c=h(c,p,g,d,o[u+13],4,681279174),d=h(d,c,p,g,o[u+0],11,-358537222),g=h(g,d,c,p,o[u+3],16,-722521979),p=h(p,g,d,c,o[u+6],23,76029189),c=h(c,p,g,d,o[u+9],4,-640364487),d=h(d,c,p,g,o[u+12],11,-421815835),g=h(g,d,c,p,o[u+15],16,530742520),c=k(c,p=h(p,g,d,c,o[u+2],23,-995338651),g,d,o[u+0],6,-198630844),d=k(d,c,p,g,o[u+7],10,1126891415),g=k(g,d,c,p,o[u+14],15,-1416354905),p=k(p,g,d,c,o[u+5],21,-57434055),c=k(c,p,g,d,o[u+12],6,1700485571),d=k(d,c,p,g,o[u+3],10,-1894986606),g=k(g,d,c,p,o[u+10],15,-1051523),p=k(p,g,d,c,o[u+1],21,-2054922799),c=k(c,p,g,d,o[u+8],6,1873313359),d=k(d,c,p,g,o[u+15],10,-30611744),g=k(g,d,c,p,o[u+6],15,-1560198380),p=k(p,g,d,c,o[u+13],21,1309151649),c=k(c,p,g,d,o[u+4],6,-145523070),d=k(d,c,p,g,o[u+11],10,-1120210379),g=k(g,d,c,p,o[u+2],15,718787259),p=k(p,g,d,c,o[u+9],21,-343485551),c=c+f>>>0,p=p+y>>>0,g=g+v>>>0,d=d+C>>>0}return n.endian([c,p,g,d])})._ff=function(e,t,o,n,a,i,r){var l=e+(t&o|~t&n)+(a>>>0)+r;return(l<<i|l>>>32-i)+t},l._gg=function(e,t,o,n,a,i,r){var l=e+(t&n|o&~n)+(a>>>0)+r;return(l<<i|l>>>32-i)+t},l._hh=function(e,t,o,n,a,i,r){var l=e+(t^o^n)+(a>>>0)+r;return(l<<i|l>>>32-i)+t},l._ii=function(e,t,o,n,a,i,r){var l=e+(o^(t|~n))+(a>>>0)+r;return(l<<i|l>>>32-i)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var o=n.wordsToBytes(l(e,t));return t&&t.asBytes?o:t&&t.asString?r.bytesToString(o):n.bytesToHex(o)}},6770:e=>{e.exports=function(e,t){var o,n,a=0;function i(){var i,r,l=o,s=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(r=0;r<s;r++)if(l.args[r]!==arguments[r]){l=l.next;continue e}return l!==o&&(l===n&&(n=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=o,l.prev=null,o.prev=l,o=l),l.val}l=l.next}for(i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return l={args:i,val:e.apply(null,i)},o?(o.prev=l,l.next=o):n=l,a===t.maxSize?(n=n.prev).next=null:a++,o=l,l.val}return t=t||{},i.clear=function(){o=null,n=null,a=0},i}}},o={};function n(e){var a=o[e];if(void 0!==a)return a.exports;var i=o[e]={id:e,loaded:!1,exports:{}};return t[e](i,i.exports,n),i.loaded=!0,i.exports}n.m=t,e=[],n.O=(t,o,a,i)=>{if(!o){var r=1/0;for(p=0;p<e.length;p++){for(var[o,a,i]=e[p],l=!0,s=0;s<o.length;s++)(!1&i||r>=i)&&Object.keys(n.O).every((e=>n.O[e](o[s])))?o.splice(s--,1):(l=!1,i<r&&(r=i));if(l){e.splice(p--,1);var c=a();void 0!==c&&(t=c)}}return t}i=i||0;for(var p=e.length;p>0&&e[p-1][2]>i;p--)e[p]=e[p-1];e[p]=[o,a,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={346:0,812:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var a,i,[r,l,s]=o,c=0;if(r.some((t=>0!==e[t]))){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(s)var p=s(n)}for(t&&t(o);c<r.length;c++)i=r[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(p)},o=globalThis.webpackChunk=globalThis.webpackChunk||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var a=n.O(void 0,[812],(()=>n(9945)));a=n.O(a)})();
1
+ (()=>{var e,t={5565:(e,t,o)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},n.apply(this,arguments)}window.wp.element;var a=o(2779),i=o.n(a);const{Component:r}=wp.element,{applyFilters:s}=wp.hooks;class l extends r{render(){if(void 0===this.props.children)return null;let e=!1;if(void 0!==this.props.children.props&&void 0!==this.props.children.props.name||(e=!0),e&&(void 0===this.props.children._owner||void 0===this.props.children._owner.memoizedProps||void 0===this.props.children._owner.memoizedProps.name))return this.props.children;const t=e?this.props.children._owner.memoizedProps.name:this.props.children.props.name;return s("gb_should_render_block_setting",!0,t,this.props.id,genesis_blocks_globals.user_data)?this.props.children:null}}const{__}=wp.i18n,{Component:c}=wp.element,{InspectorControls:p,PanelColorSettings:g}=wp.blockEditor,{PanelBody:d,RangeControl:u,SelectControl:b}=wp.components;class m extends c{render(){const e=[{value:"left-aligned",label:__("Left Aligned","genesis-blocks")},{value:"right-aligned",label:__("Right Aligned","genesis-blocks")}],{attributes:{testimonialBackgroundColor:t,testimonialTextColor:o,testimonialFontSize:n,testimonialCiteAlign:a},setAttributes:i}=this.props;return React.createElement(p,{key:"inspector"},React.createElement(d,null,React.createElement(l,{id:"gb_testimonial_testimonialFontSize"},React.createElement(u,{label:__("Font Size","genesis-blocks"),value:n,onChange:e=>this.props.setAttributes({testimonialFontSize:e}),min:14,max:24,step:1})),React.createElement(l,{id:"gb_testimonial_testimonialCiteAlign"},React.createElement(b,{label:__("Cite Alignment","genesis-blocks"),description:__("Left or right align the cite name and title.","genesis-blocks"),options:e,value:a,onChange:e=>this.props.setAttributes({testimonialCiteAlign:e})}))),React.createElement(l,{id:"gb_testimonial_testimonialBackgroundColor"},React.createElement(g,{title:__("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:t,onChange:e=>i({testimonialBackgroundColor:e}),label:__("Background Color","genesis-blocks")}]})),React.createElement(l,{id:"gb_testimonial_testimonialTextColor"},React.createElement(g,{title:__("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:e=>i({testimonialTextColor:e}),label:__("Text Color","genesis-blocks")}]})))}}const{Component:h}=wp.element;class k extends h{render(){const{attributes:{testimonialImgURL:e,testimonialBackgroundColor:t,testimonialTextColor:o,testimonialFontSize:n,testimonialCiteAlign:a}}=this.props;return React.createElement("div",{style:{backgroundColor:t||"#f2f2f2",color:o||"#32373c"},className:i()(this.props.className,a,{"gb-has-avatar":e},"gb-font-size-"+n,"gb-block-testimonial")},this.props.children)}}const f={};f.upload=React.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),React.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),React.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"}));const y=f,{__:v}=wp.i18n,{Component:C,Fragment:R}=wp.element,{RichText:E,AlignmentToolbar:w,BlockControls:x,MediaUpload:T}=wp.blockEditor,{Button:_,Dashicon:S}=wp.components,B=["image"];class z extends C{render(){const{attributes:{testimonialName:e,testimonialTitle:t,testimonialContent:o,testimonialAlignment:a,testimonialImgURL:r,testimonialImgID:s,testimonialImgAlt:l,testimonialTextColor:c},setAttributes:p}=this.props,g=()=>{p({testimonialImgURL:null,testimonialImgID:null,testimonialImgAlt:null})};return[React.createElement(x,{key:"controls"},React.createElement(w,{value:a,onChange:e=>p({testimonialAlignment:e})})),React.createElement(m,n({key:"gb-testimonial-inspector-"+this.props.clientId,setAttributes:p},this.props)),React.createElement(k,n({key:"gb-testimonial-editor-"+this.props.clientId},this.props),React.createElement(E,{tagName:"div",multiline:"p",placeholder:v("Add testimonial text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:i()("gb-testimonial-text"),style:{textAlign:a},onChange:e=>p({testimonialContent:e})}),React.createElement("div",{className:"gb-testimonial-info"},React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement(T,{buttonProps:{className:"change-image"},onSelect:e=>p({testimonialImgID:e.id,testimonialImgURL:e.sizes.thumbnail.url,testimonialImgAlt:e.alt}),allowed:B,type:"image",value:s,render:e=>{let{open:t}=e;return React.createElement(R,null,React.createElement(_,{className:s?"gb-change-image":"gb-add-image",onClick:t},s?React.createElement("img",{className:"gb-testimonial-avatar",src:r,alt:l||null}):y.upload),s&&React.createElement(_,{className:"gb-remove-image",onClick:g},React.createElement(S,{icon:"dismiss"})))}}))),React.createElement(E,{tagName:"h2",placeholder:v("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,className:"gb-testimonial-name",style:{color:c},onChange:e=>this.props.setAttributes({testimonialName:e})}),React.createElement(E,{tagName:"small",placeholder:v("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:t,className:"gb-testimonial-title",style:{color:c},onChange:e=>this.props.setAttributes({testimonialTitle:e})})))]}}const{Component:A}=wp.element,{RichText:N}=wp.blockEditor;class L extends A{render(){const{testimonialName:e,testimonialTitle:t,testimonialContent:o,testimonialAlignment:n,testimonialImgURL:a,testimonialImgAlt:i,testimonialTextColor:r}=this.props.attributes;return React.createElement(k,this.props,React.createElement(N.Content,{tagName:"div",className:"gb-testimonial-text",style:{textAlign:n},value:o}),React.createElement("div",{className:"gb-testimonial-info"},a&&React.createElement("div",{className:"gb-testimonial-avatar-wrap"},React.createElement("div",{className:"gb-testimonial-image-wrap"},React.createElement("img",{className:"gb-testimonial-avatar",src:a,alt:i||null}))),e&&React.createElement(N.Content,{tagName:"h2",className:"gb-testimonial-name",style:{color:r||"#32373c"},value:e}),t&&React.createElement(N.Content,{tagName:"small",className:"gb-testimonial-title",style:{color:r||"#32373c"},value:t})))}}const{__:P}=wp.i18n,{registerBlockType:I}=wp.blocks;I("genesis-blocks/gb-testimonial",{title:P("Testimonial","genesis-blocks"),description:P("Add a user testimonial with a name and title.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[P("testimonial","genesis-blocks"),P("quote","genesis-blocks"),P("atomic","genesis-blocks")],attributes:{testimonialName:{type:"array",selector:".gb-testimonial-name",source:"children"},testimonialTitle:{type:"array",selector:".gb-testimonial-title",source:"children"},testimonialContent:{type:"array",selector:".gb-testimonial-text",source:"children"},testimonialAlignment:{type:"string"},testimonialImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},testimonialImgID:{type:"number"},testimonialImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},testimonialBackgroundColor:{type:"string",default:"#f2f2f2"},testimonialTextColor:{type:"string",default:"#32373c"},testimonialFontSize:{type:"number",default:18},testimonialCiteAlign:{type:"string",default:"left-aligned"}},gb_settings_data:{gb_testimonial_testimonialFontSize:{title:P("Font Size","genesis-blocks")},gb_testimonial_testimonialCiteAlign:{title:P("Cite Alignment","genesis-blocks")},gb_testimonial_testimonialBackgroundColor:{title:P("Background Color","genesis-blocks")},gb_testimonial_testimonialTextColor:{title:P("Text Color","genesis-blocks")}},edit:e=>React.createElement(z,e),save:e=>React.createElement(L,e)});const{__:M}=wp.i18n,{Component:F}=wp.element,{InspectorControls:O,PanelColorSettings:U}=wp.blockEditor,{PanelBody:D,RangeControl:W,SelectControl:j,TextControl:V}=wp.components;class H extends F{render(){const{profileFontSize:e,profileBackgroundColor:t,profileTextColor:o,profileLinkColor:n,twitter:a,facebook:i,instagram:r,pinterest:s,google:c,youtube:p,github:g,linkedin:d,wordpress:u,email:b,website:m,profileAvatarShape:h}=this.props.attributes,{setAttributes:k}=this.props,f=[{value:"square",label:M("Square","genesis-blocks")},{value:"round",label:M("Round","genesis-blocks")}];return React.createElement(O,{key:"inspector"},React.createElement(D,null,React.createElement(l,{id:"gb_author_profile_profileFontSize"},React.createElement(W,{label:M("Font Size","genesis-blocks"),value:e,onChange:e=>this.props.setAttributes({profileFontSize:e}),min:14,max:24,step:1})),React.createElement(l,{id:"gb_author_profile_profileAvatarShape"},React.createElement(j,{label:M("Avatar Shape","genesis-blocks"),description:M("Choose between a round or square avatar shape.","genesis-blocks"),options:f,value:h,onChange:e=>this.props.setAttributes({profileAvatarShape:e})})),React.createElement(l,{id:"gb_author_profile_profileBackgroundColor"},React.createElement(U,{title:M("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:t,onChange:e=>k({profileBackgroundColor:e}),label:M("Background Color","genesis-blocks")}]})),React.createElement(l,{id:"gb_author_profile_profileTextColor"},React.createElement(U,{title:M("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:e=>k({profileTextColor:e}),label:M("Text Color","genesis-blocks")}]})),React.createElement(l,{id:"gb_author_profile_profileLinkColor"},React.createElement(U,{title:M("Social Link Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:e=>k({profileLinkColor:e}),label:M("Social Link Color","genesis-blocks")}]}))),React.createElement(l,{id:"gb_author_profile_socialLinks"},React.createElement(D,{title:M("Social Links","genesis-blocks"),initialOpen:!1},React.createElement("p",null,M("Add links to your social media site and they will appear in the bottom of the profile box.","genesis-blocks")),React.createElement(V,{label:M("Twitter URL","genesis-blocks"),type:"url",value:a,onChange:e=>this.props.setAttributes({twitter:e})}),React.createElement(V,{label:M("Facebook URL","genesis-blocks"),type:"url",value:i,onChange:e=>this.props.setAttributes({facebook:e})}),React.createElement(V,{label:M("Instagram URL","genesis-blocks"),type:"url",value:r,onChange:e=>this.props.setAttributes({instagram:e})}),React.createElement(V,{label:M("Pinterest URL","genesis-blocks"),type:"url",value:s,onChange:e=>this.props.setAttributes({pinterest:e})}),React.createElement(V,{label:M("Google URL","genesis-blocks"),type:"url",value:c,onChange:e=>this.props.setAttributes({google:e})}),React.createElement(V,{label:M("YouTube URL","genesis-blocks"),type:"url",value:p,onChange:e=>this.props.setAttributes({youtube:e})}),React.createElement(V,{label:M("Github URL","genesis-blocks"),type:"url",value:g,onChange:e=>this.props.setAttributes({github:e})}),React.createElement(V,{label:M("LinkedIn URL","genesis-blocks"),type:"url",value:d,onChange:e=>this.props.setAttributes({linkedin:e})}),React.createElement(V,{label:M("WordPress Profile URL","genesis-blocks"),type:"url",value:u,onChange:e=>this.props.setAttributes({wordpress:e})}),React.createElement(V,{label:M("Email URL","genesis-blocks"),help:M('Supports a URL or an email link. Email links must be prefixed with "mailto:". Example: mailto:test@example.com',"genesis-blocks"),type:"url",value:b,onChange:e=>this.props.setAttributes({email:e})}),React.createElement(V,{label:M("Website URL","genesis-blocks"),type:"url",value:m,onChange:e=>this.props.setAttributes({website:e})}))))}}const{Component:q}=wp.element;class G extends q{render(){const{profileAlignment:e,profileImgURL:t,profileFontSize:o,profileBackgroundColor:n,profileTextColor:a,profileAvatarShape:r}=this.props.attributes;return React.createElement("div",{style:{backgroundColor:n,color:a},className:i()(this.props.className,e,r,{"gb-has-avatar":t},"gb-font-size-"+o,"gb-block-profile","gb-profile-columns")},this.props.children)}}const{__:$}=wp.i18n,{Component:K}=wp.element;class Y extends K{render(){return React.createElement("ul",{className:"gb-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Website","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-website-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-website-"+this.props.clientId},$("Visit Website (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"})))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Twitter","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-twitter-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-twitter-"+this.props.clientId},$("Visit Twitter account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Facebook","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-facebook-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-facebook-"+this.props.clientId},$("Visit Facebook account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Instagram","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-instagram-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-instagram-"+this.props.clientId},$("Visit Instagram account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Pinterest","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-pinterest-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-pinterest-"+this.props.clientId},$("Visit Pinterest account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})))),this.props.attributes.google&&!!this.props.attributes.google.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Google","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-google-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-google-"+this.props.clientId},$("Visit Google account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("YouTube","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-youtube-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-youtube-"+this.props.clientId},$("Visit YouTube account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("LinkedIn","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-linkedin-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-linkedin-"+this.props.clientId},$("Visit LinkedIn account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})))),this.props.attributes.github&&!!this.props.attributes.github.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Github","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-github-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-github-"+this.props.clientId},$("Visit GitHub account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("WordPress","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-wordpress-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-wordpress-"+this.props.clientId},$("Visit WordPress account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M21.469 6.825c.84 1.537 1.318 3.3 1.318 5.175 0 3.979-2.156 7.456-5.363 9.325l3.295-9.527c.615-1.54.82-2.771.82-3.864 0-.405-.026-.78-.07-1.11m-7.981.105c.647-.03 1.232-.105 1.232-.105.582-.075.514-.93-.067-.899 0 0-1.755.135-2.88.135-1.064 0-2.85-.15-2.85-.15-.585-.03-.661.855-.075.885 0 0 .54.061 1.125.09l1.68 4.605-2.37 7.08L5.354 6.9c.649-.03 1.234-.1 1.234-.1.585-.075.516-.93-.065-.896 0 0-1.746.138-2.874.138-.2 0-.438-.008-.69-.015C4.911 3.15 8.235 1.215 12 1.215c2.809 0 5.365 1.072 7.286 2.833-.046-.003-.091-.009-.141-.009-1.06 0-1.812.923-1.812 1.914 0 .89.513 1.643 1.06 2.531.411.72.89 1.643.89 2.977 0 .915-.354 1.994-.821 3.479l-1.075 3.585-3.9-11.61.001.014zM12 22.784c-1.059 0-2.081-.153-3.048-.437l3.237-9.406 3.315 9.087c.024.053.05.101.078.149-1.12.393-2.325.609-3.582.609M1.211 12c0-1.564.336-3.05.935-4.39L7.29 21.709C3.694 19.96 1.212 16.271 1.211 12M12 0C5.385 0 0 5.385 0 12s5.385 12 12 12 12-5.385 12-12S18.615 0 12 0"})))),this.props.attributes.email&&!!this.props.attributes.email.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:this.props.attributes.profileLinkColor},"aria-label":$("Email","genesis-blocks")},React.createElement("svg",{"aria-labelledby":"gb-link-email-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-email-"+this.props.clientId},$("Email","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})))))}}const{Component:Q}=wp.element;class X extends Q{render(){return React.createElement("div",{className:"gb-profile-column gb-profile-avatar-wrap"},React.createElement("div",{className:"gb-profile-image-wrap"},this.props.children))}}const{__:Z}=wp.i18n,{Component:J,Fragment:ee}=wp.element,{RichText:te,AlignmentToolbar:oe,BlockControls:ne,MediaUpload:ae}=wp.blockEditor,{Button:ie,Dashicon:re}=wp.components,se=["image"];class le extends J{constructor(){super(...arguments),this.props.attributes.clientId&&this.props.attributes.clientId===this.props.clientId||this.props.setAttributes({clientId:this.props.clientId})}render(){const{attributes:{profileName:e,profileTitle:t,profileContent:o,profileAlignment:a,profileImgURL:r,profileImgID:s,profileImgAlt:l,profileTextColor:c},setAttributes:p}=this.props;return[React.createElement(ne,{key:"controls"},React.createElement(oe,{value:a,onChange:e=>p({profileAlignment:e})})),React.createElement(H,n({key:"gb-author-profile-inspector-"+this.props.clientId,setAttributes:p},this.props)),React.createElement(G,n({key:"gb-author-profile-"+this.props.clientId},this.props),React.createElement(X,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement(ae,{buttonProps:{className:"change-image"},onSelect:e=>p({profileImgID:e.id,profileImgURL:e.url,profileImgAlt:e.alt}),allowed:se,type:"image",value:s,render:e=>{let{open:t}=e;return React.createElement(ee,null,React.createElement(ie,{onClick:t},s?React.createElement("img",{className:i()("gb-profile-avatar","gb-change-image","wp-image-"+s),src:r,alt:l}):y.upload),s&&React.createElement(ie,{className:"gb-remove-image",onClick:()=>{p({profileImgID:null,profileImgURL:null,profileImgAlt:null})}},React.createElement(re,{icon:"dismiss"})))}}))),React.createElement("div",{className:i()("gb-profile-column gb-profile-content-wrap")},React.createElement(te,{tagName:"h2",placeholder:Z("Add name","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,className:"gb-profile-name",style:{color:c},onChange:e=>p({profileName:e})}),React.createElement(te,{tagName:"p",placeholder:Z("Add title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:t,className:"gb-profile-title",style:{color:c},onChange:e=>p({profileTitle:e})}),React.createElement(te,{tagName:"div",className:"gb-profile-text",multiline:"p",placeholder:Z("Add profile text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:o,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],onChange:e=>p({profileContent:e})}),React.createElement(Y,this.props)))]}}const{Component:ce}=wp.element,{RichText:pe}=wp.blockEditor;class ge extends ce{render(){const{profileName:e,profileTitle:t,profileContent:o,profileImgURL:n,profileImgAlt:a,profileImgID:r,profileTextColor:s}=this.props.attributes;return React.createElement(G,this.props,n&&r&&React.createElement(X,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement("img",{className:i()("gb-profile-avatar","wp-image-"+r),src:n,alt:a}))),React.createElement("div",{className:i()("gb-profile-column gb-profile-content-wrap")},e&&React.createElement(pe.Content,{tagName:"h2",className:"gb-profile-name",style:{color:s},value:e}),t&&React.createElement(pe.Content,{tagName:"p",className:"gb-profile-title",style:{color:s},value:t}),o&&React.createElement(pe.Content,{tagName:"div",className:"gb-profile-text",value:o}),React.createElement(Y,this.props)))}}const{Component:de}=wp.element;class ue extends de{constructor(e){super(...arguments)}render(){const{profileAlignment:e,profileImgURL:t,profileFontSize:o,profileBackgroundColor:n,profileTextColor:a,profileAvatarShape:r}=this.props.attributes;return React.createElement("div",{style:{backgroundColor:n,color:a},className:i()(this.props.className,e,r,{"gb-has-avatar":t},"gb-font-size-"+o,"gb-block-profile","gb-profile-columns")},this.props.children)}}const{__:be}=wp.i18n,{Component:me}=wp.element;class he extends me{constructor(e){super(...arguments)}render(){return React.createElement("ul",{className:"gb-social-links"},this.props.attributes.website&&!!this.props.attributes.website.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.website,target:"_blank",rel:"noopener noreferrer"},be("Website","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fas fa-link"}))),this.props.attributes.twitter&&!!this.props.attributes.twitter.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.twitter,target:"_blank",rel:"noopener noreferrer"},be("Twitter","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-twitter"}))),this.props.attributes.facebook&&!!this.props.attributes.facebook.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.facebook,target:"_blank",rel:"noopener noreferrer"},be("Facebook","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-facebook-f"}))),this.props.attributes.instagram&&!!this.props.attributes.instagram.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.instagram,target:"_blank",rel:"noopener noreferrer"},be("Instagram","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-instagram"}))),this.props.attributes.pinterest&&!!this.props.attributes.pinterest.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.pinterest,target:"_blank",rel:"noopener noreferrer"},be("Pinterest","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-pinterest"}))),this.props.attributes.google&&!!this.props.attributes.google.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.google,target:"_blank",rel:"noopener noreferrer"},be("Google","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-google"}))),this.props.attributes.youtube&&!!this.props.attributes.youtube.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.youtube,target:"_blank",rel:"noopener noreferrer"},be("YouTube","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-youtube"}))),this.props.attributes.linkedin&&!!this.props.attributes.linkedin.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.linkedin,target:"_blank",rel:"noopener noreferrer"},be("LinkedIn","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-linkedin"}))),this.props.attributes.github&&!!this.props.attributes.github.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.github,target:"_blank",rel:"noopener noreferrer"},be("Github","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-github"}))),this.props.attributes.wordpress&&!!this.props.attributes.wordpress.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.wordpress,target:"_blank",rel:"noopener noreferrer"},be("WordPress","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"fab fa-wordpress-simple"}))),this.props.attributes.email&&!!this.props.attributes.email.length&&React.createElement("li",null,React.createElement("a",{href:this.props.attributes.email,target:"_blank",rel:"noopener noreferrer"},be("Email","genesis-blocks")," ",React.createElement("i",{style:{backgroundColor:this.props.attributes.profileLinkColor},className:"far fa-envelope"}))))}}const{Component:ke}=wp.element;class fe extends ke{constructor(e){super(...arguments)}render(){return React.createElement("div",{className:"gb-profile-column gb-profile-avatar-wrap"},React.createElement("div",{className:"gb-profile-image-wrap"},this.props.children))}}const{Component:ye}=wp.element,{RichText:ve}=wp.blockEditor,Ce={attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},wordpress:{type:"url"},website:{type:"url"}},save:class extends ye{constructor(){super(...arguments)}render(){const{profileName:e,profileTitle:t,profileContent:o,profileImgURL:n,profileImgAlt:a,profileImgID:r,profileTextColor:s}=this.props.attributes;return React.createElement(ue,this.props,n&&React.createElement(fe,this.props,React.createElement("figure",{className:"gb-profile-image-square"},React.createElement("img",{className:i()("gb-profile-avatar","wp-image-"+r),src:n,alt:a}))),React.createElement("div",{className:i()("gb-profile-column gb-profile-content-wrap")},e&&React.createElement(ve.Content,{tagName:"h2",className:"gb-profile-name",style:{color:s},value:e}),t&&React.createElement(ve.Content,{tagName:"p",className:"gb-profile-title",style:{color:s},value:t}),o&&React.createElement(ve.Content,{tagName:"div",className:"gb-profile-text",value:o}),React.createElement(he,this.props)))}}},{Component:Re}=wp.element,{RichText:Ee}=wp.blockEditor,we=[Ce,{attributes:{profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},website:{type:"url"}},save:class extends Re{constructor(){super(...arguments)}render(){const{profileName:e,profileTitle:t,profileContent:o,profileImgURL:n,profileTextColor:a}=this.props.attributes;return React.createElement(G,this.props,n&&React.createElement(X,this.props,React.createElement("div",{className:"gb-profile-image-square"},React.createElement("img",{className:"gb-profile-avatar",src:n,alt:"avatar"}))),React.createElement("div",{className:i()("gb-profile-column gb-profile-content-wrap")},e&&React.createElement(Ee.Content,{tagName:"h2",className:"gb-profile-name",style:{color:a},value:e}),t&&React.createElement(Ee.Content,{tagName:"p",className:"gb-profile-title",style:{color:a},value:t}),o&&React.createElement(Ee.Content,{tagName:"div",className:"gb-profile-text",value:o}),React.createElement(Y,this.props)))}}}],{__:xe}=wp.i18n,{registerBlockType:Te}=wp.blocks;Te("genesis-blocks/gb-profile-box",{title:xe("Profile Box","genesis-blocks"),description:xe("Add a profile box with bio info and social media links.","genesis-blocks"),icon:"admin-users",category:"genesis-blocks",keywords:[xe("author","genesis-blocks"),xe("profile","genesis-blocks"),xe("atomic","genesis-blocks"),xe("genesis","genesis-blocks")],attributes:{clientId:{type:"string",default:""},profileName:{type:"array",source:"children",selector:".gb-profile-name"},profileTitle:{type:"array",source:"children",selector:".gb-profile-title"},profileContent:{type:"array",selector:".gb-profile-text",source:"children"},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},profileImgAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},profileImgID:{type:"number"},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileLinkColor:{type:"string",default:"#392f43"},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},twitter:{type:"url"},facebook:{type:"url"},instagram:{type:"url"},pinterest:{type:"url"},google:{type:"url"},youtube:{type:"url"},github:{type:"url"},linkedin:{type:"url"},email:{type:"url"},wordpress:{type:"url"},website:{type:"url"}},gb_settings_data:{gb_author_profile_profileFontSize:{title:xe("Font Size","genesis-blocks")},gb_author_profile_profileAvatarShape:{title:xe("Avatar Shape","genesis-blocks")},gb_author_profile_profileBackgroundColor:{title:xe("Background Color","genesis-blocks")},gb_author_profile_profileTextColor:{title:xe("Text Color","genesis-blocks")},gb_author_profile_profileLinkColor:{title:xe("Social Link Color","genesis-blocks")},gb_author_profile_socialLinks:{title:xe("Social Links","genesis-blocks")}},edit:e=>React.createElement(le,n({},e,{clientId:e.clientId})),save:e=>React.createElement(ge,n({},e,{clientId:e.attributes.clientId})),deprecated:we});const{__:_e}=wp.i18n,{Component:Se}=wp.element,{PanelColorSettings:Be,InspectorControls:ze}=wp.blockEditor,{PanelBody:Ae,RangeControl:Ne,SelectControl:Le}=wp.components;class Pe extends Se{render(){const e=[{value:null,label:_e("Always Show","genesis-blocks")},{value:"gb-dismissable",label:_e("Dismissible","genesis-blocks")}],{attributes:{noticeBackgroundColor:t,noticeTextColor:o,noticeTitleColor:n,noticeFontSize:a,noticeDismiss:i}}=this.props,{setAttributes:r}=this.props;return React.createElement(ze,{key:"inspector"},React.createElement(Ae,null,React.createElement(l,{id:"gb_notice_noticeFontSize"},React.createElement(Ne,{label:_e("Font Size","genesis-blocks"),value:a,onChange:e=>this.props.setAttributes({noticeFontSize:e}),min:14,max:24,step:1})),React.createElement(l,{id:"gb_notice_noticeDismiss"},React.createElement(Le,{label:_e("Notice Display","genesis-blocks"),description:_e("Do you want the message to always show or dismissible?","genesis-blocks"),options:e,value:i,onChange:e=>this.props.setAttributes({noticeDismiss:e})}))),React.createElement(l,{id:"gb_notice_colorSettings"},React.createElement(Be,{title:_e("Notice Color","genesis-blocks"),colorValue:t,initialOpen:!1,colorSettings:[{value:t,onChange:e=>r({noticeBackgroundColor:e}),colors:[{color:"#00d1b2",name:"teal"},{color:"#3373dc",name:"royal blue"},{color:"#209cef",name:"sky blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"},{color:"#392F43",name:"black"}],label:_e("Notice Color","genesis-blocks")}]}),React.createElement(Be,{title:_e("Title Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:e=>r({noticeTitleColor:e}),label:_e("Title Color","genesis-blocks")}]}),React.createElement(Be,{title:_e("Text Color","genesis-blocks"),colorValue:o,initialOpen:!1,colorSettings:[{value:o,onChange:e=>r({noticeTextColor:e}),label:_e("Text Color","genesis-blocks")}]})))}}var Ie=o(8762),Me=o.n(Ie);const{Component:Fe}=wp.element;class Oe extends Fe{render(){const{attributes:{noticeTitle:e,noticeAlignment:t,noticeBackgroundColor:o,noticeTextColor:n,noticeFontSize:a,noticeDismiss:r}}=this.props,s=(l=r+e,Me()(l).substr(0,6));var l;return React.createElement("div",{style:{color:n,textAlign:t,backgroundColor:o},className:i()(this.props.className,r,"gb-font-size-"+a,"gb-block-notice"),"data-id":s},this.props.children)}}const{Component:Ue}=wp.element;class De extends Ue{render(){const{attributes:{noticeTitleColor:e}}=this.props;return React.createElement("div",{className:"gb-notice-dismiss",style:{fill:e,color:e}},this.props.children)}}const We={};We.upload=React.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m77.945 91.453h-72.371c-3.3711 0-5.5742-2.3633-5.5742-5.2422v-55.719c0-3.457 2.1172-6.0703 5.5742-6.0703h44.453v11.051l-38.98-0.003906v45.008h60.977v-17.133l11.988-0.007812v22.875c0 2.8789-2.7812 5.2422-6.0664 5.2422z"}),React.createElement("path",{d:"m16.543 75.48l23.25-22.324 10.441 9.7773 11.234-14.766 5.5039 10.539 0.039063 16.773z"}),React.createElement("path",{d:"m28.047 52.992c-3.168 0-5.7422-2.5742-5.7422-5.7461 0-3.1758 2.5742-5.75 5.7422-5.75 3.1797 0 5.7539 2.5742 5.7539 5.75 0 3.1719-2.5742 5.7461-5.7539 5.7461z"}),React.createElement("path",{d:"m84.043 30.492v22.02h-12.059l-0.015625-22.02h-15.852l21.941-21.945 21.941 21.945z"})),We.dismiss=React.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},React.createElement("path",{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zM15 13l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z"}));const je=We,{__:Ve}=wp.i18n,{Component:He}=wp.element,{registerBlockType:qe}=wp.blocks,{RichText:Ge,AlignmentToolbar:$e,BlockControls:Ke}=wp.blockEditor;qe("genesis-blocks/gb-notice",{title:Ve("Notice","genesis-blocks"),description:Ve("Add a stylized text notice.","genesis-blocks"),icon:"format-aside",category:"genesis-blocks",keywords:[Ve("notice","genesis-blocks"),Ve("message","genesis-blocks"),Ve("atomic","genesis-blocks")],attributes:{noticeTitle:{type:"string",selector:".gb-notice-title"},noticeContent:{type:"array",selector:".gb-notice-text",source:"children"},noticeAlignment:{type:"string"},noticeBackgroundColor:{type:"string",default:"#00d1b2"},noticeTextColor:{type:"string",default:"#32373c"},noticeTitleColor:{type:"string",default:"#fff"},noticeFontSize:{type:"number",default:18},noticeDismiss:{type:"string",default:""}},gb_settings_data:{gb_notice_noticeFontSize:{title:Ve("Font Size","genesis-blocks")},gb_notice_noticeDismiss:{title:Ve("Notice Display","genesis-blocks")},gb_notice_colorSettings:{title:Ve("Notice Color","genesis-blocks")}},edit:class extends He{render(){const{attributes:{noticeTitle:e,noticeContent:t,noticeAlignment:o,noticeBackgroundColor:a,noticeTitleColor:r,noticeDismiss:s},setAttributes:l}=this.props;return[React.createElement(Ke,{key:"controls"},React.createElement($e,{value:o,onChange:e=>l({noticeAlignment:e})})),React.createElement(Pe,n({key:"gb-notice-inspector-"+this.props.clientId,setAttributes:l},this.props)),React.createElement(Oe,n({key:"gb-notice-noticebox-"+this.props.clientId},this.props),s&&"gb-dismissable"===s&&React.createElement(De,this.props,je.dismiss),React.createElement(Ge,{tagName:"p",placeholder:Ve("Notice Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,className:i()("gb-notice-title"),style:{color:r},onChange:e=>l({noticeTitle:e})}),React.createElement(Ge,{tagName:"div",multiline:"p",placeholder:Ve("Add notice text…","genesis-blocks"),value:t,className:i()("gb-notice-text"),style:{borderColor:a},onChange:e=>l({noticeContent:e})}))]}},save(e){const{noticeTitle:t,noticeContent:o,noticeBackgroundColor:n,noticeTitleColor:a,noticeDismiss:i}=e.attributes;return React.createElement(Oe,e,i&&"gb-dismissable"===i&&React.createElement(De,e,je.dismiss),t&&React.createElement("div",{className:"gb-notice-title",style:{color:a}},React.createElement(Ge.Content,{tagName:"p",value:t})),o&&React.createElement(Ge.Content,{tagName:"div",className:"gb-notice-text",style:{borderColor:n},value:o}))}});const{__:Ye}=wp.i18n,{Component:Qe}=wp.element,{InspectorControls:Xe}=wp.blockEditor,{RangeControl:Ze,SelectControl:Je,PanelBody:et}=wp.components;class tt extends Qe{render(){const{dropCapFontSize:e,dropCapStyle:t}=this.props.attributes,o=[{value:"gb-drop-cap-letter",label:Ye("Letter","genesis-blocks")},{value:"gb-drop-cap-square",label:Ye("Square","genesis-blocks")},{value:"gb-drop-cap-border",label:Ye("Border","genesis-blocks")}];return React.createElement(Xe,{key:"inspector"},React.createElement(et,null,React.createElement(l,{id:"gb_dropcap_dropCapFontSize"},React.createElement(Ze,{label:Ye("Drop Cap Size","genesis-blocks"),value:e,onChange:e=>this.props.setAttributes({dropCapFontSize:e}),min:1,max:6,step:1})),React.createElement(l,{id:"gb_dropcap_dropCapStyle"},React.createElement(Je,{label:Ye("Drop Cap Style","genesis-blocks"),description:Ye("Choose the style of the drop cap in your paragraph","genesis-blocks"),options:o,value:t,onChange:e=>this.props.setAttributes({dropCapStyle:e})}))))}}const{Component:ot}=wp.element;class nt extends ot{render(){const{dropCapAlignment:e,dropCapTextColor:t,dropCapFontSize:o,dropCapStyle:n}=this.props.attributes;return React.createElement("div",{style:{color:t,textAlign:e},className:i()(this.props.className,n,"gb-font-size-"+o,"gb-block-drop-cap")},this.props.children)}}const{__:at}=wp.i18n,{Component:it}=wp.element,{registerBlockType:rt}=wp.blocks,{RichText:st,AlignmentToolbar:lt,BlockControls:ct}=wp.blockEditor;rt("genesis-blocks/gb-drop-cap",{title:at("Drop Cap","genesis-blocks"),description:at("Add a styled drop cap to the beginning of your paragraph.","genesis-blocks"),icon:"format-quote",category:"genesis-blocks",keywords:[at("drop cap","genesis-blocks"),at("quote","genesis-blocks"),at("genesis","genesis-blocks")],attributes:{dropCapContent:{type:"array",selector:".gb-drop-cap-text",source:"children"},dropCapAlignment:{type:"string"},dropCapBackgroundColor:{type:"string",default:"#f2f2f2"},dropCapTextColor:{type:"string",default:"#32373c"},dropCapFontSize:{type:"number",default:3},dropCapStyle:{type:"string",default:"drop-cap-letter"}},gb_settings_data:{gb_dropcap_dropCapFontSize:{title:at("Drop Cap Size","genesis-blocks")},gb_dropcap_dropCapStyle:{title:at("Drop Cap Style","genesis-blocks")}},edit:class extends it{render(){const{attributes:{dropCapContent:e,dropCapAlignment:t,dropCapFontSize:o}}=this.props;return[React.createElement(ct,{key:"controls"},React.createElement(lt,{value:t,onChange:e=>this.props.setAttributes({dropCapAlignment:e})})),React.createElement(tt,n({key:"gb-drop-cap-inspector-"+this.props.clientId},this.props)),React.createElement(nt,n({key:"gb-drop-cap-"+this.props.clientId},this.props),React.createElement(st,{tagName:"div",multiline:"p",placeholder:at("Add paragraph text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"],className:i()("gb-drop-cap-text","gb-font-size-"+o),onChange:e=>this.props.setAttributes({dropCapContent:e})}))]}},save(e){const{dropCapContent:t}=e.attributes;return React.createElement(nt,e,t&&React.createElement(st.Content,{tagName:"div",className:"gb-drop-cap-text",value:t}))}});const{__:pt}=wp.i18n,{Fragment:gt}=wp.element,{SelectControl:dt,ToggleControl:ut}=wp.components,{PanelColorSettings:bt}=wp.blockEditor;function mt(e){const{enableButtonBackgroundColor:t,buttonBackgroundColor:o,onChangeButtonColor:n=(()=>{}),enableButtonTextColor:a,buttonTextColor:i,onChangeButtonTextColor:r=(()=>{}),enableButtonSize:s,buttonSize:c,onChangeButtonSize:p=(()=>{}),enableButtonShape:g,buttonShape:d,onChangeButtonShape:u=(()=>{}),enableButtonTarget:b,buttonTarget:m,onChangeButtonTarget:h=(()=>{})}=e,k=[{value:"gb-button-size-small",label:pt("Small","genesis-blocks")},{value:"gb-button-size-medium",label:pt("Medium","genesis-blocks")},{value:"gb-button-size-large",label:pt("Large","genesis-blocks")},{value:"gb-button-size-extralarge",label:pt("Extra Large","genesis-blocks")}],f=[{value:"gb-button-shape-square",label:pt("Square","genesis-blocks")},{value:"gb-button-shape-rounded",label:pt("Rounded Square","genesis-blocks")},{value:"gb-button-shape-circular",label:pt("Circular","genesis-blocks")}];return React.createElement(gt,null,React.createElement(l,{id:"gb_button_buttonOptions"},!1!==b&&React.createElement(ut,{label:pt("Open link in new window","genesis-blocks"),checked:m,onChange:h}),!1!==s&&React.createElement(dt,{selected:c,label:pt("Button Size","genesis-blocks"),value:c,options:k.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:p}),!1!==g&&React.createElement(dt,{label:pt("Button Shape","genesis-blocks"),value:d,options:f.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:u}),!1!==t&&React.createElement(bt,{title:pt("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o,onChange:n,label:pt("Button Color","genesis-blocks")}]}),!1!==a&&React.createElement(bt,{title:pt("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:i,onChange:r,label:pt("Button Text Color","genesis-blocks")}]})))}const{__:ht}=wp.i18n,{Component:kt}=wp.element,{InspectorControls:ft}=wp.blockEditor,{PanelBody:yt}=wp.components;class vt extends kt{render(){const{buttonBackgroundColor:e,buttonTextColor:t,buttonSize:o,buttonShape:n,buttonTarget:a}=this.props.attributes,{setAttributes:i}=this.props;return React.createElement(ft,{key:"inspector"},React.createElement(yt,null,React.createElement(mt,{buttonTarget:a,onChangeButtonTarget:e=>i({buttonTarget:!a}),buttonSize:o,onChangeButtonSize:e=>i({buttonSize:e}),buttonShape:n,onChangeButtonShape:e=>i({buttonShape:e}),buttonBackgroundColor:e,onChangeButtonColor:e=>i({buttonBackgroundColor:e}),buttonTextColor:t,onChangeButtonTextColor:e=>i({buttonTextColor:e})})))}}const{Component:Ct}=wp.element;class Rt extends Ct{render(){return React.createElement("div",{style:{textAlign:this.props.attributes.buttonAlignment},className:i()(this.props.className,"gb-block-button")},this.props.children)}}const{__:Et}=wp.i18n,{Component:wt}=wp.element,{registerBlockType:xt}=wp.blocks,{RichText:Tt,AlignmentToolbar:_t,BlockControls:St,URLInput:Bt}=wp.blockEditor,{Button:zt,Dashicon:At,Icon:Nt}=wp.components;xt("genesis-blocks/gb-button",{title:Et("Button","genesis-blocks"),description:Et("Add a customizable button.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[Et("button","genesis-blocks"),Et("link","genesis-blocks"),Et("genesis","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextColor:{type:"string"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1}},gb_settings_data:{gb_button_buttonOptions:{title:Et("Button Options","genesis-blocks")}},edit:class extends wt{render(){const{attributes:{buttonText:e,buttonUrl:t,buttonAlignment:o,buttonBackgroundColor:a,buttonTextColor:r,buttonSize:s,buttonShape:l},isSelected:c,setAttributes:p}=this.props;return[React.createElement(St,{key:"controls"},React.createElement(_t,{value:o,onChange:e=>{p({buttonAlignment:e})}})),React.createElement(vt,n({key:"gb-button-inspector-"+this.props.clientId},this.props)),React.createElement(Rt,n({key:"gb-button-custombutton-"+this.props.clientId},this.props),React.createElement(Tt,{tagName:"span",placeholder:Et("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,allowedFormats:[],className:i()("gb-button",l,s),style:{color:r||"#ffffff",backgroundColor:a||"#3373dc"},onChange:e=>p({buttonText:e})})),c&&React.createElement("form",{key:"form-link",className:`blocks-button__inline-link gb-button-${o}`,onSubmit:e=>e.preventDefault(),style:{textAlign:o}},React.createElement(At,{icon:"admin-links"}),React.createElement(Bt,{className:"button-url",value:t,onChange:e=>p({buttonUrl:e})}),React.createElement(zt,{label:Et("Apply","genesis-blocks"),type:"submit"},React.createElement(Nt,{icon:"editor-break"})))]}},save(e){const{buttonText:t,buttonUrl:o,buttonBackgroundColor:n,buttonTextColor:a,buttonSize:r,buttonShape:s,buttonTarget:l}=e.attributes;return React.createElement(Rt,e,t&&React.createElement("a",{href:o,target:l?"_blank":null,rel:l?"noopener noreferrer":null,className:i()("gb-button",s,r),style:{color:a||"#ffffff",backgroundColor:n||"#3373dc"}},React.createElement(Tt.Content,{value:t})))}});const{__:Lt}=wp.i18n,{Component:Pt,Fragment:It}=wp.element,{InspectorControls:Mt,PanelColorSettings:Ft}=wp.blockEditor,{PanelBody:Ot,RangeControl:Ut,ToggleControl:Dt,SelectControl:Wt}=wp.components;class jt extends Pt{render(){const{attributes:{spacerHeight:e,spacerDivider:t,spacerDividerStyle:o,spacerDividerColor:n,spacerDividerHeight:a},setAttributes:i}=this.props,r=[{value:"gb-divider-solid",label:Lt("Solid","genesis-blocks")},{value:"gb-divider-dashed",label:Lt("Dashed","genesis-blocks")},{value:"gb-divider-dotted",label:Lt("Dotted","genesis-blocks")}];return React.createElement(Mt,{key:"inspector"},React.createElement(Ot,null,React.createElement(l,{id:"gb_spacer_spacerHeight"},React.createElement(Ut,{label:Lt("Spacer Height","genesis-blocks"),value:e||"",onChange:e=>this.props.setAttributes({spacerHeight:e}),min:30,max:600})),React.createElement(l,{id:"gb_spacer_spacerDivider"},React.createElement(Dt,{label:Lt("Add Divider","genesis-blocks"),checked:t,onChange:()=>this.props.setAttributes({spacerDivider:!t})}))),t?React.createElement(It,null,React.createElement(Ot,null,React.createElement(l,{id:"gb_spacer_spacerDividerStyle"},React.createElement(Wt,{label:Lt("Divider Style","genesis-blocks"),value:o,options:r.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({spacerDividerStyle:e})}})),React.createElement(l,{id:"gb_spacer_spacerDividerHeight"},React.createElement(Ut,{label:Lt("Divider Height","genesis-blocks"),value:a||"",onChange:e=>this.props.setAttributes({spacerDividerHeight:e}),min:1,max:5}))),React.createElement(l,{id:"gb_spacer_dividerColor"},React.createElement(Ft,{title:Lt("Divider Color","genesis-blocks"),initialOpen:!1,colorSettings:[{colors:[{color:"#ddd",name:"white"},{color:"#333",name:"black"},{color:"#3373dc",name:"royal blue"},{color:"#22d25f",name:"green"},{color:"#ffdd57",name:"yellow"},{color:"#ff3860",name:"pink"},{color:"#7941b6",name:"purple"}],value:n,onChange:e=>i({spacerDividerColor:e}),label:Lt("Divider Color","genesis-blocks")}]}))):null)}}const{Component:Vt}=wp.element;class Ht extends Vt{render(){const{spacerDivider:e,spacerDividerStyle:t,spacerDividerColor:o,spacerDividerHeight:n}=this.props.attributes;return React.createElement("div",{style:{color:o},className:i()(this.props.className,"gb-block-spacer",t,{"gb-spacer-divider":e},"gb-divider-size-"+n)},this.props.children)}}const qt=window.React;var Gt=o.n(qt);const $t=window.ReactDOM;var Kt,Yt=(Kt=function(e,t){return Kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},Kt(e,t)},function(e,t){function __(){this.constructor=e}Kt(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),Qt=function(){return Qt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Qt.apply(this,arguments)},Xt={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Zt={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Jt={width:"20px",height:"20px",position:"absolute"},eo={top:Qt(Qt({},Xt),{top:"-5px"}),right:Qt(Qt({},Zt),{left:void 0,right:"-5px"}),bottom:Qt(Qt({},Xt),{top:void 0,bottom:"-5px"}),left:Qt(Qt({},Zt),{left:"-5px"}),topRight:Qt(Qt({},Jt),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Qt(Qt({},Jt),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Qt(Qt({},Jt),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Qt(Qt({},Jt),{left:"-10px",top:"-10px",cursor:"nw-resize"})},to=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return Yt(t,e),t.prototype.render=function(){return qt.createElement("div",{className:this.props.className||"",style:Qt(Qt({position:"absolute",userSelect:"none"},eo[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(qt.PureComponent),oo=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function __(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}}(),no=function(){return no=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},no.apply(this,arguments)},ao={width:"auto",height:"auto"},io=function(e,t,o){return Math.max(Math.min(e,o),t)},ro=function(e,t){return Math.round(e/t)*t},so=function(e,t){return new RegExp(e,"i").test(t)},lo=function(e){return Boolean(e.touches&&e.touches.length)},co=function(e,t,o){void 0===o&&(o=0);var n=t.reduce((function(o,n,a){return Math.abs(n-e)<Math.abs(t[o]-e)?a:o}),0),a=Math.abs(t[n]-e);return 0===o||a<o?t[n]:e},po=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},go=function(e,t,o,n){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return o*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return n*(Number(e.replace("vh",""))/100)}return e},uo=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],bo="__resizable_base__",mo=function(e){function t(t){var o=e.call(this,t)||this;return o.ratio=1,o.resizable=null,o.parentLeft=0,o.parentTop=0,o.resizableLeft=0,o.resizableRight=0,o.resizableTop=0,o.resizableBottom=0,o.targetLeft=0,o.targetTop=0,o.appendBase=function(){if(!o.resizable||!o.window)return null;var e=o.parentNode;if(!e)return null;var t=o.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(bo):t.className+=bo,e.appendChild(t),t},o.removeBase=function(e){var t=o.parentNode;t&&t.removeChild(e)},o.ref=function(e){e&&(o.resizable=e)},o.state={isResizing:!1,width:void 0===(o.propsSize&&o.propsSize.width)?"auto":o.propsSize&&o.propsSize.width,height:void 0===(o.propsSize&&o.propsSize.height)?"auto":o.propsSize&&o.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},o.onResizeStart=o.onResizeStart.bind(o),o.onMouseMove=o.onMouseMove.bind(o),o.onMouseUp=o.onMouseUp.bind(o),o}return oo(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||ao},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,n=this.resizable.offsetHeight,a=this.resizable.style.position;"relative"!==a&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=a}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,o=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var o=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/o[t]*100+"%"}return po(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?po(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?po(t.height):o("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,o=this.parentNode.style.flexWrap;"wrap"!==o&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var n={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),n},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var o=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==o&&"auto"!==o?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var o,n,a=this.props.boundsByDirection,i=this.state.direction,r=a&&so("left",i),s=a&&so("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(o=r?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),n=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=r?this.resizableRight:this.window.innerWidth-this.resizableLeft,n=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=r?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),n=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),n&&Number.isFinite(n)&&(t=t&&t<n?t:n),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var o=this.props.scale||1,n=this.props.resizeRatio||1,a=this.state,i=a.direction,r=a.original,s=this.props,l=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,p=s.lockAspectRatioExtraWidth,g=r.width,d=r.height,u=c||0,b=p||0;return so("right",i)&&(g=r.width+(e-r.x)*n/o,l&&(d=(g-b)/this.ratio+u)),so("left",i)&&(g=r.width-(e-r.x)*n/o,l&&(d=(g-b)/this.ratio+u)),so("bottom",i)&&(d=r.height+(t-r.y)*n/o,l&&(g=(d-u)*this.ratio+b)),so("top",i)&&(d=r.height-(t-r.y)*n/o,l&&(g=(d-u)*this.ratio+b)),{newWidth:g,newHeight:d}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,n){var a=this.props,i=a.lockAspectRatio,r=a.lockAspectRatioExtraHeight,s=a.lockAspectRatioExtraWidth,l=void 0===n.width?10:n.width,c=void 0===o.width||o.width<0?e:o.width,p=void 0===n.height?10:n.height,g=void 0===o.height||o.height<0?t:o.height,d=r||0,u=s||0;if(i){var b=(p-d)*this.ratio+u,m=(g-d)*this.ratio+u,h=(l-u)/this.ratio+d,k=(c-u)/this.ratio+d,f=Math.max(l,b),y=Math.min(c,m),v=Math.max(p,h),C=Math.min(g,k);e=io(e,f,y),t=io(t,v,C)}else e=io(e,l,c),t=io(t,p,g);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var n=this.resizable.getBoundingClientRect(),a=n.left,i=n.top,r=n.right,s=n.bottom;this.resizableLeft=a,this.resizableRight=r,this.resizableTop=i,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var o,n=0,a=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(n=e.nativeEvent.clientX,a=e.nativeEvent.clientY):e.nativeEvent&&lo(e.nativeEvent)&&(n=e.nativeEvent.touches[0].clientX,a=e.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable&&!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var r=this.parentNode;if(r){var s=this.window.getComputedStyle(r).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",o=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:n,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:no(no({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:o};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&lo(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var o=this.props,n=o.maxWidth,a=o.maxHeight,i=o.minWidth,r=o.minHeight,s=lo(e)?e.touches[0].clientX:e.clientX,l=lo(e)?e.touches[0].clientY:e.clientY,c=this.state,p=c.direction,g=c.original,d=c.width,u=c.height,b=this.getParentSize(),m=function(e,t,o,n,a,i,r){return n=go(n,e.width,t,o),a=go(a,e.height,t,o),i=go(i,e.width,t,o),r=go(r,e.height,t,o),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===a?void 0:Number(a),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===r?void 0:Number(r)}}(b,this.window.innerWidth,this.window.innerHeight,n,a,i,r);n=m.maxWidth,a=m.maxHeight,i=m.minWidth,r=m.minHeight;var h=this.calculateNewSizeFromDirection(s,l),k=h.newHeight,f=h.newWidth,y=this.calculateNewMaxFromBoundary(n,a);this.props.snap&&this.props.snap.x&&(f=co(f,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(k=co(k,this.props.snap.y,this.props.snapGap));var v=this.calculateNewSizeFromAspectRatio(f,k,{width:y.maxWidth,height:y.maxHeight},{width:i,height:r});if(f=v.newWidth,k=v.newHeight,this.props.grid){var C=ro(f,this.props.grid[0]),R=ro(k,this.props.grid[1]),E=this.props.snapGap||0;f=0===E||Math.abs(C-f)<=E?C:f,k=0===E||Math.abs(R-k)<=E?R:k}var w={width:f-g.width,height:k-g.height};d&&"string"==typeof d&&(d.endsWith("%")?f=f/b.width*100+"%":d.endsWith("vw")?f=f/this.window.innerWidth*100+"vw":d.endsWith("vh")&&(f=f/this.window.innerHeight*100+"vh")),u&&"string"==typeof u&&(u.endsWith("%")?k=k/b.height*100+"%":u.endsWith("vw")?k=k/this.window.innerWidth*100+"vw":u.endsWith("vh")&&(k=k/this.window.innerHeight*100+"vh"));var x={width:this.createSizeForCssProperty(f,"width"),height:this.createSizeForCssProperty(k,"height")};"row"===this.flexDir?x.flexBasis=x.width:"column"===this.flexDir&&(x.flexBasis=x.height),(0,$t.flushSync)((function(){t.setState(x)})),this.props.onResize&&this.props.onResize(e,p,this.resizable,w)}},t.prototype.onMouseUp=function(e){var t=this.state,o=t.isResizing,n=t.direction,a=t.original;if(o&&this.resizable){var i={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:no(no({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,o=t.enable,n=t.handleStyles,a=t.handleClasses,i=t.handleWrapperStyle,r=t.handleWrapperClass,s=t.handleComponent;if(!o)return null;var l=Object.keys(o).map((function(t){return!1!==o[t]?qt.createElement(to,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:n&&n[t],className:a&&a[t]},s&&s[t]?s[t]:null):null}));return qt.createElement("div",{className:r,style:i},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,o){return-1!==uo.indexOf(o)||(t[o]=e.props[o]),t}),{}),o=no(no(no({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return qt.createElement(n,no({ref:this.ref,style:o,className:this.props.className},t),this.state.isResizing&&qt.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(qt.PureComponent);const{__:ho}=wp.i18n,{Component:ko}=wp.element,{registerBlockType:fo}=wp.blocks;fo("genesis-blocks/gb-spacer",{title:ho("Spacer","genesis-blocks"),description:ho("Add a spacer and divider between your blocks.","genesis-blocks"),icon:"image-flip-vertical",category:"genesis-blocks",keywords:[ho("spacer","genesis-blocks"),ho("divider","genesis-blocks"),ho("atomic","genesis-blocks")],attributes:{spacerHeight:{type:"number",default:30},spacerDivider:{type:"boolean",default:!1},spacerDividerStyle:{type:"string",default:"gb-divider-solid"},spacerDividerColor:{type:"string",default:"#ddd"},spacerDividerHeight:{type:"number",default:1}},gb_settings_data:{gb_spacer_spacerHeight:{title:ho("Spacer Height","genesis-blocks")},gb_spacer_spacerDivider:{title:ho("Add Divider","genesis-blocks")},gb_spacer_spacerDividerStyle:{title:ho("Divider Style","genesis-blocks")},gb_spacer_spacerDividerHeight:{title:ho("Divider Height","genesis-blocks")},gb_spacer_dividerColor:{title:ho("Divider Color","genesis-blocks")}},edit:class extends ko{render(){const{attributes:{spacerHeight:e,spacerDividerColor:t},className:o,setAttributes:a,toggleSelection:r}=this.props;return[React.createElement(jt,n({key:"gb-spacer-inspector-"+this.props.clientId},this.props)),React.createElement(Ht,n({key:"gb-spacer-editor-"+this.props.clientId},this.props),React.createElement(mo,{className:i()(o,"gb-spacer-handle"),style:{color:t},size:{width:"100%",height:e},minWidth:"100%",maxWidth:"100%",minHeight:"100%",handleClasses:{bottomLeft:"gb-spacer-control__resize-handle"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!0,topLeft:!1},onResizeStart:()=>{r(!1)},onResizeStop:(t,o,n,i)=>{a({spacerHeight:parseInt(e+i.height,10)}),r(!0)}}))]}},save(e){const{spacerHeight:t}=e.attributes;return React.createElement(Ht,e,React.createElement("hr",{style:{height:t?t+"px":void 0}}))}});const{__:yo}=wp.i18n,{Component:vo}=wp.element,{InspectorControls:Co}=wp.blockEditor,{PanelBody:Ro,RangeControl:Eo,ToggleControl:wo}=wp.components;class xo extends vo{render(){return React.createElement(Co,{key:"inspector"},React.createElement(Ro,null,React.createElement(l,{id:"gb_accordion_accordionFontSize"},React.createElement(Eo,{label:yo("Title Font Size","genesis-blocks"),value:this.props.attributes.accordionFontSize,onChange:e=>this.props.setAttributes({accordionFontSize:e}),min:14,max:24,step:1})),React.createElement(l,{id:"gb_accordion_accordionOpen"},React.createElement(wo,{label:yo("Open by default","genesis-blocks"),checked:this.props.attributes.accordionOpen,onChange:()=>this.props.setAttributes({accordionOpen:!this.props.attributes.accordionOpen})}))))}}const{Component:To}=wp.element;class _o extends To{render(){return React.createElement("div",{className:i()(this.props.className,this.props.attributes.accordionAlignment?"gb-align-"+this.props.attributes.accordionAlignment:void 0,"gb-block-accordion",this.props.attributes.accordionFontSize?"gb-font-size-"+this.props.attributes.accordionFontSize:null)},this.props.children)}}const{__:So}=wp.i18n,{Component:Bo}=wp.element,{RichText:zo,AlignmentToolbar:Ao,BlockControls:No,InnerBlocks:Lo}=wp.blockEditor;class Po extends Bo{render(){return[React.createElement(No,{key:"controls"},React.createElement(Ao,{value:this.props.attributes.accordionAlignment,onChange:e=>this.props.setAttributes({accordionAlignment:e})})),React.createElement(xo,n({key:"gb-accordion-inspector-"+this.props.clientId},this.props)),React.createElement(_o,n({key:"gb-accordion-"+this.props.clientId},this.props),React.createElement(zo,{tagName:"p",placeholder:So("Accordion Title","genesis-blocks"),value:this.props.attributes.accordionTitle,className:"gb-accordion-title",onChange:e=>this.props.setAttributes({accordionTitle:e})}),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Lo,null)))]}}const{Component:Io}=wp.element,{RichText:Mo,InnerBlocks:Fo}=wp.blockEditor;class Oo extends Io{render(){return React.createElement(_o,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(Mo.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Fo.Content,null))))}}const{Component:Uo}=wp.element;class Do extends Uo{constructor(e){super(...arguments)}render(){const{accordionAlignment:e,accordionFontSize:t}=this.props.attributes;return React.createElement("div",{style:{},className:i()(this.props.className,e,"gb-block-accordion","gb-font-size-"+t)},this.props.children)}}const{Component:Wo}=wp.element,{RichText:jo,InnerBlocks:Vo}=wp.blockEditor;class Ho extends Wo{constructor(){super(...arguments)}render(){return React.createElement(Do,this.props,React.createElement("details",{open:this.props.attributes.accordionOpen},React.createElement("summary",{className:"gb-accordion-title"},React.createElement(jo.Content,{value:this.props.attributes.accordionTitle})),React.createElement("div",{className:"gb-accordion-text"},React.createElement(Vo.Content,null))))}}const qo=[{attributes:{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:18},accordionOpen:{type:"boolean",default:!1}},save:e=>React.createElement(Ho,e)}],{__:Go}=wp.i18n,{registerBlockType:$o}=wp.blocks;$o("genesis-blocks/gb-accordion",{title:Go("Accordion","genesis-blocks"),description:Go("Add accordion block with a title and text.","genesis-blocks"),icon:"editor-ul",category:"genesis-blocks",keywords:[Go("accordion","genesis-blocks"),Go("list","genesis-blocks"),Go("genesis","genesis-blocks")],attributes:{accordionTitle:{type:"array",selector:".gb-accordion-title",source:"children"},accordionText:{type:"array",selector:".gb-accordion-text",source:"children"},accordionAlignment:{type:"string"},accordionFontSize:{type:"number",default:void 0},accordionOpen:{type:"boolean",default:!1}},gb_settings_data:{gb_accordion_accordionFontSize:{title:Go("Title Font Size","genesis-blocks")},gb_accordion_accordionOpen:{title:Go("Open by default","genesis-blocks")}},edit:e=>React.createElement(Po,e),save:e=>React.createElement(Oo,e),deprecated:qo});const{__:Ko}=wp.i18n,{Component:Yo}=wp.element,{InspectorControls:Qo,PanelColorSettings:Xo,MediaUpload:Zo}=wp.blockEditor,{Button:Jo,Icon:en,PanelBody:tn,RangeControl:on,SelectControl:nn,ToggleControl:an}=wp.components;class rn extends Yo{render(){const{buttonBackgroundColor:e,buttonTextColor:t,buttonSize:o,buttonShape:n,buttonTarget:a,titleFontSize:i,ctaTextFontSize:r,ctaBackgroundColor:s,ctaTextColor:c,dimRatio:p,imgURL:g,imgID:d}=this.props.attributes,{setAttributes:u}=this.props,b=[{value:"gb-button-size-small",label:Ko("Small")},{value:"gb-button-size-medium",label:Ko("Medium")},{value:"gb-button-size-large",label:Ko("Large")},{value:"gb-button-size-extralarge",label:Ko("Extra Large")}],m=[{value:"gb-button-shape-square",label:Ko("Square")},{value:"gb-button-shape-rounded",label:Ko("Rounded Square")},{value:"gb-button-shape-circular",label:Ko("Circular")}],h=()=>{u({imgID:null,imgURL:null,imgAlt:null})};return React.createElement(Qo,{key:"inspector"},React.createElement(l,{id:"gb_cta_textOptions"},React.createElement(tn,{title:Ko("Text Options","genesis-blocks"),initialOpen:!0},React.createElement(on,{label:Ko("Title Font Size","genesis-blocks"),value:i,onChange:e=>this.props.setAttributes({titleFontSize:e}),min:24,max:60,step:2}),React.createElement(on,{label:Ko("Text Font Size","genesis-blocks"),value:r,onChange:e=>this.props.setAttributes({ctaTextFontSize:e}),min:14,max:24,step:2}),React.createElement(Xo,{title:Ko("Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c,onChange:e=>u({ctaTextColor:e}),label:Ko("Text Color","genesis-blocks")}]}))),React.createElement(l,{id:"gb_cta_backgroundOptions"},React.createElement(tn,{title:Ko("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,Ko("Select a background image:","genesis-blocks")),React.createElement(Zo,{onSelect:e=>{u({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},type:"image",value:d,render:e=>{let{open:t}=e;return React.createElement("div",null,React.createElement(Jo,{className:"gb-cta-inspector-media",label:Ko("Edit image","genesis-blocks"),onClick:t},React.createElement(en,{icon:"format-image"}),Ko("Select Image","genesis-blocks")),g&&!!g.length&&React.createElement(Jo,{className:"gb-cta-inspector-media",label:Ko("Remove Image","genesis-blocks"),onClick:h},React.createElement(en,{icon:"dismiss"}),Ko("Remove","genesis-blocks")))}}),g&&!!g.length&&React.createElement(on,{label:Ko("Image Opacity","genesis-blocks"),value:p,onChange:e=>this.props.setAttributes({dimRatio:e}),min:0,max:100,step:10}),React.createElement(Xo,{title:Ko("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:s,onChange:e=>u({ctaBackgroundColor:e}),label:Ko("Overlay Color","genesis-blocks")}]}))),React.createElement(l,{id:"gb_cta_buttonOptions"},React.createElement(tn,{title:Ko("Button Options","genesis-blocks"),initialOpen:!1},React.createElement(an,{label:Ko("Open link in new window","genesis-blocks"),checked:a,onChange:()=>this.props.setAttributes({buttonTarget:!a})}),React.createElement(nn,{label:Ko("Button Size","genesis-blocks"),value:o,options:b.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({buttonSize:e})}}),React.createElement(nn,{label:Ko("Button Shape","genesis-blocks"),value:n,options:m.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({buttonShape:e})}}),React.createElement(Xo,{title:Ko("Button Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:e,onChange:e=>u({buttonBackgroundColor:e}),label:Ko("Button Color","genesis-blocks")}]}),React.createElement(Xo,{title:Ko("Button Text Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:t,onChange:e=>u({buttonTextColor:e}),label:Ko("Button Text Color","genesis-blocks")}]}))))}}const{Component:sn}=wp.element;class ln extends sn{render(){const{attributes:{buttonText:e,buttonUrl:t,buttonAlignment:o,buttonBackgroundColor:n,buttonTextColor:a,buttonSize:r,buttonShape:s,buttonTarget:l,ctaTitle:c,ctaText:p,ctaTitleFontSize:g,ctaTextFontSize:d,ctaWidth:u,ctaBackgroundColor:b,ctaTextColor:m}}=this.props,h=i()([this.props.className,"gb-block-cta"],{["gb-font-size-"+d]:d,["align"+u]:u}),k={backgroundColor:b||void 0,textAlign:o||void 0};return React.createElement("div",{style:k,className:h||void 0},this.props.children)}}const{Component:cn}=wp.element;class pn extends cn{constructor(e){super(...arguments)}render(){const{attributes:{buttonText:e,buttonUrl:t,buttonAlignment:o,buttonBackgroundColor:n,buttonTextColor:a,buttonSize:r,buttonShape:s,buttonTarget:l,ctaTitle:c,ctaText:p,ctaTitleFontSize:g,ctaTextFontSize:d,ctaWidth:u,ctaBackgroundColor:b,ctaTextColor:m}}=this.props,h=i()([this.props.className,"gb-block-cta"],{["gb-font-size-"+d]:d,["align"+u]:u}),k={backgroundColor:b||void 0,textAlign:o||void 0};return React.createElement("div",{style:k,className:h||void 0},this.props.children)}}const{Component:gn}=wp.element;class dn extends gn{constructor(e){super(...arguments)}render(){const{attributes:{buttonText:e,buttonUrl:t,buttonAlignment:o,buttonBackgroundColor:n,buttonTextColor:a,buttonSize:r,buttonShape:s,buttonTarget:l,ctaTitle:c,ctaText:p,ctaTitleFontSize:g,ctaTextFontSize:d,ctaWidth:u,ctaBackgroundColor:b,ctaTextColor:m}}=this.props,h=i()([this.props.className,"gb-block-cta"],{["gb-font-size-"+d]:d}),k={backgroundColor:b||void 0,textAlign:o||void 0};return React.createElement("div",{style:k,className:h||void 0},this.props.children)}}const{Component:un}=wp.element;class bn extends un{constructor(e){super(...arguments)}render(){const{attributes:{buttonText:e,buttonUrl:t,buttonAlignment:o,buttonBackgroundColor:n,buttonTextColor:a,buttonSize:r,buttonShape:s,buttonTarget:l,ctaTitle:c,ctaText:p,ctaTitleFontSize:g,ctaTextFontSize:d,ctaWidth:u,ctaBackgroundColor:b,ctaTextColor:m}}=this.props;return React.createElement("div",{style:{backgroundColor:b,textAlign:o},className:i()(this.props.className,`align${u}`,"gb-block-cta","gb-font-size-"+d)},this.props.children)}}const{RichText:mn}=wp.blockEditor,hn=[{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:e=>{const{buttonText:t,buttonUrl:o,buttonAlignment:n,buttonBackgroundColor:a,buttonTextColor:r,buttonSize:s,buttonShape:l,buttonTarget:c,ctaTitle:p,ctaText:g,ctaTitleFontSize:d,titleFontSize:u,ctaTextFontSize:b,ctaWidth:m,ctaBackgroundColor:h,ctaTextColor:k,imgURL:f,imgID:y,imgAlt:v,dimRatio:C}=e.attributes;return React.createElement(pn,e,f&&!!f.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:i()("gb-cta-image",kn(C),{"has-background-dim":0!==C}),src:f,alt:v})),React.createElement("div",{className:"gb-cta-content"},p&&React.createElement(mn.Content,{tagName:"h2",className:i()("gb-cta-title","gb-font-size-"+u),style:{color:k},value:p}),g&&React.createElement(mn.Content,{tagName:"div",className:i()("gb-cta-text","gb-font-size-"+d),style:{color:k},value:g})),t&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:o,target:c?"_blank":"_self",rel:c?"noopener noreferrer":null,className:i()("gb-button",l,s),style:{color:r,backgroundColor:a}},React.createElement(mn.Content,{value:t}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},save:e=>{const{buttonText:t,buttonUrl:o,buttonAlignment:n,buttonBackgroundColor:a,buttonTextColor:r,buttonSize:s,buttonShape:l,buttonTarget:c,ctaTitle:p,ctaText:g,ctaTitleFontSize:d,ctaTextFontSize:u,ctaWidth:b,ctaBackgroundColor:m,ctaTextColor:h,imgURL:k,imgID:f,imgAlt:y,dimRatio:v}=e.attributes;return React.createElement(dn,e,k&&!!k.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:i()("gb-cta-image",kn(v),{"has-background-dim":0!==v}),src:k,alt:y})),React.createElement("div",{className:"gb-cta-content"},p&&React.createElement(mn.Content,{tagName:"h2",className:i()("gb-cta-title","gb-font-size-"+d),style:{color:h},value:p}),g&&React.createElement(mn.Content,{tagName:"div",className:i()("gb-cta-text","gb-font-size-"+u),style:{color:h},value:g})),t&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:o,target:c?"_blank":"_self",rel:c?"noopener noreferrer":null,className:i()("gb-button",l,s),style:{color:r,backgroundColor:a}},React.createElement(mn.Content,{value:t}))))}},{attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},ctaTitleFontSize:{type:"string",default:"32"},ctaTextFontSize:{type:"string",default:"20"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string",default:"center"},ctaBackgroundColor:{type:"string",default:"#f2f2f2"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50}},save:e=>{const{buttonText:t,buttonUrl:o,buttonAlignment:n,buttonBackgroundColor:a,buttonTextColor:r,buttonSize:s,buttonShape:l,buttonTarget:c,ctaTitle:p,ctaText:g,ctaTitleFontSize:d,ctaTextFontSize:u,ctaWidth:b,ctaBackgroundColor:m,ctaTextColor:h,imgURL:k,imgID:f,imgAlt:y,dimRatio:v}=e.attributes;return React.createElement(bn,e,k&&!!k.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:i()("gb-cta-image",kn(v),{"has-background-dim":0!==v}),src:k,alt:y})),React.createElement("div",{className:"gb-cta-content"},p&&React.createElement(mn.Content,{tagName:"h2",className:i()("gb-cta-title","gb-font-size-"+d),style:{color:h},value:p}),g&&React.createElement(mn.Content,{tagName:"div",className:i()("gb-cta-text","gb-font-size-"+u),style:{color:h},value:g})),t&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:o,target:c?"_blank":"_self",className:i()("gb-button",l,s),style:{color:r,backgroundColor:a}},React.createElement(mn.Content,{value:t}))))},migrate:e=>({titleFontSize:e.ctaTitleFontSize,...e})}];function kn(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}const{__:fn}=wp.i18n,{Component:yn}=wp.element,{registerBlockType:vn}=wp.blocks,{AlignmentToolbar:Cn,URLInput:Rn,BlockControls:En,BlockAlignmentToolbar:wn,RichText:xn}=wp.blockEditor,{Button:Tn,Dashicon:Sn,Icon:Bn}=wp.components;function zn(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}vn("genesis-blocks/gb-cta",{title:fn("Call To Action","genesis-blocks"),description:fn("Add a call to action section with a title, text, and a button.","genesis-blocks"),icon:"megaphone",category:"genesis-blocks",keywords:[fn("call to action","genesis-blocks"),fn("cta","genesis-blocks"),fn("atomic","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string",default:"center"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},ctaTitle:{type:"array",selector:".gb-cta-title",source:"children"},titleFontSize:{type:"number",default:"32"},ctaTextFontSize:{type:"number"},ctaText:{type:"array",selector:".gb-cta-text",source:"children"},ctaWidth:{type:"string"},ctaBackgroundColor:{type:"string"},ctaTextColor:{type:"string",default:"#32373c"},imgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},imgID:{type:"number"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},dimRatio:{type:"number",default:50},ctaTitleFontSize:{type:"string",default:"32"}},gb_settings_data:{gb_cta_textOptions:{title:fn("Text Options","genesis-blocks")},gb_cta_backgroundOptions:{title:fn("Background Options","genesis-blocks")},gb_cta_buttonOptions:{title:fn("Button Options","genesis-blocks")}},getEditWrapperProps(e){let{ctaWidth:t}=e;if("left"===t||"right"===t||"full"===t)return{"data-align":t}},edit:class extends yn{render(){const{attributes:{buttonText:e,buttonUrl:t,buttonAlignment:o,buttonBackgroundColor:a,buttonTextColor:r,buttonSize:s,buttonShape:l,ctaTitle:c,ctaText:p,titleFontSize:g,ctaTextFontSize:d,ctaWidth:u,ctaTextColor:b,imgURL:m,imgAlt:h,dimRatio:k},isSelected:f,setAttributes:y}=this.props;return[React.createElement(En,{key:"gb-cta-block-controls-"+this.props.clientId},React.createElement(wn,{value:u,onChange:e=>y({ctaWidth:e}),controls:["center","wide","full"]}),React.createElement(Cn,{value:o,onChange:e=>{y({buttonAlignment:e})}})),React.createElement(rn,n({key:"gb-cta-inspector-"+this.props.clientId,setAttributes:y},this.props)),React.createElement(ln,n({key:"gb-cta-"+this.props.clientId},this.props),m&&!!m.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:i()("gb-cta-image",zn(k),{"has-background-dim":0!==k}),src:m,alt:h})),React.createElement("div",{className:"gb-cta-content"},React.createElement(xn,{tagName:"h2",placeholder:fn("Call-To-Action Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:c,className:i()("gb-cta-title","gb-font-size-"+g),style:{color:b},onChange:e=>y({ctaTitle:e})}),React.createElement(xn,{tagName:"div",multiline:"p",placeholder:fn("Call To Action Text","genesis-blocks"),keepPlaceholderOnFocus:!0,value:p,className:i()("gb-cta-text","gb-font-size-"+d),style:{color:b},onChange:e=>y({ctaText:e})})),React.createElement("div",{className:"gb-cta-button"},React.createElement(xn,{tagName:"span",placeholder:fn("Button text…","genesis-blocks"),value:e,allowedFormats:[],className:i()("gb-button",l,s),style:{color:r,backgroundColor:a},onChange:e=>y({buttonText:e})}),f&&React.createElement("form",{key:"form-link",className:`blocks-button__inline-link gb-button-${o}`,onSubmit:e=>e.preventDefault(),style:{textAlign:o}},React.createElement(Sn,{icon:"admin-links"}),React.createElement(Rn,{className:"button-url",value:t,onChange:e=>y({buttonUrl:e})}),React.createElement(Tn,{label:fn("Apply","genesis-blocks"),type:"submit"},React.createElement(Bn,{icon:"editor-break"})))))]}},save(e){const{buttonText:t,buttonUrl:o,buttonBackgroundColor:n,buttonTextColor:a,buttonSize:r,buttonShape:s,buttonTarget:l,ctaTitle:c,ctaText:p,ctaTitleFontSize:g,titleFontSize:d,ctaTextColor:u,imgURL:b,imgAlt:m,dimRatio:h}=e.attributes;return React.createElement(ln,e,b&&!!b.length&&React.createElement("div",{className:"gb-cta-image-wrap"},React.createElement("img",{className:i()("gb-cta-image",zn(h),{"has-background-dim":0!==h}),src:b,alt:m})),React.createElement("div",{className:"gb-cta-content"},c&&React.createElement(xn.Content,{tagName:"h2",className:i()("gb-cta-title","gb-font-size-"+d),style:{color:u},value:c}),p&&React.createElement(xn.Content,{tagName:"div",className:i()("gb-cta-text","gb-font-size-"+g),style:{color:u},value:p})),t&&React.createElement("div",{className:"gb-cta-button"},React.createElement("a",{href:o,target:l?"_blank":"_self",rel:"noopener noreferrer",className:i()("gb-button",s,r),style:{color:a,backgroundColor:n}},React.createElement(xn.Content,{value:t}))))},deprecated:hn});const{__:An}=wp.i18n,{Component:Nn}=wp.element,{InspectorControls:Ln}=wp.blockEditor,{PanelBody:Pn,SelectControl:In,ToggleControl:Mn}=wp.components;class Fn extends Nn{render(){const e=[{value:"gb-share-icon-text",label:An("Icon and Text","genesis-blocks")},{value:"gb-share-icon-only",label:An("Icon Only","genesis-blocks")},{value:"gb-share-text-only",label:An("Text Only","genesis-blocks")}],t=[{value:"gb-share-shape-square",label:An("Square","genesis-blocks")},{value:"gb-share-shape-rounded",label:An("Rounded Square","genesis-blocks")},{value:"gb-share-shape-circular",label:An("Circular","genesis-blocks")}],o=[{value:"gb-share-size-small",label:An("Small","genesis-blocks")},{value:"gb-share-size-medium",label:An("Medium","genesis-blocks")},{value:"gb-share-size-large",label:An("Large","genesis-blocks")}],n=[{value:"gb-share-color-standard",label:An("Standard","genesis-blocks")},{value:"gb-share-color-social",label:An("Social Colors","genesis-blocks")}];return React.createElement(Ln,{key:"inspector"},React.createElement(l,{id:"gb_sharing_links"},React.createElement(Pn,null,React.createElement("p",null,An("Enable or disable the sharing links you want to output.","genesis-blocks")),React.createElement(Mn,{label:An("Twitter","genesis-blocks"),checked:!!this.props.attributes.twitter,onChange:()=>this.props.setAttributes({twitter:!this.props.attributes.twitter})}),React.createElement(Mn,{label:An("Facebook","genesis-blocks"),checked:!!this.props.attributes.facebook,onChange:()=>this.props.setAttributes({facebook:!this.props.attributes.facebook})}),React.createElement(Mn,{label:An("Pinterest","genesis-blocks"),checked:!!this.props.attributes.pinterest,onChange:()=>this.props.setAttributes({pinterest:!this.props.attributes.pinterest})}),React.createElement(Mn,{label:An("LinkedIn","genesis-blocks"),checked:!!this.props.attributes.linkedin,onChange:()=>this.props.setAttributes({linkedin:!this.props.attributes.linkedin})}),React.createElement(Mn,{label:An("Reddit","genesis-blocks"),checked:!!this.props.attributes.reddit,onChange:()=>this.props.setAttributes({reddit:!this.props.attributes.reddit})}),React.createElement(Mn,{label:An("Email","genesis-blocks"),checked:!!this.props.attributes.email,onChange:()=>this.props.setAttributes({email:!this.props.attributes.email})}))),React.createElement(Pn,{title:An("Sharing Button Options","genesis-blocks"),initialOpen:!1},React.createElement(l,{id:"gb_sharing_shareButtonStyle"},React.createElement(In,{label:An("Button Style","genesis-blocks"),value:this.props.attributes.shareButtonStyle,options:e.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({shareButtonStyle:e})}})),React.createElement(l,{id:"gb_sharing_shareButtonShape"},React.createElement(In,{label:An("Button Shape","genesis-blocks"),value:this.props.attributes.shareButtonShape,options:t.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({shareButtonShape:e})}})),React.createElement(l,{id:"gb_sharing_shareButtonSize"},React.createElement(In,{label:An("Button Size","genesis-blocks"),value:this.props.attributes.shareButtonSize,options:o.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({shareButtonSize:e})}})),React.createElement(l,{id:"gb_sharing_shareButtonColor"},React.createElement(In,{label:An("Button Color","genesis-blocks"),value:this.props.attributes.shareButtonColor,options:n.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({shareButtonColor:e})}}))))}}const{Component:On}=wp.element;class Un extends On{render(){return React.createElement("div",{className:i()(this.props.className,this.props.attributes.shareButtonStyle,this.props.attributes.shareButtonShape,this.props.attributes.shareButtonSize,this.props.attributes.shareButtonColor,this.props.attributes.shareAlignment?"gb-align-"+this.props.attributes.shareAlignment:void 0,"gb-block-sharing")},this.props.children)}}const{__:Dn}=wp.i18n,{Component:Wn}=wp.element,{AlignmentToolbar:jn,BlockControls:Vn}=wp.blockEditor;class Hn extends Wn{constructor(){super(...arguments),this.props.attributes.clientId&&this.props.attributes.clientId===this.props.clientId||this.props.setAttributes({clientId:this.props.clientId})}render(){return[React.createElement(Vn,{key:"controls"},React.createElement(jn,{value:this.props.attributes.shareAlignment,onChange:e=>this.props.setAttributes({shareAlignment:e})})),React.createElement(Fn,n({key:"gb-share-inspector-"+this.props.clientId},this.props)),React.createElement(Un,n({key:"gb-share-links-"+this.props.clientId},this.props),React.createElement("ul",{className:"gb-share-list"},this.props.attributes.twitter&&React.createElement("li",null,React.createElement("a",{className:"gb-share-twitter"},React.createElement("svg",{"aria-labelledby":"gb-link-twitter-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-twitter-"+this.props.clientId},Dn("Visit Twitter account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})),React.createElement("span",{className:"gb-social-text"},Dn("Share on Twitter","genesis-blocks")))),this.props.attributes.facebook&&React.createElement("li",null,React.createElement("a",{className:"gb-share-facebook"},React.createElement("svg",{"aria-labelledby":"gb-link-facebook-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("title",{id:"gb-link-facebook-"+this.props.clientId},Dn("Visit Facebook account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})),React.createElement("span",{className:"gb-social-text"},Dn("Share on Facebook","genesis-blocks")))),this.props.attributes.pinterest&&React.createElement("li",null,React.createElement("a",{className:"gb-share-pinterest"},React.createElement("svg",{"aria-labelledby":"gb-link-pinterest-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-pinterest-"+this.props.clientId},Dn("Visit Pinterest account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"})),React.createElement("span",{className:"gb-social-text"},Dn("Share on Pinterest","genesis-blocks")))),this.props.attributes.linkedin&&React.createElement("li",null,React.createElement("a",{className:"gb-share-linkedin"},React.createElement("svg",{"aria-labelledby":"gb-link-linkedin-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-linkedin-"+this.props.clientId},Dn("Visit LinkedIn account (opens in a new tab)","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})),React.createElement("span",{className:"gb-social-text"},Dn("Share on LinkedIn","genesis-blocks")))),this.props.attributes.reddit&&React.createElement("li",null,React.createElement("a",{className:"gb-share-reddit"},React.createElement("svg",{"aria-labelledby":"gb-link-reddit-"+this.props.clientId,role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("title",{id:"gb-link-reddit-"+this.props.clientId},Dn("Share on Reddit","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"})),React.createElement("span",{className:"gb-social-text"},Dn("Share on reddit","genesis-blocks")))),this.props.attributes.email&&React.createElement("li",null,React.createElement("a",{className:"gb-share-email"},React.createElement("svg",{"aria-labelledby":"gb-link-email-"+this.props.clientId,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("title",{id:"gb-link-email-"+this.props.clientId},Dn("Email","genesis-blocks")),React.createElement("path",{fill:"#fff",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})),React.createElement("span",{className:"gb-social-text"},Dn("Share via Email","genesis-blocks"))))))]}}const{__:qn}=wp.i18n,{registerBlockType:Gn}=wp.blocks;Gn("genesis-blocks/gb-sharing",{title:qn("Sharing","genesis-blocks"),description:qn("Add sharing buttons to your posts and pages.","genesis-blocks"),icon:"admin-links",category:"genesis-blocks",keywords:[qn("sharing","genesis-blocks"),qn("social","genesis-blocks"),qn("atomic","genesis-blocks")],gb_settings_data:{gb_sharing_links:{title:qn("Sharing Links","genesis-blocks")},gb_sharing_shareButtonStyle:{title:qn("Button Style","genesis-blocks")},gb_sharing_shareButtonShape:{title:qn("Button Shape","genesis-blocks")},gb_sharing_shareButtonSize:{title:qn("Button Size","genesis-blocks")},gb_sharing_shareButtonColor:{title:qn("Button Color","genesis-blocks")}},edit:e=>React.createElement(Hn,n({},e,{clientId:e.clientId})),save:()=>null});const $n=window.moment;var Kn=o.n($n),Yn=o(417),Qn=o.n(Yn),Xn=o(6760),Zn=o.n(Xn);const{__:Jn}=wp.i18n,{Component:ea,Fragment:ta}=wp.element,{InspectorControls:oa}=wp.blockEditor,{PanelBody:na,QueryControls:aa,RangeControl:ia,SelectControl:ra,TextControl:sa,ToggleControl:la,FormTokenField:ca,Spinner:pa}=wp.components,{addQueryArgs:ga}=wp.url,{apiFetch:da}=wp,ua=[];class ba extends ea{constructor(){super(...arguments),this.state={categoriesList:!1,categoriesTitleToIdRelationships:!1,categoriesIdToTitleRelationships:!1,pagesList:!1,pagesTitleToIdRelationships:!1,pagesIdToTitleRelationships:!1,waitingForApiResponse:!1}}componentDidMount(){this.stillMounted=!0}componentDidUpdate(){if(this.props.isSelected&&!this.state.waitingForApiResponse&&this.props.attributes.categories&&!this.state.categoriesList&&"post"===this.props.attributes.postType&&this.getCategoriesFromServer(!!this.props.attributes.categories&&this.props.attributes.categories,!0),this.props.isSelected&&!this.state.waitingForApiResponse&&this.props.attributes.selectedPages.length>0&&!this.state.pagesList&&"page"===this.props.attributes.postType){const e=[];for(const t in this.props.attributes.selectedPages)e.push(this.props.attributes.selectedPages[t].value);this.getPagesFromServer(e||!1,!0)}}componentWillUnmount(){this.stillMounted=!1}getCategoriesFromServer(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((o=>{if(this.setState({waitingForApiResponse:!0,categoriesList:!1}),!e||0===e.length)return t||this.setState({waitingForApiResponse:!1}),void o();let n={per_page:99,search:e};t&&(n={per_page:99,include:e}),this.fetchRequest=da({path:ga("/wp/v2/categories",n)}).then((e=>{const t=this.state.categoriesTitleToIdRelationships?this.state.categoriesTitleToIdRelationships:{},n=this.state.categoriesIdToTitleRelationships?this.state.categoriesIdToTitleRelationships:{};for(const o in e)t[e[o].name+" ("+e[o].slug+")"]=e[o].id,n[e[o].id]=e[o].name+" ("+e[o].slug+")";this.setState({categoriesList:e,categoriesTitleToIdRelationships:t,categoriesIdToTitleRelationships:n,waitingForApiResponse:!1}),o()})).catch((()=>{console.log(`category request failure: ${error.message}`),this.stillMounted&&(this.setState({categoriesList:[],waitingForApiResponse:!1}),o())}))}))}getPagesFromServer(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((o=>{if(this.setState({waitingForApiResponse:!0,pagesList:!1}),!e||0===e.length)return t||this.setState({waitingForApiResponse:!1}),void o();let n={per_page:-1,search:e};t&&(n={per_page:-1,include:e}),this.fetchRequest=da({path:ga("/wp/v2/pages",n)}).then((e=>{const t=this.state.pagesTitleToIdRelationships?this.state.pagesTitleToIdRelationships:{},n=this.state.pagesIdToTitleRelationships?this.state.pagesIdToTitleRelationships:{};for(const o in e)t[e[o].title.rendered+" ("+e[o].slug+")"]=e[o].id,n[e[o].id]=e[o].title.rendered+" ("+e[o].slug+")";this.setState({pagesList:e,pagesTitleToIdRelationships:t,pagesIdToTitleRelationships:n,waitingForApiResponse:!1}),o()})).catch((()=>{this.stillMounted&&(this.setState({pagesList:[],waitingForApiResponse:!1}),o())}))}))}imageSizeSelect(){const e=wp.data.select("core/block-editor").getSettings();return Qn()(Zn()(e.imageSizes,(e=>{let{name:t,slug:o}=e;return{value:o,label:t}})))}render(){const{attributes:e,setAttributes:t,latestPosts:o}=this.props,{order:n,orderBy:a}=e,{categoriesList:i,categoriesTitleToIdRelationships:r,categoriesIdToTitleRelationships:s,pagesList:c,pagesTitleToIdRelationships:p,pagesIdToTitleRelationships:g}=this.state,d=[{value:"post",label:Jn("Post","genesis-blocks")},{value:"page",label:Jn("Page","genesis-blocks")}],u=[{value:"div",label:Jn("div","genesis-blocks")},{value:"header",label:Jn("header","genesis-blocks")},{value:"section",label:Jn("section","genesis-blocks")},{value:"article",label:Jn("article","genesis-blocks")},{value:"main",label:Jn("main","genesis-blocks")},{value:"aside",label:Jn("aside","genesis-blocks")},{value:"footer",label:Jn("footer","genesis-blocks")}],b=[{value:"h2",label:Jn("H2","genesis-blocks")},{value:"h3",label:Jn("H3","genesis-blocks")},{value:"h4",label:Jn("H4","genesis-blocks")},{value:"h5",label:Jn("H5","genesis-blocks")},{value:"h6",label:Jn("H6","genesis-blocks")}],m=Array.isArray(o)&&o.length,h="post"===e.postType,k={value:"selectimage",label:Jn("Select image size","genesis-blocks")},f={value:"gb-block-post-grid-landscape",label:Jn("GB Grid Landscape","genesis-blocks")},y={value:"gb-block-post-grid-square",label:Jn("GB Grid Square","genesis-blocks")},v=this.imageSizeSelect();return v.push(y,f),v.unshift(k),React.createElement(oa,null,React.createElement(na,{title:Jn("Post and Page Grid Settings","genesis-blocks"),className:h?null:"genesis-blocks-hide-query"},React.createElement(l,{id:"gb_postgrid_postType"},React.createElement(ra,{label:Jn("Content Type","genesis-blocks"),options:d,value:e.postType,onChange:e=>this.props.setAttributes({postType:e})})),"page"===e.postType&&React.createElement(l,{id:"gb_postgrid_selectedPages"},React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field",style:{position:"relative"}},React.createElement(ca,{suggestions:Qn()(Zn()(c,(e=>{let{title:t,slug:o}=e;return t.rendered+" ("+o+")"}))),label:React.createElement(React.Fragment,null,Jn("Enter page names to display","genesis-blocks"),this.state.waitingForApiResponse?React.createElement("div",{style:{position:"absolute",bottom:"30px",right:"0px"}},React.createElement(pa,null)):null),placeholder:Jn("Start typing page name…","genesis-blocks"),value:(()=>{if(!this.props.attributes.selectedPages)return[];const e=[];for(const t in this.props.attributes.selectedPages){const o=this.props.attributes.selectedPages[t].value;g[o]&&e.push(g[this.props.attributes.selectedPages[t].value])}return e})(),onInputChange:e=>{const t="getPagesFromServer";ua[t]&&(clearTimeout(ua[t]),ua[t]=null),ua[t]=setTimeout((()=>{clearTimeout(ua[t]),this.getPagesFromServer(e)}),500)},onChange:e=>{let o=[];for(const t in e)o.push({value:p[e[t]]});o||(o=void 0),t({selectedPages:o})}})))),"post"===e.postType&&React.createElement(l,{id:"gb_postgrid_categories"},React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field",style:{position:"relative"}},React.createElement(ca,{suggestions:Qn()(Zn()(i,(e=>{let{name:t,slug:o}=e;return t+" ("+o+")"}))),label:React.createElement(React.Fragment,null,Jn("Enter category names to display","genesis-blocks"),this.state.waitingForApiResponse?React.createElement("div",{style:{position:"absolute",bottom:"30px",right:"0px"}},React.createElement(pa,null)):null),placeholder:Jn("Start typing category name…","genesis-blocks"),value:(()=>{if(!this.props.attributes.categories)return[];const e=this.props.attributes.categories.split(","),t=[];for(const o in e)s[e[o]]&&t.push(s[e[o]]);return t})(),onInputChange:e=>{const t="getCategoriesFromServer";ua[t]&&(clearTimeout(ua[t]),ua[t]=null),ua[t]=setTimeout((()=>{clearTimeout(ua[t]),this.getCategoriesFromServer(e)}),500)},onChange:e=>{let o="";for(const t in e)r[e[t]]&&(o=o+r[e[t]]+",");o=o.replace(/,\s*$/,""),o||(o=void 0),t({categories:void 0!==o?o:""})}})))),"post"===e.postType&&React.createElement(React.Fragment,null,React.createElement(l,{id:"gb_postgrid_queryControls"},React.createElement(aa,{order:n,orderBy:a,numberOfItems:e.postsToShow,onOrderChange:e=>t({order:e}),onOrderByChange:e=>t({orderBy:e}),onNumberOfItemsChange:e=>t({postsToShow:e})})),React.createElement(l,{id:"gb_postgrid_offset"},React.createElement(ia,{label:Jn("Number of items to offset","genesis-blocks"),value:e.offset,onChange:e=>t({offset:e}),min:0,max:20}))),"grid"===e.postLayout&&React.createElement(l,{id:"gb_postgrid_columns"},React.createElement(ia,{label:Jn("Columns","genesis-blocks"),value:e.columns,onChange:e=>t({columns:e}),min:1,max:m?Math.min(4,o.length):4}))),React.createElement(na,{title:Jn("Post and Page Grid Content","genesis-blocks"),initialOpen:!1},React.createElement(l,{id:"gb_postgrid_displaySectionTitle"},React.createElement(la,{label:Jn("Display Section Title","genesis-blocks"),checked:e.displaySectionTitle,onChange:()=>this.props.setAttributes({displaySectionTitle:!e.displaySectionTitle})})),e.displaySectionTitle&&React.createElement(l,{id:"gb_postgrid_sectionTitle"},React.createElement(sa,{label:Jn("Section Title","genesis-blocks"),type:"text",value:e.sectionTitle,onChange:e=>this.props.setAttributes({sectionTitle:e})})),React.createElement(l,{id:"gb_postgrid_displayPostImage"},React.createElement(la,{label:Jn("Display Featured Image","genesis-blocks"),checked:e.displayPostImage,onChange:()=>this.props.setAttributes({displayPostImage:!e.displayPostImage})})),e.displayPostImage&&React.createElement(l,{id:"gb_postgrid_imageSizeValue"},React.createElement(ra,{label:Jn("Image Size","genesis-blocks"),value:(()=>{for(let t=0;t<v.length;t++)if(v[t].value===e.imageSize)return e.imageSize;return"full"})(),options:v,onChange:e=>this.props.setAttributes({imageSize:e})})),React.createElement(l,{id:"gb_postgrid_displayPostTitle"},React.createElement(la,{label:Jn("Display Title","genesis-blocks"),checked:e.displayPostTitle,onChange:()=>this.props.setAttributes({displayPostTitle:!e.displayPostTitle})})),h&&React.createElement(l,{id:"gb_postgrid_displayPostAuthor"},React.createElement(la,{label:Jn("Display Author","genesis-blocks"),checked:e.displayPostAuthor,onChange:()=>this.props.setAttributes({displayPostAuthor:!e.displayPostAuthor})})),h&&React.createElement(l,{id:"gb_postgrid_displayPostDate"},React.createElement(la,{label:Jn("Display Date","genesis-blocks"),checked:e.displayPostDate,onChange:()=>this.props.setAttributes({displayPostDate:!e.displayPostDate})})),React.createElement(l,{id:"gb_postgrid_displayPostExcerpt"},React.createElement(la,{label:Jn("Display Excerpt","genesis-blocks"),checked:e.displayPostExcerpt,onChange:()=>this.props.setAttributes({displayPostExcerpt:!e.displayPostExcerpt})})),e.displayPostExcerpt&&React.createElement(l,{id:"gb_postgrid_excerptLength"},React.createElement(ia,{label:Jn("Excerpt Length","genesis-blocks"),value:e.excerptLength,onChange:e=>t({excerptLength:e}),min:0,max:150})),React.createElement(l,{id:"gb_postgrid_displayPostLink"},React.createElement(la,{label:Jn("Display Continue Reading Link","genesis-blocks"),checked:e.displayPostLink,onChange:()=>this.props.setAttributes({displayPostLink:!e.displayPostLink})})),e.displayPostLink&&React.createElement(l,{id:"gb_postgrid_readMoreText"},React.createElement(sa,{label:Jn("Customize Continue Reading Text","genesis-blocks"),type:"text",value:e.readMoreText,onChange:e=>this.props.setAttributes({readMoreText:e})}))),React.createElement(na,{title:Jn("Post and Page Grid Markup","genesis-blocks"),initialOpen:!1,className:"gb-block-post-grid-markup-settings"},React.createElement(l,{id:"gb_postgrid_sectionTag"},React.createElement(ra,{label:Jn("Post Grid Section Tag","genesis-blocks"),options:u,value:e.sectionTag,onChange:e=>this.props.setAttributes({sectionTag:e}),help:Jn("Change the post grid section tag to match your content hierarchy.","genesis-blocks")})),e.sectionTitle&&React.createElement(l,{id:"gb_postgrid_sectionTitleTag"},React.createElement(ra,{label:Jn("Section Title Heading Tag","genesis-blocks"),options:b,value:e.sectionTitleTag,onChange:e=>this.props.setAttributes({sectionTitleTag:e}),help:Jn("Change the post/page section title tag to match your content hierarchy.","genesis-blocks")})),e.displayPostTitle&&React.createElement(l,{id:"gb_postgrid_postTitleTag"},React.createElement(ra,{label:Jn("Post Title Heading Tag","genesis-blocks"),options:b,value:e.postTitleTag,onChange:e=>this.props.setAttributes({postTitleTag:e}),help:Jn("Change the post/page title tag to match your content hierarchy.","genesis-blocks")}))))}}var ma=o(2579),ha=o.n(ma);const{__:ka}=wp.i18n,{Fragment:fa,Component:ya}=wp.element,{Placeholder:va,Dashicon:Ca}=wp.components;class Ra extends ya{constructor(e){super(...arguments),this.state={imageUrl:"",imageLoaded:!1,setImageUrlSubscription:!1}}componentDidUpdate(e){this.props.imgSize!==e.imgSize&&this.setImageUrl()}componentDidMount(){this.setState({setImageUrlSubscription:wp.data.subscribe((()=>{this.setImageUrl()}))})}componentWillUnmount(){this.state.setImageUrlSubscription()}setImageUrl(){let e=this.getImageUrl();e||(e=this.getFullImageSize()),e&&this.setState({imageUrl:e,imageLoaded:!0})}getImageUrl(){return ha()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes",this.props.imgSize,"source_url"])}getFullImageSize(){return ha()(wp.data.select("core").getMedia(this.props.imgID),["media_details","sizes","full","source_url"])}render(){return React.createElement(fa,null,React.createElement("div",{className:i()("gb-block-post-grid-image")},React.createElement("a",{href:this.props.imgLink,target:"_blank",rel:"bookmark noopener noreferrer"},React.createElement("img",{src:this.state.imageUrl?this.state.imageUrl:this.props.imgSizeLandscape,alt:this.props.imgAlt,className:this.props.imgClass})),!this.getImageUrl()&&this.state.imageLoaded&&"selectimage"!==this.props.imgSize&&React.createElement(fa,null,React.createElement("div",{className:"gb-post-grid-no-image-icon"},React.createElement(Ca,{icon:"warning"})),React.createElement(va,{className:"gb-post-grid-no-image-placeholder"},React.createElement(Ca,{icon:"info"}),React.createElement("div",{className:"components-placeholder__label"},ka("There is no image generated for the selected image size, so a fallback image size is being used.","genesis-blocks")),React.createElement("div",{className:"gb-post-grid-image-help"},React.createElement("a",{target:"_blank",rel:"noreferrer noopener","aria-label":ka("Learn more about image sizes (opens in a new tab)","genesis-blocks"),href:"https://github.com/studiopress/genesis-blocks/wiki/Post-Grid-Block#featured-image-sizes"},ka("Learn more ","genesis-blocks"),React.createElement("span",null,"→")))))))}}const{useState:Ea,useEffect:wa}=wp.element,{__:xa}=wp.i18n,{decodeEntities:Ta}=wp.htmlEntities,{Placeholder:_a,Spinner:Sa,ToolbarGroup:Ba}=wp.components,{BlockAlignmentToolbar:za,BlockControls:Aa}=wp.blockEditor,{apiFetch:Na}=wp,{addQueryArgs:La}=wp.url,Pa=[],{__:Ia}=wp.i18n,{registerBlockType:Ma}=wp.blocks;Ma("genesis-blocks/gb-post-grid",{title:Ia("Post and Page Grid","genesis-blocks"),description:Ia("Add a grid or list of customizable posts or pages.","genesis-blocks"),icon:"grid-view",category:"genesis-blocks",keywords:[Ia("post","genesis-blocks"),Ia("page","genesis-blocks"),Ia("grid","genesis-blocks"),Ia("atomic","genesis-blocks")],edit:e=>{const[t,o]=Ea(),[a,r]=Ea(e),{attributes:s,setAttributes:l}=e;if(e.attributes.postType!==a.postType||e.attributes.selectedPages!==a.selectedPages||e.attributes.categories!==a.categories||e.attributes.order!==a.order||e.attributes.orderby!==a.orderby||e.attributes.offset!==a.offset||e.attributes.postsToShow!==a.postsToShow){const t="handleUpdateAttributes";Pa[t]&&(clearTimeout(Pa[t]),Pa[t]=null),Pa[t]=setTimeout((()=>{clearTimeout(Pa[t]),r(e.attributes)}),500)}wa((()=>{o(null)}),[a]),wa((()=>{t||("post"===e.attributes.postType&&new Promise((t=>{const n={order:e.attributes.order,orderby:e.attributes.orderBy,per_page:e.attributes.postsToShow,offset:e.attributes.offset};if(wp.data.select("core/editor")){const e=wp.data.select("core/editor").getCurrentPostId();e&&(n.exclude=[e])}e.attributes.categories&&(n.categories=e.attributes.categories),Na({path:La("/wp/v2/posts",n)}).then((e=>{o(e),t()})).catch((e=>{console.log(e)}))})),"page"===e.attributes.postType&&new Promise((t=>{const n=e.attributes.selectedPages&&e.attributes.selectedPages.length>0?e.attributes.selectedPages.map((e=>e.value)):null,a={per_page:6},i=wp.data.select("core/editor").getCurrentPostId();i&&(a.exclude=[i]),n&&(delete a.per_page,a.include=n,a.orderby="include"),Na({path:La("/wp/v2/pages",a)}).then((e=>{o(e),t()})).catch((e=>{console.log(e)}))})))}),[t]);const c=Array.isArray(t)&&t.length,p="post"===s.postType;if(!c)return React.createElement(React.Fragment,null,React.createElement(ba,n({setAttributes:l},e)),React.createElement(_a,{icon:"admin-post",label:xa("Genesis Blocks Post and Page Grid","genesis-blocks")},Array.isArray(t)?xa("No posts found.","genesis-blocks"):React.createElement(Sa,null)));const g=[{icon:"grid-view",title:xa("Grid View","genesis-blocks"),onClick:()=>l({postLayout:"grid"}),isActive:"grid"===s.postLayout},{icon:"list-view",title:xa("List View","genesis-blocks"),onClick:()=>l({postLayout:"list"}),isActive:"list"===s.postLayout}],d=s.sectionTag?s.sectionTag:"section",u=s.sectionTitleTag?s.sectionTitleTag:"h2",b=s.postTitleTag?s.postTitleTag:"h3";return React.createElement(React.Fragment,null,React.createElement(ba,n({setAttributes:l},e)),React.createElement(Aa,null,React.createElement(za,{value:s.align,onChange:e=>{l({align:e})},controls:["center","wide","full"]}),React.createElement(Ba,{controls:g})),React.createElement(d,{className:i()(e.className,"gb-block-post-grid")},s.displaySectionTitle&&s.sectionTitle&&React.createElement(u,{className:"gb-post-grid-section-title"},s.sectionTitle),React.createElement("div",{className:i()({"is-grid":"grid"===s.postLayout,"is-list":"list"===s.postLayout,[`columns-${s.columns}`]:"grid"===s.postLayout,"gb-post-grid-items":"gb-post-grid-items"})},t.map(((t,o)=>{return React.createElement("article",{key:o,id:"post-"+t.id,className:i()("post-"+t.id,t.featured_image_src&&s.displayPostImage?"has-post-thumbnail":null)},s.displayPostImage&&t.featured_media?React.createElement(Ra,n({},e,{imgAlt:Ta(t.title.rendered.trim())||xa("(Untitled)","genesis-blocks"),imgClass:`wp-image-${t.featured_media.toString()}`,imgID:t.featured_media.toString(),imgSize:s.imageSize,imgSizeLandscape:t.featured_image_src,imgSizeSquare:t.featured_image_src_square,imgLink:t.link})):null,React.createElement("div",{className:"gb-block-post-grid-text"},React.createElement("header",{className:"gb-block-post-grid-header"},s.displayPostTitle&&React.createElement(b,{className:"gb-block-post-grid-title"},React.createElement("a",{href:t.link,target:"_blank",rel:"bookmark noopener noreferrer"},Ta(t.title.rendered.trim())||xa("(Untitled)","genesis-blocks"))),p&&t.author_info&&t.author_info.display_name&&React.createElement("div",{className:"gb-block-post-grid-byline"},s.displayPostAuthor&&t.author_info.display_name?React.createElement("div",{className:"gb-block-post-grid-author"},React.createElement("a",{className:"gb-text-link",target:"_blank",rel:"noopener noreferrer",href:t.author_info.author_link},t.author_info.display_name)):null,s.displayPostDate&&t.date_gmt&&React.createElement("time",{dateTime:Kn()(t.date_gmt).utc().format(),className:"gb-block-post-grid-date"},Kn()(t.date_gmt).local().format("MMMM DD, Y","genesis-blocks")))),React.createElement("div",{className:"gb-block-post-grid-excerpt"},s.displayPostExcerpt&&t.excerpt&&React.createElement("div",{dangerouslySetInnerHTML:{__html:(a=t.excerpt.rendered,r=s.excerptLength,a.split(" ").splice(0,r).join(" "))}}),s.displayPostLink&&React.createElement("p",null,React.createElement("a",{className:"gb-block-post-grid-more-link gb-text-link",href:t.link,target:"_blank",rel:"bookmark noopener noreferrer"},s.readMoreText)))));var a,r})))))},gb_settings_data:{gb_postgrid_postType:{title:Ia("Content Type","genesis-blocks")},gb_postgrid_queryControls:{title:Ia("Query Controls","genesis-blocks")},gb_postgrid_offset:{title:Ia("Post Offset","genesis-blocks")},gb_postgrid_columns:{title:Ia("Columns","genesis-blocks")},gb_postgrid_displaySectionTitle:{title:Ia("Display Section Title","genesis-blocks")},gb_postgrid_sectionTitle:{title:Ia("Section Title","genesis-blocks")},gb_postgrid_displayPostImage:{title:Ia("Display Featured Image","genesis-blocks")},gb_postgrid_imageSizeValue:{title:Ia("Image Size","genesis-blocks")},gb_postgrid_displayPostTitle:{title:Ia("Display Post Title","genesis-blocks")},gb_postgrid_displayPostAuthor:{title:Ia("Display Post Author","genesis-blocks")},gb_postgrid_displayPostDate:{title:Ia("Display Post Date","genesis-blocks")},gb_postgrid_displayPostExcerpt:{title:Ia("Display Post Excerpt","genesis-blocks")},gb_postgrid_excerptLength:{title:Ia("Excerpt Length","genesis-blocks")},gb_postgrid_displayPostLink:{title:Ia("Display Continue Reading Link","genesis-blocks")},gb_postgrid_readMoreText:{title:Ia("Read More Text","genesis-blocks")},gb_postgrid_sectionTag:{title:Ia("Post Grid Section Tag","genesis-blocks")},gb_postgrid_sectionTitleTag:{title:Ia("Section Title Heading Tag","genesis-blocks")},gb_postgrid_postTitleTag:{title:Ia("Post Title Heading Tag","genesis-blocks")}},save:()=>null});const{__:Fa}=wp.i18n,{Component:Oa}=wp.element,{InspectorControls:Ua,PanelColorSettings:Da,MediaUpload:Wa}=wp.blockEditor,{Button:ja,Icon:Va,PanelBody:Ha,RangeControl:qa}=wp.components;class Ga extends Oa{render(){const{containerPaddingTop:e,containerPaddingRight:t,containerPaddingBottom:o,containerPaddingLeft:n,containerMarginTop:a,containerMarginBottom:i,containerMaxWidth:r,containerBackgroundColor:s,containerDimRatio:c,containerImgURL:p,containerImgID:g}=this.props.attributes,{setAttributes:d}=this.props,u=()=>{d({containerImgID:null,containerImgURL:null,containerImgAlt:null})};return React.createElement(Ua,{key:"inspector"},React.createElement(l,{id:"gb_container_containerOptions"},React.createElement(Ha,{title:Fa("Container Options","genesis-blocks"),initialOpen:!0},React.createElement(qa,{label:Fa("Padding Top (%)","genesis-blocks"),value:e,onChange:e=>this.props.setAttributes({containerPaddingTop:e}),min:0,max:30,step:.5}),React.createElement(qa,{label:Fa("Padding Bottom (%)","genesis-blocks"),value:o,onChange:e=>this.props.setAttributes({containerPaddingBottom:e}),min:0,max:30,step:.5}),React.createElement(qa,{label:Fa("Padding Left (%)","genesis-blocks"),value:n,onChange:e=>this.props.setAttributes({containerPaddingLeft:e}),min:0,max:30,step:.5}),React.createElement(qa,{label:Fa("Padding Right (%)","genesis-blocks"),value:t,onChange:e=>this.props.setAttributes({containerPaddingRight:e}),min:0,max:30,step:.5}),React.createElement(qa,{label:Fa("Margin Top (%)","genesis-blocks"),value:a,onChange:e=>this.props.setAttributes({containerMarginTop:e}),min:0,max:30,step:1}),React.createElement(qa,{label:Fa("Margin Bottom (%)","genesis-blocks"),value:i,onChange:e=>this.props.setAttributes({containerMarginBottom:e}),min:0,max:30,step:.5}),React.createElement(qa,{label:Fa("Inside Container Max Width (px)","genesis-blocks"),value:r,onChange:e=>this.props.setAttributes({containerMaxWidth:e}),min:500,max:1600,step:1}))),React.createElement(l,{id:"gb_container_backgroundOptions"},React.createElement(Ha,{title:Fa("Background Options","genesis-blocks"),initialOpen:!1},React.createElement("p",null,Fa("Select a background image:","genesis-blocks")),React.createElement(Wa,{onSelect:e=>{d({containerImgID:e.id,containerImgURL:e.url,containerImgAlt:e.alt})},type:"image",value:g,render:e=>{let{open:t}=e;return React.createElement("div",null,React.createElement(ja,{className:"gb-container-inspector-media",label:Fa("Edit image","genesis-blocks"),onClick:t},React.createElement(Va,{icon:"format-image"}),Fa("Select Image","genesis-blocks")),p&&!!p.length&&React.createElement(ja,{className:"gb-container-inspector-media",label:Fa("Remove Image","genesis-blocks"),onClick:u},React.createElement(Va,{icon:"dismiss"}),Fa("Remove","genesis-blocks")))}}),p&&!!p.length&&React.createElement(qa,{label:Fa("Image Opacity","genesis-blocks"),value:c,onChange:e=>this.props.setAttributes({containerDimRatio:e}),min:0,max:100,step:10}),React.createElement(Da,{title:Fa("Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:s,label:Fa("Background Color","genesis-blocks"),onChange:e=>d({containerBackgroundColor:e})}]}))))}}const{Component:$a}=wp.element;class Ka extends $a{render(){const{attributes:{containerBackgroundColor:e,containerAlignment:t,containerPaddingTop:o,containerPaddingRight:n,containerPaddingBottom:a,containerPaddingLeft:r,containerMarginTop:s,containerMarginBottom:l,containerWidth:c,containerMaxWidth:p,containerImgURL:g,containerImgAlt:d,containerDimRatio:u}}=this.props,b={backgroundColor:e||void 0,textAlign:t||void 0,paddingLeft:r?`${r}%`:void 0,paddingRight:n?`${n}%`:void 0,paddingBottom:a?`${a}%`:void 0,paddingTop:o?`${o}%`:void 0,marginTop:s?`${s}%`:void 0,marginBottom:l?`${l}%`:void 0},m=i()([this.props.className,"gb-block-container"],{["align"+c]:c});return React.createElement("div",{style:b,className:m||void 0},React.createElement("div",{className:"gb-container-inside"},g&&!!g.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:i()("gb-container-image",(h=u,0===h||50===h?null:"has-background-dim-"+10*Math.round(h/10)),{"has-background-dim":0!==u}),src:g,alt:d})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:p?`${p}px`:void 0}},this.props.children)));var h}}const{Component:Ya}=wp.element;class Qa extends Ya{constructor(e){super(...arguments)}render(){const{attributes:{containerBackgroundColor:e,containerAlignment:t,containerPaddingTop:o,containerPaddingRight:n,containerPaddingBottom:a,containerPaddingLeft:r,containerMarginTop:s,containerMarginBottom:l,containerWidth:c,containerMaxWidth:p}}=this.props,g=i()([this.props.className,"gb-block-container"],{["align"+c]:c});return React.createElement("div",{style:{backgroundColor:e,textAlign:t,paddingLeft:`${r}%`,paddingRight:`${n}%`,paddingBottom:`${a}%`,paddingTop:`${o}%`,marginTop:`${s}%`,marginBottom:`${l}%`},className:g||void 0},this.props.children)}}const{Component:Xa}=wp.element;class Za extends Xa{constructor(e){super(...arguments)}render(){const{attributes:{containerBackgroundColor:e,containerAlignment:t,containerPaddingTop:o,containerPaddingRight:n,containerPaddingBottom:a,containerPaddingLeft:r,containerMarginTop:s,containerMarginBottom:l,containerWidth:c,containerMaxWidth:p,containerImgURL:g,containerImgAlt:d,containerDimRatio:u}}=this.props,b={backgroundColor:e||void 0,textAlign:t||void 0,paddingLeft:r?`${r}%`:void 0,paddingRight:n?`${n}%`:void 0,paddingBottom:a?`${a}%`:void 0,paddingTop:o?`${o}%`:void 0,marginTop:s?`${s}%`:void 0,marginBottom:l?`${l}%`:void 0},m=i()([this.props.className,"gb-block-container"],{["align"+c]:c});return React.createElement("div",{style:b,className:m||void 0},React.createElement("div",{className:"gb-container-inside"},g&&!!g.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:i()("gb-container-image",(h=u,0===h||50===h?null:"has-background-dim-"+10*Math.round(h/10)),{"has-background-dim":0!==u}),src:g,alt:d})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:`${p}px`}},this.props.children)));var h}}const{InnerBlocks:Ja}=wp.blockEditor,ei=[{attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:e=>React.createElement(Za,e,React.createElement(Ja.Content,null))},{attributes:{containerPaddingTop:{type:"number",default:0},containerPaddingRight:{type:"number",default:0},containerPaddingBottom:{type:"number",default:0},containerPaddingLeft:{type:"number",default:0},containerMarginTop:{type:"number",default:0},containerMarginBottom:{type:"number",default:0},containerWidth:{type:"string",default:"center"},containerMaxWidth:{type:"number",default:1600},containerBackgroundColor:{type:"string",default:"#fff"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},save:e=>{const{containerMaxWidth:t,containerImgURL:o,containerImgAlt:n,containerDimRatio:a}=e.attributes;return React.createElement(Qa,e,React.createElement("div",{className:"gb-container-inside"},o&&!!o.length&&React.createElement("div",{className:"gb-container-image-wrap"},React.createElement("img",{className:i()("gb-container-image",(r=a,0===r||50===r?null:"has-background-dim-"+10*Math.round(r/10)),{"has-background-dim":0!==a}),src:o,alt:n})),React.createElement("div",{className:"gb-container-content",style:{maxWidth:`${t}px`}},React.createElement(Ja.Content,null))));var r}}],{__:ti}=wp.i18n,{Component:oi}=wp.element,{registerBlockType:ni}=wp.blocks,{InnerBlocks:ai}=wp.blockEditor;ni("genesis-blocks/gb-container",{title:ti("Container","genesis-blocks"),description:ti("Add a container block to wrap several blocks in a parent container.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[ti("container","genesis-blocks"),ti("section","genesis-blocks"),ti("genesis","genesis-blocks")],supports:{align:["center","wide","full"]},attributes:{containerPaddingTop:{type:"number"},containerPaddingRight:{type:"number"},containerPaddingBottom:{type:"number"},containerPaddingLeft:{type:"number"},containerMarginTop:{type:"number"},containerMarginBottom:{type:"number"},containerWidth:{type:"string"},containerMaxWidth:{type:"number"},containerBackgroundColor:{type:"string"},containerImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img"},containerImgID:{type:"number"},containerImgAlt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},containerDimRatio:{type:"number",default:50}},gb_settings_data:{gb_container_containerOptions:{title:ti("Container Options","genesis-blocks")},gb_container_backgroundOptions:{title:ti("Background Options","genesis-blocks")}},edit:class extends oi{render(){const{setAttributes:e}=this.props;return[React.createElement(Ga,n({key:"gb-container-inspector-"+this.props.clientId,setAttributes:e},this.props)),React.createElement(Ka,n({key:"gb-container-"+this.props.clientId},this.props),React.createElement(ai,null))]}},save:e=>React.createElement(Ka,e,React.createElement(ai.Content,null)),getEditWrapperProps(e){let{containerWidth:t}=e;if("center"===t||"wide"===t||"full"===t)return{"data-align":t}},deprecated:ei});const{__:ii}=wp.i18n,{Component:ri}=wp.element,{InspectorControls:si}=wp.blockEditor,{PanelBody:li,RangeControl:ci}=wp.components;class pi extends ri{render(){const{attributes:{columns:e,columnsGap:t}}=this.props;return React.createElement(si,{key:"inspector"},React.createElement(li,null,React.createElement(l,{id:"gb_pricing_columns"},React.createElement(ci,{label:ii("Pricing Columns","genesis-blocks"),value:e,onChange:e=>this.props.setAttributes({columns:e}),min:1,max:4})),React.createElement(l,{id:"gb_pricing_columnsGap"},React.createElement(ci,{label:ii("Pricing Columns Gap","genesis-blocks"),value:t,onChange:e=>this.props.setAttributes({columnsGap:e}),min:0,max:5,step:1}))))}}const{Component:gi}=wp.element;class di extends gi{render(){const{attributes:{columns:e,align:t}}=this.props,o=i()([this.props.className,"gb-pricing-columns-"+e],{["align"+t]:t});return React.createElement("div",{className:o||void 0},this.props.children)}}var ui=o(6770),bi=o.n(ui),mi=o(1258),hi=o.n(mi);const{__:ki}=wp.i18n,{Component:fi}=wp.element,{registerBlockType:yi}=wp.blocks,{BlockControls:vi,BlockAlignmentToolbar:Ci,InnerBlocks:Ri}=wp.blockEditor,{dispatch:Ei}=wp.data,wi=["genesis-blocks/gb-pricing-table"],xi=bi()((e=>hi()(e,(()=>["genesis-blocks/gb-pricing-table"]))));yi("genesis-blocks/gb-pricing",{title:ki("Pricing","genesis-blocks"),description:ki("Add a pricing table.","genesis-blocks"),icon:"cart",category:"genesis-blocks",keywords:[ki("pricing table","genesis-blocks"),ki("shop","genesis-blocks"),ki("purchase","genesis-blocks")],attributes:{columns:{type:"number",default:2},columnsGap:{type:"number",default:2},align:{type:"string"}},gb_settings_data:{gb_pricing_columns:{title:ki("Pricing Columns","genesis-blocks")},gb_pricing_columnsGap:{title:ki("Pricing Columns Gap","genesis-blocks")}},getEditWrapperProps(e){let{align:t}=e;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:class extends fi{componentDidUpdate(e){this.props.attributes.columns!==e.attributes.columns&&Ei("core/block-editor").synchronizeTemplate()}render(){const{attributes:{columns:e,columnsGap:t,align:o},setAttributes:a}=this.props;return[React.createElement(vi,{key:"controls"},React.createElement(Ci,{value:o,onChange:e=>a({align:e}),controls:["center","wide","full"]})),React.createElement(pi,n({key:"gb-pricing-table-inspector-"+this.props.clientId,setAttributes:a},this.props)),React.createElement(di,n({key:"gb-pricing-table-"+this.props.clientId},this.props),React.createElement("div",{className:i()("gb-pricing-table-wrap-admin","gb-block-pricing-table-gap-"+t)},React.createElement(Ri,{template:xi(e),templateLock:"all",allowedBlocks:wi})))]}},save(e){const{columnsGap:t}=e.attributes,o=i()(["gb-pricing-table-wrap","gb-block-pricing-table-gap-"+t]);return React.createElement(di,e,React.createElement("div",{className:o||void 0},React.createElement(Ri.Content,null)))}});const{__:Ti}=wp.i18n,{Component:_i}=wp.element,{InspectorControls:Si,PanelColorSettings:Bi}=wp.blockEditor,{PanelBody:zi,RangeControl:Ai}=wp.components;class Ni extends _i{render(){const{attributes:{borderWidth:e,borderColor:t,borderRadius:o,backgroundColor:n,padding:a},setAttributes:i}=this.props;return React.createElement(Si,{key:"inspector"},React.createElement(zi,null,React.createElement(l,{id:"gb_pricing_inner_padding"},React.createElement(Ai,{label:Ti("Pricing Column Padding","genesis-blocks"),value:a,onChange:e=>this.props.setAttributes({padding:e}),min:0,max:20,step:1})),React.createElement(l,{id:"gb_pricing_inner_borderWidth"},React.createElement(Ai,{label:Ti("Pricing Column Border","genesis-blocks"),value:e,onChange:e=>this.props.setAttributes({borderWidth:e}),min:0,max:10,step:1})),React.createElement(l,{id:"gb_pricing_inner_borderRadius"},React.createElement(Ai,{label:Ti("Pricing Column Border Radius","genesis-blocks"),value:o,onChange:e=>this.props.setAttributes({borderRadius:e}),min:0,max:20,step:1}))),0<e&&React.createElement(l,{id:"gb_pricing_inner_borderColor"},React.createElement(Bi,{title:Ti("Pricing Column Border Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:t,onChange:e=>i({borderColor:e}),label:Ti("Border Color","genesis-blocks")}]})),React.createElement(l,{id:"gb_pricing_inner_colorSettings"},React.createElement(Bi,{title:Ti("Pricing Column Background Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:n,onChange:e=>i({backgroundColor:e}),label:Ti("Background Color","genesis-blocks")}]})))}}const{__:Li}=wp.i18n,{Component:Pi}=wp.element,{registerBlockType:Ii}=wp.blocks,{InnerBlocks:Mi,AlignmentToolbar:Fi,BlockControls:Oi}=wp.blockEditor,{Fragment:Ui}=wp.element,Di=["genesis-blocks/gb-pricing-table-description","genesis-blocks/gb-pricing-table-price","genesis-blocks/gb-pricing-table-subtitle","genesis-blocks/gb-pricing-table-title","genesis-blocks/gb-pricing-table-button","core/paragraph","core/image","core/html","core/shortcode"];Ii("genesis-blocks/gb-pricing-table",{title:Li("Pricing Column","genesis-blocks"),description:Li("Add a pricing column.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing"],keywords:[Li("pricing","genesis-blocks"),Li("shop","genesis-blocks"),Li("buy","genesis-blocks")],attributes:{borderWidth:{type:"number",default:2},borderColor:{type:"string"},borderRadius:{type:"number",default:0},backgroundColor:{type:"string"},alignment:{type:"string"},padding:{type:"number"}},gb_settings_data:{gb_pricing_inner_padding:{title:Li("Pricing Column Padding","genesis-blocks")},gb_pricing_inner_borderWidth:{title:Li("Pricing Column Border","genesis-blocks")},gb_pricing_inner_borderRadius:{title:Li("Pricing Column Border Radius","genesis-blocks")},gb_pricing_inner_borderColor:{title:Li("Pricing Column Border Color","genesis-blocks")},gb_pricing_inner_colorSettings:{title:Li("Pricing Column Background Color","genesis-blocks")}},edit:class extends Pi{render(){const{attributes:{borderWidth:e,borderColor:t,borderRadius:o,backgroundColor:a,padding:r,alignment:s},setAttributes:l}=this.props,c={borderWidth:e||null,borderStyle:0<e?"solid":null,borderColor:t||null,borderRadius:o||null,backgroundColor:a||null,padding:r?r+"%":null};return[React.createElement(Oi,{key:"controls"},React.createElement(Fi,{value:s,onChange:e=>{l({alignment:e})}})),React.createElement(Ni,n({key:"gb-pricing-table-inner-inspector-"+this.props.clientId,setAttributes:l},this.props)),React.createElement(Ui,{key:"gb-pricing-table-inner-fragment-"+this.props.clientId},React.createElement("div",{className:i()(s?"gb-block-pricing-table-"+s:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:c},React.createElement(Mi,{template:[["genesis-blocks/gb-pricing-table-title",{title:"<strong>Price Title</strong>",fontSize:"medium",paddingTop:30,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-subtitle",{subtitle:"Price Subtitle Description",customFontSize:20,paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-price",{price:"49",currency:"$",customFontSize:60,term:"/mo",paddingTop:10,paddingRight:20,paddingBottom:10,paddingLeft:20}],["genesis-blocks/gb-pricing-table-features",{features:"<li>Product Feature One</li><li>Product Feature Two</li><li>Product Feature Three</li>",multilineTag:"li",ordered:!1,customFontSize:20,paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:20}],["genesis-blocks/gb-pricing-table-button",{buttonText:"Buy Now",buttonBackgroundColor:"#272c30",paddingTop:15,paddingRight:20,paddingBottom:35,paddingLeft:20}]],templateLock:!1,allowedBlocks:Di,templateInsertUpdatesSelection:!1}))))]}},save(e){const{borderWidth:t,borderColor:o,borderRadius:n,backgroundColor:a,alignment:r,padding:s}=e.attributes,l={borderWidth:t||null,borderStyle:0<t?"solid":null,borderColor:o||null,borderRadius:n||null,backgroundColor:a||null,padding:s?s+"%":null};return React.createElement("div",{className:i()(r?"gb-block-pricing-table-"+r:"gb-block-pricing-table-center","gb-block-pricing-table"),itemScope:!0,itemType:"http://schema.org/Product"},React.createElement("div",{className:"gb-block-pricing-table-inside",style:l},React.createElement(Mi.Content,null)))}});const{__:Wi}=wp.i18n,{Fragment:ji}=wp.element,{RangeControl:Vi}=wp.components;function Hi(e){const{padding:t,paddingTitle:o,paddingHelp:n,paddingMin:a,paddingMax:i,paddingEnable:r,onChangePadding:s=(()=>{}),paddingTop:l,paddingTopMin:c,paddingTopMax:p,paddingEnableTop:g,onChangePaddingTop:d=(()=>{}),paddingRight:u,paddingRightMin:b,paddingRightMax:m,paddingEnableRight:h,onChangePaddingRight:k=(()=>{}),paddingBottom:f,paddingBottomMin:y,paddingBottomMax:v,paddingEnableBottom:C,onChangePaddingBottom:R=(()=>{}),paddingLeft:E,paddingLeftMin:w,paddingLeftMax:x,paddingEnableLeft:T,onChangePaddingLeft:_=(()=>{}),paddingVertical:S,paddingEnableVertical:B,paddingVerticalMin:z,paddingVerticalMax:A,onChangePaddingVertical:N=(()=>{}),paddingHorizontal:L,paddingEnableHorizontal:P,paddingHorizontalMin:I,paddingHorizontalMax:M,onChangePaddingHorizontal:F=(()=>{})}=e;return React.createElement(ji,null,r&&React.createElement(Vi,{label:o||Wi("Padding","genesis-blocks"),help:n||null,value:t,min:a,max:i,onChange:s}),g&&React.createElement(Vi,{label:Wi("Padding Top","genesis-blocks"),value:l,min:c,max:p,onChange:d}),h&&React.createElement(Vi,{label:Wi("Padding Right","genesis-blocks"),value:u,min:b,max:m,onChange:k}),C&&React.createElement(Vi,{label:Wi("Padding Bottom","genesis-blocks"),value:f,min:y,max:v,onChange:R}),T&&React.createElement(Vi,{label:Wi("Padding Left","genesis-blocks"),value:E,min:w,max:x,onChange:_}),B&&React.createElement(Vi,{label:Wi("Padding Vertical","genesis-blocks"),value:S,min:z,max:A,onChange:N}),P&&React.createElement(Vi,{label:Wi("Padding Horizontal","genesis-blocks"),value:L,min:I,max:M,onChange:F}))}const{__:qi}=wp.i18n,{Component:Gi}=wp.element,{compose:$i}=wp.compose,{InspectorControls:Ki,FontSizePicker:Yi,withFontSizes:Qi,withColors:Xi,ContrastChecker:Zi,PanelColorSettings:Ji}=wp.blockEditor,{withFallbackStyles:er,PanelBody:tr,ToggleControl:or,TextControl:nr,RangeControl:ar}=wp.components,ir=$i([er(((e,t)=>{const{textColor:o,backgroundColor:n,fontSize:a,customFontSize:i}=t.attributes,r=e.querySelector('[contenteditable="true"]'),s=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!s?void 0:s.backgroundColor,fallbackTextColor:o||!s?void 0:s.color,fallbackFontSize:a||i||!s?void 0:parseInt(s.fontSize)||void 0}})),Qi("fontSize"),Xi("backgroundColor",{textColor:"color"})])(class extends Gi{render(){const{attributes:{showTerm:e,showCurrency:t,term:o,currency:n,paddingTop:a,paddingRight:i,paddingBottom:r,paddingLeft:s},isSelected:l,setAttributes:c,fallbackFontSize:p,fontSize:g,setFontSize:d,backgroundColor:u,textColor:b,setBackgroundColor:m,setTextColor:h,fallbackBackgroundColor:k,fallbackTextColor:f}=this.props;return React.createElement(Ki,{key:"inspector"},React.createElement(tr,{title:qi("Text Settings","genesis-blocks")},React.createElement(Yi,{fallbackFontSize:p,value:g.size,onChange:d}),React.createElement(or,{label:qi("Show currency symbol","genesis-blocks"),checked:t,onChange:()=>this.props.setAttributes({showCurrency:!t})}),t&&React.createElement(nr,{label:qi("Currency Symbol","genesis-blocks"),type:"text",value:n,onChange:e=>this.props.setAttributes({currency:e})}),React.createElement(or,{label:qi("Show pricing duration","genesis-blocks"),checked:e,onChange:()=>this.props.setAttributes({showTerm:!e})}),e&&React.createElement(nr,{label:qi("Pricing Duration","genesis-blocks"),type:"text",value:o,onChange:e=>this.props.setAttributes({term:e})})),React.createElement(tr,{title:qi("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Hi,{paddingEnableTop:!0,paddingTop:a,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>c({paddingTop:e}),paddingEnableRight:!0,paddingRight:i,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>c({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:r,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>c({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:s,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>c({paddingLeft:e})})),React.createElement(Ji,{title:qi("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:u.color,onChange:m,label:qi("Background Color","genesis-blocks")},{value:b.color,onChange:h,label:qi("Text Color","genesis-blocks")}]},React.createElement(Zi,{textColor:b.color,backgroundColor:u.color,fallbackTextColor:f,fallbackBackgroundColor:k,fontSize:g.size})))}}),{__:rr}=wp.i18n,{registerBlockType:sr}=wp.blocks,{compose:lr}=wp.compose,{Component:cr,Fragment:pr}=wp.element,{RichText:gr,withFontSizes:dr,withColors:ur}=wp.blockEditor,br=lr([dr("fontSize"),ur("backgroundColor",{textColor:"color"})])(class extends cr{render(){const{attributes:{price:e,currency:t,term:o,showTerm:n,showCurrency:a,paddingTop:r,paddingRight:s,paddingBottom:l,paddingLeft:c},isSelected:p,className:g,setAttributes:d,fallbackFontSize:u,fontSize:b,backgroundColor:m,textColor:h}=this.props,k=i()({"gb-pricing-table-price-wrap":!0,"has-text-color":h.color,"has-background":m.color,[m.class]:m.class,[h.class]:h.class,"gb-pricing-has-currency":a}),f=i()({"gb-pricing-table-price":!0,[b.class]:b.class}),y={backgroundColor:m.color,color:h.color,paddingTop:r?r+"px":void 0,paddingRight:s?s+"px":void 0,paddingBottom:l?l+"px":void 0,paddingLeft:c?c+"px":void 0},v={fontSize:b.size?b.size+"px":void 0},C=Math.floor(b.size/2.5),R={fontSize:b.size?C+"px":void 0},E=Math.floor(b.size/2.5),w={fontSize:b.size?E+"px":void 0};return[React.createElement(pr,{key:"gb-pricing-table-inner-component-price-"+this.props.clientId},React.createElement(ir,this.props),React.createElement("div",{className:k||void 0,style:y},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},a&&React.createElement(gr,{tagName:"span",itemProp:"priceCurrency",placeholder:rr("$","genesis-blocks"),keepPlaceholderOnFocus:!0,value:t,onChange:e=>d({currency:e}),className:"gb-pricing-table-currency",style:R}),React.createElement(gr,{tagName:"div",itemProp:"price",placeholder:rr("49","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,onChange:e=>d({price:e}),style:v,className:f||void 0}),n&&React.createElement(gr,{tagName:"span",value:o,placeholder:rr("/mo","genesis-blocks"),keepPlaceholderOnFocus:!0,onChange:e=>d({term:e}),className:"gb-pricing-table-term",style:w}))))]}}),{__:mr}=wp.i18n,{RichText:hr,getFontSizeClass:kr,getColorClassName:fr}=wp.blockEditor,yr=[{attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},save:e=>{const{price:t,currency:o,fontSize:n,customFontSize:a,backgroundColor:r,textColor:s,customBackgroundColor:l,customTextColor:c,term:p,showTerm:g,showCurrency:d,paddingTop:u,paddingRight:b,paddingBottom:m,paddingLeft:h}=e.attributes,k=kr(n),f=fr("color",s),y=fr("background-color",r),v=i()({"has-background":r||l,"gb-pricing-table-price-wrap":!0,[f]:f,[y]:y,"gb-pricing-has-currency":d&&o}),C=i()({"gb-pricing-table-price":!0,[k]:k}),R={backgroundColor:y?void 0:l,color:f?void 0:c,paddingTop:u?u+"px":void 0,paddingRight:b?b+"px":void 0,paddingBottom:m?m+"px":void 0,paddingLeft:h?h+"px":void 0},E={fontSize:k?void 0:a},w=k?void 0:a,x=Math.floor(w/2.5),T={fontSize:w?x+"px":void 0},_=Math.floor(w/2.5),S={fontSize:w?_+"px":void 0};return React.createElement("div",{className:v||void 0,style:R},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},o&&d&&React.createElement(hr.Content,{tagName:"span",itemProp:"priceCurrency",placeholder:mr("$","genesis-blocks"),value:o,className:"gb-pricing-table-currency",style:T}),React.createElement(hr.Content,{tagName:"div",itemProp:"price",value:t,className:C||void 0,style:E}),p&&g&&React.createElement(hr.Content,{tagName:"span",value:p,className:"gb-pricing-table-term",style:S})))}}],vr=yr,{__:Cr}=wp.i18n,{registerBlockType:Rr}=wp.blocks,{Component:Er,Fragment:wr}=wp.element,{RichText:xr,getFontSizeClass:Tr,FontSizePicker:_r,withFontSizes:Sr,getColorClassName:Br}=wp.blockEditor;Rr("genesis-blocks/gb-pricing-table-price",{title:Cr("Product Price","genesis-blocks"),description:Cr("Adds a product price component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Cr("pricing table","genesis-blocks"),Cr("price","genesis-blocks"),Cr("shop","genesis-blocks")],attributes:{price:{type:"string"},currency:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number",default:60},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},term:{type:"string"},showTerm:{type:"boolean",default:!0},showCurrency:{type:"boolean",default:!0},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:br,save(e){const{price:t,currency:o,fontSize:n,customFontSize:a,backgroundColor:r,textColor:s,customBackgroundColor:l,customTextColor:c,term:p,showTerm:g,showCurrency:d,paddingTop:u,paddingRight:b,paddingBottom:m,paddingLeft:h}=e.attributes,k=Tr(n),f=Br("color",s),y=Br("background-color",r),v=i()({"has-background":r||l,"gb-pricing-table-price-wrap":!0,[f]:f,[y]:y,"gb-pricing-has-currency":d&&o}),C=i()({"gb-pricing-table-price":!0,[k]:k}),R={backgroundColor:y?void 0:l,color:f?void 0:c,paddingTop:u?u+"px":void 0,paddingRight:b?b+"px":void 0,paddingBottom:m?m+"px":void 0,paddingLeft:h?h+"px":void 0},E={fontSize:k?void 0:a},w=k?void 0:a,x=Math.floor(w/2.5),T={fontSize:w?x+"px":void 0},_=Math.floor(w/2.5),S={fontSize:w?_+"px":void 0};return React.createElement("div",{className:v||void 0,style:R},React.createElement("div",{itemProp:"offers",itemScope:!0,itemType:"http://schema.org/Offer"},o&&d&&React.createElement(xr.Content,{tagName:"span",itemProp:"priceCurrency",value:o,className:"gb-pricing-table-currency",style:T}),React.createElement(xr.Content,{tagName:"div",itemProp:"price",value:t,className:C||void 0,style:E}),p&&g&&React.createElement(xr.Content,{tagName:"span",value:p,className:"gb-pricing-table-term",style:S})))},deprecated:vr});const{__:zr}=wp.i18n,{Component:Ar}=wp.element,{compose:Nr}=wp.compose,{InspectorControls:Lr,FontSizePicker:Pr,withFontSizes:Ir,withColors:Mr,ContrastChecker:Fr,PanelColorSettings:Or,ColorPalette:Ur}=wp.blockEditor,{withFallbackStyles:Dr,PanelBody:Wr,PanelRow:jr,SelectControl:Vr,BaseControl:Hr,RangeControl:qr}=wp.components,Gr=Nr([Dr(((e,t)=>{const{textColor:o,backgroundColor:n,fontSize:a,customFontSize:i}=t.attributes,r=e.querySelector('[contenteditable="true"]'),s=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!s?void 0:s.backgroundColor,fallbackTextColor:o||!s?void 0:s.color,fallbackFontSize:a||i||!s?void 0:parseInt(s.fontSize)||void 0}})),Ir("fontSize"),Mr("backgroundColor",{textColor:"color"})])(class extends Ar{render(){const{attributes:{borderStyle:e,borderColor:t,borderWidth:o,paddingTop:n,paddingRight:a,paddingBottom:i,paddingLeft:r},isSelected:s,setAttributes:l,fallbackFontSize:c,fontSize:p,setFontSize:g,backgroundColor:d,textColor:u,setBackgroundColor:b,setTextColor:m,fallbackBackgroundColor:h,fallbackTextColor:k}=this.props,f=[{value:"gb-list-border-none",label:zr("None")},{value:"gb-list-border-solid",label:zr("Solid")},{value:"gb-list-border-dotted",label:zr("Dotted")},{value:"gb-list-border-dashed",label:zr("Dashed")}];return React.createElement(Lr,{key:"inspector"},React.createElement(Wr,{title:zr("Text Settings","genesis-blocks")},React.createElement(Pr,{fallbackFontSize:c,value:p.size,onChange:g}),React.createElement(Vr,{label:zr("List Border Style","genesis-blocks"),value:e,options:f.map((e=>{let{value:t,label:o}=e;return{value:t,label:o}})),onChange:e=>{this.props.setAttributes({borderStyle:e})}}),"gb-list-border-none"!==e&&React.createElement(qr,{label:zr("List Border Width","genesis-blocks"),value:o,onChange:e=>this.props.setAttributes({borderWidth:e}),min:1,max:5,step:1}),"gb-list-border-none"!==e&&React.createElement(jr,null,React.createElement(Hr,{label:zr("List Border Color","genesis-blocks"),id:"gb-list-border-color-"+this.props.clientId},React.createElement(Ur,{initialOpen:!1,value:t,onChange:e=>l({borderColor:e})})))),React.createElement(Wr,{title:zr("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Hi,{paddingEnableTop:!0,paddingTop:n,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>l({paddingTop:e}),paddingEnableRight:!0,paddingRight:a,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>l({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:i,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>l({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:r,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>l({paddingLeft:e})})),React.createElement(Or,{title:zr("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:d.color,onChange:b,label:zr("Background Color","genesis-blocks")},{value:u.color,onChange:m,label:zr("Text Color","genesis-blocks")}]},React.createElement(Fr,{textColor:u.color,backgroundColor:d.color,fallbackTextColor:k,fallbackBackgroundColor:h,fontSize:p.size})))}}),{__:$r}=wp.i18n,{registerBlockType:Kr}=wp.blocks,{compose:Yr}=wp.compose,{Component:Qr,Fragment:Xr}=wp.element,{RichText:Zr,withFontSizes:Jr,withColors:es}=wp.blockEditor,ts=Yr([Jr("fontSize"),es("backgroundColor",{textColor:"color"})])(class extends Qr{render(){const{attributes:{features:e,borderStyle:t,borderColor:o,borderWidth:n,paddingTop:a,paddingRight:r,paddingBottom:s,paddingLeft:l},isSelected:c,className:p,setAttributes:g,fallbackFontSize:d,fontSize:u,backgroundColor:b,textColor:m}=this.props,h=i()({"gb-pricing-table-features":!0,[u.class]:u.class,"has-text-color":m.color,"has-background":b.color,[b.class]:b.class,[m.class]:m.class,[t]:t,["gb-list-border-width-"+n]:n}),k={fontSize:u.size?u.size+"px":void 0,backgroundColor:b.color,color:m.color,borderColor:o||void 0,paddingTop:a?a+"px":void 0,paddingRight:r?r+"px":void 0,paddingBottom:s?s+"px":void 0,paddingLeft:l?l+"px":void 0};return[React.createElement(Xr,{key:"gb-pricing-table-inner-component-description-"+this.props.clientId},React.createElement(Gr,this.props),React.createElement(Zr,{tagName:"ul",multiline:"li",itemProp:"description",placeholder:$r("Add a product feature","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,onChange:e=>g({features:e}),style:k,className:h||void 0}))]}}),{__:os}=wp.i18n,{registerBlockType:ns}=wp.blocks,{Component:as}=wp.element,{RichText:is,getFontSizeClass:rs,FontSizePicker:ss,withFontSizes:ls,getColorClassName:cs}=wp.blockEditor;ns("genesis-blocks/gb-pricing-table-features",{title:os("Product Features","genesis-blocks"),description:os("Adds a product feature component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[os("pricing table","genesis-blocks"),os("features","genesis-blocks"),os("shop","genesis-blocks")],attributes:{features:{type:"string",source:"html",selector:"ol,ul",multiline:"li"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},borderStyle:{type:"string",default:"gb-list-border-none"},borderColor:{type:"string"},borderWidth:{type:"number",default:1},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:ts,save(e){const{features:t,fontSize:o,customFontSize:n,backgroundColor:a,textColor:r,customBackgroundColor:s,customTextColor:l,borderStyle:c,borderColor:p,borderWidth:g,paddingTop:d,paddingRight:u,paddingBottom:b,paddingLeft:m}=e.attributes,h=rs(o),k=cs("color",r),f=cs("background-color",a),y=i()({"has-background":a||s,"gb-pricing-table-features":!0,[h]:h,[k]:k,[f]:f,[c]:c,["gb-list-border-width-"+g]:g}),v={fontSize:h?void 0:n,backgroundColor:f?void 0:s,color:k?void 0:l,borderColor:p||void 0,paddingTop:d?d+"px":void 0,paddingRight:u?u+"px":void 0,paddingBottom:b?b+"px":void 0,paddingLeft:m?m+"px":void 0};return React.createElement(is.Content,{tagName:"ul",itemProp:"description",value:t,className:y||void 0,style:v})}});const{__:ps}=wp.i18n,{Component:gs}=wp.element,{compose:ds}=wp.compose,{InspectorControls:us,FontSizePicker:bs,withFontSizes:ms,withColors:hs,ContrastChecker:ks,PanelColorSettings:fs,RangeControl:ys}=wp.blockEditor,{withFallbackStyles:vs,PanelBody:Cs}=wp.components,Rs=ds([vs(((e,t)=>{const{textColor:o,backgroundColor:n,fontSize:a,customFontSize:i}=t.attributes,r=e.querySelector('[contenteditable="true"]'),s=r?getComputedStyle(r):null;return{fallbackBackgroundColor:n||!s?void 0:s.backgroundColor,fallbackTextColor:o||!s?void 0:s.color,fallbackFontSize:a||i||!s?void 0:parseInt(s.fontSize)||void 0}})),ms("fontSize"),hs("backgroundColor",{textColor:"color"})])(class extends gs{render(){const{attributes:{paddingTop:e,paddingRight:t,paddingBottom:o,paddingLeft:n},isSelected:a,setAttributes:i,fallbackFontSize:r,fontSize:s,setFontSize:l,backgroundColor:c,textColor:p,setBackgroundColor:g,setTextColor:d,fallbackBackgroundColor:u,fallbackTextColor:b}=this.props;return React.createElement(us,{key:"inspector"},React.createElement(Cs,{title:ps("Text Settings","genesis-blocks")},React.createElement(bs,{fallbackFontSize:r,value:s.size,onChange:l})),React.createElement(Cs,{title:ps("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Hi,{paddingEnableTop:!0,paddingTop:e,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>i({paddingTop:e}),paddingEnableRight:!0,paddingRight:t,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>i({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>i({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:n,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>i({paddingLeft:e})})),React.createElement(fs,{title:ps("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:c.color,onChange:g,label:ps("Background Color","genesis-blocks")},{value:p.color,onChange:d,label:ps("Text Color","genesis-blocks")}]},React.createElement(ks,{textColor:p.color,backgroundColor:c.color,fallbackTextColor:b,fallbackBackgroundColor:u,fontSize:s.size})))}}),{__:Es}=wp.i18n,{registerBlockType:ws}=wp.blocks,{compose:xs}=wp.compose,{Component:Ts,Fragment:_s}=wp.element,{RichText:Ss,withFontSizes:Bs,withColors:zs}=wp.blockEditor,As=xs([Bs("fontSize"),zs("backgroundColor",{textColor:"color"})])(class extends Ts{render(){const{attributes:{title:e,paddingTop:t,paddingRight:o,paddingBottom:n,paddingLeft:a},isSelected:r,className:s,setAttributes:l,fallbackFontSize:c,fontSize:p,backgroundColor:g,textColor:d}=this.props,u=i()({"gb-pricing-table-title":!0,[p.class]:p.class,"has-text-color":d.color,"has-background":g.color,[g.class]:g.class,[d.class]:d.class}),b={fontSize:p.size?p.size+"px":void 0,backgroundColor:g.color,color:d.color,paddingTop:t?t+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:n?n+"px":void 0,paddingLeft:a?a+"px":void 0};return[React.createElement(_s,{key:"gb-pricing-table-inner-component-title-"+this.props.clientId},React.createElement(Rs,this.props),React.createElement(Ss,{tagName:"div",itemProp:"name",placeholder:Es("Price Title","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,onChange:e=>l({title:e}),style:b,className:u||void 0}))]}}),{__:Ns}=wp.i18n,{registerBlockType:Ls}=wp.blocks,{Component:Ps}=wp.element,{RichText:Is,getFontSizeClass:Ms,FontSizePicker:Fs,withFontSizes:Os,getColorClassName:Us}=wp.blockEditor;Ls("genesis-blocks/gb-pricing-table-title",{title:Ns("Product Title","genesis-blocks"),description:Ns("Adds a product title component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Ns("pricing table","genesis-blocks"),Ns("title","genesis-blocks"),Ns("shop","genesis-blocks")],attributes:{title:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:As,save(e){const{title:t,fontSize:o,customFontSize:n,backgroundColor:a,textColor:r,customBackgroundColor:s,customTextColor:l,paddingTop:c,paddingRight:p,paddingBottom:g,paddingLeft:d}=e.attributes,u=Ms(o),b=Us("color",r),m=Us("background-color",a),h={fontSize:u?void 0:n,backgroundColor:m?void 0:s,color:b?void 0:l,paddingTop:c?c+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:d?d+"px":void 0},k=i()({"has-background":a||s,"gb-pricing-table-title":!0,[u]:u,[b]:b,[m]:m});return React.createElement(Is.Content,{tagName:"div",itemProp:"name",value:t,style:h,className:k||void 0})}});const{__:Ds}=wp.i18n,{registerBlockType:Ws}=wp.blocks,{compose:js}=wp.compose,{Component:Vs,Fragment:Hs}=wp.element,{RichText:qs,withFontSizes:Gs,withColors:$s}=wp.blockEditor,Ks=js([Gs("fontSize"),$s("backgroundColor",{textColor:"color"})])(class extends Vs{render(){const{attributes:{subtitle:e,paddingTop:t,paddingRight:o,paddingBottom:n,paddingLeft:a},isSelected:r,className:s,setAttributes:l,fallbackFontSize:c,fontSize:p,backgroundColor:g,textColor:d}=this.props,u=i()({"gb-pricing-table-subtitle":!0,[p.class]:p.class,"has-text-color":d.color,"has-background":g.color,[g.class]:g.class,[d.class]:d.class}),b={fontSize:p.size?p.size+"px":void 0,backgroundColor:g.color,color:d.color,paddingTop:t?t+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:n?n+"px":void 0,paddingLeft:a?a+"px":void 0};return[React.createElement(Hs,{key:"gb-pricing-table-inner-component-subtitle-"+this.props.clientId},React.createElement(Rs,this.props),React.createElement(qs,{tagName:"div",placeholder:Ds("Price Subtitle","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e,onChange:e=>l({subtitle:e}),style:b,className:u||void 0}))]}}),{__:Ys}=wp.i18n,{registerBlockType:Qs}=wp.blocks,{Component:Xs}=wp.element,{RichText:Zs,getFontSizeClass:Js,FontSizePicker:el,withFontSizes:tl,getColorClassName:ol}=wp.blockEditor;Qs("genesis-blocks/gb-pricing-table-subtitle",{title:Ys("Product Subtitle","genesis-blocks"),description:Ys("Adds a product subtitle component with schema markup.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Ys("pricing table","genesis-blocks"),Ys("subtitle","genesis-blocks"),Ys("shop","genesis-blocks")],attributes:{subtitle:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Ks,save(e){const{subtitle:t,fontSize:o,customFontSize:n,backgroundColor:a,textColor:r,customBackgroundColor:s,customTextColor:l,paddingTop:c,paddingRight:p,paddingBottom:g,paddingLeft:d}=e.attributes,u=Js(o),b=ol("color",r),m=ol("background-color",a),h=i()({"has-background":a||s,"gb-pricing-table-subtitle":!0,[u]:u,[b]:b,[m]:m}),k={fontSize:u?void 0:n,backgroundColor:m?void 0:s,color:b?void 0:l,paddingTop:c?c+"px":void 0,paddingRight:p?p+"px":void 0,paddingBottom:g?g+"px":void 0,paddingLeft:d?d+"px":void 0};return React.createElement(Zs.Content,{tagName:"div",value:t,className:h||void 0,style:k})}});const{__:nl}=wp.i18n,{Component:al}=wp.element,{compose:il}=wp.compose,{InspectorControls:rl,FontSizePicker:sl,withFontSizes:ll,withColors:cl,ContrastChecker:pl,PanelColorSettings:gl}=wp.blockEditor,{withFallbackStyles:dl,PanelBody:ul,ToggleControl:bl,TextControl:ml,RangeControl:hl}=wp.components,kl=il([dl(((e,t)=>{const{backgroundColor:o}=t.attributes,n=e.querySelector('[contenteditable="true"]'),a=n?getComputedStyle(n):null;return{fallbackBackgroundColor:o||!a?void 0:a.backgroundColor}})),ll("fontSize"),cl("backgroundColor")])(class extends al{render(){const{attributes:{paddingTop:e,paddingRight:t,paddingBottom:o,paddingLeft:n,buttonText:a,buttonUrl:i,buttonAlignment:r,buttonBackgroundColor:s,buttonTextColor:l,buttonSize:c,buttonShape:p,buttonTarget:g},isSelected:d,setAttributes:u,backgroundColor:b,setBackgroundColor:m,fallbackBackgroundColor:h}=this.props;return React.createElement(rl,{key:"inspector"},React.createElement(ul,{title:nl("Button Settings","genesis-blocks")},React.createElement(mt,{buttonTarget:g,onChangeButtonTarget:e=>u({buttonTarget:!g}),buttonSize:c,onChangeButtonSize:e=>u({buttonSize:e}),buttonShape:p,onChangeButtonShape:e=>u({buttonShape:e}),buttonBackgroundColor:s,onChangeButtonColor:e=>u({buttonBackgroundColor:e}),buttonTextColor:l,onChangeButtonTextColor:e=>u({buttonTextColor:e})})),React.createElement(ul,{title:nl("Padding Settings","genesis-blocks"),initialOpen:!1},React.createElement(Hi,{paddingEnableTop:!0,paddingTop:e,paddingTopMin:"0",paddingTopMax:"100",onChangePaddingTop:e=>u({paddingTop:e}),paddingEnableRight:!0,paddingRight:t,paddingRightMin:"0",paddingRightMax:"100",onChangePaddingRight:e=>u({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:o,paddingBottomMin:"0",paddingBottomMax:"100",onChangePaddingBottom:e=>u({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:n,paddingLeftMin:"0",paddingLeftMax:"100",onChangePaddingLeft:e=>u({paddingLeft:e})})),React.createElement(gl,{title:nl("Color Settings","genesis-blocks"),initialOpen:!1,colorSettings:[{value:b.color,onChange:m,label:nl("Background Color","genesis-blocks")}]}))}}),{__:fl}=wp.i18n,{registerBlockType:yl}=wp.blocks,{compose:vl}=wp.compose,{Component:Cl,Fragment:Rl}=wp.element,{RichText:El,withFontSizes:wl,withColors:xl,InnerBlocks:Tl,URLInput:_l}=wp.blockEditor,{Button:Sl,Dashicon:Bl,Icon:zl}=wp.components,Al=vl([wl("fontSize"),xl("backgroundColor",{textColor:"color"})])(class extends Cl{render(){const{attributes:{subtitle:e,paddingTop:t,paddingRight:o,paddingBottom:n,paddingLeft:a,buttonText:r,buttonUrl:s,buttonAlignment:l,buttonBackgroundColor:c,buttonTextColor:p,buttonSize:g,buttonShape:d,buttonTarget:u},isSelected:b,className:m,setAttributes:h,backgroundColor:k}=this.props,f=i()({"gb-pricing-table-button":!0}),y={backgroundColor:k.color,paddingTop:t?t+"px":void 0,paddingRight:o?o+"px":void 0,paddingBottom:n?n+"px":void 0,paddingLeft:a?a+"px":void 0};return[React.createElement(Rl,{key:"gb-pricing-table-inner-component-button-"+this.props.clientId},React.createElement(kl,this.props),React.createElement("div",{className:f||void 0,style:y},React.createElement(Rt,this.props,React.createElement(El,{tagName:"span",placeholder:fl("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:r,allowedFormats:[],className:i()("gb-button",d,g),style:{color:p,backgroundColor:c},onChange:e=>h({buttonText:e})})),b&&React.createElement("form",{key:"form-link",className:`blocks-button__inline-link gb-button-${l}`,onSubmit:e=>e.preventDefault(),style:{textAlign:l}},React.createElement(Bl,{icon:"admin-links"}),React.createElement(_l,{className:"button-url",value:s,onChange:e=>h({buttonUrl:e})}),React.createElement(Sl,{label:fl("Apply","genesis-blocks"),type:"submit"},React.createElement(zl,{icon:"editor-break"})))))]}}),{__:Nl}=wp.i18n,{registerBlockType:Ll}=wp.blocks,{Component:Pl}=wp.element,{RichText:Il,getFontSizeClass:Ml,FontSizePicker:Fl,withFontSizes:Ol,getColorClassName:Ul}=wp.blockEditor;Ll("genesis-blocks/gb-pricing-table-button",{title:Nl("Product Button","genesis-blocks"),description:Nl("Adds a product button component.","genesis-blocks"),icon:"cart",category:"genesis-blocks",parent:["genesis-blocks/gb-pricing-table"],keywords:[Nl("pricing table","genesis-blocks"),Nl("subtitle","genesis-blocks"),Nl("shop","genesis-blocks")],attributes:{buttonText:{type:"string"},buttonUrl:{type:"string",source:"attribute",selector:"a",attribute:"href"},buttonAlignment:{type:"string"},buttonBackgroundColor:{type:"string",default:"#3373dc"},buttonTextColor:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"gb-button-size-medium"},buttonShape:{type:"string",default:"gb-button-shape-rounded"},buttonTarget:{type:"boolean",default:!1},fontSize:{type:"string"},customFontSize:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},paddingTop:{type:"number",default:10},paddingRight:{type:"number",default:20},paddingBottom:{type:"number",default:10},paddingLeft:{type:"number",default:20}},edit:Al,save(e){const{backgroundColor:t,customBackgroundColor:o,paddingTop:n,paddingRight:a,paddingBottom:r,paddingLeft:s,buttonText:l,buttonUrl:c,buttonAlignment:p,buttonBackgroundColor:g,buttonTextColor:d,buttonSize:u,buttonShape:b,buttonTarget:m}=e.attributes,h=Ul("background-color",t),k=i()({"has-background":t||o,"gb-pricing-table-button":!0,[h]:h}),f={backgroundColor:h?void 0:o,paddingTop:n?n+"px":void 0,paddingRight:a?a+"px":void 0,paddingBottom:r?r+"px":void 0,paddingLeft:s?s+"px":void 0};return React.createElement("div",{className:k||void 0,style:f},React.createElement(Rt,e,l&&React.createElement("a",{href:c,target:m?"_blank":null,rel:m?"noopener noreferrer":null,className:i()("gb-button",b,u),style:{color:d,backgroundColor:g}},React.createElement(Il.Content,{value:l}))))}});const{__:Dl}=wp.i18n,{Fragment:Wl}=wp.element,{RangeControl:jl}=wp.components;function Vl(e){const{marginTop:t,marginTopLabel:o,marginTopMin:n,marginTopMax:a,marginEnableTop:i,onChangeMarginTop:r=(()=>{}),marginRight:s,marginRightLabel:l,marginRightMin:c,marginRightMax:p,marginEnableRight:g,onChangeMarginRight:d=(()=>{}),marginBottom:u,marginBottomLabel:b,marginBottomMin:m,marginBottomMax:h,marginEnableBottom:k,onChangeMarginBottom:f=(()=>{}),marginLeft:y,marginLeftLabel:v,marginLeftMin:C,marginLeftMax:R,marginEnableLeft:E,onChangeMarginLeft:w=(()=>{}),marginVertical:x,marginVerticalLabel:T,marginEnableVertical:_,marginVerticalMin:S,marginVerticalMax:B,onChangeMarginVertical:z=(()=>{}),marginHorizontal:A,marginHorizontalLabel:N,marginEnableHorizontal:L,marginHorizontalMin:P,marginHorizontalMax:I,onChangeMarginHorizontal:M=(()=>{})}=e;return React.createElement(Wl,null,i&&React.createElement(jl,{label:o||Dl("Margin Top","genesis-blocks"),value:t,min:n,max:a,onChange:r}),g&&React.createElement(jl,{label:l||Dl("Margin Right","genesis-blocks"),value:s,min:c,max:p,onChange:d}),k&&React.createElement(jl,{label:b||Dl("Margin Bottom","genesis-blocks"),value:u,min:m,max:h,onChange:f}),E&&React.createElement(jl,{label:v||Dl("Margin Left","genesis-blocks"),value:y,min:C,max:R,onChange:w}),_&&React.createElement(jl,{label:T||Dl("Margin Vertical","genesis-blocks"),value:x,min:S,max:B,onChange:z}),L&&React.createElement(jl,{label:N||Dl("Margin Horizontal","genesis-blocks"),value:A,min:P,max:I,onChange:M}))}const{__:Hl}=wp.i18n,{Component:ql}=wp.element,{compose:Gl}=wp.compose,{InspectorControls:$l,withColors:Kl,ContrastChecker:Yl,PanelColorSettings:Ql}=wp.blockEditor,{PanelBody:Xl,SelectControl:Zl,TextControl:Jl,FormToggle:ec,withFallbackStyles:tc}=wp.components,oc=Gl([tc(((e,t)=>{const{backgroundColor:o,textColor:n,buttonBackgroundColor:a,buttonTextColor:i}=t.attributes,r=e.querySelector('[contenteditable="true"]'),s=r?getComputedStyle(r):null;return{fallbackBackgroundColor:o||!s?void 0:s.backgroundColor,fallbackTextColor:n||!s?void 0:s.color,fallbackButtonBackgroundColor:a||!s?void 0:s.buttonBackgroundColor,fallbackButtonTextColor:i||!s?void 0:s.buttonTextColor}})),Kl("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(class extends ql{doubleOptInChange(e){this.props.doubleOptIn&&this.props.doubleOptIn(e.target.checked)}render(){const{attributes:e,setAttributes:t,backgroundColor:o,setBackgroundColor:n,fallbackBackgroundColor:a,textColor:i,fallbackTextColor:r,setTextColor:s,buttonBackgroundColor:c,fallbackButtonBackgroundColor:p,buttonTextColor:g,fallbackButtonTextColor:d,setButtonBackgroundColor:u,setButtonTextColor:b}=this.props,m={mailchimp:{label:"Mailchimp",value:"mailchimp",lists:[{label:Hl("Select a list","genesis-blocks"),value:""}]}};return genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.lists.map((e=>m.mailchimp.lists.push({label:e.name,value:e.id}))),React.createElement($l,null,React.createElement(Xl,{title:Hl("Newsletter","genesis-blocks"),initialOpen:!e.mailingList},React.createElement(l,{id:"gb_newsletter_mailingList"},React.createElement(Zl,{label:Hl("Mailing List","genesis-blocks"),help:Hl("The list people will be subscribed to.","genesis-blocks"),options:m.mailchimp.lists,value:e.mailingList,onChange:e=>t({mailingList:e})})),React.createElement(l,{id:"gb_newsletter_successMessage"},React.createElement(Jl,{type:"string",label:Hl("Success Message","genesis-blocks"),help:Hl("The message shown when people successfully subscribe.","genesis-blocks"),value:e.successMessage,onChange:e=>t({successMessage:e})})),React.createElement(l,{id:"gb_newsletter_doubleOptIn"},React.createElement("div",{className:"gb-newsletter-double-opt-in-setting-wrapper"},React.createElement(ec,{id:"double-opt-in-toggle-"+this.props.instanceId,className:"gb-newsletter-double-opt-in-toggle",checked:e.doubleOptIn,onChange:e=>t({doubleOptIn:e.target.checked})}),React.createElement("label",{className:"gb-newsletter-double-opt-in-setting-label",htmlFor:"double-opt-in-toggle-"+this.props.instanceId},Hl("Enable Double Opt-In","genesis-blocks")),React.createElement("p",{className:"description"},Hl("Send contacts an opt-in confirmation email when they subscribe to your list.","genesis-blocks"))))),React.createElement(Xl,{title:Hl("General","genesis-blocks"),initialOpen:!!e.mailingList},React.createElement(l,{id:"gb_newsletter_containerPadding"},React.createElement(Hi,{paddingEnable:!0,paddingTitle:Hl("Block Padding","genesis-blocks"),paddingHelp:Hl("Adjust the padding applied to the inside of the block.","genesis-blocks"),padding:e.containerPadding,paddingMin:"0",paddingMax:"100",onChangePadding:e=>t({containerPadding:e})})),React.createElement(l,{id:"gb_newsletter_containerMargin"},React.createElement(Vl,{marginEnableTop:!0,marginTopLabel:Hl("Block Margin Top","genesis-blocks"),marginTop:e.containerMarginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:e=>t({containerMarginTop:e}),marginEnableBottom:!0,marginBottomLabel:Hl("Block Margin Bottom","genesis-blocks"),marginBottom:e.containerMarginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:e=>t({containerMarginBottom:e})})),React.createElement(mt,{enableButtonTarget:!1,buttonSize:e.buttonSize,onChangeButtonSize:e=>t({buttonSize:e}),buttonShape:e.buttonShape,onChangeButtonShape:e=>t({buttonShape:e}),enableButtonBackgroundColor:!1,enableButtonTextColor:!1})),React.createElement(l,{id:"gb_newsletter_colorOptions"},React.createElement(Ql,{title:Hl("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o.color,onChange:n,label:Hl("Block Background Color","genesis-blocks")},{value:i.color,onChange:s,label:Hl("Block Text Color","genesis-blocks")},{value:c.color,onChange:u,label:Hl("Button Background Color","genesis-blocks")},{value:g.color,onChange:b,label:Hl("Button Text Color","genesis-blocks")}]},React.createElement(Yl,{textColor:i.color,backgroundColor:o.color,fallbackTextColor:r,fallbackBackgroundColor:a}),React.createElement(Yl,{textColor:g.color,backgroundColor:c.color,fallbackButtonTextColor:d,fallbackButtonBackgroundColor:p}),React.createElement(Yl,{textColor:c.color,backgroundColor:o.color,fallbackButtonBackgroundColor:p,fallbackBackgroundColor:a}))))}}),{Component:nc}=wp.element,{getColorClassName:ac}=wp.blockEditor;class ic extends nc{render(){const{attributes:e,backgroundColor:t,textColor:o}=this.props;let n,a;return n=e.customBackgroundColor?"gb-has-custom-background-color":e.backgroundColor?"has-"+e.backgroundColor+"-background-color":null,a=e.customTextColor?"gb-has-custom-text-color":e.textColor?"has-"+e.textColor+"-color":null,React.createElement("div",{style:{backgroundColor:t.color,padding:e.containerPadding?e.containerPadding:void 0,marginTop:e.containerMarginTop?e.containerMarginTop:void 0,marginBottom:e.containerMarginBottom?e.containerMarginBottom:void 0,color:o.color},className:i()([this.props.className],{"gb-block-newsletter":!0,"gb-form-styles":!0,"has-background":e.backgroundColor||e.customBackgroundColor,[n]:n,[a]:a})},this.props.children)}}const{__:rc}=wp.i18n,{compose:sc,withInstanceId:lc}=wp.compose,{getColorClassName:cc,RichText:pc,withColors:gc}=wp.blockEditor,{Fragment:dc,Component:uc}=wp.element,{TextControl:bc,withFallbackStyles:mc}=wp.components,hc=sc([mc(((e,t)=>{const{backgroundColor:o,textColor:n,buttonBackgroundColor:a}=t.attributes,i=e.querySelector('[contenteditable="true"]'),r=i?getComputedStyle(i):null;return{fallbackBackgroundColor:o||!r?void 0:r.backgroundColor,fallbackTextColor:n||!r?void 0:r.color,fallbackButtonBackgroundColor:a||!r?void 0:r.buttonBackgroundColor}})),gc("backgroundColor",{textColor:"color"},{buttonBackgroundColor:"background-color"},{buttonTextColor:"color"})])(lc(class extends uc{constructor(){super(...arguments),this.props.setAttributes({instanceId:this.props.instanceId})}render(){const{attributes:e,isSelected:t,setAttributes:o,buttonBackgroundColor:a,buttonTextColor:r}=this.props,s=genesis_blocks_newsletter_block_vars.mailingListProviders.mailchimp.api_key_defined;let l,c;return l=e.customButtonBackgroundColor?"gb-has-custom-background-color":e.buttonBackgroundColor?`has-${e.buttonBackgroundColor}-background-color`:null,c=e.customButtonTextColor?"gb-has-custom-text-color":e.buttonTextColor?"has-"+e.buttonTextColor+"-color":null,[React.createElement(oc,n({key:"gb-newsletter-inspector-"+this.props.clientId,setAttributes:o},this.props)),React.createElement(ic,n({key:"gb-newsletter-container-"+this.props.clientId},this.props),!s&&React.createElement(dc,null,React.createElement("div",{className:"gb-newsletter-notice"},rc("You must define your newsletter provider API keys to use this block.","genesis-blocks"),React.createElement("p",null,React.createElement("a",{href:genesis_blocks_newsletter_block_vars.plugin_settings_page_url,target:"_blank",rel:"noopener noreferrer"},rc("Configure your settings","genesis-blocks"))))),s&&React.createElement(dc,null,React.createElement(pc,{tagName:"span",className:"gb-block-newsletter-label",keepPlaceholderOnFocus:!0,allowedFormats:[],value:e.emailInputLabel,onChange:e=>this.props.setAttributes({emailInputLabel:e})}),React.createElement(bc,{name:"gb-newsletter-email-address"}),React.createElement("div",{className:i()("gb-block-button")},React.createElement(Rt,this.props,React.createElement(pc,{tagName:"span",placeholder:rc("Button text…","genesis-blocks"),keepPlaceholderOnFocus:!0,value:e.buttonText,allowedFormats:[],className:i()("gb-button",e.buttonClass,e.buttonShape,e.buttonSize,l,c,{"has-background":e.buttonBackgroundColor||e.customButtonBackgroundColor,"has-text-color":e.buttonTextColor||e.customButtonTextColor}),style:{backgroundColor:a.color,color:r.color},onChange:e=>this.props.setAttributes({buttonText:e})})),t&&React.createElement("form",{key:"form-link",className:`blocks-button__inline-link gb-button-${e.buttonAlignment}`,onSubmit:e=>e.preventDefault(),style:{textAlign:e.buttonAlignment}}))))]}})),{__:kc}=wp.i18n,{registerBlockType:fc}=wp.blocks;fc("genesis-blocks/gb-newsletter",{title:kc("Email newsletter","genesis-blocks"),description:kc("Add an email newsletter sign-up form.","genesis-blocks"),category:"genesis-blocks",icon:"email-alt",keywords:[kc("Mailchimp","genesis-blocks"),kc("Subscribe","genesis-blocks"),kc("Newsletter","genesis-blocks")],edit:hc,gb_settings_data:{gb_newsletter_mailingList:{title:kc("Mailing List","genesis-blocks")},gb_newsletter_successMessage:{title:kc("Success Message","genesis-blocks")},gb_newsletter_doubleOptIn:{title:kc("Enable Double Opt-In","genesis-blocks")},gb_newsletter_containerPadding:{title:kc("Form Padding","genesis-blocks")},gb_newsletter_containerMargin:{title:kc("Form Margin","genesis-blocks")},gb_newsletter_colorOptions:{title:kc("Color Options","genesis-blocks")}},save:()=>null});const yc=function(e){return[void 0!==e.backgroundDimRatio&&100!==e.backgroundDimRatio?"gb-has-background-dim":null,(t=e.backgroundDimRatio,100>t?"gb-has-background-dim-"+10*Math.round(t/10):null),e.backgroundImgURL&&e.backgroundSize&&"no-repeat"===e.backgroundRepeat?"gb-background-"+e.backgroundSize:null,e.backgroundImgURL&&e.backgroundRepeat?"gb-background-"+e.backgroundRepeat:null,e.hasParallax?"gb-has-parallax":null];var t},vc=e=>({backgroundImage:e.backgroundImgURL?`url(${e.backgroundImgURL})`:void 0,backgroundPosition:e.focalPoint?`${100*e.focalPoint.x}% ${100*e.focalPoint.y}%`:void 0}),{Component:Cc}=wp.element;class Rc extends Cc{render(){const{attributes:e}=this.props;let t,o;t=e.customBackgroundColor?"gb-has-custom-background-color":e.backgroundColor?"has-"+e.backgroundColor+"-background-color":null,o=e.customTextColor?"gb-has-custom-text-color":e.textColor?"has-"+e.textColor+"-color":null;const n=i()([this.props.className,"gb-layout-columns-"+e.columns,e.layout,...yc(e),t,o,e.columnMaxWidth&&e.centerColumns?"gb-columns-center":null],{["align"+e.align]:e.align});let a,r;a=e.marginSync?{marginTop:0<e.margin?e.margin+e.marginUnit:null,marginBottom:0<e.margin?e.margin+e.marginUnit:null}:{marginTop:0<e.marginTop?e.marginTop+e.marginUnit:null,marginBottom:0<e.marginBottom?e.marginBottom+e.marginUnit:null},r=e.paddingSync?{padding:0<e.padding?e.padding+e.paddingUnit:null}:{paddingTop:0<e.paddingTop?e.paddingTop+e.paddingUnit:null,paddingRight:0<e.paddingRight?e.paddingRight+e.paddingUnit:null,paddingBottom:0<e.paddingBottom?e.paddingBottom+e.paddingUnit:null,paddingLeft:0<e.paddingLeft?e.paddingLeft+e.paddingUnit:null};const s={backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,...vc(e)};return React.createElement("div",{className:n||void 0,style:Object.assign(a,r,s)},this.props.children)}}const Ec={};Ec.oneEqual=React.createElement("svg",{className:"dashicon",height:"26",viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"60",height:"30",fill:"#6d6a6f"})),Ec.twoEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"33",y:"0",width:"29",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"29",height:"30",fill:"#6d6a6f"})),Ec.twoLeftWide=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"43",y:"0",width:"16",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"39",height:"30",fill:"#6d6a6f"})),Ec.twoRightWide=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"20",y:"0",width:"39",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"0",y:"0",width:"16",height:"30",fill:"#6d6a6f"})),Ec.threeEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"21.500",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"43",y:"0",width:"17.500",height:"30",fill:"#6d6a6f"})),Ec.threeWideCenter=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"31",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"50",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),Ec.threeWideLeft=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"30",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"34",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49",y:"0",width:"11",height:"30",fill:"#6d6a6f"})),Ec.threeWideRight=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"15",y:"0",width:"11",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30",y:"0",width:"30",height:"30",fill:"#6d6a6f"})),Ec.fourEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"16",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"32",y:"0",width:"12",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"48",y:"0",width:"12",height:"30",fill:"#6d6a6f"})),Ec.fourLeft=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"21",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),Ec.fourRight=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"25.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"38.400",y:"0",width:"21",height:"30",fill:"#6d6a6f"})),Ec.fiveEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"12.400",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"24.800",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"37.200",y:"0",width:"9",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"49.600",y:"0",width:"9",height:"30",fill:"#6d6a6f"})),Ec.sixEqual=React.createElement("svg",{viewBox:"0 0 60 30",height:"26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"0",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"10.330",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"20.660",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"30.990",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"41.320",y:"0",width:"7",height:"30",fill:"#6d6a6f"}),React.createElement("rect",{x:"51.650",y:"0",width:"7",height:"30",fill:"#6d6a6f"})),Ec.blockIcon=React.createElement("svg",{viewBox:"0 0 60 34",height:"34",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},React.createElement("rect",{x:"38",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"22",y:"0",width:"12",height:"34",fill:"#6d6a6f"}),React.createElement("rect",{x:"6",y:"0",width:"12",height:"34",fill:"#6d6a6f"}));const wc=Ec,{__:xc}=wp.i18n,Tc={1:[{name:xc("1 Column","genesis-blocks"),key:"gb-1-col-equal",col:1,icon:wc.oneEqual}],2:[{name:xc("2 Columns - 50/50","genesis-blocks"),key:"gb-2-col-equal",col:2,icon:wc.twoEqual},{name:xc("2 Columns - 75/25","genesis-blocks"),key:"gb-2-col-wideleft",col:2,icon:wc.twoLeftWide},{name:xc("2 Columns - 25/75","genesis-blocks"),key:"gb-2-col-wideright",col:2,icon:wc.twoRightWide}],3:[{name:xc("3 Columns - 33/33/33","genesis-blocks"),key:"gb-3-col-equal",col:3,icon:wc.threeEqual},{name:xc("3 Columns - 25/50/25","genesis-blocks"),key:"gb-3-col-widecenter",col:3,icon:wc.threeWideCenter},{name:xc("3 Columns - 50/25/25","genesis-blocks"),key:"gb-3-col-wideleft",col:3,icon:wc.threeWideLeft},{name:xc("3 Columns - 25/25/50","genesis-blocks"),key:"gb-3-col-wideright",col:3,icon:wc.threeWideRight}],4:[{name:xc("4 Columns - 25/25/25/25","genesis-blocks"),key:"gb-4-col-equal",col:4,icon:wc.fourEqual},{name:xc("4 Columns - 40/20/20/20","genesis-blocks"),key:"gb-4-col-wideleft",col:4,icon:wc.fourLeft},{name:xc("4 Columns - 20/20/20/40","genesis-blocks"),key:"gb-4-col-wideright",col:4,icon:wc.fourRight}],5:[{name:xc("5 Columns","genesis-blocks"),key:"gb-5-col-equal",col:5,icon:wc.fiveEqual}],6:[{name:xc("6 Columns","genesis-blocks"),key:"gb-6-col-equal",col:6,icon:wc.sixEqual}]},{__:_c}=wp.i18n,{Fragment:Sc,Component:Bc}=wp.element,{PanelBody:zc,RangeControl:Ac,Button:Nc,ButtonGroup:Lc,FocalPointPicker:Pc,Icon:Ic,ToggleControl:Mc,SelectControl:Fc}=wp.components,{MediaUpload:Oc,MediaUploadCheck:Uc}=wp.blockEditor,Dc=class extends Bc{render(){const{attributes:e,setAttributes:t}=this.props,o=[{value:"no-repeat",label:_c("No Repeat","genesis-blocks")},{value:"repeat",label:_c("Repeat","genesis-blocks")},{value:"repeat-x",label:_c("Repeat Horizontally","genesis-blocks")},{value:"repeat-y",label:_c("Repeat Vertically","genesis-blocks")}],n=[{value:"auto",label:_c("Auto","genesis-blocks")},{value:"cover",label:_c("Cover","genesis-blocks")},{value:"contain",label:_c("Contain","genesis-blocks")}];let a;return"cover"===e.backgroundSize&&(a=_c("Scales the image as large as possible without stretching the image. Cropped either vertically or horizontally so that no empty space remains.","genesis-blocks")),"contain"===e.backgroundSize&&(a=_c("Scales the image as large as possible without cropping or stretching the image.","genesis-blocks")),"auto"===e.backgroundSize&&(a=_c("Scales the background image in the corresponding direction such that its intrinsic proportions are maintained.","genesis-blocks")),React.createElement(Sc,null,React.createElement(zc,{title:_c("Background Image","genesis-blocks"),initialOpen:!1},React.createElement(Uc,null,React.createElement(Oc,{onSelect:e=>{t({backgroundImgURL:e.url})},type:"image",value:e.backgroundImgURL,render:o=>{let{open:n}=o;return React.createElement("div",null,React.createElement(Lc,{className:"gb-background-button-group"},React.createElement(Nc,{className:"gb-inspector-icon-button gb-background-add-button is-button is-default",label:_c("Edit image","genesis-blocks"),onClick:n},React.createElement(Ic,{icon:"format-image"}),_c("Select Image","genesis-blocks")),e.backgroundImgURL&&React.createElement(Nc,{className:"gb-inspector-icon-button gb-background-remove-button is-button is-default",label:_c("Remove Image","genesis-blocks"),onClick:()=>t({backgroundImgURL:null})},React.createElement(Ic,{icon:"dismiss"}),_c("Remove","genesis-blocks"))))}})),e.backgroundImgURL&&React.createElement(Sc,null,React.createElement(Pc,{label:_c("Focal Point","genesis-blocks"),url:e.backgroundImgURL,value:e.focalPoint,onChange:e=>t({focalPoint:e})}),React.createElement(Ac,{label:_c("Image Opacity","genesis-blocks"),value:e.backgroundDimRatio,onChange:e=>this.props.setAttributes({backgroundDimRatio:e}),min:0,max:100,step:10}),React.createElement(Mc,{label:_c("Fixed Background","genesis-blocks"),checked:e.hasParallax,onChange:()=>{t({hasParallax:!e.hasParallax,...e.hasParallax?{}:{focalPoint:void 0}})}}),React.createElement(Fc,{className:"gb-inspector-help-text",label:_c("Image Display","genesis-blocks"),value:e.backgroundSize,help:a,options:n,onChange:e=>this.props.setAttributes({backgroundSize:e})}),"cover"!==e.backgroundSize&&React.createElement(Fc,{label:_c("Image Repeat","genesis-blocks"),value:e.backgroundRepeat,options:o,onChange:e=>this.props.setAttributes({backgroundRepeat:e})}))))}},{__:Wc}=wp.i18n,{Component:jc,Fragment:Vc}=wp.element,{InspectorControls:Hc,PanelColorSettings:qc,ContrastChecker:Gc}=wp.blockEditor,{PanelBody:$c,RangeControl:Kc,ButtonGroup:Yc,Button:Qc,Tooltip:Xc,ToggleControl:Zc,SelectControl:Jc}=wp.components;class ep extends jc{render(){const{attributes:e,setAttributes:t,backgroundColor:o,setBackgroundColor:n,textColor:a,setTextColor:i}=this.props;let r=1;e.columns&&(r=parseInt(e.columns.toString().split("-")));const s=[{value:"px",label:Wc("Pixel (px)","genesis-blocks")},{value:"%",label:Wc("Percent (%)","genesis-blocks")},{value:"em",label:Wc("Em (em)","genesis-blocks")}];return React.createElement(Hc,{key:"inspector"},e.layout&&React.createElement($c,{title:Wc("General","genesis-blocks"),initialOpen:!0,className:"gb-column-select-panel"},React.createElement(l,{id:"gb_column_columns"},React.createElement(Kc,{label:Wc("Column Count","genesis-blocks"),help:Wc("Note: Changing the column count after you've added content to the column can cause loss of content.","genesis-blocks"),value:e.columns,onChange:e=>this.props.setAttributes({columns:e,layout:"gb-"+e+"-col-equal"}),min:1,max:6,step:1})),React.createElement("hr",null),(2===e.columns||3===e.columns||4===e.columns)&&React.createElement(Vc,null,React.createElement(l,{id:"gb_column_columnLayouts"},React.createElement("p",null,Wc("Column Layout","genesis-blocks")),React.createElement(Yc,{"aria-label":Wc("Column Layout","genesis-blocks")},Zn()(Tc[r],(e=>{let{name:o,key:n,icon:a}=e;return React.createElement(Xc,{text:o,key:n},React.createElement(Qc,{key:n,className:"gb-column-selector-button",isSmall:!0,onClick:()=>{t({layout:n}),this.setState({selectLayout:!1})}},a))}))),React.createElement("p",null,React.createElement("i",null,Wc("Change the layout of your columns.","genesis-blocks"))),React.createElement("hr",null))),React.createElement(l,{id:"gb_column_columnsGap"},React.createElement(Kc,{label:Wc("Column Gap","genesis-blocks"),help:Wc("Adjust the spacing between columns.","genesis-blocks"),value:e.columnsGap,onChange:e=>this.props.setAttributes({columnsGap:e}),min:0,max:10,step:1})),React.createElement("hr",null),React.createElement(l,{id:"gb_column_columnMaxWidth"},React.createElement(Kc,{label:Wc("Column Inner Max Width (px)"),help:Wc("Adjust the width of the content inside the container wrapper.","genesis-blocks"),value:e.columnMaxWidth,onChange:e=>this.props.setAttributes({columnMaxWidth:e}),min:0,max:2e3,step:1})),0<e.columnMaxWidth&&React.createElement(l,{id:"gb_column_centerColumns"},React.createElement(Zc,{label:Wc("Center Columns In Container","genesis-blocks"),help:Wc("Center the columns in the container when max-width is used.","genesis-blocks"),checked:e.centerColumns,onChange:()=>this.props.setAttributes({centerColumns:!e.centerColumns})})),React.createElement("hr",null),React.createElement(l,{id:"gb_column_responsiveToggle"},React.createElement(Zc,{label:Wc("Responsive Columns","genesis-blocks"),help:Wc("Columns will be adjusted to fit on tablets and mobile devices.","genesis-blocks"),checked:e.responsiveToggle,onChange:()=>this.props.setAttributes({responsiveToggle:!e.responsiveToggle})}))),React.createElement(l,{id:"gb_column_marginPadding"},React.createElement($c,{title:Wc("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(Jc,{label:Wc("Margin Unit","genesis-blocks"),help:Wc("Choose between pixel, percent, or em units.","genesis-blocks"),options:s,value:e.marginUnit,onChange:e=>this.props.setAttributes({marginUnit:e})}),React.createElement(Zc,{label:Wc("Sync Margin","genesis-blocks"),help:Wc("Top and bottom margins will have the same value.","genesis-blocks"),checked:e.marginSync,onChange:()=>this.props.setAttributes({marginSync:!e.marginSync})}),e.marginSync?React.createElement(Vl,{marginEnableVertical:!0,marginVerticalLabel:Wc("Margin Top/Bottom","genesis-blocks"),marginVertical:e.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:e=>t({margin:e})}):React.createElement(Vl,{marginEnableTop:!0,marginTop:e.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:e=>t({marginTop:e}),marginEnableBottom:!0,marginBottom:e.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:e=>t({marginBottom:e})}),React.createElement("hr",null),React.createElement(Jc,{label:Wc("Padding Unit","genesis-blocks"),help:Wc("Choose between pixel, percent, or em units.","genesis-blocks"),options:s,value:e.paddingUnit,onChange:e=>this.props.setAttributes({paddingUnit:e})}),React.createElement(Zc,{label:Wc("Sync Padding","genesis-blocks"),help:Wc("Padding on all sides will have the same value.","genesis-blocks"),checked:e.paddingSync,onChange:()=>this.props.setAttributes({paddingSync:!e.paddingSync})}),e.paddingSync?React.createElement(Hi,{paddingEnable:!0,padding:e.padding,paddingMin:"0",paddingMax:"200",onChangePadding:e=>t({padding:e})}):React.createElement(Hi,{paddingEnableTop:!0,paddingTop:e.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:e=>t({paddingTop:e}),paddingEnableRight:!0,paddingRight:e.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:e=>t({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:e.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:e=>t({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:e.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:e=>t({paddingLeft:e})}))),React.createElement(l,{id:"gb_column_colorSettings"},React.createElement(qc,{title:Wc("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:o.color,onChange:n,label:Wc("Background Color","genesis-blocks")},{value:a.color,onChange:i,label:Wc("Text Color","genesis-blocks")}]},React.createElement(Gc,{textColor:a.color,backgroundColor:o.color}))),React.createElement(l,{id:"gb_column_backgroundImagePanel"},React.createElement(Dc,this.props)))}}const{__:tp}=wp.i18n,{Component:op,Fragment:np}=wp.element,{compose:ap}=wp.compose,{BlockControls:ip,BlockAlignmentToolbar:rp,InnerBlocks:sp,withColors:lp}=wp.blockEditor,{Placeholder:cp,ButtonGroup:pp,Tooltip:gp,Button:dp}=wp.components,up=["genesis-blocks/gb-column"],bp=bi()((e=>hi()(e,(()=>["genesis-blocks/gb-column"])))),mp=ap([lp("backgroundColor",{textColor:"color"})])(class extends op{constructor(){super(...arguments),this.state={selectLayout:!0}}render(){const{attributes:e,setAttributes:t}=this.props;let o=1;e.columns&&(o=parseInt(e.columns.toString().split("-")));const a=[{name:tp("1 Column","genesis-blocks"),key:"one-column",columns:1,icon:wc.oneEqual},{name:tp("2 Columns","genesis-blocks"),key:"two-column",columns:2,icon:wc.twoEqual},{name:tp("3 Columns","genesis-blocks"),key:"three-column",columns:3,icon:wc.threeEqual},{name:tp("4 Columns","genesis-blocks"),key:"four-column",columns:4,icon:wc.fourEqual},{name:tp("5 Columns","genesis-blocks"),key:"five-column",columns:5,icon:wc.fiveEqual},{name:tp("6 Columns","genesis-blocks"),key:"six-column",columns:6,icon:wc.sixEqual}];return!e.layout&&this.state.selectLayout?[React.createElement(cp,{key:"placeholder",icon:"editor-table",label:e.columns?tp("Column Layout","genesis-blocks"):tp("Column Number","genesis-blocks"),instructions:e.columns?tp("Select a layout for this column.","genesis-blocks"):tp("Select the number of columns for this layout.","genesis-blocks"),className:"gb-column-selector-placeholder"},e.columns?React.createElement(np,null,React.createElement(pp,{"aria-label":tp("Select Column Layout","genesis-blocks"),className:"gb-column-selector-group"},Zn()(Tc[o],(e=>{let{name:o,key:n,icon:a}=e;return React.createElement(gp,{text:o,key:n},React.createElement("div",{className:"gb-column-selector"},React.createElement(dp,{key:n,className:i()("gb-column-selector-button",n),isSmall:!0,onClick:()=>{t({layout:n}),this.setState({selectLayout:!1})}},a)))}))),React.createElement(dp,{className:"gb-column-selector-button-back",onClick:()=>{t({columns:null}),this.setState({selectLayout:!0})}},tp("Return to Column Selection","genesis-blocks"))):React.createElement(pp,{"aria-label":tp("Select Row Columns","genesis-blocks"),className:"gb-column-selector-group"},Zn()(a,(e=>{let{name:o,key:n,icon:a,columns:r}=e;return React.createElement(gp,{text:o,key:n},React.createElement("div",{className:"gb-column-selector"},React.createElement(dp,{className:i()("gb-column-selector-button","gb-select-"+n),isSmall:!0,onClick:()=>{t({columns:r,layout:1===r||5===r||6===r?n:null}),1===r&&this.setState({selectLayout:!1})}},a)))}))))]:[React.createElement(ip,{key:"controls"},React.createElement(rp,{value:e.align,onChange:e=>t({align:e}),controls:["center","wide","full"]})),React.createElement(ep,n({},this.props,{key:"inspector"})),React.createElement(Rc,n({},this.props,{backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color,key:"columns"}),React.createElement("div",{className:i()("gb-layout-column-wrap-admin","gb-block-layout-column-gap-"+e.columnsGap,e.responsiveToggle?"gb-is-responsive-column":null),style:{maxWidth:e.columnMaxWidth?e.columnMaxWidth:null}},React.createElement(sp,{template:bp(e.columns),templateLock:"all",allowedBlocks:up})))]}}),{Component:hp}=wp.element,{InnerBlocks:kp}=wp.blockEditor;class fp extends hp{render(){const{attributes:e}=this.props,t=i()(["gb-layout-column-wrap","gb-block-layout-column-gap-"+e.columnsGap,e.responsiveToggle?"gb-is-responsive-column":null]);return React.createElement(Rc,n({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement("div",{className:t||void 0,style:{maxWidth:e.columnMaxWidth?e.columnMaxWidth:null}},React.createElement(kp.Content,null)))}}const yp={backgroundImgURL:{type:"string"},backgroundDimRatio:{type:"number",default:100},backgroundRepeat:{type:"string",default:"no-repeat"},backgroundSize:{type:"string",default:"cover"},hasParallax:{type:"boolean",default:!1},focalPoint:{type:"object"}},{__:vp}=wp.i18n,{registerBlockType:Cp}=wp.blocks;Cp("genesis-blocks/gb-columns",{title:vp("Advanced Columns","genesis-blocks"),description:vp("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",keywords:[vp("column","genesis-blocks"),vp("grid","genesis-blocks"),vp("row","genesis-blocks")],attributes:{...yp,columns:{type:"number"},layout:{type:"string"},columnsGap:{type:"number",default:2},align:{type:"string"},responsiveToggle:{type:"boolean",default:!0},marginSync:{type:"boolean",default:!1},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},marginUnit:{type:"string",default:"px"},paddingSync:{type:"boolean",default:!1},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingUnit:{type:"string",default:"px"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},columnMaxWidth:{type:"number"},centerColumns:{type:"boolean",default:!0}},gb_settings_data:{gb_column_columns:{title:vp("Column Count","genesis-blocks")},gb_column_columnLayouts:{title:vp("Column Layout","genesis-blocks")},gb_column_columnsGap:{title:vp("Column Gap","genesis-blocks")},gb_column_columnMaxWidth:{title:vp("Column Inner Max Width","genesis-blocks")},gb_column_centerColumns:{title:vp("Center Columns In Container","genesis-blocks")},gb_column_responsiveToggle:{title:vp("Responsive Columns","genesis-blocks")},gb_column_marginPadding:{title:vp("Margin / Padding","genesis-blocks")},gb_column_colorSettings:{title:vp("Color Settings","genesis-blocks")},gb_column_backgroundImagePanel:{title:vp("Background Settings","genesis-blocks")}},getEditWrapperProps(e){let{align:t}=e;if("left"===t||"right"===t||"full"===t||"wide"===t)return{"data-align":t}},edit:e=>React.createElement(mp,e),save:e=>React.createElement(fp,e)});const{__:Rp}=wp.i18n,{Component:Ep}=wp.element,{compose:xp}=wp.compose,{InspectorControls:Tp,PanelColorSettings:_p,withColors:Sp,ContrastChecker:Bp}=wp.blockEditor,{PanelBody:zp,ToggleControl:Ap,SelectControl:Np}=wp.components,Lp=xp([Sp("backgroundColor",{textColor:"color"})])(class extends Ep{render(){const{backgroundColor:e,setBackgroundColor:t,textColor:o,setTextColor:n,attributes:a,setAttributes:i}=this.props,r=[{value:"px",label:Rp("Pixel (px)","genesis-blocks")},{value:"%",label:Rp("Percent (%)","genesis-blocks")},{value:"em",label:Rp("Em (em)","genesis-blocks")}];return React.createElement(Tp,{key:"inspector"},React.createElement(l,{id:"gb_column_inner_marginPadding"},React.createElement(zp,{title:Rp("Margin and Padding","genesis-blocks"),initialOpen:!1},React.createElement(Np,{label:Rp("Margin Unit","genesis-blocks"),help:Rp("Choose between pixel, percent, or em units.","genesis-blocks"),options:r,value:a.marginUnit,onChange:e=>this.props.setAttributes({marginUnit:e})}),React.createElement(Ap,{label:Rp("Sync Margin","genesis-blocks"),help:Rp("Top and bottom margins will have the same value.","genesis-blocks"),checked:a.marginSync,onChange:()=>this.props.setAttributes({marginSync:!a.marginSync})}),a.marginSync?React.createElement(Vl,{marginEnableVertical:!0,marginVerticalLabel:Rp("Margin Top/Bottom","genesis-blocks"),marginVertical:a.margin,marginVerticalMin:"0",marginVerticalMax:"200",onChangeMarginVertical:e=>i({margin:e})}):React.createElement(Vl,{marginEnableTop:!0,marginTop:a.marginTop,marginTopMin:"0",marginTopMax:"200",onChangeMarginTop:e=>i({marginTop:e}),marginEnableBottom:!0,marginBottom:a.marginBottom,marginBottomMin:"0",marginBottomMax:"200",onChangeMarginBottom:e=>i({marginBottom:e})}),React.createElement("hr",null),React.createElement(Np,{label:Rp("Padding Unit","genesis-blocks"),help:Rp("Choose between pixel, percent, or em units.","genesis-blocks"),options:r,value:a.paddingUnit,onChange:e=>this.props.setAttributes({paddingUnit:e})}),React.createElement(Ap,{label:Rp("Sync Padding","genesis-blocks"),help:Rp("Padding on all sides will have the same value.","genesis-blocks"),checked:a.paddingSync,onChange:()=>this.props.setAttributes({paddingSync:!a.paddingSync})}),a.paddingSync?React.createElement(Hi,{paddingEnable:!0,padding:a.padding,paddingMin:"0",paddingMax:"200",onChangePadding:e=>i({padding:e})}):React.createElement(Hi,{paddingEnableTop:!0,paddingTop:a.paddingTop,paddingTopMin:"0",paddingTopMax:"200",onChangePaddingTop:e=>i({paddingTop:e}),paddingEnableRight:!0,paddingRight:a.paddingRight,paddingRightMin:"0",paddingRightMax:"200",onChangePaddingRight:e=>i({paddingRight:e}),paddingEnableBottom:!0,paddingBottom:a.paddingBottom,paddingBottomMin:"0",paddingBottomMax:"200",onChangePaddingBottom:e=>i({paddingBottom:e}),paddingEnableLeft:!0,paddingLeft:a.paddingLeft,paddingLeftMin:"0",paddingLeftMax:"200",onChangePaddingLeft:e=>i({paddingLeft:e})}))),React.createElement(l,{id:"gb_column_inner_colorSettings"},React.createElement(_p,{title:Rp("Color","genesis-blocks"),initialOpen:!1,colorSettings:[{value:e.color,onChange:t,label:Rp("Background Color","genesis-blocks")},{value:o.color,onChange:n,label:Rp("Text Color","genesis-blocks")}]},React.createElement(Bp,{textColor:o.color,backgroundColor:e.color}))),React.createElement(l,{id:"gb_column_inner_backgroundImagePanel"},React.createElement(Dc,this.props)))}}),{Component:Pp}=wp.element;class Ip extends Pp{render(){const{attributes:e}=this.props;let t,o;t=e.marginSync?{marginTop:0<e.margin?e.margin+e.marginUnit:null,marginBottom:0<e.margin?e.margin+e.marginUnit:null}:{marginTop:0<e.marginTop?e.marginTop+e.marginUnit:null,marginBottom:0<e.marginBottom?e.marginBottom+e.marginUnit:null},o=e.paddingSync?{padding:0<e.padding?e.padding+e.paddingUnit:null}:{paddingTop:0<e.paddingTop?e.paddingTop+e.paddingUnit:null,paddingRight:0<e.paddingRight?e.paddingRight+e.paddingUnit:null,paddingBottom:0<e.paddingBottom?e.paddingBottom+e.paddingUnit:null,paddingLeft:0<e.paddingLeft?e.paddingLeft+e.paddingUnit:null};const n={backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:e.textAlign?e.textAlign:null,...vc(e)};let a,r;return a=e.customBackgroundColor?"gb-has-custom-background-color":e.backgroundColor?"has-"+e.backgroundColor+"-background-color":null,r=e.customTextColor?"gb-has-custom-text-color":e.textColor?"has-"+e.textColor+"-color":null,React.createElement("div",{className:i()(this.props.className,"gb-block-layout-column",e.columnVerticalAlignment?"gb-is-vertically-aligned-"+e.columnVerticalAlignment:null)},React.createElement("div",{className:i()("gb-block-layout-column-inner",a,r,...yc(e)),style:Object.assign(t,o,n)},this.props.children))}}const{__:Mp}=wp.i18n,{compose:Fp}=wp.compose,{Component:Op}=wp.element,{ToolbarGroup:Up}=wp.components,{AlignmentToolbar:Dp,BlockControls:Wp,InnerBlocks:jp,withColors:Vp}=wp.blockEditor,Hp=Fp([Vp("backgroundColor",{textColor:"color"})])(class extends Op{render(){const{attributes:e,setAttributes:t}=this.props,o=[{icon:"arrow-up-alt2",title:Mp("Vertical Align Top","genesis-blocks"),isActive:"top"===e.columnVerticalAlignment,onClick:()=>t({columnVerticalAlignment:"top"})},{icon:"minus",title:Mp("Vertical Align Middle","genesis-blocks"),isActive:"center"===e.columnVerticalAlignment,onClick:()=>t({columnVerticalAlignment:"center"})},{icon:"arrow-down-alt2",title:Mp("Vertical Align Bottom","genesis-blocks"),isActive:"bottom"===e.columnVerticalAlignment,onClick:()=>t({columnVerticalAlignment:"bottom"})}];return[React.createElement(Wp,{key:"controls"},React.createElement(Dp,{value:e.textAlign,onChange:e=>{t({textAlign:e})}}),React.createElement(Up,{controls:o})),React.createElement(Lp,n({},this.props,{key:"inspector"})),React.createElement(Ip,n({backgroundColorValue:this.props.backgroundColor.color,textColorValue:this.props.textColor.color},this.props,{key:"column"}),React.createElement(jp,{template:[["core/paragraph"]],templateLock:!1,templateInsertUpdatesSelection:!1}))]}}),{Component:qp}=wp.element,{InnerBlocks:Gp}=wp.blockEditor;class $p extends qp{render(){const{attributes:e}=this.props;return React.createElement(Ip,n({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(Gp.Content,null))}}const{Component:Kp}=wp.element;class Yp extends Kp{constructor(e){super(...arguments)}render(){const{attributes:e}=this.props;let t,o;t=e.marginSync?{marginTop:0<e.margin?e.margin+e.marginUnit:null,marginBottom:0<e.margin?e.margin+e.marginUnit:null}:{marginTop:0<e.marginTop?e.marginTop+e.marginUnit:null,marginBottom:0<e.marginBottom?e.marginBottom+e.marginUnit:null},o=e.paddingSync?{padding:0<e.padding?e.padding+e.paddingUnit:null}:{paddingTop:0<e.paddingTop?e.paddingTop+e.paddingUnit:null,paddingRight:0<e.paddingRight?e.paddingRight+e.paddingUnit:null,paddingBottom:0<e.paddingBottom?e.paddingBottom+e.paddingUnit:null,paddingLeft:0<e.paddingLeft?e.paddingLeft+e.paddingUnit:null};const n={backgroundColor:this.props.backgroundColorValue?this.props.backgroundColorValue:null,color:this.props.textColorValue?this.props.textColorValue:null,textAlign:e.textAlign?e.textAlign:null};let a,r;return a=e.customBackgroundColor?"gb-has-custom-background-color":e.backgroundColor?"has-"+e.backgroundColor+"-background-color":null,r=e.customTextColor?"gb-has-custom-text-color":e.textColor?"has-"+e.textColor+"-color":null,React.createElement("div",{className:i()("gb-block-layout-column",e.columnVerticalAlignment?"gb-is-vertically-aligned-"+e.columnVerticalAlignment:null)},React.createElement("div",{className:i()("gb-block-layout-column-inner",a,r),style:Object.assign(t,o,n)},this.props.children))}}const{Component:Qp}=wp.element,{InnerBlocks:Xp}=wp.blockEditor;class Zp extends Qp{render(){const{attributes:e}=this.props;return React.createElement(Yp,n({},this.props,{backgroundColorValue:e.backgroundColor?null:e.customBackgroundColor,textColorValue:e.textColor?null:e.customTextColor}),React.createElement(Xp.Content,null))}}const Jp=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}},save:e=>React.createElement(Zp,e)}],{__:eg}=wp.i18n,{registerBlockType:tg}=wp.blocks;tg("genesis-blocks/gb-column",{title:eg("Column","genesis-blocks"),description:eg("Add a pre-defined column layout.","genesis-blocks"),icon:"editor-table",category:"genesis-blocks",parent:["genesis-blocks/gb-columns"],keywords:[eg("column","genesis-blocks"),eg("layout","genesis-blocks"),eg("row","genesis-blocks")],attributes:{...yp,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},textAlign:{type:"string"},marginSync:{type:"boolean",default:!1},marginUnit:{type:"string",default:"px"},margin:{type:"number",default:0},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingSync:{type:"boolean",default:!1},paddingUnit:{type:"string",default:"px"},padding:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingLeft:{type:"number",default:0},columnVerticalAlignment:{type:"string"}},gb_settings_data:{gb_column_inner_marginPadding:{title:eg("Margin and Padding","genesis-blocks")},gb_column_inner_colorSettings:{title:eg("Color","genesis-blocks")},gb_column_inner_backgroundImagePanel:{title:eg("Background Image","genesis-blocks")}},edit:e=>React.createElement(Hp,e),save:e=>React.createElement($p,e),deprecated:Jp});const og=wp.compose.createHigherOrderComponent((e=>t=>"genesis-blocks/gb-column"===t.block.name&&t.block.attributes.columnVerticalAlignment?React.createElement(e,n({},t,{className:"gb-is-vertically-aligned-"+t.block.attributes.columnVerticalAlignment})):React.createElement(e,t)),"withClientIdClassName");wp.hooks.addFilter("editor.BlockListBlock","genesis-blocks/add-vertical-align-class",og);const{__:ng}=wp.i18n,{Component:ag,Fragment:ig}=wp.element,{Button:rg,Dashicon:sg,Tooltip:lg}=wp.components;class cg extends ag{addDefaultSrc(e){e.target.src=genesis_blocks_globals.pattern_fallback_image}render(){return React.createElement(ig,null,React.createElement("div",{key:"gb-layout-design-"+this.props.itemKey,className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(rg,{key:this.props.itemKey,className:"gb-layout-insert-button",isSmall:!0,onClick:()=>{this.props.import(this.props.content,this.props.clientId)}},React.createElement("img",{src:this.props.image?this.props.image:genesis_blocks_globals.pattern_fallback_image,alt:this.props.name,onError:this.addDefaultSrc})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},this.props.name,React.createElement(lg,{text:this.props.context.favoriteKeys.includes(this.props.itemKey)?ng("Remove from Favorites","genesis-blocks"):ng("Add to Favorites","genesis-blocks")},React.createElement(rg,{key:"buttonFavorite",className:"gb-layout-favorite-button",isSmall:!0,onClick:()=>{this.props.context.toggleFavorite(this.props.itemKey)}},React.createElement(sg,{icon:"heart",className:i()("gb-layout-icon-favorite",this.props.context.favoriteKeys.includes(this.props.itemKey)&&"gb-layout-icon-favorite-active")})))))))))}}const{__:pg}=wp.i18n,{addQueryArgs:gg}=wp.url,{Component:dg,Fragment:ug}=wp.element;class bg extends dg{render(){const e=this.props.itemKey.match(/\d+/g)[0];return React.createElement(ug,null,React.createElement("div",{className:"gb-layout-reusable"},React.createElement("div",null,React.createElement("a",{role:"button",key:this.props.itemKey,className:"gb-layout-insert-button",onClick:()=>{this.props.import(this.props.content)}},this.props.name)),React.createElement("div",{className:"gb-layout-reusable-actions"},React.createElement("span",null,React.createElement("a",{href:gg("post.php",{post:e,post_type:"wp_block",action:"edit"}),target:"_blank",rel:"noopener noreferrer"},pg("Edit","genesis-blocks"))))))}}const{rawHandler:mg}=wp.blocks;function hg(e,t){wp.data.dispatch("core/block-editor").replaceBlocks(t,mg({HTML:e,mode:"BLOCKS"}))}const{useState:kg}=wp.element,{Button:fg}=wp.components;function yg(e){return React.createElement(React.Fragment,null,React.createElement("div",{className:"gb-layout-design"},React.createElement("div",{className:"gb-layout-design-inside"},React.createElement("div",{className:"gb-layout-design-item"},React.createElement(fg,{className:"gb-layout-insert-button gb-layout-collection-button",isSmall:!0,onClick:()=>{e.collectionsView.setCurrentView("collection"),e.setCurrentCollection(e.collectionSlug)}},React.createElement("div",{className:"gb-layout-collection-cover"},React.createElement("img",{src:e.context.collections[e.collectionSlug].thumbnail?e.context.collections[e.collectionSlug].thumbnail:genesis_blocks_globals.pattern_fallback_image,alt:e.context.collections[e.collectionSlug].label,onError:e=>{e.target.src=genesis_blocks_globals.pattern_fallback_image}})),React.createElement("div",{className:"gb-layout-design-info"},React.createElement("div",{className:"gb-layout-design-title"},React.createElement("span",{className:"gb-layout-collection-label"},e.context.collections[e.collectionSlug].label))))))))}const{useDispatch:vg,useSelect:Cg}=wp.data,{__:Rg}=wp.i18n,{ButtonGroup:Eg}=wp.components;function wg(e){const{currentCollection:t}=Cg((e=>e("core/block-editor").getSettings())),o=function(e){const[t,o]=kg(e.view);return{currentView:t,setCurrentView:o}}({view:t?"collection":"collections"}),{updateSettings:a}=vg("core/block-editor"),i=e=>a({currentCollection:e});function r(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"layouts";const n=[];for(const a in e.context[o]){const i=e.context[o][a];i.hasOwnProperty("collection")&&t===i.collection.slug&&n.push(React.createElement(cg,{key:i.key,itemKey:i.key,name:i.name,image:i.image,import:hg,content:i.content,context:e.context,clientId:e.clientId}))}return 0===n.length?"":React.createElement(React.Fragment,null,React.createElement("h3",{className:"gb-collection-type-title"},"layouts"===o?Rg("Page Layouts","genesis-blocks"):"sections"===o?Rg("Page Sections","genesis-blocks"):void 0),React.createElement(Eg,{className:"gb-layout-choices","aria-label":Rg("Layout Options in this Collection","genesis-blocks")},n))}return React.createElement("div",{className:"gb-collections"},React.createElement("div",{className:"gb-collections-header"},React.createElement("div",{className:"gb-collections-header-left"},"collection"!==o.currentView?"":React.createElement("div",{className:"gb-collections-view-all-container"},React.createElement("button",{className:"gb-collections-view-all-link",onClick:()=>{o.setCurrentView("collections"),o.setCurrentCollection(null)}},React.createElement("span",{className:"dashicons dashicons-arrow-left-alt"}),Rg("View All Collections ","genesis-blocks"))),"collections"===o.currentView?React.createElement("h2",{className:"gb-collection-title"},Rg("Collections ","genesis-blocks")):"collection"===o.currentView?React.createElement("h2",{className:"gb-collection-title"},Rg("Browsing ","genesis-blocks")+(null===(s=e.context.collections[t])||void 0===s?void 0:s.label)):void 0),React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://developer.wpengine.com/genesis-blocks/layouts-block/#collections",tabIndex:"0",className:"gb-collections-link"},React.createElement("span",{className:"dashicons dashicons-info"}),Rg("Learn about Collections","genesis-blocks"))),React.createElement("div",{className:"gb-collections-body"},function(t){if("collections"!==o.currentView)return"";const a=[];for(const r in t)a.push(React.createElement(yg,n({key:r,collectionSlug:r,collectionsView:o,setCurrentCollection:i},e)));return React.createElement(Eg,{className:"gb-layout-choices","aria-label":Rg("Collections Available","genesis-blocks")},a)}(e.context.collections),"collection"!==o.currentView?"":React.createElement(React.Fragment,null,r("sections"),r("layouts"))));var s}const{compose:xg}=wp.compose,{rawHandler:Tg}=wp.blocks,{withSelect:_g,withDispatch:Sg}=wp.data,{Component:Bg,Fragment:zg}=wp.element,Ag=xg(_g(((e,t)=>{let{clientId:o}=t;const{getBlock:n}=e("core/block-editor");let a;return e("core/editor")?(a=e("core/editor").canUserUseUnfilteredHTML,a=a()):a=!0,{block:n(o),canUserUseUnfilteredHTML:a}})),Sg(((e,t)=>{let{block:o,canUserUseUnfilteredHTML:n}=t;return{import:t=>e("core/block-editor").replaceBlocks(o.clientId,Tg({HTML:t,mode:"BLOCKS",canUserUseUnfilteredHTML:n}))}})))(class extends Bg{layoutTabContent(){let e=[];return e="gb-layout-tab-reusable-blocks"===this.props.currentTab?React.createElement(bg,this.props):"gb-layout-tab-collections"===this.props.currentTab?React.createElement(wg,this.props):React.createElement(cg,this.props),e}render(){return React.createElement(zg,null,this.layoutTabContent())}}),{apiFetch:Ng}=wp,Lg=(0,qt.createContext)({favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""});class Pg extends qt.Component{constructor(){var e,t;super(...arguments),t={favorites:"",favoriteKeys:"",layouts:"",sections:"",all:"",reusableBlocks:"",collections:""},(e="state")in this?Object.defineProperty(this,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[e]=t}getFavoriteKeys(){return Ng({path:"/genesisblocks/v1/layouts/favorites",method:"GET"}).then((e=>e)).catch((e=>console.error(e)))}getFavorites(){return Ng({path:"/genesisblocks/v1/layouts/favorites",method:"GET"}).then((e=>{const t=[];return Object.values(this.state.all).forEach((function(o){e.includes(o.key)&&t.push(o)})),t})).catch((e=>console.error(e)))}addFavorite(e){return Ng({path:"/genesisblocks/v1/layouts/favorites",method:"PATCH",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).catch((e=>console.error(e)))}removeFavorite(e){return Ng({path:"/genesisblocks/v1/layouts/favorites",method:"DELETE",body:JSON.stringify({genesis_blocks_favorite_key:e}),_wpnonce:wpApiSettings.nonce}).catch((e=>console.error(e)))}async componentDidMount(){const e=await this.getFavoriteKeys();wp.apiFetch({method:"GET",path:"/genesisblocks/v1/layouts/all?filter=allowed"}).then((async t=>{const o=[],n=[],a=[],i=[],r=[];Object.values(t).forEach((function(t){"layout"===t.type&&o.push(t),"section"===t.type&&n.push(t),"wp_block"===t.type&&a.push(t),t.hasOwnProperty("collection")&&(r.hasOwnProperty(t.collection.slug)||(r[t.collection.slug]=[],t.collection.image=t.image,r[t.collection.slug]=t.collection)),e.includes(t.key)&&i.push(t)})),this.setState({all:t,layouts:o,sections:n,favorites:i,favoriteKeys:e,reusableBlocks:a,collections:r})}))}render(){return this.state.all?Gt().createElement(Lg.Provider,{value:{favorites:this.state.favorites,favoriteKeys:this.state.favoriteKeys,layouts:this.state.layouts,sections:this.state.sections,all:this.state.all,reusableBlocks:this.state.reusableBlocks,collections:this.state.collections,toggleFavorite:async e=>{let t=await this.getFavoriteKeys();t=t.includes(e)?await this.removeFavorite(e):await this.addFavorite(e);const o=await this.getFavorites();return this.setState({favorites:o,favoriteKeys:t}),o}}},this.props.children):null}}const{__:Ig}=wp.i18n,{addQueryArgs:Mg}=wp.url,{Component:Fg,Fragment:Og}=wp.element,{ButtonGroup:Ug,TextControl:Dg,SelectControl:Wg}=wp.components;class jg extends Fg{constructor(){super(...arguments),this.state={category:"all",search:void 0,activeView:"grid"}}getLayoutArray(){let e=[];switch(this.props.currentTab){case"gb-layout-tab-layouts":e=this.props.context.layouts;break;case"gb-layout-tab-sections":e=this.props.context.sections;break;case"gb-layout-tab-favorites":e=this.props.context.favorites;break;case"gb-layout-tab-reusable-blocks":e=this.props.context.reusableBlocks;break;case"gb-layout-tab-collections":e=this.props.context.collections}return e}render(){const e=this.getLayoutArray(),t=["all"];if("gb-layout-tab-collections"!==this.props.currentTab)for(let o=0;o<e.length;o++)for(let n=0;n<e[o].category.length;n++)t.includes(e[o].category[n])||t.push(e[o].category[n]);const o=t.map((e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}))),a=this.props.data;return"gb-layout-tab-collections"===this.props.currentTab?React.createElement(wg,n({key:this.props.data.key},this.props)):React.createElement(Og,{key:"layout-library-fragment-"+this.props.clientId},"gb-layout-tab-reusable-blocks"!==this.props.currentTab?React.createElement(Og,null,React.createElement("div",{className:"gb-layout-modal-header"},React.createElement(Wg,{key:"layout-library-select-categories-"+this.props.clientId,label:Ig("Layout Categories","genesis-blocks"),value:this.state.category,options:o,onChange:e=>{this.setState({category:e})}}),React.createElement(Dg,{key:"layout-library-search-layouts-"+this.props.clientId,type:"text",value:this.state.search,placeholder:Ig("Search Layouts","genesis-blocks"),onChange:e=>{this.setState({search:e})}}))):React.createElement(Og,null,React.createElement("div",{className:"gb-layout-modal-header gb-layout-modal-header-reusable"},React.createElement("div",null,Ig("Reusable Blocks","genesis-blocks")),React.createElement("div",{className:"gb-layout-modal-header-reusable-actions"},React.createElement("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:Mg("edit.php",{post_type:"wp_block"}),target:"_blank",rel:"noopener noreferrer"},Ig("Manage All Reusable Blocks","genesis-blocks"))))),React.createElement(Lg.Consumer,null,(e=>React.createElement(Ug,{key:"layout-library-context-button-group-"+this.props.clientId,className:i()("gb-layout-choices","current-tab-"+this.props.currentTab,"full"===this.state.activeView?"gb-layout-view-full":null),"aria-label":Ig("Layout Options","genesis-blocks")},Zn()(a,(t=>{let{name:o,key:n,image:a,content:i,category:r,keywords:s,type:l}=t;if(("all"===this.state.category||r.includes(this.state.category))&&(!this.state.search||s&&s.some((e=>e.toLowerCase().includes(this.state.search.toLowerCase())))))return React.createElement(Ag,{key:"layout-library-item-"+n,name:o,type:l,itemKey:n,image:a,content:i,context:e,clientId:this.props.clientId,currentTab:this.props.currentTab})}))))))}}const{__:Vg}=wp.i18n,{Fragment:Hg,useState:qg}=wp.element,{Button:Gg,Dashicon:$g,Modal:Kg,TabPanel:Yg}=wp.components,{useDispatch:Qg}=wp.data,Xg=function(e){const[t,o]=qg("gb-layout-tab-collections"),[n,a]=qg(!0),{removeBlock:i}=Qg("core/block-editor"),r=[];return Object.keys(e.context.collections).length>0&&r.push({name:"gb-layout-tab-collections",title:Vg("Collections","genesis-blocks"),className:"gb-layout-tab-collections"}),e.context.sections.length>0&&r.push({name:"gb-layout-tab-sections",title:Vg("Sections","genesis-blocks"),className:"gb-layout-tab-sections"}),e.context.layouts.length>0&&r.push({name:"gb-layout-tab-layouts",title:Vg("Layouts","genesis-blocks"),className:"gb-layout-tab-layouts"}),r.push({name:"gb-layout-tab-favorites",title:Vg("Favorites","genesis-blocks"),className:"gb-layout-tab-favorites"}),e.context.reusableBlocks.length&&r.push({name:"gb-layout-tab-reusable-blocks",title:Vg("Reusable Blocks","genesis-blocks"),className:"gb-layout-tab-reusable-blocks"}),React.createElement(Hg,{key:"layout-modal-fragment-"+e.clientId},React.createElement(Gg,{key:"layout-modal-library-button-"+e.clientId,isPrimary:!0,className:"gb-layout-modal-button",onClick:()=>{a(!0)}},Vg("Layout Library","genesis-blocks")),n?React.createElement(Kg,{key:"layout-modal-modal-component-"+e.clientId,className:"gb-layout-modal",title:Vg("Layout Selector","genesis-blocks"),onRequestClose:()=>{a(!1),o(null),i(e.clientId)}},genesis_blocks_globals.pro_activated&&React.createElement("div",{className:"gb-layout-modal-footer"},React.createElement($g,{icon:"editor-help"}),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/layouts-block/",target:"_blank",rel:"noopener noreferrer"},Vg("Add Custom Layouts","genesis-blocks")),React.createElement("span",null,"·"),React.createElement("a",{href:"https://developer.wpengine.com/genesis-pro/genesis-page-builder/reusable-blocks/",target:"_blank",rel:"noopener noreferrer"},Vg("Reusable Blocks","genesis-blocks")),React.createElement("a",{href:"https://www.research.net/r/XFQYFPP",target:"_blank",rel:"noopener noreferrer",className:"gb-pro-feedback"},React.createElement($g,{icon:"admin-comments"})," ",Vg("Send Feedback","genesis-blocks"))),React.createElement(Yg,{key:"layout-modal-tabpanel-"+e.clientId,className:"gb-layout-modal-panel",activeClass:"gb-layout-modal-active-tab",onSelect:e=>{o(e)},tabs:r},(o=>{const n=Vg("Default tab content","genesis-blocks");if(o.name){if("gb-layout-tab-sections"===o.name)return[React.createElement(jg,{key:"layout-library-sections-"+e.clientId,clientId:e.clientId,currentTab:t,data:e.context.sections,context:e.context})];if("gb-layout-tab-layouts"===o.name)return[React.createElement(jg,{key:"layout-library-layouts-"+e.clientId,clientId:e.clientId,currentTab:t,data:e.context.layouts,context:e.context})];if("gb-layout-tab-collections"===o.name)return[React.createElement(jg,{key:"layout-library-collections-"+e.clientId,clientId:e.clientId,currentTab:t,data:e.context.collections,context:e.context})];if("gb-layout-tab-favorites"===o.name)return[React.createElement(jg,{key:"layout-library-favorites-"+e.clientId,clientId:e.clientId,currentTab:t,data:e.context.favorites,context:e.context})];if("gb-layout-tab-reusable-blocks"===o.name)return[React.createElement(jg,{key:"layout-library-reusable-blocks-"+e.clientId,clientId:e.clientId,currentTab:t,data:e.context.reusableBlocks,context:e.context})]}return React.createElement("div",null,n)}))):null)},{__:Zg}=wp.i18n,{Placeholder:Jg}=wp.components,{Component:ed,Fragment:td}=wp.element,{BlockControls:od,BlockAlignmentToolbar:nd}=wp.blockEditor;class ad extends ed{render(){const{attributes:e,setAttributes:t,clientId:o}=this.props;return[React.createElement(td,{key:this.props.clientId},React.createElement(od,{key:"controls"},React.createElement(nd,{value:e.align,onChange:e=>t({align:e}),controls:[]})),React.createElement(Jg,{key:"placeholder",label:Zg("Layout Selector","genesis-blocks"),instructions:Zg("Launch the layout library to browse pre-designed sections.","genesis-blocks"),className:"gb-layout-selector-placeholder",icon:"layout"},React.createElement(Lg.Consumer,{key:"layouts-context-provider-"+this.props.clientId},(e=>React.createElement(Xg,{clientId:o,context:e})))))]}}const{__:id}=wp.i18n,{registerBlockType:rd}=wp.blocks;rd("genesis-blocks/gb-layouts",{title:id("Layouts","genesis-blocks"),description:id("Add a pre-defined section or layout to posts and pages.","genesis-blocks"),icon:"layout",category:"genesis-blocks",keywords:[id("layout","genesis-blocks"),id("column","genesis-blocks"),id("section","genesis-blocks")],edit:e=>React.createElement(Pg,null,React.createElement(ad,e)),save:()=>null});let sd=!1;function ld(){const e=wp.blocks.createBlock("genesis-blocks/gb-layouts");wp.data.dispatch("core/block-editor").insertBlocks(e)}wp.data.subscribe((()=>{!function(){if(sd)return;const e=document.querySelector(".edit-post-header__toolbar");if(!e)return;const t=document.createElement("div");let o='<div class="gb-toolbar-insert-layout">';o+=`<button id="gbLayoutInsertButton" class="components-button components-icon-button" aria-label="${id("Insert Layout","genesis-blocks")}"><i class="dashicons dashicons-layout gb-toolbar-insert-layout-button"></i> ${id("Layouts","genesis-blocks")}</button>`,o+="</div>",t.innerHTML=o,e.appendChild(t);const n=document.querySelector(".components-accessible-toolbar.edit-post-header-toolbar");n&&(n.style.flexGrow=0),document.getElementById("gbLayoutInsertButton").addEventListener("click",ld),sd=!0}()}));const cd=window.lodash,pd=["core/paragraph","core/heading"],gd="Desktop",dd="Tablet",ud="Mobile",bd={Desktop:"default",Tablet:"1200px",Mobile:"600px"},md="gbResponsiveSettings",hd=e=>e.replace(/([a-z])([A-Z1-9])/g,((e,t,o)=>t+"-"+o)).toLowerCase(),kd=e=>"string"!=typeof e||e.match(/[A-Za-z]+$/)?e:`${e}px`,fd=(e,t)=>{var o;return null===(o=t.find((t=>e===t.slug)))||void 0===o?void 0:o.size},yd=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=(0,cd.pickBy)((0,cd.mapValues)(e,yd),Boolean);return(0,cd.isEmpty)(t)?void 0:t},vd=e=>{let{clientId:t,device:o,selectedDevice:n,settingName:a,settingValue:i}=e;return React.createElement(React.Fragment,null,i?`@media only screen and (max-width: ${o}) {\n\t\t\t\t#block-${t} {\n\t\t\t\t\t${hd(a)}: ${i} !important\n\t\t\t\t}\n\t\t\t}`:null,n===o&&i?`#block-${t} {\n\t\t\t\t${hd(a)}: ${i} !important\n\t\t\t}`:null)},{InspectorControls:Cd,LineHeightControl:Rd}=wp.blockEditor,{hasBlockSupport:Ed}=wp.blocks,{Button:wd,FontSizePicker:xd,NavigableMenu:Td,PanelBody:_d}=wp.components,{createHigherOrderComponent:Sd}=wp.compose,{useDispatch:Bd,useSelect:zd}=wp.data,{__:Ad}=wp.i18n,Nd=Sd((e=>t=>{const{disableCustomFontSizes:o,enableCustomLineHeight:n,fontSizes:a}=zd((e=>e("core/block-editor").getSettings())),i=zd((e=>{const{__experimentalGetPreviewDeviceType:t}=e("core/edit-post");return t?t():gd})),{__experimentalSetPreviewDeviceType:r}=Bd("core/edit-post"),s=!Ed(t.name,"typography.fontSize",!0)||!(null!=a&&a.length),l=!Ed(t.name,"typography.lineHeight",!0)||!n;if(!pd.includes(t.name)||s&&l)return React.createElement(e,t);const c=e=>{r&&r(e)},p=(e,o)=>t.attributes.gbResponsiveSettings&&t.attributes.gbResponsiveSettings[o]?t.attributes.gbResponsiveSettings[o][e]:"",g=(e,o)=>{t.setAttributes({[md]:{...t.attributes.gbResponsiveSettings,[bd[i]]:{...t.attributes.gbResponsiveSettings[bd[i]],[e]:o}}})},d=p("fontSize",bd.Mobile),u=p("fontSize",bd.Tablet);return React.createElement(React.Fragment,null,Object.keys(t.attributes.gbResponsiveSettings).length?React.createElement("style",null,s?null:React.createElement(React.Fragment,null,React.createElement(vd,{device:bd.Tablet,selectedDevice:bd[i],settingName:"fontSize",settingValue:kd(fd(u,a)||u),clientId:t.clientId}),React.createElement(vd,{device:bd.Mobile,selectedDevice:bd[i],settingName:"fontSize",settingValue:kd(fd(d,a)||d),clientId:t.clientId})),l?null:React.createElement(React.Fragment,null,React.createElement(vd,{device:bd.Tablet,selectedDevice:bd[i],settingName:"lineHeight",settingValue:p("lineHeight",bd.Tablet),clientId:t.clientId}),React.createElement(vd,{device:bd.Mobile,selectedDevice:bd[i],settingName:"lineHeight",settingValue:p("lineHeight",bd.Mobile),clientId:t.clientId}))):null,React.createElement(e,t),React.createElement(Cd,null,React.createElement(_d,{title:Ad("Responsive Typography","genesis-blocks")},React.createElement(Td,{className:"gb-responsive-toggle",onNavigate:()=>{},orientation:"horizontal"},React.createElement(wd,{icon:"laptop",showTooltip:!0,label:Ad("Desktop view","genesis-blocks"),onClick:()=>c(gd),isPrimary:gd===i,isSecondary:gd!==i},Ad("Desktop","genesis-blocks")),React.createElement(wd,{icon:"tablet",showTooltip:!0,label:Ad("Tablet view","genesis-blocks"),onClick:()=>c(dd),isPrimary:dd===i,isSecondary:dd!==i},Ad("Tablet","genesis-blocks")),React.createElement(wd,{icon:"smartphone",showTooltip:!0,label:Ad("Mobile view","genesis-blocks"),onClick:()=>c(ud),isPrimary:ud===i,isSecondary:ud!==i},Ad("Mobile","genesis-blocks"))),s?null:React.createElement(xd,{value:(()=>{var e,o,n,r,s,l;if(gd===i)return fd(t.attributes.fontSize,a)||fd(null===(e=t.attributes)||void 0===e||null===(o=e.style)||void 0===o||null===(n=o.typography)||void 0===n?void 0:n.fontSize,a)||(null===(r=t.attributes)||void 0===r||null===(s=r.style)||void 0===s||null===(l=s.typography)||void 0===l?void 0:l.fontSize);const c=p("fontSize",bd[i]);return fd(c,a)||c})(),onChange:e=>{const o=((e,t)=>{var o;return null===(o=t.find((t=>e===t.size)))||void 0===o?void 0:o.slug})(e,a);var n,r,s;gd!==i?g("fontSize",o||e):t.setAttributes({style:yd({...null===(n=t.attributes)||void 0===n?void 0:n.style,typography:{...null===(r=t.attributes)||void 0===r||null===(s=r.style)||void 0===s?void 0:s.typography,fontSize:o?void 0:e}}),fontSize:o})},fontSizes:a,disableCustomFontSizes:o}),l||!Rd?null:React.createElement(Rd,{__nextHasNoMarginBottom:!0,value:gd===i?null===(b=t.attributes)||void 0===b||null===(m=b.style)||void 0===m||null===(h=m.typography)||void 0===h?void 0:h.lineHeight:p("lineHeight",bd[i]),onChange:e=>{var o,n,a;gd!==i?g("lineHeight",e):t.setAttributes({style:{...null===(o=t.attributes)||void 0===o?void 0:o.style,typography:{...null===(n=t.attributes)||void 0===n||null===(a=n.style)||void 0===a?void 0:a.typography,lineHeight:e}}})}}))));var b,m,h}),"withResponsiveSettings"),{addFilter:Ld}=wp.hooks;Ld("blocks.registerBlockType","genesis-blocks/add-responsive-controls-attributes",((e,t)=>pd.includes(t)?{...e,attributes:{...null==e?void 0:e.attributes,[md]:{type:"object",default:{}}}}:e)),Ld("editor.BlockEdit","genesis-blocks/add-responsive-controls",Nd)},5792:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],o=0;o<e.length;o++)t.push(255&e.charCodeAt(o));return t},bytesToString:function(e){for(var t=[],o=0;o<e.length;o++)t.push(String.fromCharCode(e[o]));return t.join("")}}};e.exports=t},2779:(e,t)=>{var o;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var r=a.apply(null,o);r&&e.push(r)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)n.call(o,s)&&o[s]&&e.push(s);else e.push(o.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(o=function(){return a}.apply(t,[]))||(e.exports=o)}()},9562:e=>{var t,o;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&o.rotl(e,8)|4278255360&o.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=o.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],o=0,n=0;o<e.length;o++,n+=8)t[n>>>5]|=e[o]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],o=0;o<32*e.length;o+=8)t.push(e[o>>>5]>>>24-o%32&255);return t},bytesToHex:function(e){for(var t=[],o=0;o<e.length;o++)t.push((e[o]>>>4).toString(16)),t.push((15&e[o]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],o=0;o<e.length;o+=2)t.push(parseInt(e.substr(o,2),16));return t},bytesToBase64:function(e){for(var o=[],n=0;n<e.length;n+=3)for(var a=e[n]<<16|e[n+1]<<8|e[n+2],i=0;i<4;i++)8*n+6*i<=8*e.length?o.push(t.charAt(a>>>6*(3-i)&63)):o.push("=");return o.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],n=0,a=0;n<e.length;a=++n%4)0!=a&&o.push((t.indexOf(e.charAt(n-1))&Math.pow(2,-2*a+8)-1)<<2*a|t.indexOf(e.charAt(n))>>>6-2*a);return o}},e.exports=o},3335:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},9515:(e,t,o)=>{var n=o(8761)(o(7772),"DataView");e.exports=n},9612:(e,t,o)=>{var n=o(2118),a=o(6909),i=o(8138),r=o(4174),s=o(7942);function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=r,l.prototype.set=s,e.exports=l},235:(e,t,o)=>{var n=o(3945),a=o(1846),i=o(8028),r=o(2344),s=o(4769);function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=r,l.prototype.set=s,e.exports=l},326:(e,t,o)=>{var n=o(8761)(o(7772),"Map");e.exports=n},6738:(e,t,o)=>{var n=o(2411),a=o(6417),i=o(6928),r=o(9493),s=o(4150);function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=r,l.prototype.set=s,e.exports=l},2760:(e,t,o)=>{var n=o(8761)(o(7772),"Promise");e.exports=n},2143:(e,t,o)=>{var n=o(8761)(o(7772),"Set");e.exports=n},5386:(e,t,o)=>{var n=o(6738),a=o(2842),i=o(2482);function r(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new n;++t<o;)this.add(e[t])}r.prototype.add=r.prototype.push=a,r.prototype.has=i,e.exports=r},6571:(e,t,o)=>{var n=o(235),a=o(5243),i=o(2858),r=o(4417),s=o(8605),l=o(1418);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=r,c.prototype.has=s,c.prototype.set=l,e.exports=c},857:(e,t,o)=>{var n=o(7772).Symbol;e.exports=n},9162:(e,t,o)=>{var n=o(7772).Uint8Array;e.exports=n},3215:(e,t,o)=>{var n=o(8761)(o(7772),"WeakMap");e.exports=n},7552:e=>{e.exports=function(e,t){for(var o=-1,n=null==e?0:e.length,a=0,i=[];++o<n;){var r=e[o];t(r,o,e)&&(i[a++]=r)}return i}},1634:(e,t,o)=>{var n=o(6473),a=o(9631),i=o(6152),r=o(3226),s=o(9045),l=o(7598),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var o=i(e),p=!o&&a(e),g=!o&&!p&&r(e),d=!o&&!p&&!g&&l(e),u=o||p||g||d,b=u?n(e.length,String):[],m=b.length;for(var h in e)!t&&!c.call(e,h)||u&&("length"==h||g&&("offset"==h||"parent"==h)||d&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||s(h,m))||b.push(h);return b}},343:e=>{e.exports=function(e,t){for(var o=-1,n=null==e?0:e.length,a=Array(n);++o<n;)a[o]=t(e[o],o,e);return a}},5067:e=>{e.exports=function(e,t){for(var o=-1,n=t.length,a=e.length;++o<n;)e[a+o]=t[o];return e}},7064:e=>{e.exports=function(e,t){for(var o=-1,n=null==e?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1}},2218:(e,t,o)=>{var n=o(1225);e.exports=function(e,t){for(var o=e.length;o--;)if(n(e[o][0],t))return o;return-1}},4303:(e,t,o)=>{var n=o(6548),a=o(2019)(n);e.exports=a},5308:(e,t,o)=>{var n=o(5463)();e.exports=n},6548:(e,t,o)=>{var n=o(5308),a=o(249);e.exports=function(e,t){return e&&n(e,t,a)}},3324:(e,t,o)=>{var n=o(7297),a=o(3812);e.exports=function(e,t){for(var o=0,i=(t=n(t,e)).length;null!=e&&o<i;)e=e[a(t[o++])];return o&&o==i?e:void 0}},1897:(e,t,o)=>{var n=o(5067),a=o(6152);e.exports=function(e,t,o){var i=t(e);return a(e)?i:n(i,o(e))}},3366:(e,t,o)=>{var n=o(857),a=o(2107),i=o(7157),r=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?a(e):i(e)}},187:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},5183:(e,t,o)=>{var n=o(3366),a=o(5125);e.exports=function(e){return a(e)&&"[object Arguments]"==n(e)}},8746:(e,t,o)=>{var n=o(1952),a=o(5125);e.exports=function e(t,o,i,r,s){return t===o||(null==t||null==o||!a(t)&&!a(o)?t!=t&&o!=o:n(t,o,i,r,e,s))}},1952:(e,t,o)=>{var n=o(6571),a=o(4871),i=o(1491),r=o(7416),s=o(940),l=o(6152),c=o(3226),p=o(7598),g="[object Arguments]",d="[object Array]",u="[object Object]",b=Object.prototype.hasOwnProperty;e.exports=function(e,t,o,m,h,k){var f=l(e),y=l(t),v=f?d:s(e),C=y?d:s(t),R=(v=v==g?u:v)==u,E=(C=C==g?u:C)==u,w=v==C;if(w&&c(e)){if(!c(t))return!1;f=!0,R=!1}if(w&&!R)return k||(k=new n),f||p(e)?a(e,t,o,m,h,k):i(e,t,v,o,m,h,k);if(!(1&o)){var x=R&&b.call(e,"__wrapped__"),T=E&&b.call(t,"__wrapped__");if(x||T){var _=x?e.value():e,S=T?t.value():t;return k||(k=new n),h(_,S,o,m,k)}}return!!w&&(k||(k=new n),r(e,t,o,m,h,k))}},7036:(e,t,o)=>{var n=o(6571),a=o(8746);e.exports=function(e,t,o,i){var r=o.length,s=r,l=!i;if(null==e)return!s;for(e=Object(e);r--;){var c=o[r];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++r<s;){var p=(c=o[r])[0],g=e[p],d=c[1];if(l&&c[2]){if(void 0===g&&!(p in e))return!1}else{var u=new n;if(i)var b=i(g,d,p,e,t,u);if(!(void 0===b?a(d,g,3,i,u):b))return!1}}return!0}},6840:(e,t,o)=>{var n=o(1049),a=o(7394),i=o(9259),r=o(7035),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,p=l.toString,g=c.hasOwnProperty,d=RegExp("^"+p.call(g).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(n(e)?d:s).test(r(e))}},5522:(e,t,o)=>{var n=o(3366),a=o(1158),i=o(5125),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!r[n(e)]}},8286:(e,t,o)=>{var n=o(6423),a=o(4716),i=o(3059),r=o(6152),s=o(5798);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?r(e)?a(e[0],e[1]):n(e):s(e)}},6411:(e,t,o)=>{var n=o(6001),a=o(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=[];for(var o in Object(e))i.call(e,o)&&"constructor"!=o&&t.push(o);return t}},3401:(e,t,o)=>{var n=o(4303),a=o(7878);e.exports=function(e,t){var o=-1,i=a(e)?Array(e.length):[];return n(e,(function(e,n,a){i[++o]=t(e,n,a)})),i}},6423:(e,t,o)=>{var n=o(7036),a=o(9882),i=o(3477);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(o){return o===e||n(o,e,t)}}},4716:(e,t,o)=>{var n=o(8746),a=o(2579),i=o(5041),r=o(1401),s=o(8792),l=o(3477),c=o(3812);e.exports=function(e,t){return r(e)&&s(t)?l(c(e),t):function(o){var r=a(o,e);return void 0===r&&r===t?i(o,e):n(t,r,3)}}},256:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},2952:(e,t,o)=>{var n=o(3324);e.exports=function(e){return function(t){return n(t,e)}}},6473:e=>{e.exports=function(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}},1054:(e,t,o)=>{var n=o(857),a=o(343),i=o(6152),r=o(4795),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return a(t,e)+"";if(r(t))return l?l.call(t):"";var o=t+"";return"0"==o&&1/t==-1/0?"-0":o}},1704:(e,t,o)=>{var n=o(2153),a=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9950:e=>{e.exports=function(e,t){return e.has(t)}},9419:(e,t,o)=>{var n=o(3059);e.exports=function(e){return"function"==typeof e?e:n}},7297:(e,t,o)=>{var n=o(6152),a=o(1401),i=o(4452),r=o(6188);e.exports=function(e,t){return n(e)?e:a(e,t)?[e]:i(r(e))}},4019:(e,t,o)=>{var n=o(7772)["__core-js_shared__"];e.exports=n},2019:(e,t,o)=>{var n=o(7878);e.exports=function(e,t){return function(o,a){if(null==o)return o;if(!n(o))return e(o,a);for(var i=o.length,r=t?i:-1,s=Object(o);(t?r--:++r<i)&&!1!==a(s[r],r,s););return o}}},5463:e=>{e.exports=function(e){return function(t,o,n){for(var a=-1,i=Object(t),r=n(t),s=r.length;s--;){var l=r[e?s:++a];if(!1===o(i[l],l,i))break}return t}}},4871:(e,t,o)=>{var n=o(5386),a=o(7064),i=o(9950);e.exports=function(e,t,o,r,s,l){var c=1&o,p=e.length,g=t.length;if(p!=g&&!(c&&g>p))return!1;var d=l.get(e),u=l.get(t);if(d&&u)return d==t&&u==e;var b=-1,m=!0,h=2&o?new n:void 0;for(l.set(e,t),l.set(t,e);++b<p;){var k=e[b],f=t[b];if(r)var y=c?r(f,k,b,t,e,l):r(k,f,b,e,t,l);if(void 0!==y){if(y)continue;m=!1;break}if(h){if(!a(t,(function(e,t){if(!i(h,t)&&(k===e||s(k,e,o,r,l)))return h.push(t)}))){m=!1;break}}else if(k!==f&&!s(k,f,o,r,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},1491:(e,t,o)=>{var n=o(857),a=o(9162),i=o(1225),r=o(4871),s=o(5179),l=o(4207),c=n?n.prototype:void 0,p=c?c.valueOf:void 0;e.exports=function(e,t,o,n,c,g,d){switch(o){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!g(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var u=s;case"[object Set]":var b=1&n;if(u||(u=l),e.size!=t.size&&!b)return!1;var m=d.get(e);if(m)return m==t;n|=2,d.set(e,t);var h=r(u(e),u(t),n,c,g,d);return d.delete(e),h;case"[object Symbol]":if(p)return p.call(e)==p.call(t)}return!1}},7416:(e,t,o)=>{var n=o(3483),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,o,i,r,s){var l=1&o,c=n(e),p=c.length;if(p!=n(t).length&&!l)return!1;for(var g=p;g--;){var d=c[g];if(!(l?d in t:a.call(t,d)))return!1}var u=s.get(e),b=s.get(t);if(u&&b)return u==t&&b==e;var m=!0;s.set(e,t),s.set(t,e);for(var h=l;++g<p;){var k=e[d=c[g]],f=t[d];if(i)var y=l?i(f,k,d,t,e,s):i(k,f,d,e,t,s);if(!(void 0===y?k===f||r(k,f,o,i,s):y)){m=!1;break}h||(h="constructor"==d)}if(m&&!h){var v=e.constructor,C=t.constructor;v==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof C&&C instanceof C||(m=!1)}return s.delete(e),s.delete(t),m}},1242:(e,t,o)=>{var n="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g;e.exports=n},3483:(e,t,o)=>{var n=o(1897),a=o(633),i=o(249);e.exports=function(e){return n(e,i,a)}},7937:(e,t,o)=>{var n=o(8304);e.exports=function(e,t){var o=e.__data__;return n(t)?o["string"==typeof t?"string":"hash"]:o.map}},9882:(e,t,o)=>{var n=o(8792),a=o(249);e.exports=function(e){for(var t=a(e),o=t.length;o--;){var i=t[o],r=e[i];t[o]=[i,r,n(r)]}return t}},8761:(e,t,o)=>{var n=o(6840),a=o(8109);e.exports=function(e,t){var o=a(e,t);return n(o)?o:void 0}},2107:(e,t,o)=>{var n=o(857),a=Object.prototype,i=a.hasOwnProperty,r=a.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),o=e[s];try{e[s]=void 0;var n=!0}catch(e){}var a=r.call(e);return n&&(t?e[s]=o:delete e[s]),a}},633:(e,t,o)=>{var n=o(7552),a=o(981),i=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(e){return null==e?[]:(e=Object(e),n(r(e),(function(t){return i.call(e,t)})))}:a;e.exports=s},940:(e,t,o)=>{var n=o(9515),a=o(326),i=o(2760),r=o(2143),s=o(3215),l=o(3366),c=o(7035),p="[object Map]",g="[object Promise]",d="[object Set]",u="[object WeakMap]",b="[object DataView]",m=c(n),h=c(a),k=c(i),f=c(r),y=c(s),v=l;(n&&v(new n(new ArrayBuffer(1)))!=b||a&&v(new a)!=p||i&&v(i.resolve())!=g||r&&v(new r)!=d||s&&v(new s)!=u)&&(v=function(e){var t=l(e),o="[object Object]"==t?e.constructor:void 0,n=o?c(o):"";if(n)switch(n){case m:return b;case h:return p;case k:return g;case f:return d;case y:return u}return t}),e.exports=v},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1369:(e,t,o)=>{var n=o(7297),a=o(9631),i=o(6152),r=o(9045),s=o(1158),l=o(3812);e.exports=function(e,t,o){for(var c=-1,p=(t=n(t,e)).length,g=!1;++c<p;){var d=l(t[c]);if(!(g=null!=e&&o(e,d)))break;e=e[d]}return g||++c!=p?g:!!(p=null==e?0:e.length)&&s(p)&&r(d,p)&&(i(e)||a(e))}},2118:(e,t,o)=>{var n=o(9191);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,o)=>{var n=o(9191),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return a.call(t,e)?t[e]:void 0}},4174:(e,t,o)=>{var n=o(9191),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:a.call(t,e)}},7942:(e,t,o)=>{var n=o(9191);e.exports=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,o){var n=typeof e;return!!(o=null==o?9007199254740991:o)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<o}},1401:(e,t,o)=>{var n=o(6152),a=o(4795),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var o=typeof e;return!("number"!=o&&"symbol"!=o&&"boolean"!=o&&null!=e&&!a(e))||r.test(e)||!i.test(e)||null!=t&&e in Object(t)}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,o)=>{var n,a=o(4019),i=(n=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var o=e&&e.constructor;return e===("function"==typeof o&&o.prototype||t)}},8792:(e,t,o)=>{var n=o(9259);e.exports=function(e){return e==e&&!n(e)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,o)=>{var n=o(2218),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,o=n(t,e);return!(o<0||(o==t.length-1?t.pop():a.call(t,o,1),--this.size,0))}},8028:(e,t,o)=>{var n=o(2218);e.exports=function(e){var t=this.__data__,o=n(t,e);return o<0?void 0:t[o][1]}},2344:(e,t,o)=>{var n=o(2218);e.exports=function(e){return n(this.__data__,e)>-1}},4769:(e,t,o)=>{var n=o(2218);e.exports=function(e,t){var o=this.__data__,a=n(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}},2411:(e,t,o)=>{var n=o(9612),a=o(235),i=o(326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||a),string:new n}}},6417:(e,t,o)=>{var n=o(7937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,o)=>{var n=o(7937);e.exports=function(e){return n(this,e).get(e)}},9493:(e,t,o)=>{var n=o(7937);e.exports=function(e){return n(this,e).has(e)}},4150:(e,t,o)=>{var n=o(7937);e.exports=function(e,t){var o=n(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,o=Array(e.size);return e.forEach((function(e,n){o[++t]=[n,e]})),o}},3477:e=>{e.exports=function(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}},7777:(e,t,o)=>{var n=o(733);e.exports=function(e){var t=n(e,(function(e){return 500===o.size&&o.clear(),e})),o=t.cache;return t}},9191:(e,t,o)=>{var n=o(8761)(Object,"create");e.exports=n},4248:(e,t,o)=>{var n=o(241)(Object.keys,Object);e.exports=n},4146:(e,t,o)=>{e=o.nmd(e);var n=o(1242),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,r=i&&i.exports===a&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||r&&r.binding&&r.binding("util")}catch(e){}}();e.exports=s},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(o){return e(t(o))}}},7772:(e,t,o)=>{var n=o(1242),a="object"==typeof self&&self&&self.Object===Object&&self,i=n||a||Function("return this")();e.exports=i},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,o=Array(e.size);return e.forEach((function(e){o[++t]=e})),o}},5243:(e,t,o)=>{var n=o(235);e.exports=function(){this.__data__=new n,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,o)=>{var n=o(235),a=o(326),i=o(6738);e.exports=function(e,t){var o=this.__data__;if(o instanceof n){var r=o.__data__;if(!a||r.length<199)return r.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(r)}return o.set(e,t),this.size=o.size,this}},4452:(e,t,o)=>{var n=o(7777),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,r=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,o,n,a){t.push(n?a.replace(i,"$1"):o||e)})),t}));e.exports=r},3812:(e,t,o)=>{var n=o(4795);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2153:e=>{var t=/\s/;e.exports=function(e){for(var o=e.length;o--&&t.test(e.charAt(o)););return o}},417:e=>{e.exports=function(e){for(var t=-1,o=null==e?0:e.length,n=0,a=[];++t<o;){var i=e[t];i&&(a[n++]=i)}return a}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2579:(e,t,o)=>{var n=o(3324);e.exports=function(e,t,o){var a=null==e?void 0:n(e,t);return void 0===a?o:a}},5041:(e,t,o)=>{var n=o(187),a=o(1369);e.exports=function(e,t){return null!=e&&a(e,t,n)}},3059:e=>{e.exports=function(e){return e}},9631:(e,t,o)=>{var n=o(5183),a=o(5125),i=Object.prototype,r=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return a(e)&&r.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,o)=>{var n=o(1049),a=o(1158);e.exports=function(e){return null!=e&&a(e.length)&&!n(e)}},3226:(e,t,o)=>{e=o.nmd(e);var n=o(7772),a=o(6330),i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,s=r&&r.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l},1049:(e,t,o)=>{var n=o(3366),a=o(9259);e.exports=function(e){if(!a(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4795:(e,t,o)=>{var n=o(3366),a=o(5125);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==n(e)}},7598:(e,t,o)=>{var n=o(5522),a=o(7826),i=o(4146),r=i&&i.isTypedArray,s=r?a(r):n;e.exports=s},249:(e,t,o)=>{var n=o(1634),a=o(6411),i=o(7878);e.exports=function(e){return i(e)?n(e):a(e)}},6760:(e,t,o)=>{var n=o(343),a=o(8286),i=o(3401),r=o(6152);e.exports=function(e,t){return(r(e)?n:i)(e,a(t,3))}},733:(e,t,o)=>{var n=o(6738);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var o=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=o.cache;if(i.has(a))return i.get(a);var r=e.apply(this,n);return o.cache=i.set(a,r)||i,r};return o.cache=new(a.Cache||n),o}a.Cache=n,e.exports=a},5798:(e,t,o)=>{var n=o(256),a=o(2952),i=o(1401),r=o(3812);e.exports=function(e){return i(e)?n(r(e)):a(e)}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},1258:(e,t,o)=>{var n=o(6473),a=o(9419),i=o(8101),r=4294967295,s=Math.min;e.exports=function(e,t){if((e=i(e))<1||e>9007199254740991)return[];var o=r,l=s(e,r);t=a(t),e-=r;for(var c=n(l,t);++o<e;)t(o);return c}},5707:(e,t,o)=>{var n=o(7642);e.exports=function(e){return e?Infinity===(e=n(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},8101:(e,t,o)=>{var n=o(5707);e.exports=function(e){var t=n(e),o=t%1;return t==t?o?t-o:t:0}},7642:(e,t,o)=>{var n=o(1704),a=o(9259),i=o(4795),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var o=s.test(e);return o||l.test(e)?c(e.slice(2),o?2:8):r.test(e)?NaN:+e}},6188:(e,t,o)=>{var n=o(1054);e.exports=function(e){return null==e?"":n(e)}},8762:(e,t,o)=>{var n,a,i,r,s;n=o(9562),a=o(5792).utf8,i=o(3335),r=o(5792).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?r.stringToBytes(e):a.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var o=n.bytesToWords(e),l=8*e.length,c=1732584193,p=-271733879,g=-1732584194,d=271733878,u=0;u<o.length;u++)o[u]=16711935&(o[u]<<8|o[u]>>>24)|4278255360&(o[u]<<24|o[u]>>>8);o[l>>>5]|=128<<l%32,o[14+(l+64>>>9<<4)]=l;var b=s._ff,m=s._gg,h=s._hh,k=s._ii;for(u=0;u<o.length;u+=16){var f=c,y=p,v=g,C=d;c=b(c,p,g,d,o[u+0],7,-680876936),d=b(d,c,p,g,o[u+1],12,-389564586),g=b(g,d,c,p,o[u+2],17,606105819),p=b(p,g,d,c,o[u+3],22,-1044525330),c=b(c,p,g,d,o[u+4],7,-176418897),d=b(d,c,p,g,o[u+5],12,1200080426),g=b(g,d,c,p,o[u+6],17,-1473231341),p=b(p,g,d,c,o[u+7],22,-45705983),c=b(c,p,g,d,o[u+8],7,1770035416),d=b(d,c,p,g,o[u+9],12,-1958414417),g=b(g,d,c,p,o[u+10],17,-42063),p=b(p,g,d,c,o[u+11],22,-1990404162),c=b(c,p,g,d,o[u+12],7,1804603682),d=b(d,c,p,g,o[u+13],12,-40341101),g=b(g,d,c,p,o[u+14],17,-1502002290),c=m(c,p=b(p,g,d,c,o[u+15],22,1236535329),g,d,o[u+1],5,-165796510),d=m(d,c,p,g,o[u+6],9,-1069501632),g=m(g,d,c,p,o[u+11],14,643717713),p=m(p,g,d,c,o[u+0],20,-373897302),c=m(c,p,g,d,o[u+5],5,-701558691),d=m(d,c,p,g,o[u+10],9,38016083),g=m(g,d,c,p,o[u+15],14,-660478335),p=m(p,g,d,c,o[u+4],20,-405537848),c=m(c,p,g,d,o[u+9],5,568446438),d=m(d,c,p,g,o[u+14],9,-1019803690),g=m(g,d,c,p,o[u+3],14,-187363961),p=m(p,g,d,c,o[u+8],20,1163531501),c=m(c,p,g,d,o[u+13],5,-1444681467),d=m(d,c,p,g,o[u+2],9,-51403784),g=m(g,d,c,p,o[u+7],14,1735328473),c=h(c,p=m(p,g,d,c,o[u+12],20,-1926607734),g,d,o[u+5],4,-378558),d=h(d,c,p,g,o[u+8],11,-2022574463),g=h(g,d,c,p,o[u+11],16,1839030562),p=h(p,g,d,c,o[u+14],23,-35309556),c=h(c,p,g,d,o[u+1],4,-1530992060),d=h(d,c,p,g,o[u+4],11,1272893353),g=h(g,d,c,p,o[u+7],16,-155497632),p=h(p,g,d,c,o[u+10],23,-1094730640),c=h(c,p,g,d,o[u+13],4,681279174),d=h(d,c,p,g,o[u+0],11,-358537222),g=h(g,d,c,p,o[u+3],16,-722521979),p=h(p,g,d,c,o[u+6],23,76029189),c=h(c,p,g,d,o[u+9],4,-640364487),d=h(d,c,p,g,o[u+12],11,-421815835),g=h(g,d,c,p,o[u+15],16,530742520),c=k(c,p=h(p,g,d,c,o[u+2],23,-995338651),g,d,o[u+0],6,-198630844),d=k(d,c,p,g,o[u+7],10,1126891415),g=k(g,d,c,p,o[u+14],15,-1416354905),p=k(p,g,d,c,o[u+5],21,-57434055),c=k(c,p,g,d,o[u+12],6,1700485571),d=k(d,c,p,g,o[u+3],10,-1894986606),g=k(g,d,c,p,o[u+10],15,-1051523),p=k(p,g,d,c,o[u+1],21,-2054922799),c=k(c,p,g,d,o[u+8],6,1873313359),d=k(d,c,p,g,o[u+15],10,-30611744),g=k(g,d,c,p,o[u+6],15,-1560198380),p=k(p,g,d,c,o[u+13],21,1309151649),c=k(c,p,g,d,o[u+4],6,-145523070),d=k(d,c,p,g,o[u+11],10,-1120210379),g=k(g,d,c,p,o[u+2],15,718787259),p=k(p,g,d,c,o[u+9],21,-343485551),c=c+f>>>0,p=p+y>>>0,g=g+v>>>0,d=d+C>>>0}return n.endian([c,p,g,d])})._ff=function(e,t,o,n,a,i,r){var s=e+(t&o|~t&n)+(a>>>0)+r;return(s<<i|s>>>32-i)+t},s._gg=function(e,t,o,n,a,i,r){var s=e+(t&n|o&~n)+(a>>>0)+r;return(s<<i|s>>>32-i)+t},s._hh=function(e,t,o,n,a,i,r){var s=e+(t^o^n)+(a>>>0)+r;return(s<<i|s>>>32-i)+t},s._ii=function(e,t,o,n,a,i,r){var s=e+(o^(t|~n))+(a>>>0)+r;return(s<<i|s>>>32-i)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var o=n.wordsToBytes(s(e,t));return t&&t.asBytes?o:t&&t.asString?r.bytesToString(o):n.bytesToHex(o)}},6770:e=>{e.exports=function(e,t){var o,n,a=0;function i(){var i,r,s=o,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(r=0;r<l;r++)if(s.args[r]!==arguments[r]){s=s.next;continue e}return s!==o&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=o,s.prev=null,o.prev=s,o=s),s.val}s=s.next}for(i=new Array(l),r=0;r<l;r++)i[r]=arguments[r];return s={args:i,val:e.apply(null,i)},o?(o.prev=s,s.next=o):n=s,a===t.maxSize?(n=n.prev).next=null:a++,o=s,s.val}return t=t||{},i.clear=function(){o=null,n=null,a=0},i}}},o={};function n(e){var a=o[e];if(void 0!==a)return a.exports;var i=o[e]={id:e,loaded:!1,exports:{}};return t[e](i,i.exports,n),i.loaded=!0,i.exports}n.m=t,e=[],n.O=(t,o,a,i)=>{if(!o){var r=1/0;for(p=0;p<e.length;p++){for(var[o,a,i]=e[p],s=!0,l=0;l<o.length;l++)(!1&i||r>=i)&&Object.keys(n.O).every((e=>n.O[e](o[l])))?o.splice(l--,1):(s=!1,i<r&&(r=i));if(s){e.splice(p--,1);var c=a();void 0!==c&&(t=c)}}return t}i=i||0;for(var p=e.length;p>0&&e[p-1][2]>i;p--)e[p]=e[p-1];e[p]=[o,a,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={346:0,812:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var a,i,[r,s,l]=o,c=0;if(r.some((t=>0!==e[t]))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(l)var p=l(n)}for(t&&t(o);c<r.length;c++)i=r[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(p)},o=globalThis.webpackChunk=globalThis.webpackChunk||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var a=n.O(void 0,[812],(()=>n(5565)));a=n.O(a)})();
genesis-blocks.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: A beautiful collection of handy blocks to help you get started with the new WordPress editor.
6
  * Author: StudioPress
7
  * Author URI: https://www.studiopress.com/
8
- * Version: 1.5.2
9
  * License: GPL2+
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11
  *
5
  * Description: A beautiful collection of handy blocks to help you get started with the new WordPress editor.
6
  * Author: StudioPress
7
  * Author URI: https://www.studiopress.com/
8
+ * Version: 1.5.3
9
  * License: GPL2+
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11
  *
languages/genesis-blocks.pot CHANGED
@@ -2,16 +2,16 @@
2
  # This file is distributed under the GPL2+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Genesis Blocks 1.5.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/genesis-blocks\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-10-06T18:01:11+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
- "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: genesis-blocks\n"
16
 
17
  #. Plugin Name of the plugin
2
  # This file is distributed under the GPL2+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Genesis Blocks 1.5.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/genesis-blocks\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-10-17T16:10:33+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
+ "X-Generator: WP-CLI 2.7.0\n"
15
  "X-Domain: genesis-blocks\n"
16
 
17
  #. Plugin Name of the plugin
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: atomicblocks, arrayhq, johnstonphilip, marksabbath, mindctrl, drea
3
  Donate link: https://studiopress.com
4
  Tags: Blocks, editor, gutenberg, gutenberg blocks, page builder, block enabled, page building, block, WP Engine
5
  Requires at least: 5.3
6
- Tested up to: 6.0
7
- Stable tag: 1.5.2
8
  Requires PHP: 7.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -97,6 +97,9 @@ Yes, you will need to have WordPress 5.3 or later installed to take advantage of
97
 
98
  == Changelog ==
99
 
 
 
 
100
  = 1.5.2 =
101
  * Changed: NPM tooling overhaul.
102
  * Changed: Unignore eslint rules, fix linting.
3
  Donate link: https://studiopress.com
4
  Tags: Blocks, editor, gutenberg, gutenberg blocks, page builder, block enabled, page building, block, WP Engine
5
  Requires at least: 5.3
6
+ Tested up to: 6.1
7
+ Stable tag: 1.5.3
8
  Requires PHP: 7.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
97
 
98
  == Changelog ==
99
 
100
+ = 1.5.3 =
101
+ * Fixed: Fix a block error with Desktop responsive controls on the Heading and Paragraph blocks.
102
+
103
  = 1.5.2 =
104
  * Changed: NPM tooling overhaul.
105
  * Changed: Unignore eslint rules, fix linting.
src/blocks/responsive-settings/components/with-responsive-settings.js CHANGED
@@ -7,7 +7,7 @@ const { Button, FontSizePicker, NavigableMenu, PanelBody } = wp.components;
7
  const { createHigherOrderComponent } = wp.compose;
8
  const { useDispatch, useSelect } = wp.data;
9
  const { __ } = wp.i18n;
10
- import { cleanEmptyObject } from '@wordpress/block-editor/build-module/hooks/utils';
11
 
12
  /**
13
  * Internal dependencies
@@ -225,18 +225,14 @@ export const withResponsiveSettings = createHigherOrderComponent( ( BlockEdit )
225
  const fontSizeSlug = getFontSlug( newFontSize, fontSizes );
226
 
227
  if ( DEVICE_NAMES.desktop === selectedDevice ) {
228
- const newStyle = {
229
- ...props.attributes?.style,
230
- typography: {
231
- ...props.attributes?.style?.typography,
232
- fontSize: fontSizeSlug ? undefined : newFontSize,
233
- },
234
- };
235
-
236
  props.setAttributes( {
237
- style: !! cleanEmptyObject
238
- ? cleanEmptyObject( newStyle )
239
- : newStyle,
 
 
 
 
240
  fontSize: fontSizeSlug,
241
  } );
242
 
@@ -258,18 +254,14 @@ export const withResponsiveSettings = createHigherOrderComponent( ( BlockEdit )
258
  value={ getLineHeightOfSelectedDevice() }
259
  onChange={ ( newLineHeight ) => {
260
  if ( DEVICE_NAMES.desktop === selectedDevice ) {
261
- const newStyle = {
262
- ...props.attributes?.style,
263
- typography: {
264
- ...props.attributes?.style?.typography,
265
- lineHeight: newLineHeight,
266
- },
267
- };
268
-
269
  props.setAttributes( {
270
- style: !! cleanEmptyObject
271
- ? cleanEmptyObject( newStyle )
272
- : newStyle,
 
 
 
 
273
  } );
274
 
275
  return;
7
  const { createHigherOrderComponent } = wp.compose;
8
  const { useDispatch, useSelect } = wp.data;
9
  const { __ } = wp.i18n;
10
+ import { cleanEmptyObject } from '../utils';
11
 
12
  /**
13
  * Internal dependencies
225
  const fontSizeSlug = getFontSlug( newFontSize, fontSizes );
226
 
227
  if ( DEVICE_NAMES.desktop === selectedDevice ) {
 
 
 
 
 
 
 
 
228
  props.setAttributes( {
229
+ style: cleanEmptyObject( {
230
+ ...props.attributes?.style,
231
+ typography: {
232
+ ...props.attributes?.style?.typography,
233
+ fontSize: fontSizeSlug ? undefined : newFontSize,
234
+ },
235
+ } ),
236
  fontSize: fontSizeSlug,
237
  } );
238
 
254
  value={ getLineHeightOfSelectedDevice() }
255
  onChange={ ( newLineHeight ) => {
256
  if ( DEVICE_NAMES.desktop === selectedDevice ) {
 
 
 
 
 
 
 
 
257
  props.setAttributes( {
258
+ style: {
259
+ ...props.attributes?.style,
260
+ typography: {
261
+ ...props.attributes?.style?.typography,
262
+ lineHeight: newLineHeight,
263
+ },
264
+ },
265
  } );
266
 
267
  return;
src/blocks/responsive-settings/utils.js CHANGED
@@ -1,3 +1,5 @@
 
 
1
  /**
2
  * Internal dependencies
3
  */
@@ -82,3 +84,26 @@ export const getFontSlug = ( fontSize, fontSizes ) =>
82
  */
83
  export const getFontSize = ( fontSlug, fontSizes ) =>
84
  fontSizes.find( ( font ) => fontSlug === font.slug )?.size;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { isEmpty, mapValues, pickBy } from 'lodash';
2
+
3
  /**
4
  * Internal dependencies
5
  */
84
  */
85
  export const getFontSize = ( fontSlug, fontSizes ) =>
86
  fontSizes.find( ( font ) => fontSlug === font.slug )?.size;
87
+
88
+ /**
89
+ * Removes falsy values from nested object.
90
+ *
91
+ * Forked from Gutenberg: https://github.com/WordPress/gutenberg/blob/489231532bdb80a2b77d6b0adb2dd12e89b72239/packages/block-editor/src/hooks/utils.js#L19
92
+ *
93
+ * @param {*} object
94
+ * @return {*} Object cleaned from falsy values
95
+ */
96
+ export const cleanEmptyObject = ( object ) => {
97
+ if (
98
+ object === null ||
99
+ typeof object !== 'object' ||
100
+ Array.isArray( object )
101
+ ) {
102
+ return object;
103
+ }
104
+ const cleanedNestedObjects = pickBy(
105
+ mapValues( object, cleanEmptyObject ),
106
+ Boolean
107
+ );
108
+ return isEmpty( cleanedNestedObjects ) ? undefined : cleanedNestedObjects;
109
+ };
vendor/autoload.php CHANGED
@@ -3,10 +3,23 @@
3
  // autoload.php @generated by Composer
4
 
5
  if (PHP_VERSION_ID < 50600) {
6
- echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
7
- exit(1);
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  }
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
- return ComposerAutoloaderInitdcc33c1ee51aec7971f10c4de1f556a0::getLoader();
3
  // autoload.php @generated by Composer
4
 
5
  if (PHP_VERSION_ID < 50600) {
6
+ if (!headers_sent()) {
7
+ header('HTTP/1.1 500 Internal Server Error');
8
+ }
9
+ $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
10
+ if (!ini_get('display_errors')) {
11
+ if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
12
+ fwrite(STDERR, $err);
13
+ } elseif (!headers_sent()) {
14
+ echo $err;
15
+ }
16
+ }
17
+ trigger_error(
18
+ $err,
19
+ E_USER_ERROR
20
+ );
21
  }
22
 
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
 
25
+ return ComposerAutoloaderInit7ca6a93114f83ca7ef8a4dca6db10cc3::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitdcc33c1ee51aec7971f10c4de1f556a0
6
  {
7
  private static $loader;
8
 
@@ -24,12 +24,12 @@ class ComposerAutoloaderInitdcc33c1ee51aec7971f10c4de1f556a0
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitdcc33c1ee51aec7971f10c4de1f556a0', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitdcc33c1ee51aec7971f10c4de1f556a0', 'loadClassLoader'));
30
 
31
  require __DIR__ . '/autoload_static.php';
32
- call_user_func(\Composer\Autoload\ComposerStaticInitdcc33c1ee51aec7971f10c4de1f556a0::getInitializer($loader));
33
 
34
  $loader->register(true);
35
 
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit7ca6a93114f83ca7ef8a4dca6db10cc3
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit7ca6a93114f83ca7ef8a4dca6db10cc3', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit7ca6a93114f83ca7ef8a4dca6db10cc3', 'loadClassLoader'));
30
 
31
  require __DIR__ . '/autoload_static.php';
32
+ call_user_func(\Composer\Autoload\ComposerStaticInit7ca6a93114f83ca7ef8a4dca6db10cc3::getInitializer($loader));
33
 
34
  $loader->register(true);
35
 
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitdcc33c1ee51aec7971f10c4de1f556a0
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'G' =>
@@ -48,9 +48,9 @@ class ComposerStaticInitdcc33c1ee51aec7971f10c4de1f556a0
48
  public static function getInitializer(ClassLoader $loader)
49
  {
50
  return \Closure::bind(function () use ($loader) {
51
- $loader->prefixLengthsPsr4 = ComposerStaticInitdcc33c1ee51aec7971f10c4de1f556a0::$prefixLengthsPsr4;
52
- $loader->prefixDirsPsr4 = ComposerStaticInitdcc33c1ee51aec7971f10c4de1f556a0::$prefixDirsPsr4;
53
- $loader->classMap = ComposerStaticInitdcc33c1ee51aec7971f10c4de1f556a0::$classMap;
54
 
55
  }, null, ClassLoader::class);
56
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit7ca6a93114f83ca7ef8a4dca6db10cc3
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'G' =>
48
  public static function getInitializer(ClassLoader $loader)
49
  {
50
  return \Closure::bind(function () use ($loader) {
51
+ $loader->prefixLengthsPsr4 = ComposerStaticInit7ca6a93114f83ca7ef8a4dca6db10cc3::$prefixLengthsPsr4;
52
+ $loader->prefixDirsPsr4 = ComposerStaticInit7ca6a93114f83ca7ef8a4dca6db10cc3::$prefixDirsPsr4;
53
+ $loader->classMap = ComposerStaticInit7ca6a93114f83ca7ef8a4dca6db10cc3::$classMap;
54
 
55
  }, null, ClassLoader::class);
56
  }
vendor/composer/installed.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'genesis/blocks',
4
- 'pretty_version' => '1.5.2',
5
- 'version' => '1.5.2.0',
6
- 'reference' => '2d18e18a16fa95eeedf207cdddfde57d978d3eec',
7
  'type' => 'wordpress-plugin',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
@@ -11,9 +11,9 @@
11
  ),
12
  'versions' => array(
13
  'genesis/blocks' => array(
14
- 'pretty_version' => '1.5.2',
15
- 'version' => '1.5.2.0',
16
- 'reference' => '2d18e18a16fa95eeedf207cdddfde57d978d3eec',
17
  'type' => 'wordpress-plugin',
18
  'install_path' => __DIR__ . '/../../',
19
  'aliases' => array(),
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'genesis/blocks',
4
+ 'pretty_version' => '1.5.3',
5
+ 'version' => '1.5.3.0',
6
+ 'reference' => 'be51e88b0c4cb5d27ff023db392cf7b4056c7f34',
7
  'type' => 'wordpress-plugin',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
11
  ),
12
  'versions' => array(
13
  'genesis/blocks' => array(
14
+ 'pretty_version' => '1.5.3',
15
+ 'version' => '1.5.3.0',
16
+ 'reference' => 'be51e88b0c4cb5d27ff023db392cf7b4056c7f34',
17
  'type' => 'wordpress-plugin',
18
  'install_path' => __DIR__ . '/../../',
19
  'aliases' => array(),