Gutenberg Blocks – Ultimate Addons for Gutenberg - Version 1.23.3

Version Description

  • Fix: Table of Contents - UTF-8 encoding on frontend.
  • Fix: Table of Contents - Fatal error when $doc->documentElement is null in some cases on frontend.
  • Fix: Table of Contents - Scroll to Top icon not visible on frontend.
  • Fix: Posts - "B7" displayed in place of " . " icon on frontend when file generation is disabled.
Download this release

Release Info

Developer brainstormworg
Plugin Icon Gutenberg Blocks – Ultimate Addons for Gutenberg
Version 1.23.3
Comparing to
See all releases

Code changes from version 1.23.2 to 1.23.3

assets/css/blocks/table-of-contents.css CHANGED
@@ -1 +1 @@
1
- .wp-block-uagb-table-of-contents .uagb-toc__wrap{display:inline-block}.wp-block-uagb-table-of-contents ul.uagb-toc__list,.wp-block-uagb-table-of-contents ol.uagb-toc__list{margin-left:2.2em;padding-left:0px;margin-bottom:0}.wp-block-uagb-table-of-contents ul.uagb-toc__list li,.wp-block-uagb-table-of-contents ol.uagb-toc__list li{margin:0}.wp-block-uagb-table-of-contents.uagb-toc__align-left{text-align:left}.wp-block-uagb-table-of-contents.uagb-toc__align-center{text-align:center}.wp-block-uagb-table-of-contents.uagb-toc__align-right{text-align:right}.wp-block-uagb-table-of-contents ul li:empty{display:none}.wp-block-uagb-table-of-contents .uagb-toc__title-wrap{display:flex;align-items:center}.wp-block-uagb-table-of-contents .uagb-toc__is-collapsible.uagb-toc__title-wrap{cursor:pointer}.wp-block-uagb-table-of-contents .uag-toc__collapsible-wrap svg{width:20px;height:20px}.wp-block-uagb-table-of-contents .uag-toc__collapsible-wrap{margin-left:10px;display:flex;cursor:pointer}.wp-block-uagb-table-of-contents.uagb-toc__collapse .uagb-toc__list-wrap{display:none}ol.uagb-toc__list li.uagb-toc__list ul,ol.uagb-toc__list ul.uagb-toc__list ul{list-style-type:circle}ol.uagb-toc__list>ul,ol.uagb-toc__list>li{list-style-type:disc}.uagb-toc__scroll-top.dashicons{display:none;position:fixed;bottom:50px;right:50px;padding:10px;background:#ccd0d4;cursor:pointer}.uagb-toc__scroll-top.uagb-toc__show-scroll{display:inline-table}
1
+ .wp-block-uagb-table-of-contents .uagb-toc__wrap{display:inline-block}.wp-block-uagb-table-of-contents ul.uagb-toc__list,.wp-block-uagb-table-of-contents ol.uagb-toc__list{margin-left:2.2em;padding-left:0px;margin-bottom:0}.wp-block-uagb-table-of-contents ul.uagb-toc__list li,.wp-block-uagb-table-of-contents ol.uagb-toc__list li{margin:0}.wp-block-uagb-table-of-contents.uagb-toc__align-left{text-align:left}.wp-block-uagb-table-of-contents.uagb-toc__align-center{text-align:center}.wp-block-uagb-table-of-contents.uagb-toc__align-right{text-align:right}.wp-block-uagb-table-of-contents ul li:empty{display:none}.wp-block-uagb-table-of-contents .uagb-toc__title-wrap{display:flex;align-items:center}.wp-block-uagb-table-of-contents .uagb-toc__is-collapsible.uagb-toc__title-wrap{cursor:pointer}.wp-block-uagb-table-of-contents .uag-toc__collapsible-wrap svg{width:20px;height:20px}.wp-block-uagb-table-of-contents .uag-toc__collapsible-wrap{margin-left:10px;display:flex;cursor:pointer}.wp-block-uagb-table-of-contents.uagb-toc__collapse .uagb-toc__list-wrap{display:none}ol.uagb-toc__list li.uagb-toc__list ul,ol.uagb-toc__list ul.uagb-toc__list ul{list-style-type:circle}ol.uagb-toc__list>ul,ol.uagb-toc__list>li{list-style-type:disc}.uagb-toc__scroll-top{display:none;position:fixed;bottom:50px;right:50px;padding:10px;background:#ccd0d4;cursor:pointer;font-size:1rem;line-height:1.85714285714286}.uagb-toc__scroll-top svg{margin-left:0px;transform:translate(0, -20%) rotate(180deg);width:1.6em;height:.6em;fill:currentColor}.uagb-toc__scroll-top.uagb-toc__show-scroll{display:inline-table}
assets/js/table-of-contents.js CHANGED
@@ -21,7 +21,7 @@
21
  .replace(/[^a-z0-9 -_]/gi,'') // Keep only alphnumeric, space, -, _
22
  .replace(/&(mdash;)/g, '') // Remove long dash
23
  .replace(/\s+/g, '-') // Replace spaces with -
24
- .replace(/[&\/\\#,^!+()$~%.\[\]'":*?;<>{}@‘’”“|]/g, '') // Remove special chars
25
  .replace(/\-\-+/g, '-') // Replace multiple - with single -
26
  .replace(/^-+/, '') // Trim - from start of text
27
  .replace(/-+$/, ''); // Trim - from end of text
@@ -153,9 +153,11 @@
153
 
154
  scroll_to_top = attr.scrollToTop;
155
 
 
 
156
  scroll_element = $( ".uagb-toc__scroll-top" );
157
  if ( 0 == scroll_element.length ) {
158
- $( "body" ).append( "<div class=\"uagb-toc__scroll-top dashicons dashicons-arrow-up-alt2\"></div>" );
159
  scroll_element = $( ".uagb-toc__scroll-top" );
160
  }
161
 
21
  .replace(/[^a-z0-9 -_]/gi,'') // Keep only alphnumeric, space, -, _
22
  .replace(/&(mdash;)/g, '') // Remove long dash
23
  .replace(/\s+/g, '-') // Replace spaces with -
24
+ .replace(/[&\/\\#,^!+()$~%.\[\]'":*?;-_<>{}@‘’”“|]/g, '') // Remove special chars
25
  .replace(/\-\-+/g, '-') // Replace multiple - with single -
26
  .replace(/^-+/, '') // Trim - from start of text
27
  .replace(/-+$/, ''); // Trim - from end of text
153
 
154
  scroll_to_top = attr.scrollToTop;
155
 
156
+ var scrollToTopSvg = '<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" id=\"Layer_1\" x=\"0px\" y=\"0px\" width=\"26px\" height=\"16.043px\" viewBox=\"57 35.171 26 16.043\" enable-background=\"new 57 35.171 26 16.043\" xml:space=\"preserve\"><path d=\"M57.5,38.193l12.5,12.5l12.5-12.5l-2.5-2.5l-10,10l-10-10L57.5,38.193z\"/></svg>';
157
+
158
  scroll_element = $( ".uagb-toc__scroll-top" );
159
  if ( 0 == scroll_element.length ) {
160
+ $( "body" ).append( "<div class=\"uagb-toc__scroll-top\"> " + scrollToTopSvg + "</div>" );
161
  scroll_element = $( ".uagb-toc__scroll-top" );
162
  }
163
 
blocks-config/table-of-content/class-uagb-table-of-content.php CHANGED
@@ -108,7 +108,7 @@ if ( ! class_exists( 'UAGB_Table_Of_Content' ) ) {
108
  // Disabled because of PHP DOMDocument and DOMXPath APIs using camelCase.
109
 
110
  // Create a document to load the post content into.
111
- $doc = new DOMDocument();
112
 
113
  // Enable user error handling for the HTML parsing. HTML5 elements aren't
114
  // supported (as of PHP 7.4) and There's no way to guarantee that the markup
@@ -125,7 +125,7 @@ if ( ! class_exists( 'UAGB_Table_Of_Content' ) ) {
125
  // supported by ISO-8859-1 as HTML entities. However, this function also
126
  // converts all special characters like < or > to HTML entities, so we use
127
  // htmlspecialchars_decode to decode them.
128
- '<html><body>' . $content . '</body></html>'
129
  );
130
 
131
  // We're done parsing, so we can disable user error handling. This also
@@ -137,6 +137,12 @@ if ( ! class_exists( 'UAGB_Table_Of_Content' ) ) {
137
  // We can't use foreach directly on the $templates DOMNodeList because it's a
138
  // dynamic list, and removing nodes confuses the foreach iterator. So
139
  // instead, we convert the iterator to an array and then iterate over that.
 
 
 
 
 
 
140
  $templates = iterator_to_array(
141
  $doc->documentElement->getElementsByTagName( 'template' )
142
  );
@@ -185,7 +191,7 @@ if ( ! class_exists( 'UAGB_Table_Of_Content' ) ) {
185
  // and convert it to an integer. Should be faster than conditionals.
186
  'level' => (int) $heading->nodeName[1],
187
  'id' => $this->clean( $heading->textContent ),
188
- 'content' => utf8_decode( $heading->textContent ),
189
  'depth' => intval( substr( $heading->tagName, 1 ) ),
190
  );
191
  }
108
  // Disabled because of PHP DOMDocument and DOMXPath APIs using camelCase.
109
 
110
  // Create a document to load the post content into.
111
+ $doc = new DOMDocument( '1.0', 'UTF-8' );
112
 
113
  // Enable user error handling for the HTML parsing. HTML5 elements aren't
114
  // supported (as of PHP 7.4) and There's no way to guarantee that the markup
125
  // supported by ISO-8859-1 as HTML entities. However, this function also
126
  // converts all special characters like < or > to HTML entities, so we use
127
  // htmlspecialchars_decode to decode them.
128
+ '<html><head><meta charset="UTF-8"></head><body>' . $content . '</body></html>'
129
  );
130
 
131
  // We're done parsing, so we can disable user error handling. This also
137
  // We can't use foreach directly on the $templates DOMNodeList because it's a
138
  // dynamic list, and removing nodes confuses the foreach iterator. So
139
  // instead, we convert the iterator to an array and then iterate over that.
140
+
141
+ if ( ! isset( $doc->documentElement ) || ! is_object( $doc->documentElement ) ) {
142
+
143
+ return array();
144
+ }
145
+
146
  $templates = iterator_to_array(
147
  $doc->documentElement->getElementsByTagName( 'template' )
148
  );
191
  // and convert it to an integer. Should be faster than conditionals.
192
  'level' => (int) $heading->nodeName[1],
193
  'id' => $this->clean( $heading->textContent ),
194
+ 'content' => wp_strip_all_tags( $heading->textContent ),
195
  'depth' => intval( substr( $heading->tagName, 1 ) ),
196
  );
197
  }
classes/class-uagb-loader.php CHANGED
@@ -66,7 +66,7 @@ if ( ! class_exists( 'UAGB_Loader' ) ) {
66
  define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
67
  define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
68
  define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
69
- define( 'UAGB_VER', '1.23.2' );
70
  define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
71
  define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
72
  define( 'UAGB_SLUG', 'uag' );
66
  define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
67
  define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
68
  define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
69
+ define( 'UAGB_VER', '1.23.3' );
70
  define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
71
  define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
72
  define( 'UAGB_SLUG', 'uag' );
classes/class-uagb-post-assets.php CHANGED
@@ -298,7 +298,7 @@ class UAGB_Post_Assets {
298
  public function update_page_assets() {
299
 
300
  $meta_array = array(
301
- 'css' => $this->stylesheet,
302
  'js' => $this->script,
303
  'current_block_list' => $this->current_block_list,
304
  'uag_flag' => $this->uag_flag,
298
  public function update_page_assets() {
299
 
300
  $meta_array = array(
301
+ 'css' => wp_slash( $this->stylesheet ),
302
  'js' => $this->script,
303
  'current_block_list' => $this->current_block_list,
304
  'uag_flag' => $this->uag_flag,
dist/blocks.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'react-dom', 'wp-blocks', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '7f6d7c3d5efc444833a3e02ea71b7784');
1
+ <?php return array('dependencies' => array('react', 'react-dom', 'wp-blocks', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '09a345f3ee1af7de8edeebbaa4674684');
dist/blocks.css CHANGED
@@ -48,7 +48,7 @@
48
 
49
  p.uagb-marketing-btn__prefix.block-editor-rich-text__editable{margin:0 !important}
50
 
51
- .uagb-toc__list>p{font-size:13px;font-style:italic;color:#666}.block-editor-page .uagb-toc__scroll-top.dashicons{right:343px}.block-editor-page .uagb-toc__scroll-top.uagb-toc__show-scroll{display:inline-table}.uagb-light-font-weight{font-weight:400}.block-editor-block-list__block .wp-block-uagb-table-of-contents ol.uagb-toc__list li.uagb-toc__list ul,.block-editor-block-list__block .wp-block-uagb-table-of-contents ol.uagb-toc__list ul.uagb-toc__list ul{list-style-type:circle}.block-editor-block-list__block .wp-block-uagb-table-of-contents ol.uagb-toc__list>ul,.block-editor-block-list__block .wp-block-uagb-table-of-contents ol.uagb-toc__list>li{list-style-type:disc}
52
 
53
  .editor-styles-wrapper [data-type="uagb/how-to"] .how-to-schema-notices{background-color:#FFF8E5;border-left:5px solid #FFB901;padding:8px 10px;font-size:13px;line-height:20px;color:#32373c}.editor-styles-wrapper [data-type="uagb/how-to"] .how-to-schema-notices ul{margin:0;padding-bottom:0}.editor-styles-wrapper [data-type="uagb/how-to"] .how-to-schema-notices h6{margin:0;font-size:inherit;line-height:inherit}.editor-styles-wrapper [data-type="uagb/how-to"] .how-to-schema-notices p{margin:0;margin-top:15px;font-size:inherit;color:#555d66}.wp-block-uagb-how-to .block-editor-button-block-appender{margin-top:0px;margin-left:20px;width:10%}.editor-styles-wrapper .uagb-howto__time-wrap h3,.editor-styles-wrapper .uagb-howto__cost-wrap h3,.editor-styles-wrapper .uagb-how-to-tools__wrap h3,.editor-styles-wrapper .uagb-how-to-steps__wrap h3{margin-bottom:20px;margin-top:20px}.editor-styles-wrapper .uagb-howto__time-wrap p,.editor-styles-wrapper .uagb-howto__cost-wrap p,.editor-styles-wrapper .uagb-how-to-tools__wrap p,.editor-styles-wrapper .uagb-how-to-steps__wrap p{margin-top:25px}
54
 
48
 
49
  p.uagb-marketing-btn__prefix.block-editor-rich-text__editable{margin:0 !important}
50
 
51
+ .uagb-toc__list>p{font-size:13px;font-style:italic;color:#666}.block-editor-page .uagb-toc__scroll-top{display:none;position:fixed;bottom:50px;padding:10px;background:#ccd0d4;cursor:pointer;font-size:1rem;right:343px;line-height:1.85714285714286}.block-editor-page .uagb-toc__scroll-top svg{margin-left:0px;transform:translate(0, -20%) rotate(180deg);width:1.6em;height:.6em;fill:currentColor}.block-editor-page .uagb-toc__scroll-top.uagb-toc__show-scroll{display:inline-table}.uagb-light-font-weight{font-weight:400}.block-editor-block-list__block .wp-block-uagb-table-of-contents ol.uagb-toc__list li.uagb-toc__list ul,.block-editor-block-list__block .wp-block-uagb-table-of-contents ol.uagb-toc__list ul.uagb-toc__list ul{list-style-type:circle}.block-editor-block-list__block .wp-block-uagb-table-of-contents ol.uagb-toc__list>ul,.block-editor-block-list__block .wp-block-uagb-table-of-contents ol.uagb-toc__list>li{list-style-type:disc}
52
 
53
  .editor-styles-wrapper [data-type="uagb/how-to"] .how-to-schema-notices{background-color:#FFF8E5;border-left:5px solid #FFB901;padding:8px 10px;font-size:13px;line-height:20px;color:#32373c}.editor-styles-wrapper [data-type="uagb/how-to"] .how-to-schema-notices ul{margin:0;padding-bottom:0}.editor-styles-wrapper [data-type="uagb/how-to"] .how-to-schema-notices h6{margin:0;font-size:inherit;line-height:inherit}.editor-styles-wrapper [data-type="uagb/how-to"] .how-to-schema-notices p{margin:0;margin-top:15px;font-size:inherit;color:#555d66}.wp-block-uagb-how-to .block-editor-button-block-appender{margin-top:0px;margin-left:20px;width:10%}.editor-styles-wrapper .uagb-howto__time-wrap h3,.editor-styles-wrapper .uagb-howto__cost-wrap h3,.editor-styles-wrapper .uagb-how-to-tools__wrap h3,.editor-styles-wrapper .uagb-how-to-steps__wrap h3{margin-bottom:20px;margin-top:20px}.editor-styles-wrapper .uagb-howto__time-wrap p,.editor-styles-wrapper .uagb-howto__cost-wrap p,.editor-styles-wrapper .uagb-how-to-tools__wrap p,.editor-styles-wrapper .uagb-how-to-steps__wrap p{margin-top:25px}
54
 
dist/blocks.js CHANGED
@@ -6,4 +6,4 @@ label:Object(M.__)("M","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Me
6
  /* translators: abbreviation for large size */
7
  label:Object(M.__)("L","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Large","ultimate-addons-for-gutenberg")},{value:"30",
8
  /* translators: abbreviation for extra large size */
9
- label:Object(M.__)("XL","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Extra Large","ultimate-addons-for-gutenberg")}],Ab={value:"0",label:Object(M.__)("None","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("None","ultimate-addons-for-gutenberg")},Fb=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.advancedMaxValue,a=e.advancedMinValue,l=e.currentOption,n=e.label,i=e.onChange,o=e.options,c=e.showAdvancedControls,r=e.showIcons,s=e.showNoneOption,u=o||Nb;return s&&(u=[Ab].concat(ic()(u))),c&&!1!==a&&!1!==t?Object(f.createElement)(Vb,{label:n,value:l,onChange:function(e){return i(e)},min:a,max:t}):Object(f.createElement)(kb,{id:"uagb-option-selector-".concat(n),label:n},Object(f.createElement)(Bb,null,Object(f.createElement)(Lb,{"aria-label":n},u.map((function(e){return Object(f.createElement)(Tb,{key:"option-".concat(e.value),text:e.tooltip},Object(f.createElement)(Sb,{isLarge:!0,isSecondary:l!==e.value,isPrimary:l===e.value,"aria-pressed":l===e.value,onClick:function(){return i(e.value)},"aria-label":e.tooltip},r?e.icon:e.label))})))))}}]),n}(Eb),Pb=function(e,t){var a=e.attributes,l=a.leftPadding,n=a.rightPadding,i=a.topPadding,o=a.bottomPadding,c=a.topMargin,r=a.bottomMargin,s=a.backgroundPosition,u=a.backgroundSize,h=a.backgroundAttachment,d=a.backgroundImage,g=a.backgroundRepeat,m=a.backgroundType,b=a.borderStyle,v=a.borderWidth,p=a.borderRadius,f=a.borderColor,w=a.desktopMarginType,_=a.desktopPaddingType,y={"padding-top":z(i,_),"padding-bottom":z(o,_),"padding-left":z(l,_),"padding-right":z(n,_),"margin-top":z(c,w),"margin-bottom":z(r,w),"border-radius":z(p,w)};"none"!=b&&(y["border-style"]=b,y["border-width"]=z(v,"px"),y["border-color"]=f);var x=s.replace("-"," ");return"image"===m&&(y["background-image"]=d?"url(".concat(d.url,")"):null,y["background-position"]=x,y["background-attachment"]=h,y["background-repeat"]=g,y["background-size"]=u),y},Rb=(a(383),wp.element.createElement),Ib={triangle:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M500,98.9L0,6.1V0h1000v6.1L500,98.9z"})),wave_brush:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 27.8",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M283.5,9.7c0,0-7.3,4.3-14,4.6c-6.8,0.3-12.6,0-20.9-1.5c-11.3-2-33.1-10.1-44.7-5.7\ts-12.1,4.6-18,7.4c-6.6,3.2-20,9.6-36.6,9.3C131.6,23.5,99.5,7.2,86.3,8c-1.4,0.1-6.6,0.8-10.5,2c-3.8,1.2-9.4,3.8-17,4.7\tc-3.2,0.4-8.3,1.1-14.2,0.9c-1.5-0.1-6.3-0.4-12-1.6c-5.7-1.2-11-3.1-15.8-3.7C6.5,9.2,0,10.8,0,10.8V0h283.5V9.7z M260.8,11.3\tc-0.7-1-2-0.4-4.3-0.4c-2.3,0-6.1-1.2-5.8-1.1c0.3,0.1,3.1,1.5,6,1.9C259.7,12.2,261.4,12.3,260.8,11.3z M242.4,8.6\tc0,0-2.4-0.2-5.6-0.9c-3.2-0.8-10.3-2.8-15.1-3.5c-8.2-1.1-15.8,0-15.1,0.1c0.8,0.1,9.6-0.6,17.6,1.1c3.3,0.7,9.3,2.2,12.4,2.7\tC239.9,8.7,242.4,8.6,242.4,8.6z M185.2,8.5c1.7-0.7-13.3,4.7-18.5,6.1c-2.1,0.6-6.2,1.6-10,2c-3.9,0.4-8.9,0.4-8.8,0.5\tc0,0.2,5.8,0.8,11.2,0c5.4-0.8,5.2-1.1,7.6-1.6C170.5,14.7,183.5,9.2,185.2,8.5z M199.1,6.9c0.2,0-0.8-0.4-4.8,1.1\tc-4,1.5-6.7,3.5-6.9,3.7c-0.2,0.1,3.5-1.8,6.6-3C197,7.5,199,6.9,199.1,6.9z M283,6c-0.1,0.1-1.9,1.1-4.8,2.5s-6.9,2.8-6.7,2.7\tc0.2,0,3.5-0.6,7.4-2.5C282.8,6.8,283.1,5.9,283,6z M31.3,11.6c0.1-0.2-1.9-0.2-4.5-1.2s-5.4-1.6-7.8-2C15,7.6,7.3,8.5,7.7,8.6\tC8,8.7,15.9,8.3,20.2,9.3c2.2,0.5,2.4,0.5,5.7,1.6S31.2,11.9,31.3,11.6z M73,9.2c0.4-0.1,3.5-1.6,8.4-2.6c4.9-1.1,8.9-0.5,8.9-0.8\tc0-0.3-1-0.9-6.2-0.3S72.6,9.3,73,9.2z M71.6,6.7C71.8,6.8,75,5.4,77.3,5c2.3-0.3,1.9-0.5,1.9-0.6c0-0.1-1.1-0.2-2.7,0.2\tC74.8,5.1,71.4,6.6,71.6,6.7z M93.6,4.4c0.1,0.2,3.5,0.8,5.6,1.8c2.1,1,1.8,0.6,1.9,0.5c0.1-0.1-0.8-0.8-2.4-1.3\tC97.1,4.8,93.5,4.2,93.6,4.4z M65.4,11.1c-0.1,0.3,0.3,0.5,1.9-0.2s2.6-1.3,2.2-1.2s-0.9,0.4-2.5,0.8C65.3,10.9,65.5,10.8,65.4,11.1\tz M34.5,12.4c-0.2,0,2.1,0.8,3.3,0.9c1.2,0.1,2,0.1,2-0.2c0-0.3-0.1-0.5-1.6-0.4C36.6,12.8,34.7,12.4,34.5,12.4z M152.2,21.1\tc-0.1,0.1-2.4-0.3-7.5-0.3c-5,0-13.6-2.4-17.2-3.5c-3.6-1.1,10,3.9,16.5,4.1C150.5,21.6,152.3,21,152.2,21.1z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M269.6,18c-0.1-0.1-4.6,0.3-7.2,0c-7.3-0.7-17-3.2-16.6-2.9c0.4,0.3,13.7,3.1,17,3.3\tC267.7,18.8,269.7,18,269.6,18z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M227.4,9.8c-0.2-0.1-4.5-1-9.5-1.2c-5-0.2-12.7,0.6-12.3,0.5c0.3-0.1,5.9-1.8,13.3-1.2\tS227.6,9.9,227.4,9.8z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M204.5,13.4c-0.1-0.1,2-1,3.2-1.1c1.2-0.1,2,0,2,0.3c0,0.3-0.1,0.5-1.6,0.4\tC206.4,12.9,204.6,13.5,204.5,13.4z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M201,10.6c0-0.1-4.4,1.2-6.3,2.2c-1.9,0.9-6.2,3.1-6.1,3.1c0.1,0.1,4.2-1.6,6.3-2.6\tS201,10.7,201,10.6z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M154.5,26.7c-0.1-0.1-4.6,0.3-7.2,0c-7.3-0.7-17-3.2-16.6-2.9c0.4,0.3,13.7,3.1,17,3.3\tC152.6,27.5,154.6,26.8,154.5,26.7z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M41.9,19.3c0,0,1.2-0.3,2.9-0.1c1.7,0.2,5.8,0.9,8.2,0.7c4.2-0.4,7.4-2.7,7-2.6\tc-0.4,0-4.3,2.2-8.6,1.9c-1.8-0.1-5.1-0.5-6.7-0.4S41.9,19.3,41.9,19.3z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M75.5,12.6c0.2,0.1,2-0.8,4.3-1.1c2.3-0.2,2.1-0.3,2.1-0.5c0-0.1-1.8-0.4-3.4,0\tC76.9,11.5,75.3,12.5,75.5,12.6z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M15.6,13.2c0-0.1,4.3,0,6.7,0.5c2.4,0.5,5,1.9,5,2c0,0.1-2.7-0.8-5.1-1.4\tC19.9,13.7,15.7,13.3,15.6,13.2z"})),tilt:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M0,6V0h1000v100L0,6z"})),mountains:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.33",d:"M473,67.3c-203.9,88.3-263.1-34-320.3,0C66,119.1,0,59.7,0,59.7V0h1000v59.7 c0,0-62.1,26.1-94.9,29.3c-32.8,3.3-62.8-12.3-75.8-22.1C806,49.6,745.3,8.7,694.9,4.7S492.4,59,473,67.3z"}),Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.66",d:"M734,67.3c-45.5,0-77.2-23.2-129.1-39.1c-28.6-8.7-150.3-10.1-254,39.1 s-91.7-34.4-149.2,0C115.7,118.3,0,39.8,0,39.8V0h1000v36.5c0,0-28.2-18.5-92.1-18.5C810.2,18.1,775.7,67.3,734,67.3z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M766.1,28.9c-200-57.5-266,65.5-395.1,19.5C242,1.8,242,5.4,184.8,20.6C128,35.8,132.3,44.9,89.9,52.5C28.6,63.7,0,0,0,0 h1000c0,0-9.9,40.9-83.6,48.1S829.6,47,766.1,28.9z"})),waves:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M421.9,6.5c22.6-2.5,51.5,0.4,75.5,5.3c23.6,4.9,70.9,23.5,100.5,35.7c75.8,32.2,133.7,44.5,192.6,49.7 c23.6,2.1,48.7,3.5,103.4-2.5c54.7-6,106.2-25.6,106.2-25.6V0H0v30.3c0,0,72,32.6,158.4,30.5c39.2-0.7,92.8-6.7,134-22.4 c21.2-8.1,52.2-18.2,79.7-24.2C399.3,7.9,411.6,7.5,421.9,6.5z"})),wave_pattern:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1047.1 3.7",preserveAspectRatio:"xMidYMin slice"},Rb("path",{className:"uagb-columns__shape-fill",d:"M1047.1,0C557,0,8.9,0,0,0v1.6c0,0,0.6-1.5,2.7-0.3C3.9,2,6.1,4.1,8.3,3.5c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3C13.8,2,16,4.1,18.2,3.5c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3C23.6,2,25.9,4.1,28,3.5c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3C63,2,65.3,4.1,67.4,3.5\tC68.3,3.3,69,1.6,69,1.6s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tC82.7,2,85,4.1,87.1,3.5c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3C92.6,2,94.8,4.1,97,3.5c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.6-0.4V0z M2.5,1.2C2.5,1.2,2.5,1.2,2.5,1.2C2.5,1.2,2.5,1.2,2.5,1.2z M2.7,1.4c0.1,0,0.1,0.1,0.1,0.1C2.8,1.4,2.8,1.4,2.7,1.4z"})),drops:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 27.8",preserveAspectRatio:"xMidYMax slice"},Rb("path",{className:"uagb-columns__shape-fill",d:"M0 0v1.4c.6.7 1.1 1.4 1.4 2 2 3.8 2.2 6.6 1.8 10.8-.3 3.3-2.4 9.4 0 12.3 1.7 2 3.7 1.4 4.6-.9 1.4-3.8-.7-8.2-.6-12 .1-3.7 3.2-5.5 6.9-4.9 4 .6 4.8 4 4.9 7.4.1 1.8-1.1 7 0 8.5.6.8 1.6 1.2 2.4.5 1.4-1.1.1-5.4.1-6.9.1-3.7.3-8.6 4.1-10.5 5-2.5 6.2 1.6 5.4 5.6-.4 1.7-1 9.2 2.9 6.3 1.5-1.1.7-3.5.5-4.9-.4-2.4-.4-4.3 1-6.5.9-1.4 2.4-3.1 4.2-3 2.4.1 2.7 2.2 4 3.7 1.5 1.8 1.8 2.2 3 .1 1.1-1.9 1.2-2.8 3.6-3.3 1.3-.3 4.8-1.4 5.9-.5 1.5 1.1.6 2.8.4 4.3-.2 1.1-.6 4 1.8 3.4 1.7-.4-.3-4.1.6-5.6 1.3-2.2 5.8-1.4 7 .5 1.3 2.1.5 5.8.1 8.1s-1.2 5-.6 7.4c1.3 5.1 4.4.9 4.3-2.4-.1-4.4-2-8.8-.5-13 .9-2.4 4.6-6.6 7.7-4.5 2.7 1.8.5 7.8.2 10.3-.2 1.7-.8 4.6.2 6.2.9 1.4 2 1.5 2.6-.3.5-1.5-.9-4.5-1-6.1-.2-1.7-.4-3.7.2-5.4 1.8-5.6 3.5 2.4 6.3.6 1.4-.9 4.3-9.4 6.1-3.1.6 2.2-1.3 7.8.7 8.9 4.2 2.3 1.5-7.1 2.2-8 3.1-4 4.7 3.8 6.1 4.1 3.1.7 2.8-7.9 8.1-4.5 1.7 1.1 2.9 3.3 3.2 5.2.4 2.2-1 4.5-.6 6.6 1 4.3 4.4 1.5 4.4-1.7 0-2.7-3-8.3 1.4-9.1 4.4-.9 7.3 3.5 7.8 6.9.3 2-1.5 10.9 1.3 11.3 4.1.6-3.2-15.7 4.8-15.8 4.7-.1 2.8 4.1 3.9 6.6 1 2.4 2.1 1 2.3-.8.3-1.9-.9-3.2 1.3-4.3 5.9-2.9 5.9 5.4 5.5 8.5-.3 2-1.7 8.4 2 8.1 6.9-.5-2.8-16.9 4.8-18.7 4.7-1.2 6.1 3.6 6.3 7.1.1 1.7-1.2 8.1.6 9.1 3.5 2 1.9-7 2-8.4.2-4 1.2-9.6 6.4-9.8 4.7-.2 3.2 4.6 2.7 7.5-.4 2.2 1.3 8.6 3.8 4.4 1.1-1.9-.3-4.1-.3-6 0-1.7.4-3.2 1.3-4.6 1-1.6 2.9-3.5 5.1-2.9 2.5.6 2.3 4.1 4.1 4.9 1.9.8 1.6-.9 2.3-2.1 1.2-2.1 2.1-2.1 4.4-2.4 1.4-.2 3.6-1.5 4.9-.5 2.3 1.7-.7 4.4.1 6.5.6 1.5 2.1 1.7 2.8.3.7-1.4-1.1-3.4-.3-4.8 1.4-2.5 6.2-1.2 7.2 1 2.3 4.8-3.3 12-.2 16.3 3 4.1 3.9-2.8 3.8-4.8-.4-4.3-2.1-8.9 0-13.1 1.3-2.5 5.9-5.7 7.9-2.4 2 3.2-1.3 9.8-.8 13.4.5 4.4 3.5 3.3 2.7-.8-.4-1.9-2.4-10 .6-11.1 3.7-1.4 2.8 7.2 6.5.4 2.2-4.1 4.9-3.1 5.2 1.2.1 1.5-.6 3.1-.4 4.6.2 1.9 1.8 3.7 3.3 1.3 1-1.6-2.6-10.4 2.9-7.3 2.6 1.5 1.6 6.5 4.8 2.7 1.3-1.5 1.7-3.6 4-3.7 2.2-.1 4 2.3 4.8 4.1 1.3 2.9-1.5 8.4.9 10.3 4.2 3.3 3-5.5 2.7-6.9-.6-3.9 1-7.2 5.5-5 4.1 2.1 4.3 7.7 4.1 11.6 0 .8-.6 9.5 2.5 5.2 1.2-1.7-.1-7.7.1-9.6.3-2.9 1.2-5.5 4.3-6.2 4.5-1 7.7 1.5 7.4 5.8-.2 3.5-1.8 7.7-.5 11.1 1 2.7 3.6 2.8 5 .2 1.6-3.1 0-8.3-.4-11.6-.4-4.2-.2-7 1.8-10.8 0 0-.1.1-.1.2-.2.4-.3.7-.4.8v.1c-.1.2-.1.2 0 0v-.1l.4-.8c0-.1.1-.1.1-.2.2-.4.5-.8.8-1.2V0H0zM282.7 3.4z"})),clouds:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 27.8",preserveAspectRatio:"xMidYMax slice"},Rb("path",{className:"uagb-columns__shape-fill",d:"M0 0v6.7c1.9-.8 4.7-1.4 8.5-1 9.5 1.1 11.1 6 11.1 6s2.1-.7 4.3-.2c2.1.5 2.8 2.6 2.8 2.6s.2-.5 1.4-.7c1.2-.2 1.7.2 1.7.2s0-2.1 1.9-2.8c1.9-.7 3.6.7 3.6.7s.7-2.9 3.1-4.1 4.7 0 4.7 0 1.2-.5 2.4 0 1.7 1.4 1.7 1.4h1.4c.7 0 1.2.7 1.2.7s.8-1.8 4-2.2c3.5-.4 5.3 2.4 6.2 4.4.4-.4 1-.7 1.8-.9 2.8-.7 4 .7 4 .7s1.7-5 11.1-6c9.5-1.1 12.3 3.9 12.3 3.9s1.2-4.8 5.7-5.7c4.5-.9 6.8 1.8 6.8 1.8s.6-.6 1.5-.9c.9-.2 1.9-.2 1.9-.2s5.2-6.4 12.6-3.3c7.3 3.1 4.7 9 4.7 9s1.9-.9 4 0 2.8 2.4 2.8 2.4 1.9-1.2 4.5-1.2 4.3 1.2 4.3 1.2.2-1 1.4-1.7 2.1-.7 2.1-.7-.5-3.1 2.1-5.5 5.7-1.4 5.7-1.4 1.5-2.3 4.2-1.1c2.7 1.2 1.7 5.2 1.7 5.2s.3-.1 1.3.5c.5.4.8.8.9 1.1.5-1.4 2.4-5.8 8.4-4 7.1 2.1 3.5 8.9 3.5 8.9s.8-.4 2 0 1.1 1.1 1.1 1.1 1.1-1.1 2.3-1.1 2.1.5 2.1.5 1.9-3.6 6.2-1.2 1.9 6.4 1.9 6.4 2.6-2.4 7.4 0c3.4 1.7 3.9 4.9 3.9 4.9s3.3-6.9 10.4-7.9 11.5 2.6 11.5 2.6.8 0 1.2.2c.4.2.9.9.9.9s4.4-3.1 8.3.2c1.9 1.7 1.5 5 1.5 5s.3-1.1 1.6-1.4c1.3-.3 2.3.2 2.3.2s-.1-1.2.5-1.9 1.9-.9 1.9-.9-4.7-9.3 4.4-13.4c5.6-2.5 9.2.9 9.2.9s5-6.2 15.9-6.2 16.1 8.1 16.1 8.1.7-.2 1.6-.4V0H0z"})),zigzag:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 5.8",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M5.4.4l5.4 5.3L16.5.4l5.4 5.3L27.5.4 33 5.7 38.6.4l5.5 5.4h.1L49.9.4l5.4 5.3L60.9.4l5.5 5.3L72 .4l5.5 5.3L83.1.4l5.4 5.3L94.1.4l5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3L161 .4l5.4 5.3L172 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3L261 .4l5.4 5.3L272 .4l5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3L361 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.6-5.4 5.5 5.3L461 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1L550 .4l5.4 5.3L561 .4l5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2L650 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2L750 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2L850 .4l5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.4V0H-.2v5.8z"})),pyramids:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M761.9,44.1L643.1,27.2L333.8,98L0,3.8V0l1000,0v3.9"})),triangle_asymmetrical:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M738,99l262-93V0H0v5.6L738,99z"})),tilt_opacity:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2600 131.1",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M0 0L2600 0 2600 69.1 0 0z"}),Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.5",d:"M0 0L2600 0 2600 69.1 0 69.1z"}),Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.25",d:"M2600 0L0 0 0 130.1 2600 69.1z"})),fan_opacity:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 19.6",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.33",d:"M0 0L0 18.8 141.8 4.1 283.5 18.8 283.5 0z"}),Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.33",d:"M0 0L0 12.6 141.8 4 283.5 12.6 283.5 0z"}),Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.33",d:"M0 0L0 6.4 141.8 4 283.5 6.4 283.5 0z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M0 0L0 1.2 141.8 4 283.5 1.2 283.5 0z"})),curve:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M1000,4.3V0H0v4.3C0.9,23.1,126.7,99.2,500,100S1000,22.7,1000,4.3z"})),curve_asymmetrical:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M0,0c0,0,0,6,0,6.7c0,18,240.2,93.6,615.2,92.6C989.8,98.5,1000,25,1000,6.7c0-0.7,0-6.7,0-6.7H0z"})),arrow:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 700 10",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M350,10L340,0h20L350,10z"})),arrow_split:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 20",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M0,0v3c0,0,393.8,0,483.4,0c9.2,0,16.6,7.4,16.6,16.6c0-9.1,7.4-16.6,16.6-16.6C606.2,3,1000,3,1000,3V0H0z"})),book:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M194,99c186.7,0.7,305-78.3,306-97.2c1,18.9,119.3,97.9,306,97.2c114.3-0.3,194,0.3,194,0.3s0-91.7,0-100c0,0,0,0,0-0 L0,0v99.3C0,99.3,79.7,98.7,194,99z"})),curve_reverse:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 937.5 120",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M937,129.8V-0.1H0v129.9C0,62.6,209.6,8.2,468.4,8.2S936.9,62.6,937,129.8z"})),curve_asym_reverse:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 937.5 120",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M937.5,124.3V0H0v124.3C0,100.8,227.4,2.9,578.9,4.1C926.9,0.3,937.5,100.4,937.5,124.3z"}))},Db=wp.components,qb=Db.Path,Wb=Db.SVG,Gb=Db.G,Zb={};Zb.colOne=Object(f.createElement)(Wb,{className:"dashicon",height:"26",viewBox:"0 0 50 26",width:"50",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(qb,{d:"m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z"})),Zb.layout5050=Object(f.createElement)(Wb,{className:"dashicon",height:"26",viewBox:"0 0 50 26",width:"50",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(Gb,{fillRule:"evenodd"},Object(f.createElement)(qb,{d:"m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z",fillRule:"nonzero"}),Object(f.createElement)(qb,{d:"m24 2h2v22h-2z"}))),Zb.layout502525=Object(f.createElement)(Wb,{className:"dashicon",height:"26",viewBox:"0 0 50 26",width:"50",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(Gb,{fillRule:"evenodd"},Object(f.createElement)(qb,{d:"m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z",fillRule:"nonzero"}),Object(f.createElement)(qb,{d:"m36 2h2v22h-2z"}),Object(f.createElement)(qb,{d:"m24 2h2v22h-2z"}))),Zb.layout25252525=Object(f.createElement)(Wb,{className:"dashicon",height:"26",viewBox:"0 0 50 26",width:"50",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(Gb,{fillRule:"evenodd"},Object(f.createElement)(qb,{d:"m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z",fillRule:"nonzero"}),Object(f.createElement)(qb,{d:"m12 2h2v22h-2z"}),Object(f.createElement)(qb,{d:"m24 2h2v22h-2z"}),Object(f.createElement)(qb,{d:"m36 2h2v22h-2z"}))),Zb.layout3366=Object(f.createElement)(Wb,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(qb,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),Zb.layout6633=Object(f.createElement)(Wb,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(qb,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),Zb.layout333333=Object(f.createElement)(Wb,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(qb,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),Zb.layout255025=Object(f.createElement)(Wb,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(qb,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"}));var Ub=Zb;var Yb=["uagb/column"],Kb=wp.data,Jb=Kb.withSelect,$b=Kb.useDispatch,Qb=(Kb.withDispatch,wp.compose.compose),Xb=wp.element,ev=Xb.Component,tv=Xb.Fragment,av=wp.blockEditor,lv=(av.AlignmentToolbar,av.BlockControls),nv=av.BlockAlignmentToolbar,iv=av.BlockVerticalAlignmentToolbar,ov=av.ColorPalette,cv=av.InspectorControls,rv=av.InnerBlocks,sv=av.MediaUpload,uv=(av.PanelColorSettings,av.__experimentalBlockVariationPicker),hv=(av.dispatch,wp.components),dv=hv.PanelBody,gv=hv.SelectControl,mv=hv.RangeControl,bv=hv.Button,vv=hv.ButtonGroup,pv=hv.BaseControl,fv=hv.withNotices,wv=hv.ToggleControl,_v=(hv.Toolbar,hv.Tooltip,hv.TabPanel),yv=(hv.Dashicon,wp.blocks.createBlock),zv=no()((function(e){return ao()(e,(function(e){return["uagb/column",{id:e+1}]}))})),xv=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onRemoveVideo=e.onRemoveVideo.bind(h()(e)),e.onRemoveImage=e.onRemoveImage.bind(h()(e)),e.onSelectImage=e.onSelectImage.bind(h()(e)),e.onSelectVideo=e.onSelectVideo.bind(h()(e)),e.blockVariationPickerOnSelect=e.blockVariationPickerOnSelect.bind(h()(e)),e}return s()(i,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)}),this.props.setAttributes({classMigrate:!0}),"middle"===this.props.attributes.vAlign&&this.props.setAttributes({vAlign:"center"});var e=document.createElement("style");e.setAttribute("id","uagb-columns-style-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e){var t=document.getElementById("uagb-columns-style-"+this.props.clientId.substr(0,8));null!=t&&(t.innerHTML=function(e){var t=e.attributes,a=(t.classMigrate,t.backgroundType),l=t.backgroundVideoColor,n=t.backgroundImageColor,i=t.backgroundOpacity,o=t.backgroundColor,c=t.backgroundVideoOpacity,r=t.borderRadius,s=t.contentWidth,u=t.width,h=t.widthType,d=t.columnGap,g=t.topColor,m=t.topHeight,b=t.topHeightTablet,v=t.topHeightMobile,p=t.topWidth,f=t.bottomColor,w=t.bottomHeight,_=t.bottomHeightTablet,x=t.bottomHeightMobile,O=t.bottomWidth,C=t.gradientColor1,j=t.gradientColor2,M=t.gradientLocation1,E=t.gradientLocation2,H=t.gradientType,k=t.gradientAngle,S=t.gradientPosition,L=t.topPaddingTablet,B=t.bottomPaddingTablet,V=t.leftPaddingTablet,T=t.rightPaddingTablet,N=t.topPaddingMobile,A=t.bottomPaddingMobile,F=t.leftPaddingMobile,P=t.rightPaddingMobile,R=t.topMarginMobile,I=t.bottomMarginMobile,D=t.topMarginTablet,q=t.bottomMarginTablet,W=t.topDividerOpacity,G=t.bottomDividerOpacity,Z=t.mobileMarginType,U=t.tabletMarginType,Y=t.mobilePaddingType,K=t.tabletPaddingType,J=t.boxShadowColor,$=t.boxShadowHOffset,Q=t.boxShadowVOffset,X=t.boxShadowBlur,ee=t.boxShadowSpread,te=t.boxShadowPosition,ae=t.gradientValue,le="100%";"custom"==s&&""!=u&&(le=z(u,h));var ne=te;"outset"===te&&(ne="");var ie,oe,ce={".uagb-columns__wrap":Pb(e)," .uagb-columns__video-wrap":{opacity:void 0!==c?(100-c)/100:.5}," > .uagb-columns__inner-wrap":{"max-width":le}," .uagb-column__inner-wrap":{padding:z(d,"px")}," .uagb-columns__shape-top svg":{width:"calc( "+p+"% + 1.3px )",height:z(m,"px")}," .uagb-columns__shape-top .uagb-columns__shape-fill":{fill:Ci(g,void 0!==W?W:100)}," .uagb-columns__shape-bottom svg":{width:"calc( "+O+"% + 1.3px )",height:z(w,"px")}," .uagb-columns__shape-bottom .uagb-columns__shape-fill":{fill:Ci(f,void 0!==G?G:100)},".wp-block-uagb-columns":{"box-shadow":z($,"px")+" "+z(Q,"px")+" "+z(X,"px")+" "+z(ee,"px")+" "+J+" "+ne}," > .uagb-columns__overlay":{}};"video"==a?ce[" > .uagb-columns__overlay"]={opacity:1,"background-color":l}:"image"==a?ce[" > .uagb-columns__overlay"]={opacity:void 0!==i?i/100:"","background-color":n}:"color"==a?ce[" > .uagb-columns__overlay"]={opacity:void 0!==i?i/100:"","background-color":o}:"gradient"===a&&(ce[" > .uagb-columns__overlay"]["background-color"]="transparent",ce[" > .uagb-columns__overlay"].opacity=void 0!==i?i/100:"",ce[" > .uagb-columns__overlay"]["background-image"]=ae||("linear"===H?"linear-gradient(".concat(k,"deg, ").concat(C," ").concat(M,"%, ").concat(j," ").concat(E,"%)"):"radial-gradient( at ".concat(S,", ").concat(C," ").concat(M,"%, ").concat(j," ").concat(E,"%)"))),ce[" > .uagb-columns__overlay"]["border-radius"]=z(r,"px"),ie={".uagb-columns__wrap":{"padding-top":z(L,K),"padding-bottom":z(B,K),"padding-left":z(V,K),"padding-right":z(T,K),"margin-top":z(D,U),"margin-bottom":z(q,U)}," .uagb-columns__shape-top svg":{height:z(b,"px")}," .uagb-columns__shape-bottom svg":{height:z(_,"px")}},oe={".uagb-columns__wrap":{"padding-top":z(N,Y),"padding-bottom":z(A,Y),"padding-left":z(F,Y),"padding-right":z(P,Y),"margin-top":z(R,Z),"margin-bottom":z(I,Z)}," .uagb-columns__shape-top svg":{height:z(v,"px")}," .uagb-columns__shape-bottom svg":{height:z(x,"px")}};var re="",se=".uagb-block-".concat(e.clientId.substr(0,8));return re=y(ce,se),(re+=y(ie,"".concat(se,".uagb-editor-preview-mode-tablet")))+y(oe,"".concat(se,".uagb-editor-preview-mode-mobile"))}(this.props))}},{key:"onRemoveImage",value:function(){(0,this.props.setAttributes)({backgroundImage:null})}},{key:"onSelectImage",value:function(e){var t=this.props.setAttributes;e&&e.url?e.type&&"image"==e.type&&t({backgroundImage:e}):t({backgroundImage:null})}},{key:"onRemoveVideo",value:function(){(0,this.props.setAttributes)({backgroundVideo:null})}},{key:"onSelectVideo",value:function(e){var t=this.props.setAttributes;e&&e.url?e.type&&"video"==e.type&&t({backgroundVideo:e}):t({backgroundVideo:null})}},{key:"blockVariationPickerOnSelect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.defaultVariation;e.attributes&&this.props.setAttributes(e.attributes),e.innerBlocks&&this.props.replaceInnerBlocks(this.props.clientId,this.createBlocksFromInnerBlocksTemplate(e.innerBlocks))}},{key:"createBlocksFromInnerBlocksTemplate",value:function(e){var t=this;return S()(e,(function(e){var a=Na()(e,3),l=a[0],n=a[1],i=a[2],o=void 0===i?[]:i;return yv(l,n,t.createBlocksFromInnerBlocksTemplate(o))}))}},{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,l=t.setAttributes,i=t.isSelected,o=t.className,c=t.variations,r=t.hasInnerBlocks,s=t.deviceType,u=a.stack,h=a.align,d=a.vAlign,g=a.contentWidth,m=a.width,b=a.widthType,v=a.tag,p=a.columnGap,w=a.topMargin,y=a.bottomMargin,z=a.topMarginMobile,x=a.bottomMarginMobile,O=a.topMarginTablet,C=a.bottomMarginTablet,j=a.topPadding,E=a.bottomPadding,H=a.leftPadding,k=a.rightPadding,S=a.topPaddingTablet,L=a.bottomPaddingTablet,B=a.leftPaddingTablet,V=a.rightPaddingTablet,T=a.topPaddingMobile,N=a.bottomPaddingMobile,A=a.leftPaddingMobile,F=a.rightPaddingMobile,P=a.backgroundType,R=a.backgroundImage,I=a.backgroundVideo,D=a.backgroundColor,q=a.backgroundPosition,W=a.backgroundAttachment,G=a.backgroundRepeat,Z=a.backgroundSize,U=(a.gradientColor1,a.gradientColor2,a.gradientLocation1,a.gradientLocation2,a.gradientType,a.gradientAngle,a.gradientPosition,a.backgroundOpacity),Y=a.backgroundVideoColor,K=a.backgroundVideoOpacity,J=a.backgroundImageColor,$=a.borderStyle,Q=a.borderWidth,X=a.borderRadius,ee=a.borderColor,te=a.columns,ae=a.bottomType,le=a.bottomColor,ne=a.bottomHeight,ie=a.bottomHeightTablet,oe=a.bottomHeightMobile,ce=a.bottomWidth,re=a.topType,se=a.topColor,ue=a.topHeight,he=a.topHeightTablet,de=a.topHeightMobile,ge=a.topWidth,me=a.bottomFlip,be=a.topFlip,ve=a.reverseTablet,pe=a.reverseMobile,fe=a.topDividerOpacity,we=a.bottomDividerOpacity,_e=a.topContentAboveShape,ye=a.bottomContentAboveShape,ze=a.mobileMarginType,xe=a.tabletMarginType,Oe=a.desktopMarginType,Ce=a.mobilePaddingType,je=a.tabletPaddingType,Me=a.desktopPaddingType,Ee=a.boxShadowColor,He=a.boxShadowHOffset,ke=a.boxShadowVOffset,Se=a.boxShadowBlur,Le=a.boxShadowSpread,Be=a.boxShadowPosition,Ve=(a.gradientValue,"".concat(v)),Te=i?"active":"not-active",Ne=[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"tilt",label:Object(M.__)("Tilt","ultimate-addons-for-gutenberg")},{value:"mountains",label:Object(M.__)("Mountains","ultimate-addons-for-gutenberg")},{value:"wave_brush",label:Object(M.__)("Wave Brush","ultimate-addons-for-gutenberg")},{value:"waves",label:Object(M.__)("Waves","ultimate-addons-for-gutenberg")},{value:"wave_pattern",label:Object(M.__)("Waves Pattern","ultimate-addons-for-gutenberg")},{value:"triangle",label:Object(M.__)("Triangle","ultimate-addons-for-gutenberg")},{value:"drops",label:Object(M.__)("Drops","ultimate-addons-for-gutenberg")},{value:"clouds",label:Object(M.__)("Clouds","ultimate-addons-for-gutenberg")},{value:"zigzag",label:Object(M.__)("ZigZag","ultimate-addons-for-gutenberg")},{value:"pyramids",label:Object(M.__)("Pyramids","ultimate-addons-for-gutenberg")},{value:"triangle_asymmetrical",label:Object(M.__)("Triangle Asymmetrical","ultimate-addons-for-gutenberg")},{value:"tilt_opacity",label:Object(M.__)("Tilt Opacity","ultimate-addons-for-gutenberg")},{value:"fan_opacity",label:Object(M.__)("Fan Opacity","ultimate-addons-for-gutenberg")},{value:"curve",label:Object(M.__)("Curve","ultimate-addons-for-gutenberg")},{value:"curve_asymmetrical",label:Object(M.__)("Curve Asymmetrical","ultimate-addons-for-gutenberg")},{value:"curve_reverse",label:Object(M.__)("Curve Reverse","ultimate-addons-for-gutenberg")},{value:"curve_asym_reverse",label:Object(M.__)("Curve Asymmetrical Reverse","ultimate-addons-for-gutenberg")},{value:"arrow",label:Object(M.__)("Arrow","ultimate-addons-for-gutenberg")},{value:"arrow_split",label:Object(M.__)("Arrow Split","ultimate-addons-for-gutenberg")},{value:"book",label:Object(M.__)("Book","ultimate-addons-for-gutenberg")}],Ae=Object(f.createElement)(tv,null,Object(f.createElement)(gv,{label:Object(M.__)("Type","ultimate-addons-for-gutenberg"),value:ae,onChange:function(e){return l({bottomType:e})},options:Ne}),"none"!=ae&&Object(f.createElement)(tv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{bottomColor:le}}))),Object(f.createElement)(ov,{value:le,onChange:function(e){return l({bottomColor:e})},allowReset:!0}),Object(f.createElement)(mv,{label:Object(M.__)("Opacity","ultimate-addons-for-gutenberg"),value:we,onChange:function(e){return l({bottomDividerOpacity:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(mv,{label:Object(M.__)("Width","ultimate-addons-for-gutenberg"),value:ce,onChange:function(e){return l({bottomWidth:e})},min:100,max:2e3,allowReset:!0}),Object(f.createElement)(Ga,null),"Desktop"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(mv,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:ne,onChange:function(e){return l({bottomHeight:e})},min:0,max:500,allowReset:!0})),"Tablet"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(mv,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:ie,onChange:function(e){return l({bottomHeightTablet:e})},min:0,max:500,allowReset:!0})),"Mobile"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(mv,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:oe,onChange:function(e){return l({bottomHeightMobile:e})},min:0,max:500,allowReset:!0})),Object(f.createElement)(wv,{label:Object(M.__)("Flip","ultimate-addons-for-gutenberg"),checked:me,onChange:function(e){return l({bottomFlip:!me})}}),Object(f.createElement)(wv,{label:Object(M.__)("Bring To Front","ultimate-addons-for-gutenberg"),checked:ye,onChange:function(e){return l({bottomContentAboveShape:!ye})}}))),Fe=Object(f.createElement)(tv,null,Object(f.createElement)(gv,{label:Object(M.__)("Type","ultimate-addons-for-gutenberg"),value:re,onChange:function(e){return l({topType:e})},options:Ne}),"none"!=re&&Object(f.createElement)(tv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{topColor:se}}))),Object(f.createElement)(ov,{value:se,onChange:function(e){return l({topColor:e})},allowReset:!0}),Object(f.createElement)(mv,{label:Object(M.__)("Opacity","ultimate-addons-for-gutenberg"),value:fe,onChange:function(e){return l({topDividerOpacity:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(mv,{label:Object(M.__)("Width","ultimate-addons-for-gutenberg"),value:ge,onChange:function(e){return l({topWidth:e})},min:100,max:2e3,allowReset:!0}),Object(f.createElement)(Ga,null),"Desktop"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(mv,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:ue,onChange:function(e){return l({topHeight:e})},min:0,max:500,allowReset:!0})),"Tablet"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(mv,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:he,onChange:function(e){return l({topHeightTablet:e})},min:0,max:500,allowReset:!0})),"Mobile"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(mv,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:de,onChange:function(e){return l({topHeightMobile:e})},min:0,max:500,allowReset:!0})),Object(f.createElement)(wv,{label:Object(M.__)("Flip","ultimate-addons-for-gutenberg"),checked:be,onChange:function(e){return l({topFlip:!be})}}),Object(f.createElement)(wv,{label:Object(M.__)("Bring To Front","ultimate-addons-for-gutenberg"),checked:_e,onChange:function(e){return l({topContentAboveShape:!_e})}}))),Pe="none"!=re&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-top",{"uagb-columns__shape-flip":!0===be},{"uagb-columns__shape-above-content":!0===_e})},Ib[re]),Re="none"!=ae&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-bottom",{"uagb-columns__shape-flip":!0===me},{"uagb-columns__shape-above-content":!0===ye}),"data-negative":"false"},Ib[ae]),Ie=ve?"uagb-columns__reverse-tablet":"",De=pe?"uagb-columns__reverse-mobile":"";return r?Object(f.createElement)(tv,null,Object(f.createElement)(lv,null,Object(f.createElement)(nv,{value:h,onChange:function(e){l({align:e})},controls:["wide","full"]}),Object(f.createElement)(iv,{value:d,onChange:function(e){l({vAlign:e})}})),Object(f.createElement)(cv,null,Object(f.createElement)(dv,{title:Object(M.__)("Layout","ultimate-addons-for-gutenberg")},Object(f.createElement)(mv,{label:Object(M.__)("Columns","ultimate-addons-for-gutenberg"),value:te,min:0,max:6,onChange:function(e){return l({columns:e})}}),Object(f.createElement)(gv,{label:Object(M.__)("Stack on","ultimate-addons-for-gutenberg"),value:u,options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(M.__)("Tablet & Mobile","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(M.__)("Mobile","ultimate-addons-for-gutenberg")}],onChange:function(e){return l({stack:e})},help:Object(M.__)("Note: Choose on what breakpoint the columns will stack.","ultimate-addons-for-gutenberg")}),Object(f.createElement)(gv,{label:Object(M.__)("Container Width","ultimate-addons-for-gutenberg"),value:g,onChange:function(e){return l({contentWidth:e})},options:[{value:"theme",label:Object(M.__)("Theme Container Width","ultimate-addons-for-gutenberg")},{value:"custom",label:Object(M.__)("Custom","ultimate-addons-for-gutenberg")}]}),"custom"==g&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===b,"aria-pressed":"px"===b,min:0,max:2e3,onClick:function(){return l({widthType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===b,"aria-pressed":"%"===b,min:0,max:100,onClick:function(){return l({widthType:"%"})}},"%")),Object(f.createElement)(mv,{label:Object(M.__)("Inner Width","ultimate-addons-for-gutenberg"),value:m,min:0,max:"%"==b?100:2e3,onChange:function(e){return l({width:e})}})),Object(f.createElement)(Fb,{label:Object(M.__)("Column Gap","ultimate-addons-for-gutenberg"),currentOption:p,options:[{value:"10",label:Object(M.__)("Default","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Default (10px)","ultimate-addons-for-gutenberg")},{value:"0",label:Object(M.__)("None","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("No Gap (0px)","ultimate-addons-for-gutenberg")},{value:"5",label:Object(M.__)("S","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Narrow (5px)","ultimate-addons-for-gutenberg")},{value:"15",label:Object(M.__)("M","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Extended (15px)","ultimate-addons-for-gutenberg")},{value:"20",label:Object(M.__)("L","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Wide (20px)","ultimate-addons-for-gutenberg")},{value:"30",label:Object(M.__)("XL","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Wider (30px)","ultimate-addons-for-gutenberg")}],onChange:function(e){return l({columnGap:e})},help:Object(M.__)("Note: The individual Column Gap can be managed from Column Settings.","ultimate-addons-for-gutenberg")}),Object(f.createElement)(gv,{label:Object(M.__)("HTML Tag","ultimate-addons-for-gutenberg"),value:v,onChange:function(e){return l({tag:e})},options:[{value:"div",label:Object(M.__)("div","ultimate-addons-for-gutenberg")},{value:"header",label:Object(M.__)("header","ultimate-addons-for-gutenberg")},{value:"footer",label:Object(M.__)("footer","ultimate-addons-for-gutenberg")},{value:"main",label:Object(M.__)("main","ultimate-addons-for-gutenberg")},{value:"article",label:Object(M.__)("article","ultimate-addons-for-gutenberg")},{value:"section",label:Object(M.__)("section","ultimate-addons-for-gutenberg")},{value:"aside",label:Object(M.__)("aside","ultimate-addons-for-gutenberg")},{value:"nav",label:Object(M.__)("nav","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(wv,{label:Object(M.__)("Reverse Columns (Tablet & Mobile)","ultimate-addons-for-gutenberg"),checked:ve,onChange:function(e){return l({reverseTablet:!ve})}}),Object(f.createElement)(wv,{label:Object(M.__)("Reverse Columns (Mobile)","ultimate-addons-for-gutenberg"),checked:pe,onChange:function(e){return l({reverseMobile:!pe})}})),Object(f.createElement)(dv,{title:Object(M.__)("Spacing"),initialOpen:!1},Object(f.createElement)(Ga,null),"Desktop"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Me,"aria-pressed":"px"===Me,onClick:function(){return l({desktopPaddingType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Me,"aria-pressed":"%"===Me,onClick:function(){return l({desktopPaddingType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding")),Object(f.createElement)(mv,{label:n.top_margin,className:"uagb-margin-control",value:j,onChange:function(e){return l({topPadding:e})},min:0,max:"%"==Me?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.bottom_margin,className:"uagb-margin-control",value:E,onChange:function(e){return l({bottomPadding:e})},min:0,max:"%"==Me?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.left_margin,className:"uagb-margin-control",value:H,onChange:function(e){return l({leftPadding:e})},min:0,max:"%"==Me?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.right_margin,className:"uagb-margin-control",value:k,onChange:function(e){return l({rightPadding:e})},min:0,max:"%"==Me?100:2e3,allowReset:!0})),"Tablet"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===je,"aria-pressed":"px"===je,onClick:function(){return l({tabletPaddingType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===je,"aria-pressed":"%"===je,onClick:function(){return l({tabletPaddingType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(mv,{label:n.top_margin,className:"uagb-margin-control",value:S,onChange:function(e){return l({topPaddingTablet:e})},min:0,max:"%"==je?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.bottom_margin,className:"uagb-margin-control",value:L,onChange:function(e){return l({bottomPaddingTablet:e})},min:0,max:"%"==je?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.left_margin,className:"uagb-margin-control",value:B,onChange:function(e){return l({leftPaddingTablet:e})},min:0,max:"%"==je?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.right_margin,className:"uagb-margin-control",value:V,onChange:function(e){return l({rightPaddingTablet:e})},min:0,max:"%"==je?100:2e3,allowReset:!0})),"Mobile"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Ce,"aria-pressed":"px"===Ce,onClick:function(){return l({mobilePaddingType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Ce,"aria-pressed":"%"===Ce,onClick:function(){return l({mobilePaddingType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(mv,{label:n.top_margin,className:"uagb-margin-control",value:T,onChange:function(e){return l({topPaddingMobile:e})},min:0,max:"%"==Ce?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.bottom_margin,className:"uagb-margin-control",value:N,onChange:function(e){return l({bottomPaddingMobile:e})},min:0,max:"%"==Ce?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.left_margin,className:"uagb-margin-control",value:A,onChange:function(e){return l({leftPaddingMobile:e})},min:0,max:"%"==Ce?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.right_margin,className:"uagb-margin-control",value:F,onChange:function(e){return l({rightPaddingMobile:e})},min:0,max:"%"==Ce?100:2e3,allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Ga,null),"Desktop"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Oe,"aria-pressed":"px"===Oe,onClick:function(){return l({desktopMarginType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Oe,"aria-pressed":"%"===Oe,onClick:function(){return l({desktopMarginType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Margin","ultimate-addons-for-gutenberg")),Object(f.createElement)(mv,{label:n.top_margin,className:"uagb-margin-control",value:w,onChange:function(e){return l({topMargin:e})},min:-2e3,max:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.bottom_margin,className:"uagb-margin-control",value:y,onChange:function(e){return l({bottomMargin:e})},min:-2e3,max:2e3,allowReset:!0})),"Tablet"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===xe,"aria-pressed":"px"===xe,onClick:function(){return l({tabletMarginType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===xe,"aria-pressed":"%"===xe,onClick:function(){return l({tabletMarginType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Margin Tablet","ultimate-addons-for-gutenberg")),Object(f.createElement)(mv,{label:n.top_margin,className:"uagb-margin-control",value:O,onChange:function(e){return l({topMarginTablet:e})},min:-2e3,max:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.bottom_margin,className:"uagb-margin-control",value:C,onChange:function(e){return l({bottomMarginTablet:e})},min:-2e3,max:2e3,allowReset:!0})),"Mobile"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===ze,"aria-pressed":"px"===ze,onClick:function(){return l({mobileMarginType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===ze,"aria-pressed":"%"===ze,onClick:function(){return l({mobileMarginType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Margin Mobile","ultimate-addons-for-gutenberg")),Object(f.createElement)(mv,{label:n.top_margin,className:"uagb-margin-control",value:z,onChange:function(e){return l({topMarginMobile:e})},min:-2e3,max:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.bottom_margin,className:"uagb-margin-control",value:x,onChange:function(e){return l({bottomMarginMobile:e})},min:-2e3,max:2e3,allowReset:!0}))),Object(f.createElement)(dv,{title:Object(M.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(gv,{label:Object(M.__)("Background Type","ultimate-addons-for-gutenberg"),value:P,onChange:function(e){return l({backgroundType:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"color",label:Object(M.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(M.__)("Gradient","ultimate-addons-for-gutenberg")},{value:"image",label:Object(M.__)("Image","ultimate-addons-for-gutenberg")},{value:"video",label:Object(M.__)("Video","ultimate-addons-for-gutenberg")}]}),"color"==P&&Object(f.createElement)(tv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:D}}))),Object(f.createElement)(ov,{value:D,onChange:function(e){return l({backgroundColor:e})},allowReset:!0})),"image"==P&&Object(f.createElement)(tv,null,Object(f.createElement)(pv,{className:"editor-bg-image-control",label:Object(M.__)("Background Image","ultimate-addons-for-gutenberg")},Object(f.createElement)(sv,{title:Object(M.__)("Select Background Image","ultimate-addons-for-gutenberg"),onSelect:this.onSelectImage,allowedTypes:["image"],value:R,render:function(e){var t=e.open;return Object(f.createElement)(bv,{isSecondary:!0,onClick:t},R?Object(M.__)("Replace image","ultimate-addons-for-gutenberg"):Object(M.__)("Select Background Image","ultimate-addons-for-gutenberg"))}}),R&&Object(f.createElement)(bv,{className:"uagb-rm-btn",onClick:this.onRemoveImage,isLink:!0,isDestructive:!0},Object(M.__)("Remove Image","ultimate-addons-for-gutenberg"))),R&&Object(f.createElement)(tv,null,Object(f.createElement)(gv,{label:Object(M.__)("Image Position","ultimate-addons-for-gutenberg"),value:q,onChange:function(e){return l({backgroundPosition:e})},options:[{value:"top-left",label:Object(M.__)("Top Left","ultimate-addons-for-gutenberg")},{value:"top-center",label:Object(M.__)("Top Center","ultimate-addons-for-gutenberg")},{value:"top-right",label:Object(M.__)("Top Right","ultimate-addons-for-gutenberg")},{value:"center-left",label:Object(M.__)("Center Left","ultimate-addons-for-gutenberg")},{value:"center-center",label:Object(M.__)("Center Center","ultimate-addons-for-gutenberg")},{value:"center-right",label:Object(M.__)("Center Right","ultimate-addons-for-gutenberg")},{value:"bottom-left",label:Object(M.__)("Bottom Left","ultimate-addons-for-gutenberg")},{value:"bottom-center",label:Object(M.__)("Bottom Center","ultimate-addons-for-gutenberg")},{value:"bottom-right",label:Object(M.__)("Bottom Right","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(gv,{label:Object(M.__)("Attachment","ultimate-addons-for-gutenberg"),value:W,onChange:function(e){return l({backgroundAttachment:e})},options:[{value:"fixed",label:Object(M.__)("Fixed","ultimate-addons-for-gutenberg")},{value:"scroll",label:Object(M.__)("Scroll","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(gv,{label:Object(M.__)("Repeat","ultimate-addons-for-gutenberg"),value:G,onChange:function(e){return l({backgroundRepeat:e})},options:[{value:"no-repeat",label:Object(M.__)("No Repeat","ultimate-addons-for-gutenberg")},{value:"repeat",label:Object(M.__)("Repeat","ultimate-addons-for-gutenberg")},{value:"repeat-x",label:Object(M.__)("Repeat-x","ultimate-addons-for-gutenberg")},{value:"repeat-y",label:Object(M.__)("Repeat-y","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(gv,{label:Object(M.__)("Size","ultimate-addons-for-gutenberg"),value:Z,onChange:function(e){return l({backgroundSize:e})},options:[{value:"auto",label:Object(M.__)("Auto","ultimate-addons-for-gutenberg")},{value:"cover",label:Object(M.__)("Cover","ultimate-addons-for-gutenberg")},{value:"contain",label:Object(M.__)("Contain","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(tv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Image Overlay Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:J}}))),Object(f.createElement)(ov,{value:J,onChange:function(e){return l({backgroundImageColor:e})},allowReset:!0})))),"gradient"==P&&Object(f.createElement)(tv,null,Object(f.createElement)(Mi,{attributes:a,setAttributes:l})),"video"==P&&Object(f.createElement)(pv,{className:"editor-bg-video-control",label:Object(M.__)("Background Video","ultimate-addons-for-gutenberg")},Object(f.createElement)(sv,{title:Object(M.__)("Select Background Video","ultimate-addons-for-gutenberg"),onSelect:this.onSelectVideo,allowedTypes:["video"],value:I,render:function(e){var t=e.open;return Object(f.createElement)(bv,{isSecondary:!0,onClick:t},I?Object(M.__)("Replace Video","ultimate-addons-for-gutenberg"):Object(M.__)("Select Background Video","ultimate-addons-for-gutenberg"))}}),I&&Object(f.createElement)(bv,{onClick:this.onRemoveVideo,isLink:!0,isDestructive:!0},Object(M.__)("Remove Video","ultimate-addons-for-gutenberg"))),("color"==P||"image"==P&&R||"gradient"==P)&&Object(f.createElement)(mv,{label:Object(M.__)("Opacity","ultimate-addons-for-gutenberg"),value:U,onChange:function(e){return l({backgroundOpacity:e})},min:0,max:100,allowReset:!0,initialPosition:100}),"video"==P&&I&&Object(f.createElement)(tv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Video Overlay Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Y}}))),Object(f.createElement)(ov,{value:Y,onChange:function(e){return l({backgroundVideoColor:e})},allowReset:!0})),"video"==P&&I&&Object(f.createElement)(mv,{label:Object(M.__)("Opacity","ultimate-addons-for-gutenberg"),value:K,onChange:function(e){return l({backgroundVideoOpacity:e})},min:0,max:100,allowReset:!0,initialPosition:50})),Object(f.createElement)(dv,{title:Object(M.__)("Shape Dividers","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(_v,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"top",title:Object(M.__)("Top","ultimate-addons-for-gutenberg"),className:"uagb-top-tab"},{name:"bottom",title:Object(M.__)("Bottom","ultimate-addons-for-gutenberg"),className:"uagb-bottom-tab"}]},(function(e){var t;return t="bottom"===e.name?Ae:Fe,Object(f.createElement)("div",null,t)}))),Object(f.createElement)(dv,{title:Object(M.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(gv,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:$,onChange:function(e){return l({borderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=$&&Object(f.createElement)(mv,{label:Object(M.__)("Border Width","ultimate-addons-for-gutenberg"),value:Q,onChange:function(e){return l({borderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(mv,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:X,onChange:function(e){return l({borderRadius:e})},min:0,max:1e3,allowReset:!0}),"none"!=$&&Object(f.createElement)(tv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ee}}))),Object(f.createElement)(ov,{value:ee,onChange:function(e){return l({borderColor:e})},allowReset:!0})),Object(f.createElement)(Oi,{setAttributes:l,label:Object(M.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Ee,label:Object(M.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:He,label:Object(M.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:ke,label:Object(M.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Se,label:Object(M.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:Le,label:Object(M.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:Be,label:Object(M.__)("Position","ultimate-addons-for-gutenberg")}}))),Object(f.createElement)(Ve,{className:_()(o,"uagb-columns__wrap","uagb-columns__background-".concat(P),"uagb-columns__edit-".concat(Te),"uagb-editor-preview-mode-".concat(s.toLowerCase()),"uagb-columns__stack-".concat(u),"uagb-columns__valign-".concat(d),"uagb-columns__gap-".concat(p),"align".concat(h),Ie,De,"uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:"uagb-columns__overlay"}),Pe,"video"==P&&Object(f.createElement)("div",{className:"uagb-columns__video-wrap"},I&&Object(f.createElement)("video",{autoplay:!0,loop:!0,muted:!0,playsinline:!0},Object(f.createElement)("source",{src:I.url,type:"video/mp4"}))),Object(f.createElement)("div",{className:_()("uagb-columns__inner-wrap","uagb-columns__columns-".concat(te))},Object(f.createElement)(rv,{template:zv(te),templateLock:"all",allowedBlocks:Yb})),Re)):Object(f.createElement)(tv,null,Object(f.createElement)(uv,{icon:n.columns,label:uagb_blocks_info.blocks["uagb/columns"].title,instructions:Object(M.__)("Select a variation to start with.","ultimate-addons-for-gutenberg"),variations:c,allowSkip:!0,onSelect:function(t){return e.blockVariationPickerOnSelect(t)}}))}}]),i}(ev),Ov=Qb(fv,Jb((function(e,t){var a=e("core/block-editor"),l=a.getBlocks,n=(a.getBlocksByClientId,e("core/blocks")),i=n.getBlockType,o=n.getBlockVariations,c=n.getDefaultBlockVariation,r=l(t.clientId),s=$b("core/block-editor").replaceInnerBlocks,u=e("core/edit-post").__experimentalGetPreviewDeviceType,h=void 0===u?null:u,d=h?h():null;return{innerBlocks:r,hasInnerBlocks:e("core/block-editor").getBlocks(t.clientId).length>0,blockType:i(t.name),defaultVariation:void 0===c?null:c(t.name),variations:void 0===o?null:o(t.name),replaceInnerBlocks:s,deviceType:d}})))(xv),Cv=wp.blockEditor.InnerBlocks,jv=[{attributes:jb,save:function(e){e.attributes;var t=e.className,a=e.attributes,l=a.block_id,n=a.tag,i=a.backgroundType,o=a.backgroundVideo,c=(a.contentWidth,a.align),r=a.columns,s=a.stack,u=a.vAlign,h=a.columnGap,d=a.topType,g=a.bottomType,m=a.bottomFlip,b=a.topFlip,v=a.reverseTablet,p=a.reverseMobile,w=a.topContentAboveShape,y=a.bottomContentAboveShape,z="".concat(n),x="none"!=d&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-top",{"uagb-columns__shape-flip":!0===b},{"uagb-columns__shape-above-content":!0===w})},Ib[d]),O="none"!=g&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-bottom",{"uagb-columns__shape-flip":!0===m},{"uagb-columns__shape-above-content":!0===y}),"data-negative":"false"},Ib[g]),C=v?"uagb-columns__reverse-tablet":"",j=p?"uagb-columns__reverse-mobile":"";return Object(f.createElement)(z,{className:_()(t,"uagb-columns__wrap","uagb-columns__background-".concat(i),"uagb-columns__stack-".concat(s),"uagb-columns__valign-".concat(u),"uagb-columns__gap-".concat(h),"align".concat(c),C,j),id:"uagb-columns-".concat(l)},Object(f.createElement)("div",{className:"uagb-columns__overlay"}),x,"video"==i&&Object(f.createElement)("div",{className:"uagb-columns__video-wrap"},o&&Object(f.createElement)("video",{src:o.url,autoPlay:!0,loop:!0,muted:!0})),Object(f.createElement)("div",{className:_()("uagb-columns__inner-wrap","uagb-columns__columns-".concat(r))},Object(f.createElement)(Cv.Content,null)),O)}},{attributes:jb,save:function(e){e.attributes;var t=e.className,a=e.attributes,l=a.block_id,n=a.tag,i=a.backgroundType,o=a.backgroundVideo,c=(a.contentWidth,a.align),r=a.columns,s=a.stack,u=a.vAlign,h=a.columnGap,d=a.topType,g=a.bottomType,m=a.bottomFlip,b=a.topFlip,v=a.reverseTablet,p=a.reverseMobile,w=a.topContentAboveShape,y=a.bottomContentAboveShape,z="".concat(n),x="none"!=d&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-top",{"uagb-columns__shape-flip":!0===b},{"uagb-columns__shape-above-content":!0===w})},Ib[d]),O="none"!=g&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-bottom",{"uagb-columns__shape-flip":!0===m},{"uagb-columns__shape-above-content":!0===y}),"data-negative":"false"},Ib[g]),C=v?"uagb-columns__reverse-tablet":"",j=p?"uagb-columns__reverse-mobile":"";return Object(f.createElement)(z,{className:_()(t,"uagb-columns__wrap","uagb-columns__background-".concat(i),"uagb-columns__stack-".concat(s),"uagb-columns__valign-".concat(u),"uagb-columns__gap-".concat(h),"align".concat(c),C,j),id:"uagb-columns-".concat(l)},Object(f.createElement)("div",{className:"uagb-columns__overlay"}),x,"video"==i&&Object(f.createElement)("div",{className:"uagb-columns__video-wrap"},o&&Object(f.createElement)("video",{autoplay:!0,loop:!0,muted:!0,playsinline:!0},Object(f.createElement)("source",{src:o.url,type:"video/mp4"}))),Object(f.createElement)("div",{className:_()("uagb-columns__inner-wrap","uagb-columns__columns-".concat(r))},Object(f.createElement)(Cv.Content,null)),O)}}],Mv=[{name:"one-column",label:Object(M.__)("One column","ultimate-addons-for-gutenberg"),icon:Ub.colOne,attributes:{columns:1,layout:"100"},innerBlocks:[["uagb/column",{colWidth:100}]],scope:["block"]},{name:"two-column-split",label:Object(M.__)("Two columns; equal split","ultimate-addons-for-gutenberg"),icon:Ub.layout5050,attributes:{columns:2,layout:"50-50"},isDefault:!0,innerBlocks:[["uagb/column",{colWidth:50}],["uagb/column",{colWidth:50}]],scope:["block"]},{name:"two-columns-one-third-two-thirds",label:Object(M.__)("Two columns; one-third, two-thirds split","ultimate-addons-for-gutenberg"),icon:Ub.layout3366,attributes:{columns:2},innerBlocks:[["uagb/column",{colWidth:33.33}],["uagb/column",{colWidth:66.66}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",label:Object(M.__)("Two columns; two-thirds, one-third split","ultimate-addons-for-gutenberg"),icon:Ub.layout6633,attributes:{columns:2},innerBlocks:[["uagb/column",{colWidth:66.66}],["uagb/column",{colWidth:33.33}]],scope:["block"]},{name:"three-column",label:Object(M.__)("Three columns; equal split","ultimate-addons-for-gutenberg"),icon:Ub.layout502525,attributes:{columns:3,layout:"50-25-25"},innerBlocks:[["uagb/column",{colWidth:50}],["uagb/column",{colWidth:25}],["uagb/column",{colWidth:25}]],scope:["block"]},{name:"three-columns-equal",label:Object(M.__)("Three columns; equal split","ultimate-addons-for-gutenberg"),icon:Ub.layout333333,attributes:{columns:3},innerBlocks:[["uagb/column",{colWidth:33.33}],["uagb/column",{colWidth:33.33}],["uagb/column",{colWidth:33.33}]],scope:["block"]},{name:"three-columns-wider-center",label:Object(M.__)("Three columns; wide center column","ultimate-addons-for-gutenberg"),icon:Ub.layout255025,attributes:{columns:3},innerBlocks:[["uagb/column",{colWidth:25}],["uagb/column",{colWidth:50}],["uagb/column",{colWidth:25}]],scope:["block"]},{name:"four-column",label:Object(M.__)("Four columns; equal split","ultimate-addons-for-gutenberg"),icon:Ub.layout25252525,attributes:{columns:4,layout:"25-25-25-25"},innerBlocks:[["uagb/column",{colWidth:25}],["uagb/column",{colWidth:25}],["uagb/column",{colWidth:25}],["uagb/column",{colWidth:25}]],scope:["block"]}],Ev=(a(384),a(385),wp.blocks.registerBlockType),Hv=wp.blockEditor.InnerBlocks;Ev("uagb/columns",{title:uagb_blocks_info.blocks["uagb/columns"].title,description:uagb_blocks_info.blocks["uagb/columns"].description,icon:n.columns,category:uagb_blocks_info.category,keywords:[Object(M.__)("columns","ultimate-addons-for-gutenberg"),Object(M.__)("rows","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],attributes:jb,variations:Mv,edit:Ov,getEditWrapperProps:function(e){return{"data-align":e.align}},supports:{editorsKitBlockNavigator:!0,anchor:!0},example:{},save:function(e){var t=e.attributes,a=e.className,l=t.block_id,n=t.tag,i=t.backgroundType,o=t.backgroundVideo,c=t.align,r=t.columns,s=t.stack,u=t.vAlign,h=t.columnGap,d=t.topType,g=t.bottomType,m=t.bottomFlip,b=t.topFlip,v=t.reverseTablet,p=t.reverseMobile,w=t.topContentAboveShape,y=t.bottomContentAboveShape,z="".concat(n),x="none"!=d&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-top",{"uagb-columns__shape-flip":!0===b},{"uagb-columns__shape-above-content":!0===w})},Ib[d]),O="none"!=g&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-bottom",{"uagb-columns__shape-flip":!0===m},{"uagb-columns__shape-above-content":!0===y}),"data-negative":"false"},Ib[g]),C=v?"uagb-columns__reverse-tablet":"",j=p?"uagb-columns__reverse-mobile":"";return Object(f.createElement)(z,{className:_()(a,"uagb-columns__wrap","uagb-columns__background-".concat(i),"uagb-columns__stack-".concat(s),"uagb-columns__valign-".concat(u),"uagb-columns__gap-".concat(h),"align".concat(c),C,j,"uagb-block-".concat(l))},Object(f.createElement)("div",{className:"uagb-columns__overlay"}),x,"video"==i&&Object(f.createElement)("div",{className:"uagb-columns__video-wrap"},o&&Object(f.createElement)("video",{autoplay:!0,loop:!0,muted:!0,playsinline:!0},Object(f.createElement)("source",{src:o.url,type:"video/mp4"}))),Object(f.createElement)("div",{className:_()("uagb-columns__inner-wrap","uagb-columns__columns-".concat(r))},Object(f.createElement)(Hv.Content,null)),O)},deprecated:jv});var kv=wp.blockEditor,Sv=kv.AlignmentToolbar,Lv=kv.BlockControls,Bv=kv.ColorPalette,Vv=kv.InspectorControls,Tv=wp.data.withSelect,Nv=wp.components,Av=Nv.PanelBody,Fv=Nv.SelectControl,Pv=Nv.RangeControl,Rv=Nv.Button,Iv=Nv.ToggleControl,Dv=Nv.Placeholder,qv=Nv.Spinner,Wv=Nv.ButtonGroup,Gv=Nv.TabPanel,Zv=wp.element,Uv=Zv.Component,Yv=Zv.Fragment,Kv=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onSelectForm=e.onSelectForm.bind(h()(e)),e}return s()(i,[{key:"onSelectForm",value:function(e){this.props.attributes.formId;var t=this.props,a=t.setAttributes;if(t.setState,!e)return a({isHtml:!1}),void a({formId:null});a({isHtml:!1}),a({formId:e})}},{key:"render",value:function(){var e,t,a,l,i,o,c=this.props,r=c.className,s=c.setAttributes,u=c.attributes,h=u.formId,d=u.align,g=u.isHtml,m=u.formJson,b=u.fieldStyle,v=u.fieldVrPadding,p=u.fieldHrPadding,w=u.fieldBgColor,y=u.fieldLabelColor,z=u.fieldInputColor,x=u.fieldBorderStyle,O=u.fieldBorderWidth,C=u.fieldBorderRadius,j=u.fieldBorderColor,E=u.fieldBorderFocusColor,H=u.buttonAlignment,k=u.buttonVrPadding,S=u.buttonHrPadding,L=u.buttonTextColor,B=u.buttonBgColor,V=u.buttonTextHoverColor,T=u.buttonBgHoverColor,N=u.buttonBorderStyle,A=u.buttonBorderWidth,F=u.buttonBorderRadius,P=u.buttonBorderColor,R=u.buttonBorderHoverColor,I=u.fieldSpacing,D=u.fieldLabelSpacing,q=u.labelFontSize,W=u.labelFontSizeType,G=u.labelFontSizeTablet,Z=u.labelFontSizeMobile,U=u.labelFontFamily,Y=u.labelFontWeight,K=u.labelFontSubset,J=u.labelLineHeightType,$=u.labelLineHeight,Q=u.labelLineHeightTablet,X=u.labelLineHeightMobile,ee=u.labelLoadGoogleFonts,te=u.inputFontSize,ae=u.inputFontSizeType,le=u.inputFontSizeTablet,ne=u.inputFontSizeMobile,ie=u.inputFontFamily,oe=u.inputFontWeight,ce=u.inputFontSubset,re=u.inputLineHeightType,se=u.inputLineHeight,ue=u.inputLineHeightTablet,he=u.inputLineHeightMobile,de=u.inputLoadGoogleFonts,ge=u.buttonFontSize,me=u.buttonFontSizeType,be=u.buttonFontSizeTablet,ve=u.buttonFontSizeMobile,pe=u.buttonFontFamily,fe=u.buttonFontWeight,we=u.buttonFontSubset,_e=u.buttonLineHeightType,ye=u.buttonLineHeight,ze=u.buttonLineHeightTablet,xe=u.buttonLineHeightMobile,Oe=u.buttonLoadGoogleFonts,Ce=u.enableOveride,je=u.radioCheckSize,Me=u.radioCheckBgColor,Ee=u.radioCheckSelectColor,He=u.radioCheckLableColor,ke=u.radioCheckBorderColor,Se=u.radioCheckBorderWidth,Le=u.radioCheckBorderRadius,Be=u.radioCheckFontSize,Ve=u.radioCheckFontSizeType,Te=u.radioCheckFontSizeTablet,Ne=u.radioCheckFontSizeMobile,Ae=u.radioCheckFontFamily,Fe=u.radioCheckFontWeight,Pe=u.radioCheckFontSubset,Re=u.radioCheckLineHeightType,Ie=u.radioCheckLineHeight,De=u.radioCheckLineHeightTablet,qe=u.radioCheckLineHeightMobile,We=u.radioCheckLoadGoogleFonts,Ge=u.validationMsgPosition,Ze=u.validationMsgColor,Ue=u.validationMsgBgColor,Ye=u.enableHighlightBorder,Ke=u.highlightBorderColor,Je=u.validationMsgFontSize,$e=u.validationMsgFontSizeType,Qe=u.validationMsgFontSizeTablet,Xe=u.validationMsgFontSizeMobile,et=u.validationMsgFontFamily,tt=u.validationMsgFontWeight,at=u.validationMsgFontSubset,lt=u.validationMsgLineHeightType,nt=u.validationMsgLineHeight,it=u.validationMsgLineHeightTablet,ot=u.validationMsgLineHeightMobile,ct=u.validationMsgLoadGoogleFonts,rt=u.successMsgColor,st=u.successMsgBgColor,ut=u.successMsgBorderColor,ht=u.errorMsgColor,dt=u.errorMsgBgColor,gt=u.errorMsgBorderColor,mt=u.msgBorderSize,bt=u.msgBorderRadius,vt=u.msgVrPadding,pt=u.msgHrPadding,ft=u.msgFontSize,wt=u.msgFontSizeType,_t=u.msgFontSizeTablet,yt=u.msgFontSizeMobile,zt=u.msgFontFamily,xt=u.msgFontWeight,Ot=u.msgFontSubset,Ct=u.msgLineHeightType,jt=u.msgLineHeight,Mt=u.msgLineHeightTablet,Et=u.msgLineHeightMobile,Ht=u.msgLoadGoogleFonts,kt=u.radioCheckBorderRadiusType,St=u.msgBorderRadiusType,Lt=u.fieldBorderRadiusType,Bt=u.buttonBorderRadiusType,Vt="";if(m&&m.data.html&&(Vt=m.data.html),1==ee){var Tt={google:{families:[U+(Y?":"+Y:"")]}};a=Object(f.createElement)(ha,{config:Tt})}if(1==de){var Nt={google:{families:[ie+(oe?":"+oe:"")]}};e=Object(f.createElement)(ha,{config:Nt})}if(1==Oe){var At={google:{families:[pe+(fe?":"+fe:"")]}};t=Object(f.createElement)(ha,{config:At})}if(1==We){var Ft={google:{families:[Ae+(Fe?":"+Fe:"")]}};l=Object(f.createElement)(ha,{config:Ft})}if(1==ct){var Pt={google:{families:[et+(tt?":"+tt:"")]}};i=Object(f.createElement)(ha,{config:Pt})}if(1==Ht){var Rt={google:{families:[zt+(xt?":"+xt:"")]}};o=Object(f.createElement)(ha,{config:Rt})}var It=Object(f.createElement)(Av,{title:Object(M.__)("Field Style & Border","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(Fv,{label:Object(M.__)("Field Style","ultimate-addons-for-gutenberg"),value:b,onChange:function(e){return s({fieldStyle:e})},options:[{value:"box",label:Object(M.__)("Box","ultimate-addons-for-gutenberg")},{value:"underline",label:Object(M.__)("Underline","ultimate-addons-for-gutenberg")}]}),"box"==b&&Object(f.createElement)(Fv,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:x,onChange:function(e){return s({fieldBorderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),("none"!=x||"underline"==b)&&Object(f.createElement)(Pv,{label:Object(M.__)("Border Width (px)","ultimate-addons-for-gutenberg"),value:O,onChange:function(e){return s({fieldBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(Wv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(Rv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Lt,"aria-pressed":"px"===Lt,onClick:function(){return s({fieldBorderRadiusType:"px"})}},"px"),Object(f.createElement)(Rv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Lt,"aria-pressed":"%"===Lt,onClick:function(){return s({fieldBorderRadiusType:"%"})}},"%")),Object(f.createElement)(Pv,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:C,onChange:function(e){return s({fieldBorderRadius:e})},min:0,max:100,allowReset:!0}),("none"!=x||"underline"==b)&&Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:j}}))),Object(f.createElement)(Bv,{value:j,onChange:function(e){return s({fieldBorderColor:e})},allowReset:!0})),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Active Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:E}}))),Object(f.createElement)(Bv,{value:E,onChange:function(e){return s({fieldBorderFocusColor:e})},allowReset:!0})),Dt=Object(f.createElement)(Av,{title:Object(M.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("h2",null,Object(M.__)("Label","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:ee,label:"labelLoadGoogleFonts"},fontFamily:{value:U,label:"labelFontFamily"},fontWeight:{value:Y,label:"labelFontWeight"},fontSubset:{value:K,label:"labelFontSubset"},fontSizeType:{value:W,label:"labelFontSizeType"},fontSize:{value:q,label:"labelFontSize"},fontSizeMobile:{value:Z,label:"labelFontSizeMobile"},fontSizeTablet:{value:G,label:"labelFontSizeTablet"},lineHeightType:{value:J,label:"labelLineHeightType"},lineHeight:{value:$,label:"labelLineHeight"},lineHeightMobile:{value:X,label:"labelLineHeightMobile"},lineHeightTablet:{value:Q,label:"labelLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:y}}))),Object(f.createElement)(Bv,{value:y,onChange:function(e){return s({fieldLabelColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Input","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:de,label:"inputLoadGoogleFonts"},fontFamily:{value:ie,label:"inputFontFamily"},fontWeight:{value:oe,label:"inputFontWeight"},fontSubset:{value:ce,label:"inputFontSubset"},fontSizeType:{value:ae,label:"inputFontSizeType"},fontSize:{value:te,label:"inputFontSize"},fontSizeMobile:{value:ne,label:"inputFontSizeMobile"},fontSizeTablet:{value:le,label:"inputFontSizeTablet"},lineHeightType:{value:re,label:"inputLineHeightType"},lineHeight:{value:se,label:"inputLineHeight"},lineHeightMobile:{value:he,label:"inputLineHeightMobile"},lineHeightTablet:{value:ue,label:"inputLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:z}}))),Object(f.createElement)(Bv,{value:z,onChange:function(e){return s({fieldInputColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Field Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:w}}))),Object(f.createElement)(Bv,{value:w,onChange:function(e){return s({fieldBgColor:e})},allowReset:!0})),qt=Object(f.createElement)(Av,{title:Object(M.__)("General","ultimate-addons-for-gutenberg")},Object(f.createElement)(Fv,{label:Object(M.__)("Select Form","ultimate-addons-for-gutenberg"),value:h,onChange:this.onSelectForm,options:uagb_blocks_info.cf7_forms}));if(0==h)return Object(f.createElement)(Yv,null,Object(f.createElement)(Dv,{icon:"admin-post",label:Object(M.__)("Select a Contact Form 7","ultimate-addons-for-gutenberg")},Object(f.createElement)(Fv,{value:h,onChange:this.onSelectForm,options:uagb_blocks_info.cf7_forms})));var Wt=Object(f.createElement)(Yv,null,Object(f.createElement)(Fv,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:N,onChange:function(e){return s({buttonBorderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=N&&Object(f.createElement)(Pv,{label:Object(M.__)("Border Width (px)","ultimate-addons-for-gutenberg"),value:A,onChange:function(e){return s({buttonBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(Wv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(Rv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Bt,"aria-pressed":"px"===Bt,onClick:function(){return s({buttonBorderRadiusType:"px"})}},"px"),Object(f.createElement)(Rv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Bt,"aria-pressed":"%"===Bt,onClick:function(){return s({buttonBorderRadiusType:"%"})}},"%")),Object(f.createElement)(Pv,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:F,onChange:function(e){return s({buttonBorderRadius:e})},min:0,max:100,allowReset:!0})),Gt=Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:L}}))),Object(f.createElement)(Bv,{value:L,onChange:function(e){return s({buttonTextColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:B}}))),Object(f.createElement)(Bv,{value:B,onChange:function(e){return s({buttonBgColor:e})},allowReset:!0}),"none"!=N&&Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:P}}))),Object(f.createElement)(Bv,{value:P,onChange:function(e){return s({buttonBorderColor:e})},allowReset:!0}))),Zt=Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:V}}))),Object(f.createElement)(Bv,{value:V,onChange:function(e){return s({buttonTextHoverColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:T}}))),Object(f.createElement)(Bv,{value:T,onChange:function(e){return s({buttonBgHoverColor:e})},allowReset:!0}),"none"!=N&&Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:R}}))),Object(f.createElement)(Bv,{value:R,onChange:function(e){return s({buttonBorderHoverColor:e})},allowReset:!0}))),Ut=Object(f.createElement)(Av,{title:Object(M.__)("Submit Button","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(Fv,{label:Object(M.__)("Button Alignment","ultimate-addons-for-gutenberg"),value:H,onChange:function(e){return s({buttonAlignment:e})},options:[{value:"center",label:Object(M.__)("Center","ultimate-addons-for-gutenberg")},{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")},{value:"justify",label:Object(M.__)("Justified","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("h2",null,Object(M.__)("Button Font","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:Oe,label:"buttonLoadGoogleFonts"},fontFamily:{value:pe,label:"buttonFontFamily"},fontWeight:{value:fe,label:"buttonFontWeight"},fontSubset:{value:we,label:"buttonFontSubset"},fontSizeType:{value:me,label:"buttonFontSizeType"},fontSize:{value:ge,label:"buttonFontSize"},fontSizeMobile:{value:ve,label:"buttonFontSizeMobile"},fontSizeTablet:{value:be,label:"buttonFontSizeTablet"},lineHeightType:{value:_e,label:"buttonLineHeightType"},lineHeight:{value:ye,label:"buttonLineHeight"},lineHeightMobile:{value:xe,label:"buttonLineHeightMobile"},lineHeightTablet:{value:ze,label:"buttonLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Wt,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Gv,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:Object(M.__)("Normal","ultimate-addons-for-gutenberg"),className:"uagb-normal-tab"},{name:"hover",title:Object(M.__)("Hover","ultimate-addons-for-gutenberg"),className:"uagb-focus-tab"}]},(function(e){var t;return t="normal"===e.name?Gt:Zt,Object(f.createElement)("div",null,t)})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Button Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(Pv,{label:n.vertical_spacing,className:"uagb-margin-control",value:k,onChange:function(e){return s({buttonVrPadding:e})},min:0,max:200,initialPosition:10}),Object(f.createElement)(Pv,{label:n.horizontal_spacing,className:"uagb-margin-control",value:S,onChange:function(e){return s({buttonHrPadding:e})},min:0,max:200,initialPosition:10})),Yt=Object(f.createElement)(Av,{title:Object(M.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(Pv,{label:Object(M.__)("Label & Input Space","ultimate-addons-for-gutenberg"),value:D,onChange:function(e){return s({fieldLabelSpacing:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(Pv,{label:Object(M.__)("Fields Space","ultimate-addons-for-gutenberg"),value:I,onChange:function(e){return s({fieldSpacing:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Field Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(Pv,{label:n.vertical_spacing,className:"uagb-margin-control",value:v,onChange:function(e){return s({fieldVrPadding:e})},min:0,max:200,initialPosition:10}),Object(f.createElement)(Pv,{label:n.horizontal_spacing,className:"uagb-margin-control",value:p,onChange:function(e){return s({fieldHrPadding:e})},min:0,max:200,initialPosition:10})),Kt=Object(f.createElement)(Av,{title:Object(M.__)("Radio & Checkbox","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(Iv,{label:Object(M.__)("Override Current Style","ultimate-addons-for-gutenberg"),checked:Ce,onChange:function(e){return s({enableOveride:!Ce})}}),Ce&&Object(f.createElement)(Yv,null,Object(f.createElement)(Pv,{label:Object(M.__)("Size","ultimate-addons-for-gutenberg"),value:je,onChange:function(e){return s({radioCheckSize:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Radio & Checkbox Label","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:We,label:"radioCheckLoadGoogleFonts"},fontFamily:{value:Ae,label:"radioCheckFontFamily"},fontWeight:{value:Fe,label:"radioCheckFontWeight"},fontSubset:{value:Pe,label:"radioCheckFontSubset"},fontSizeType:{value:Ve,label:"radioCheckFontSizeType"},fontSize:{value:Be,label:"radioCheckFontSize"},fontSizeMobile:{value:Ne,label:"radioCheckFontSizeMobile"},fontSizeTablet:{value:Te,label:"radioCheckFontSizeTablet"},lineHeightType:{value:Re,label:"radioCheckLineHeightType"},lineHeight:{value:Ie,label:"radioCheckLineHeight"},lineHeightMobile:{value:qe,label:"radioCheckLineHeightMobile"},lineHeightTablet:{value:De,label:"radioCheckLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Label Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:He}}))),Object(f.createElement)(Bv,{value:He,onChange:function(e){return s({radioCheckLableColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Me}}))),Object(f.createElement)(Bv,{value:Me,onChange:function(e){return s({radioCheckBgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Selected Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ee}}))),Object(f.createElement)(Bv,{value:Ee,onChange:function(e){return s({radioCheckSelectColor:e})},allowReset:!0}),"none"!==x&&Object(f.createElement)(Yv,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Radio & Checkbox Border")),Object(f.createElement)(Pv,{label:Object(M.__)("Border Width (px)","ultimate-addons-for-gutenberg"),value:Se,onChange:function(e){return s({radioCheckBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(Wv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(Rv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===kt,"aria-pressed":"px"===kt,onClick:function(){return s({radioCheckBorderRadiusType:"px"})}},"px"),Object(f.createElement)(Rv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===kt,"aria-pressed":"%"===kt,onClick:function(){return s({radioCheckBorderRadiusType:"%"})}},"%")),Object(f.createElement)(Pv,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:Le,onChange:function(e){return s({radioCheckBorderRadius:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ke}}))),Object(f.createElement)(Bv,{value:ke,onChange:function(e){return s({radioCheckBorderColor:e})},allowReset:!0})))),Jt=Object(f.createElement)(Av,{title:Object(M.__)("Success / Error Message","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("p",{className:"uagb-settings-notice"},Object(M.__)("Note: This styling can be only seen at frontend","ultimate-addons-for-gutenberg")),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Field Validation","ultimate-addons-for-gutenberg")),Object(f.createElement)(Fv,{label:Object(M.__)("Validation Message Position","ultimate-addons-for-gutenberg"),value:Ge,onChange:function(e){return s({validationMsgPosition:e})},options:[{value:"default",label:Object(M.__)("Default","ultimate-addons-for-gutenberg")},{value:"bottom_right",label:Object(M.__)("Bottom Right Side of Field","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("h2",null,Object(M.__)("Validation Font","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:ct,label:"validationMsgLoadGoogleFonts"},fontFamily:{value:et,label:"validationMsgFontFamily"},fontWeight:{value:tt,label:"validationMsgFontWeight"},fontSubset:{value:at,label:"validationMsgFontSubset"},fontSizeType:{value:$e,label:"validationMsgFontSizeType"},fontSize:{value:Je,label:"validationMsgFontSize"},fontSizeMobile:{value:Xe,label:"validationMsgFontSizeMobile"},fontSizeTablet:{value:Qe,label:"validationMsgFontSizeTablet"},lineHeightType:{value:lt,label:"validationMsgLineHeightType"},lineHeight:{value:nt,label:"validationMsgLineHeight"},lineHeightMobile:{value:ot,label:"validationMsgLineHeightMobile"},lineHeightTablet:{value:it,label:"validationMsgLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Validation Message Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ze}}))),Object(f.createElement)(Bv,{value:Ze,onChange:function(e){return s({validationMsgColor:e})},allowReset:!0}),"bottom_right"===Ge&&Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ue}}))),Object(f.createElement)(Bv,{value:Ue,onChange:function(e){return s({validationMsgBgColor:e})},allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Iv,{label:Object(M.__)("Highlight Borders","ultimate-addons-for-gutenberg"),checked:Ye,onChange:function(e){return s({enableHighlightBorder:!Ye})}}),Ye&&Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Highlight Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ke}}))),Object(f.createElement)(Bv,{value:Ke,onChange:function(e){return s({highlightBorderColor:e})},allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Form Success / Error Validation","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:Ht,label:"msgLoadGoogleFonts"},fontFamily:{value:zt,label:"msgFontFamily"},fontWeight:{value:xt,label:"msgFontWeight"},fontSubset:{value:Ot,label:"msgFontSubset"},fontSizeType:{value:wt,label:"msgFontSizeType"},fontSize:{value:ft,label:"msgFontSize"},fontSizeMobile:{value:yt,label:"msgFontSizeMobile"},fontSizeTablet:{value:_t,label:"msgFontSizeTablet"},lineHeightType:{value:Ct,label:"msgLineHeightType"},lineHeight:{value:jt,label:"msgLineHeight"},lineHeightMobile:{value:Et,label:"msgLineHeightMobile"},lineHeightTablet:{value:Mt,label:"msgLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Success Message","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:rt}}))),Object(f.createElement)(Bv,{value:rt,onChange:function(e){return s({successMsgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:st}}))),Object(f.createElement)(Bv,{value:st,onChange:function(e){return s({successMsgBgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ut}}))),Object(f.createElement)(Bv,{value:ut,onChange:function(e){return s({successMsgBorderColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Error Message","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ht}}))),Object(f.createElement)(Bv,{value:ht,onChange:function(e){return s({errorMsgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:dt}}))),Object(f.createElement)(Bv,{value:dt,onChange:function(e){return s({errorMsgBgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:gt}}))),Object(f.createElement)(Bv,{value:gt,onChange:function(e){return s({errorMsgBorderColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Pv,{label:Object(M.__)("Message Border Width (px)","ultimate-addons-for-gutenberg"),value:mt,onChange:function(e){return s({msgBorderSize:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(Wv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(Rv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===St,"aria-pressed":"px"===St,onClick:function(){return s({msgBorderRadiusType:"px"})}},"px"),Object(f.createElement)(Rv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===St,"aria-pressed":"%"===St,onClick:function(){return s({msgBorderRadiusType:"%"})}},"%")),Object(f.createElement)(Pv,{label:Object(M.__)("Message Border Radius","ultimate-addons-for-gutenberg"),value:bt,onChange:function(e){return s({msgBorderRadius:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Message Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(Pv,{label:n.vertical_spacing,className:"uagb-margin-control",value:vt,onChange:function(e){return s({msgVrPadding:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(Pv,{label:n.horizontal_spacing,className:"uagb-margin-control",value:pt,onChange:function(e){return s({msgHrPadding:e})},min:0,max:100,allowReset:!0}));return Object(f.createElement)(Yv,null,Object(f.createElement)(Lv,{key:"controls"},Object(f.createElement)(Sv,{value:d,onChange:function(e){return s({align:e})}})),Object(f.createElement)(Vv,null,qt,It,Dt,Kt,Ut,Jt,Yt),Object(f.createElement)("div",{className:_()(r,"uagb-cf7-styler__outer-wrap","uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:_()("uagb-cf7-styler__align-".concat(d),"uagb-cf7-styler__field-style-".concat(b),"uagb-cf7-styler__btn-align-".concat(H),"uagb-cf7-styler__highlight-style-".concat(Ge),Ce?"uagb-cf7-styler__check-style-enabled":"",Ye?"uagb-cf7-styler__highlight-border":"")},g&&Object(f.createElement)("div",{dangerouslySetInnerHTML:{__html:Vt}}),0==g&&Object(f.createElement)(Dv,{icon:"admin-post",label:Object(M.__)("Loading","ultimate-addons-for-gutenberg")},Object(f.createElement)(qv,null)))),e,t,a,l,i,o)}},{key:"componentDidMount",value:function(){this.props.setAttributes({isHtml:!1}),this.props.setAttributes({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-cf7-styler-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(){$(".wpcf7-submit").click((function(e){e.preventDefault()}));var e=document.getElementById("uagb-cf7-styler-"+this.props.clientId.substr(0,8));null!=e&&(e.innerHTML=function(e){var t,a,l,n,i=e.attributes,o=i.align,c=i.fieldHrPadding,r=i.fieldVrPadding,s=i.fieldBgColor,u=i.fieldLabelColor,h=i.fieldInputColor,d=i.fieldBorderStyle,g=i.fieldBorderWidth,m=i.fieldBorderRadius,b=i.fieldBorderColor,v=i.fieldBorderFocusColor,p=i.buttonVrPadding,f=i.buttonHrPadding,w=i.buttonTextColor,_=i.buttonBgColor,x=i.buttonTextHoverColor,O=i.buttonBgHoverColor,C=i.buttonBorderStyle,M=i.buttonBorderWidth,E=i.buttonBorderRadius,H=i.buttonBorderColor,k=i.buttonBorderHoverColor,S=i.fieldSpacing,L=i.fieldLabelSpacing,B=i.labelFontSize,V=i.labelFontSizeType,T=i.labelFontSizeTablet,N=i.labelFontSizeMobile,A=i.labelFontFamily,F=i.labelFontWeight,P=i.labelLineHeightType,R=i.labelLineHeight,I=i.labelLineHeightTablet,D=i.labelLineHeightMobile,q=i.inputFontSize,W=i.inputFontSizeType,G=i.inputFontSizeTablet,Z=i.inputFontSizeMobile,U=i.inputFontFamily,Y=i.inputFontWeight,K=i.inputLineHeightType,J=i.inputLineHeight,$=i.inputLineHeightTablet,Q=i.inputLineHeightMobile,X=i.buttonFontSize,ee=i.buttonFontSizeType,te=i.buttonFontSizeTablet,ae=i.buttonFontSizeMobile,le=i.buttonFontFamily,ne=i.buttonFontWeight,ie=i.buttonLineHeightType,oe=i.buttonLineHeight,ce=i.buttonLineHeightTablet,re=i.buttonLineHeightMobile,se=i.radioCheckSize,ue=i.radioCheckBgColor,he=i.radioCheckSelectColor,de=i.radioCheckLableColor,ge=i.radioCheckBorderColor,me=i.radioCheckBorderWidth,be=i.radioCheckBorderRadius,ve=i.radioCheckFontSize,pe=i.radioCheckFontSizeType,fe=i.radioCheckFontSizeTablet,we=i.radioCheckFontSizeMobile,_e=i.radioCheckFontFamily,ye=i.radioCheckFontWeight,ze=i.radioCheckLineHeightType,xe=i.radioCheckLineHeight,Oe=i.radioCheckLineHeightTablet,Ce=i.radioCheckLineHeightMobile,je=i.validationMsgFontSizeType,Me=i.validationMsgFontSizeTablet,Ee=i.validationMsgFontSizeMobile,He=i.validationMsgLineHeightType,ke=i.validationMsgLineHeightTablet,Se=i.validationMsgLineHeightMobile,Le=i.radioCheckBorderRadiusType,Be=i.fieldBorderRadiusType,Ve=i.buttonBorderRadiusType,Te=(n={" .wpcf7 .wpcf7-form":{"text-align":o}," .wpcf7 form.wpcf7-form:not(input)":{color:u}," .wpcf7 input:not([type=submit])":{"background-color":s,color:h,"border-style":d,"border-color":b,"border-width":z(g,"px"),"border-radius":z(m,Be),"padding-left":z(c,"px"),"padding-right":z(c,"px"),"padding-top":z(r,"px"),"padding-bottom":z(r,"px"),"margin-top":z(L,"px"),"margin-bottom":z(S,"px"),"font-size":z(q,W),"font-family":U,"font-weight":Y,"line-height":z(J,K),"text-align":o}," .wpcf7 select":{"background-color":s,color:u,"border-style":d,"border-color":b,"border-width":z(g,"px"),"border-radius":z(m,Be),"margin-top":z(L,"px"),"margin-bottom":z(S,"px"),"font-size":z(q,W),"font-family":U,"font-weight":Y,"line-height":z(J,K),"text-align":o}," .wpcf7 select.wpcf7-form-control.wpcf7-select:not([multiple='multiple'])":{"padding-left":z(c,"px"),"padding-right":z(c,"px"),"padding-top":z(r,"px"),"padding-bottom":z(r,"px")}," .wpcf7 select.wpcf7-select[multiple='multiple'] option":{"padding-left":z(c,"px"),"padding-right":z(c,"px"),"padding-top":z(r,"px"),"padding-bottom":z(r,"px")}," .wpcf7 textarea":{"background-color":s,color:h,"border-color":b,"border-width":z(g,"px"),"border-radius":z(m,Be),"border-style":d,"padding-left":z(c,"px"),"padding-right":z(c,"px"),"padding-top":z(r,"px"),"padding-bottom":z(r,"px"),"margin-top":z(L,"px"),"margin-bottom":z(S,"px"),"font-size":z(q,W),"font-family":U,"font-weight":Y,"line-height":z(J,K),"text-align":o}," .wpcf7 input::placeholder":{color:h,"text-align":o}," .wpcf7 textarea::placeholder":{color:h,"text-align":o}},j()(n," .wpcf7 textarea::placeholder",{color:h,"text-align":o}),j()(n," .wpcf7 form label",(t={"font-size":z(B,V)},j()(t,"font-size",z(B,V)),j()(t,"font-family",A),j()(t,"font-weight",F),j()(t,"line-height",z(R,P)),t)),j()(n," .wpcf7 form .wpcf7-list-item-label",(a={"font-size":z(B,V)},j()(a,"font-size",z(B,V)),j()(a,"font-family",A),j()(a,"font-weight",F),j()(a,"line-height",z(R,P)),a)),j()(n," .wpcf7 form input:not([type=submit]):focus",{"border-color":v}),j()(n," .wpcf7 form select:focus",{"border-color":v}),j()(n," .wpcf7 textarea:focus",{"border-color":v}),j()(n," .wpcf7 input.wpcf7-form-control.wpcf7-submit",{color:w,"background-color":_,"font-size":z(X,ee),"font-family":le,"font-weight":ne,"line-height":z(oe,ie),"border-color":H,"border-style":C,"border-width":z(M,"px"),"border-radius":z(E,Ve),"padding-left":z(f,"px"),"padding-right":z(f,"px"),"padding-top":z(p,"px"),"padding-bottom":z(p,"px")}),j()(n," .wpcf7 input.wpcf7-form-control.wpcf7-submit:hover",{color:x,"background-color":O,"border-color":k}),j()(n," .wpcf7 .wpcf7-checkbox input[type='checkbox']:checked + span:before",{"background-color":s,color:h,"font-size":"calc( "+r+"px / 1.2 )","border-color":v}),j()(n," .wpcf7 .wpcf7-checkbox input[type='checkbox'] + span:before",{"background-color":s,color:h,height:z(r,"px"),width:z(r,"px"),"font-size":"calc( "+r+"px / 1.2 )","border-style":d,"border-color":b,"border-width":z(g,"px"),"border-radius":z(m,Be)}),j()(n," .wpcf7 .wpcf7-acceptance input[type='checkbox']:checked + span:before",{"background-color":s,color:h,"border-color":v}),j()(n," .wpcf7 .wpcf7-acceptance input[type='checkbox'] + span:before",{"background-color":s,color:h,height:z(r,"px"),width:z(r,"px"),"font-size":"calc( "+r+"px / 1.2 )","border-style":d,"border-color":b,"border-width":z(g,"px"),"border-radius":z(m,Be)}),j()(n," .wpcf7 .wpcf7-radio input[type='radio'] + span:before",(l={"background-color":s,color:h,height:z(r,"px"),width:z(r,"px"),"border-style":d,"border-color":b,"border-width":z(g,"px")},j()(l,"height","calc( "+r+"px / 1.2 )"),j()(l,"width","calc( "+r+"px / 1.2 )"),l)),j()(n," .uagb-cf7-styler__field-style-underline .wpcf7 input:not([type=submit])",{"border-style":"none","border-bottom-color":b,"border-bottom-style":"solid","border-bottom-width":z(g,"px"),"border-radius":z(m,Be)}),j()(n," .uagb-cf7-styler__field-style-underline textarea",{"border-style":"none","border-bottom-color":b,"border-bottom-style":"solid","border-bottom-width":z(g,"px"),"border-radius":z(m,Be)}),j()(n," .uagb-cf7-styler__field-style-underline select",{"border-style":"none","border-bottom-color":b,"border-bottom-style":"solid","border-bottom-width":z(g,"px"),"border-radius":z(m,Be)}),j()(n," .uagb-cf7-styler__field-style-underline textarea",{"border-style":"none","border-bottom-color":b,"border-bottom-style":"solid","border-bottom-width":z(g,"px"),"border-radius":z(m,Be)}),j()(n," .uagb-cf7-styler__field-style-underline .wpcf7-checkbox input[type='checkbox'] + span:before",{"border-style":"solid"}),j()(n," .uagb-cf7-styler__field-style-underline .wpcf7 input[type='radio'] + span:before",{"border-style":"solid"}),j()(n," .uagb-cf7-styler__field-style-underline .wpcf7-acceptance input[type='checkbox'] + span:before",{"border-style":"solid"}),j()(n," .wpcf7-radio input[type='radio']:checked + span:before",{"background-color":h,"border-color":v}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type='checkbox'] + span:before",{"background-color":ue,color:he,height:z(se,"px"),width:z(se,"px"),"font-size":"calc( "+se+"px / 1.2 )","border-color":ge,"border-width":z(me,"px"),"border-radius":z(be,Le)}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type='checkbox']:checked + span:before",{"border-color":v}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type='checkbox'] + span:before",{"background-color":ue,color:he,height:z(se,"px"),width:z(se,"px"),"font-size":"calc( "+se+"px / 1.2 )","border-color":ge,"border-width":z(me,"px"),"border-radius":z(be,Le)}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type='checkbox']:checked + span:before",{"border-color":v}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7 input[type='radio'] + span:before",{"background-color":ue,color:he,height:z(se,"px"),width:z(se,"px"),"font-size":"calc( "+se+"px / 1.2 )","border-color":ge,"border-width":z(me,"px")}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7-radio input[type='radio']:checked + span:before",{"background-color":he,"border-color":v}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label",{"font-size":z(ve,pe),"font-family":_e,"font-weight":ye,"line-height":z(xe,ze),color:de}),n),Ne={" .wpcf7 input:not([type=submit])":{"font-size":z(G,W),"line-height":z($,K)}," .wpcf7 select":{"font-size":z(T,V),"line-height":z(I,P)}," .wpcf7 textarea":{"font-size":z(G,W),"line-height":z($,K)}," .wpcf7 form label":{"font-size":z(T,V),"line-height":z(I,P)}," .wpcf7 form .wpcf7-list-item-label":{"font-size":z(T,V),"line-height":z(I,P)}," .wpcf7 input.wpcf7-form-control.wpcf7-submit":{"font-size":z(te,ee),"line-height":z(ce,ie)}," .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label":{"font-size":z(fe,pe),"line-height":z(Oe,ze)}," span.wpcf7-not-valid-tip":{"font-size":z(Me,je),"line-height":z(ke,He)}},Ae={" .wpcf7 input:not([type=submit])":{"font-size":z(Z,W),"line-height":z(Q,K)}," .wpcf7 select":{"font-size":z(N,V),"line-height":z(D,P)}," .wpcf7 textarea":{"font-size":z(G,W),"line-height":z($,K)}," .wpcf7 form label":{"font-size":z(Z,W),"line-height":z(Q,K)}," .wpcf7 form .wpcf7-list-item-label":{"font-size":z(N,V),"line-height":z(D,P)}," .wpcf7 input.wpcf7-form-control.wpcf7-submit":{"font-size":z(ae,ee),"line-height":z(re,ie)}," .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label":{"font-size":z(we,pe),"line-height":z(Ce,ze)}," span.wpcf7-not-valid-tip":{"font-size":z(Ee,je),"line-height":z(Se,He)}},Fe=y(Te,".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8)));return(Fe+=y(Ne,".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8))))+y(Ae,".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8)))}(this.props))}}]),i}(Uv),Jv=Tv((function(e,t){var a=t.setAttributes,l=t.attributes,n=l.formId,i=l.isHtml,o="";return n&&-1!=n&&0!=n&&!i&&$.ajax({url:uagb_blocks_info.ajax_url,data:{action:"uagb_cf7_shortcode",formId:n,nonce:uagb_blocks_info.uagb_ajax_nonce},dataType:"json",type:"POST",success:function(e){a({isHtml:!0}),a({formJson:e}),o=e}}),{formHTML:o}}))(Kv),$v=(a(386),a(387),wp.blocks.registerBlockType);uagb_blocks_info.blocks["uagb/cf7-styler"].is_active&&$v("uagb/cf7-styler",{title:uagb_blocks_info.blocks["uagb/cf7-styler"].title,description:uagb_blocks_info.blocks["uagb/cf7-styler"].description,icon:n.cf7_styler,keywords:[Object(M.__)("CF7 styler","ultimate-addons-for-gutenberg"),Object(M.__)("contact form styler","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},category:uagb_blocks_info.category,edit:Jv,example:{},save:function(){return null}});var Qv=wp.blockEditor,Xv=Qv.AlignmentToolbar,ep=Qv.BlockControls,tp=Qv.ColorPalette,ap=Qv.InspectorControls,lp=wp.data.withSelect,np=wp.components,ip=np.PanelBody,op=np.SelectControl,cp=(np.TextControl,np.TextareaControl,np.RangeControl),rp=np.Button,sp=np.ToggleControl,up=np.Placeholder,hp=np.Spinner,dp=np.ButtonGroup,gp=np.TabPanel,mp=wp.element,bp=mp.Component,vp=mp.Fragment,pp=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onSelectForm=e.onSelectForm.bind(h()(e)),e}return s()(i,[{key:"onSelectForm",value:function(e){var t=this.props.setAttributes;if(!e)return t({isHtml:!1}),void t({formId:null});t({isHtml:!1}),t({formId:e})}},{key:"render",value:function(){var e,t,a,l,i,o,c=this.props,r=c.className,s=c.setAttributes,u=c.attributes,h=u.formId,d=u.align,g=u.isHtml,m=u.formJson,b=u.enableAjax,v=u.enableTabSupport,p=u.formTabIndex,w=u.titleDescStyle,y=u.titleDescAlignment,z=u.fieldStyle,x=u.fieldVrPadding,O=u.fieldHrPadding,C=u.fieldBgColor,j=u.fieldLabelColor,E=u.fieldInputColor,H=u.fieldBorderStyle,k=u.fieldBorderWidth,S=u.fieldBorderRadius,L=u.fieldBorderColor,B=u.fieldBorderFocusColor,V=u.textAreaHeight,T=u.buttonAlignment,N=u.buttonVrPadding,A=u.buttonHrPadding,F=u.buttonTextColor,P=u.buttonBgColor,R=u.buttonTextHoverColor,I=u.buttonBgHoverColor,D=u.buttonBorderStyle,q=u.buttonBorderWidth,W=u.buttonBorderRadius,G=u.buttonBorderColor,Z=u.buttonBorderHoverColor,U=u.fieldSpacing,Y=u.fieldLabelSpacing,K=u.enableLabel,J=u.labelFontSize,$=u.labelFontSizeType,Q=u.labelFontSizeTablet,X=u.labelFontSizeMobile,ee=u.labelFontFamily,te=u.labelFontWeight,ae=u.labelFontSubset,le=u.labelLineHeightType,ne=u.labelLineHeight,ie=u.labelLineHeightTablet,oe=u.labelLineHeightMobile,ce=u.labelLoadGoogleFonts,re=u.inputFontSize,se=u.inputFontSizeType,ue=u.inputFontSizeTablet,he=u.inputFontSizeMobile,de=u.inputFontFamily,ge=u.inputFontWeight,me=u.inputFontSubset,be=u.inputLineHeightType,ve=u.inputLineHeight,pe=u.inputLineHeightTablet,fe=u.inputLineHeightMobile,we=u.inputLoadGoogleFonts,_e=u.buttonFontSize,ye=u.buttonFontSizeType,ze=u.buttonFontSizeTablet,xe=u.buttonFontSizeMobile,Oe=u.buttonFontFamily,Ce=u.buttonFontWeight,je=u.buttonFontSubset,Me=u.buttonLineHeightType,Ee=u.buttonLineHeight,He=u.buttonLineHeightTablet,ke=u.buttonLineHeightMobile,Se=u.buttonLoadGoogleFonts,Le=u.enableOveride,Be=u.radioCheckSize,Ve=u.radioCheckBgColor,Te=u.radioCheckSelectColor,Ne=u.radioCheckLableColor,Ae=u.radioCheckBorderColor,Fe=u.radioCheckBorderWidth,Pe=u.radioCheckBorderRadius,Re=u.radioCheckFontSize,Ie=u.radioCheckFontSizeType,De=u.radioCheckFontSizeTablet,qe=u.radioCheckFontSizeMobile,We=u.radioCheckFontFamily,Ge=u.radioCheckFontWeight,Ze=u.radioCheckFontSubset,Ue=u.radioCheckLineHeightType,Ye=u.radioCheckLineHeight,Ke=u.radioCheckLineHeightTablet,Je=u.radioCheckLineHeightMobile,$e=u.radioCheckLoadGoogleFonts,Qe=u.validationMsgColor,Xe=u.validationMsgBgColor,et=u.advancedValidationSettings,tt=u.highlightBorderColor,at=u.validationMsgFontSize,lt=u.validationMsgFontSizeType,nt=u.validationMsgFontSizeTablet,it=u.validationMsgFontSizeMobile,ot=u.validationMsgFontFamily,ct=u.validationMsgFontWeight,rt=u.validationMsgFontSubset,st=u.validationMsgLineHeightType,ut=u.validationMsgLineHeight,ht=u.validationMsgLineHeightTablet,dt=u.validationMsgLineHeightMobile,gt=u.validationMsgLoadGoogleFonts,mt=u.successMsgColor,bt=u.errorMsgColor,vt=u.errorMsgBgColor,pt=u.errorMsgBorderColor,ft=u.msgBorderSize,wt=u.msgBorderRadius,_t=u.msgVrPadding,yt=u.msgHrPadding,zt=u.msgFontSize,xt=u.msgFontSizeType,Ot=u.msgFontSizeTablet,Ct=u.msgFontSizeMobile,jt=u.msgFontFamily,Mt=u.msgFontWeight,Et=u.msgFontSubset,Ht=u.msgLineHeightType,kt=u.msgLineHeight,St=u.msgLineHeightTablet,Lt=u.msgLineHeightMobile,Bt=u.msgLoadGoogleFonts,Vt=u.radioCheckBorderRadiusType,Tt=u.msgBorderRadiusType,Nt=u.fieldBorderRadiusType,At=u.buttonBorderRadiusType,Ft=u.successMsgLoadGoogleFonts,Pt=u.successMsgFontFamily,Rt=u.successMsgFontWeight,It=u.successMsgFontSubset,Dt=u.successMsgFontSizeType,qt=u.successMsgFontSize,Wt=u.successMsgFontSizeMobile,Gt=u.successMsgFontSizeTablet,Zt=u.successMsgLineHeightType,Ut=u.successMsgLineHeight,Yt=u.successMsgLineHeightMobile,Kt=u.successMsgLineHeightTablet,Jt="";if(m&&m.data.html&&(Jt=m.data.html),1==ce){var $t={google:{families:[ee+(te?":"+te:"")]}};a=Object(f.createElement)(ha,{config:$t})}if(1==we){var Qt={google:{families:[de+(ge?":"+ge:"")]}};e=Object(f.createElement)(ha,{config:Qt})}if(1==Se){var Xt={google:{families:[Oe+(Ce?":"+Ce:"")]}};t=Object(f.createElement)(ha,{config:Xt})}if(1==$e){var ea={google:{families:[We+(Ge?":"+Ge:"")]}};l=Object(f.createElement)(ha,{config:ea})}if(1==gt){var ta={google:{families:[ot+(ct?":"+ct:"")]}};i=Object(f.createElement)(ha,{config:ta})}if(1==Bt){var aa={google:{families:[jt+(Mt?":"+Mt:"")]}};o=Object(f.createElement)(ha,{config:aa})}var na=Object(f.createElement)(ip,{title:Object(M.__)("Field Style & Border","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(op,{label:Object(M.__)("Field Style","ultimate-addons-for-gutenberg"),value:z,onChange:function(e){return s({fieldStyle:e})},options:[{value:"box",label:Object(M.__)("Box","ultimate-addons-for-gutenberg")},{value:"underline",label:Object(M.__)("Underline","ultimate-addons-for-gutenberg")}]}),"box"==z&&Object(f.createElement)(op,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:H,onChange:function(e){return s({fieldBorderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),("none"!=H||"underline"==z)&&Object(f.createElement)(cp,{label:Object(M.__)("Border Width (px)","ultimate-addons-for-gutenberg"),value:k,onChange:function(e){return s({fieldBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(dp,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(rp,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Nt,"aria-pressed":"px"===Nt,onClick:function(){return s({fieldBorderRadiusType:"px"})}},"px"),Object(f.createElement)(rp,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Nt,"aria-pressed":"%"===Nt,onClick:function(){return s({fieldBorderRadiusType:"%"})}},"%")),Object(f.createElement)(cp,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:S,onChange:function(e){return s({fieldBorderRadius:e})},min:0,max:100,allowReset:!0}),("none"!=H||"underline"==z)&&Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:L}}))),Object(f.createElement)(tp,{value:L,onChange:function(e){return s({fieldBorderColor:e})},allowReset:!0})),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Active Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:B}}))),Object(f.createElement)(tp,{value:B,onChange:function(e){return s({fieldBorderFocusColor:e})},allowReset:!0})),ia=Object(f.createElement)(ip,{title:Object(M.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(sp,{label:"Hide Label?",checked:K,onChange:function(e){return s({enableLabel:!K})}}),!K&&Object(f.createElement)(vp,null,Object(f.createElement)("h2",null,Object(M.__)("Label","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:ce,label:"labelLoadGoogleFonts"},fontFamily:{value:ee,label:"labelFontFamily"},fontWeight:{value:te,label:"labelFontWeight"},fontSubset:{value:ae,label:"labelFontSubset"},fontSizeType:{value:$,label:"labelFontSizeType"},fontSize:{value:J,label:"labelFontSize"},fontSizeMobile:{value:X,label:"labelFontSizeMobile"},fontSizeTablet:{value:Q,label:"labelFontSizeTablet"},lineHeightType:{value:le,label:"labelLineHeightType"},lineHeight:{value:ne,label:"labelLineHeight"},lineHeightMobile:{value:oe,label:"labelLineHeightMobile"},lineHeightTablet:{value:ie,label:"labelLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:j}}))),Object(f.createElement)(tp,{value:j,onChange:function(e){return s({fieldLabelColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"})),Object(f.createElement)("h2",null,Object(M.__)("Input","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography"),attributes:u,setAttributes:s,loadGoogleFonts:{value:we,label:"inputLoadGoogleFonts"},fontFamily:{value:de,label:"inputFontFamily"},fontWeight:{value:ge,label:"inputFontWeight"},fontSubset:{value:me,label:"inputFontSubset"},fontSizeType:{value:se,label:"inputFontSizeType"},fontSize:{value:re,label:"inputFontSize"},fontSizeMobile:{value:he,label:"inputFontSizeMobile"},fontSizeTablet:{value:ue,label:"inputFontSizeTablet"},lineHeightType:{value:be,label:"inputLineHeightType"},lineHeight:{value:ve,label:"inputLineHeight"},lineHeightMobile:{value:fe,label:"inputLineHeightMobile"},lineHeightTablet:{value:pe,label:"inputLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:E}}))),Object(f.createElement)(tp,{value:E,onChange:function(e){return s({fieldInputColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:C}}))),Object(f.createElement)(tp,{value:C,onChange:function(e){return s({fieldBgColor:e})},allowReset:!0}),Object(f.createElement)(cp,{label:Object(M.__)("TextArea Height","ultimate-addons-for-gutenberg"),value:V,onChange:function(e){return s({textAreaHeight:e})},min:0,max:1e3,allowReset:!0})),oa=Object(f.createElement)(ip,{title:Object(M.__)("General","ultimate-addons-for-gutenberg")},Object(f.createElement)(op,{label:Object(M.__)("Select Form","ultimate-addons-for-gutenberg"),value:h,onChange:this.onSelectForm,options:uagb_blocks_info.gf_forms}),Object(f.createElement)(sp,{label:"Enable AJAX Form Submission",checked:b,onChange:function(e){return s({enableAjax:!b})}}),Object(f.createElement)(sp,{label:"Using Multiple Gravity Forms",checked:v,onChange:function(e){return s({enableTabSupport:!v})}}),v&&Object(f.createElement)(cp,{label:Object(M.__)("Tab Index","ultimate-addons-for-gutenberg"),value:p,onChange:function(e){s({formTabIndex:e})},min:0,max:500}),Object(f.createElement)(op,{label:Object(M.__)("Form Title & Description","ultimate-addons-for-gutenberg"),value:w,onChange:function(e){return s({titleDescStyle:e})},options:[{value:"yes",label:Object(M.__)("Show","ultimate-addons-for-gutenberg")},{value:"none",label:Object(M.__)("Hide","ultimate-addons-for-gutenberg")}]}),"none"!==w&&Object(f.createElement)(op,{label:Object(M.__)("Form Title & Description Alignment","ultimate-addons-for-gutenberg"),value:y,onChange:function(e){return s({titleDescAlignment:e})},options:[{value:"center",label:Object(M.__)("Center","ultimate-addons-for-gutenberg")},{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")}]}));if(0==h)return Object(f.createElement)(vp,null,Object(f.createElement)(up,{icon:"admin-post",label:Object(M.__)("Select a Gravity Form","ultimate-addons-for-gutenberg")},Object(f.createElement)(op,{value:h,onChange:this.onSelectForm,options:uagb_blocks_info.gf_forms})));var ca=Object(f.createElement)(vp,null,Object(f.createElement)(op,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:D,onChange:function(e){return s({buttonBorderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=D&&Object(f.createElement)(cp,{label:Object(M.__)("Border Width (px)","ultimate-addons-for-gutenberg"),value:q,onChange:function(e){return s({buttonBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(dp,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(rp,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===At,"aria-pressed":"px"===At,onClick:function(){return s({buttonBorderRadiusType:"px"})}},"px"),Object(f.createElement)(rp,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===At,"aria-pressed":"%"===At,onClick:function(){return s({buttonBorderRadiusType:"%"})}},"%")),Object(f.createElement)(cp,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:W,onChange:function(e){return s({buttonBorderRadius:e})},min:0,max:100,allowReset:!0})),ra=Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:F}}))),Object(f.createElement)(tp,{value:F,onChange:function(e){return s({buttonTextColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:P}}))),Object(f.createElement)(tp,{value:P,onChange:function(e){return s({buttonBgColor:e})},allowReset:!0}),"none"!=D&&Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:G}}))),Object(f.createElement)(tp,{value:G,onChange:function(e){return s({buttonBorderColor:e})},allowReset:!0}))),sa=Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:R}}))),Object(f.createElement)(tp,{value:R,onChange:function(e){return s({buttonTextHoverColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:I}}))),Object(f.createElement)(tp,{value:I,onChange:function(e){return s({buttonBgHoverColor:e})},allowReset:!0}),"none"!=D&&Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Z}}))),Object(f.createElement)(tp,{value:Z,onChange:function(e){return s({buttonBorderHoverColor:e})},allowReset:!0}))),ua=Object(f.createElement)(ip,{title:Object(M.__)("Submit Button","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(op,{label:Object(M.__)("Button Alignment","ultimate-addons-for-gutenberg"),value:T,onChange:function(e){return s({buttonAlignment:e})},options:[{value:"center",label:Object(M.__)("Center","ultimate-addons-for-gutenberg")},{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")},{value:"justify",label:Object(M.__)("Justified","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("h2",null,Object(M.__)("Button Font","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:Se,label:"buttonLoadGoogleFonts"},fontFamily:{value:Oe,label:"buttonFontFamily"},fontWeight:{value:Ce,label:"buttonFontWeight"},fontSubset:{value:je,label:"buttonFontSubset"},fontSizeType:{value:ye,label:"buttonFontSizeType"},fontSize:{value:_e,label:"buttonFontSize"},fontSizeMobile:{value:xe,label:"buttonFontSizeMobile"},fontSizeTablet:{value:ze,label:"buttonFontSizeTablet"},lineHeightType:{value:Me,label:"buttonLineHeightType"},lineHeight:{value:Ee,label:"buttonLineHeight"},lineHeightMobile:{value:ke,label:"buttonLineHeightMobile"},lineHeightTablet:{value:He,label:"buttonLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),ca,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(gp,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:Object(M.__)("Normal","ultimate-addons-for-gutenberg"),className:"uagb-normal-tab"},{name:"hover",title:Object(M.__)("Hover","ultimate-addons-for-gutenberg"),className:"uagb-focus-tab"}]},(function(e){var t;return t="normal"===e.name?ra:sa,Object(f.createElement)("div",null,t)})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Button Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(cp,{label:n.vertical_spacing,className:"uagb-margin-control",value:N,onChange:function(e){return s({buttonVrPadding:e})},min:0,max:200,initialPosition:10}),Object(f.createElement)(cp,{label:n.horizontal_spacing,className:"uagb-margin-control",value:A,onChange:function(e){return s({buttonHrPadding:e})},min:0,max:200,initialPosition:10})),da=Object(f.createElement)(ip,{title:Object(M.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(cp,{label:Object(M.__)("Label & Input Space","ultimate-addons-for-gutenberg"),value:Y,onChange:function(e){return s({fieldLabelSpacing:e})},min:0,max:200,allowReset:!0}),Object(f.createElement)(cp,{label:Object(M.__)("Fields Space","ultimate-addons-for-gutenberg"),value:U,onChange:function(e){return s({fieldSpacing:e})},min:0,max:200,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Field Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(cp,{label:n.vertical_spacing,className:"uagb-margin-control",value:x,onChange:function(e){return s({fieldVrPadding:e})},min:0,max:200,initialPosition:10}),Object(f.createElement)(cp,{label:n.horizontal_spacing,className:"uagb-margin-control",value:O,onChange:function(e){return s({fieldHrPadding:e})},min:0,max:200,initialPosition:10})),ga=Object(f.createElement)(ip,{title:Object(M.__)("Radio & Checkbox","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(sp,{label:Object(M.__)("Override Current Style","ultimate-addons-for-gutenberg"),checked:Le,onChange:function(e){return s({enableOveride:!Le})}}),Le&&Object(f.createElement)(vp,null,Object(f.createElement)(cp,{label:Object(M.__)("Size","ultimate-addons-for-gutenberg"),value:Be,onChange:function(e){return s({radioCheckSize:e})},min:0,max:200,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Radio & Checkbox Label","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:$e,label:"radioCheckLoadGoogleFonts"},fontFamily:{value:We,label:"radioCheckFontFamily"},fontWeight:{value:Ge,label:"radioCheckFontWeight"},fontSubset:{value:Ze,label:"radioCheckFontSubset"},fontSizeType:{value:Ie,label:"radioCheckFontSizeType"},fontSize:{value:Re,label:"radioCheckFontSize"},fontSizeMobile:{value:qe,label:"radioCheckFontSizeMobile"},fontSizeTablet:{value:De,label:"radioCheckFontSizeTablet"},lineHeightType:{value:Ue,label:"radioCheckLineHeightType"},lineHeight:{value:Ye,label:"radioCheckLineHeight"},lineHeightMobile:{value:Je,label:"radioCheckLineHeightMobile"},lineHeightTablet:{value:Ke,label:"radioCheckLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Label Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ne}}))),Object(f.createElement)(tp,{value:Ne,onChange:function(e){return s({radioCheckLableColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ve}}))),Object(f.createElement)(tp,{value:Ve,onChange:function(e){return s({radioCheckBgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Selected Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Te}}))),Object(f.createElement)(tp,{value:Te,onChange:function(e){return s({radioCheckSelectColor:e})},allowReset:!0}),"none"!==H&&Object(f.createElement)(vp,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Radio & Checkbox Border")),Object(f.createElement)(cp,{label:Object(M.__)("Border Width (px)","ultimate-addons-for-gutenberg"),value:Fe,onChange:function(e){return s({radioCheckBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(dp,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(rp,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Vt,"aria-pressed":"px"===Vt,onClick:function(){return s({radioCheckBorderRadiusType:"px"})}},"px"),Object(f.createElement)(rp,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Vt,"aria-pressed":"%"===Vt,onClick:function(){return s({radioCheckBorderRadiusType:"%"})}},"%")),Object(f.createElement)(cp,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:Pe,onChange:function(e){return s({radioCheckBorderRadius:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ae}}))),Object(f.createElement)(tp,{value:Ae,onChange:function(e){return s({radioCheckBorderColor:e})},allowReset:!0})))),ma=Object(f.createElement)(ip,{title:Object(M.__)("Success / Error Message","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("p",{className:"uagb-settings-notice"},Object(M.__)("Note: This styling can be only seen on frontend","ultimate-addons-for-gutenberg")),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Field Validation","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Qe}}))),Object(f.createElement)(tp,{value:Qe,onChange:function(e){return s({validationMsgColor:e})},allowReset:!0}),Object(f.createElement)(la,{label:Object(M.__)("Typography"),attributes:u,setAttributes:s,loadGoogleFonts:{value:gt,label:"validationMsgLoadGoogleFonts"},fontFamily:{value:ot,label:"validationMsgFontFamily"},fontWeight:{value:ct,label:"validationMsgFontWeight"},fontSubset:{value:rt,label:"validationMsgFontSubset"},fontSizeType:{value:lt,label:"validationMsgFontSizeType"},fontSize:{value:at,label:"validationMsgFontSize"},fontSizeMobile:{value:it,label:"validationMsgFontSizeMobile"},fontSizeTablet:{value:nt,label:"validationMsgFontSizeTablet"},lineHeightType:{value:st,label:"validationMsgLineHeightType"},lineHeight:{value:ut,label:"validationMsgLineHeight"},lineHeightMobile:{value:dt,label:"validationMsgLineHeightMobile"},lineHeightTablet:{value:ht,label:"validationMsgLineHeightTablet"}}),Object(f.createElement)(sp,{label:Object(M.__)("Advanced Settings","ultimate-addons-for-gutenberg"),checked:et,onChange:function(e){return s({advancedValidationSettings:!et})}}),et&&Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Field Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Xe}}))),Object(f.createElement)(tp,{value:Xe,onChange:function(e){return s({validationMsgBgColor:e})},allowReset:!0})),et&&Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Highlight Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:tt}}))),Object(f.createElement)(tp,{value:tt,onChange:function(e){return s({highlightBorderColor:e})},allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Form Error Validation","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Error Message Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:bt}}))),Object(f.createElement)(tp,{value:bt,onChange:function(e){return s({errorMsgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Error Message Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:vt}}))),Object(f.createElement)(tp,{value:vt,onChange:function(e){return s({errorMsgBgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Error Message Border Color"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:pt}}))),Object(f.createElement)(tp,{value:pt,onChange:function(e){return s({errorMsgBorderColor:e})},allowReset:!0}),Object(f.createElement)(cp,{label:Object(M.__)("Message Border Width (px)","ultimate-addons-for-gutenberg"),value:ft,onChange:function(e){return s({msgBorderSize:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(dp,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(rp,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Tt,"aria-pressed":"px"===Tt,onClick:function(){return s({msgBorderRadiusType:"px"})}},"px"),Object(f.createElement)(rp,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Tt,"aria-pressed":"%"===Tt,onClick:function(){return s({msgBorderRadiusType:"%"})}},"%")),Object(f.createElement)(cp,{label:Object(M.__)("Message Border Radius","ultimate-addons-for-gutenberg"),value:wt,onChange:function(e){return s({msgBorderRadius:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Message Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(cp,{label:n.vertical_spacing,className:"uagb-margin-control",value:_t,onChange:function(e){return s({msgVrPadding:e})},min:0,max:200,allowReset:!0}),Object(f.createElement)(cp,{label:n.horizontal_spacing,className:"uagb-margin-control",value:yt,onChange:function(e){return s({msgHrPadding:e})},min:0,max:200,allowReset:!0}),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:Bt,label:"msgLoadGoogleFonts"},fontFamily:{value:jt,label:"msgFontFamily"},fontWeight:{value:Mt,label:"msgFontWeight"},fontSubset:{value:Et,label:"msgFontSubset"},fontSizeType:{value:xt,label:"msgFontSizeType"},fontSize:{value:zt,label:"msgFontSize"},fontSizeMobile:{value:Ct,label:"msgFontSizeMobile"},fontSizeTablet:{value:Ot,label:"msgFontSizeTablet"},lineHeightType:{value:Ht,label:"msgLineHeightType"},lineHeight:{value:kt,label:"msgLineHeight"},lineHeightMobile:{value:Lt,label:"msgLineHeightMobile"},lineHeightTablet:{value:St,label:"msgLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Form Success Validation","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Success Message Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:mt}}))),Object(f.createElement)(tp,{value:mt,onChange:function(e){return s({successMsgColor:e})},allowReset:!0}),Object(f.createElement)(la,{label:Object(M.__)("Success Message Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:Ft,label:"successMsgLoadGoogleFonts"},fontFamily:{value:Pt,label:"successMsgFontFamily"},fontWeight:{value:Rt,label:"successMsgFontWeight"},fontSubset:{value:It,label:"successMsgFontSubset"},fontSizeType:{value:Dt,label:"successMsgFontSizeType"},fontSize:{value:qt,label:"successMsgFontSize"},fontSizeMobile:{value:Wt,label:"successMsgFontSizeMobile"},fontSizeTablet:{value:Gt,label:"successMsgFontSizeTablet"},lineHeightType:{value:Zt,label:"successMsgLineHeightType"},lineHeight:{value:Ut,label:"successMsgLineHeight"},lineHeightMobile:{value:Yt,label:"successMsgLineHeightMobile"},lineHeightTablet:{value:Kt,label:"successMsgLineHeightTablet"}}));return Object(f.createElement)(vp,null,Object(f.createElement)(ep,{key:"controls"},Object(f.createElement)(Xv,{value:d,onChange:function(e){return s({align:e})}})),Object(f.createElement)(ap,null,oa,na,ia,ga,ua,ma,da),Object(f.createElement)("div",{className:_()(r,"uagb-gf-styler__outer-wrap","uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:_()("uagb-gf-styler__align-".concat(d),"uagb-gf-styler__field-style-".concat(z),"uagb-gf-styler__btn-align-".concat(T),"uagb-gf-styler__gform-heading-".concat(w),Le?"uagb-gf-styler__check-style-enabled":"",K?"uagb-gf-styler__hide-label":"",et?"uagb-gf-styler__error-yes":"")},g&&Object(f.createElement)("div",{dangerouslySetInnerHTML:{__html:Jt}}),0==g&&Object(f.createElement)(up,{icon:"admin-post",label:Object(M.__)("Loading","ultimate-addons-for-gutenberg")},Object(f.createElement)(hp,null)))),e,t,a,l,i,o)}},{key:"componentDidMount",value:function(){this.props.setAttributes({isHtml:!1}),this.props.setAttributes({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-gf-styler-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(){$(".wpgf-submit").click((function(e){e.preventDefault()}));var e=document.getElementById("uagb-gf-styler-"+this.props.clientId.substr(0,8));null!=e&&(e.innerHTML=function(e){var t,a=e.attributes,l=a.align,n=a.titleDescAlignment,i=a.fieldHrPadding,o=a.fieldVrPadding,c=a.fieldBgColor,r=a.fieldLabelColor,s=a.fieldInputColor,u=a.fieldBorderStyle,h=a.fieldBorderWidth,d=a.fieldBorderRadius,g=a.fieldBorderColor,m=a.fieldBorderFocusColor,b=a.buttonVrPadding,v=a.buttonHrPadding,p=a.buttonTextColor,f=a.buttonBgColor,w=a.buttonTextHoverColor,_=a.buttonBgHoverColor,x=a.buttonBorderStyle,O=a.buttonBorderWidth,C=a.buttonBorderRadius,M=a.buttonBorderColor,E=a.buttonBorderHoverColor,H=a.fieldSpacing,k=a.fieldLabelSpacing,S=a.labelFontSize,L=a.labelFontSizeType,B=a.labelFontSizeTablet,V=a.labelFontSizeMobile,T=a.labelFontFamily,N=a.labelFontWeight,A=a.labelLineHeightType,F=a.labelLineHeight,P=a.labelLineHeightTablet,R=a.labelLineHeightMobile,I=a.textAreaHeight,D=a.inputFontSize,q=a.inputFontSizeType,W=a.inputFontSizeTablet,G=a.inputFontSizeMobile,Z=a.inputFontFamily,U=a.inputFontWeight,Y=a.inputLineHeightType,K=a.inputLineHeight,J=a.inputLineHeightTablet,$=a.inputLineHeightMobile,Q=a.buttonFontSize,X=a.buttonFontSizeType,ee=a.buttonFontSizeTablet,te=a.buttonFontSizeMobile,ae=a.buttonFontFamily,le=a.buttonFontWeight,ne=a.buttonLineHeightType,ie=a.buttonLineHeight,oe=a.buttonLineHeightTablet,ce=a.buttonLineHeightMobile,re=a.highlightBorderColor,se=a.radioCheckSize,ue=a.radioCheckBgColor,he=a.radioCheckSelectColor,de=a.radioCheckLableColor,ge=a.radioCheckBorderColor,me=a.radioCheckBorderWidth,be=a.radioCheckBorderRadius,ve=a.radioCheckFontSize,pe=a.radioCheckFontSizeType,fe=a.radioCheckFontSizeTablet,we=a.radioCheckFontSizeMobile,_e=a.radioCheckFontFamily,ye=a.radioCheckFontWeight,ze=a.radioCheckLineHeightType,xe=a.radioCheckLineHeight,Oe=a.radioCheckLineHeightTablet,Ce=a.radioCheckLineHeightMobile,je=a.validationMsgColor,Me=a.validationMsgBgColor,Ee=a.validationMsgFontFamily,He=a.validationMsgFontWeight,ke=a.validationMsgFontSize,Se=a.validationMsgFontSizeType,Le=a.validationMsgFontSizeTablet,Be=a.validationMsgFontSizeMobile,Ve=a.validationMsgLineHeightType,Te=a.validationMsgLineHeight,Ne=a.validationMsgLineHeightTablet,Ae=a.validationMsgLineHeightMobile,Fe=a.msgFontFamily,Pe=a.msgFontWeight,Re=a.msgFontSize,Ie=a.msgFontSizeType,De=a.msgFontSizeTablet,qe=a.msgFontSizeMobile,We=a.msgLineHeightType,Ge=a.msgLineHeight,Ze=a.msgLineHeightTablet,Ue=a.msgLineHeightMobile,Ye=a.successMsgFontFamily,Ke=a.successMsgFontWeight,Je=a.successMsgFontSize,$e=a.successMsgFontSizeType,Qe=a.successMsgFontSizeTablet,Xe=a.successMsgFontSizeMobile,et=a.successMsgLineHeightType,tt=a.successMsgLineHeight,at=a.successMsgLineHeightTablet,lt=a.successMsgLineHeightMobile,nt=a.radioCheckBorderRadiusType,it=a.fieldBorderRadiusType,ot=a.buttonBorderRadiusType,ct=a.errorMsgColor,rt=a.errorMsgBgColor,st=a.errorMsgBorderColor,ut=a.msgBorderSize,ht=a.msgBorderRadius,dt=a.msgBorderRadiusType,gt=a.msgVrPadding,mt=a.msgHrPadding,bt=a.successMsgColor,vt=(t={" .gform_wrapper form":{"text-align":l}," .wp-block-uagb-gf-styler form:not(input)":{color:r}," .gform_heading":{"text-align":n}," input:not([type=submit])":{"background-color":c,color:s,"border-style":u,"border-color":g,"border-width":z(h,"px"),"border-radius":z(d,it),"padding-left":z(i,"px"),"padding-right":z(i,"px"),"padding-top":z(o,"px"),"padding-bottom":z(o,"px"),"margin-top":z(k,"px"),"margin-bottom":z(H,"px"),"font-size":z(D,q),"font-family":Z,"font-weight":U,"line-height":z(K,Y),"text-align":l}," input[type=button]":{color:p,"background-color":f,"font-size":z(Q,X),"font-family":ae,"font-weight":le,"line-height":z(ie,ne),"border-color":M,"border-style":x,"border-width":z(O,"px"),"border-radius":z(C,ot),"padding-left":z(v,"px"),"padding-right":z(v,"px"),"padding-top":z(b,"px"),"padding-bottom":z(b,"px")}," select":{"background-color":c,"border-style":u,"border-color":g,"border-width":z(h,"px"),"border-radius":z(d,it),"margin-top":z(k,"px"),"margin-bottom":z(H,"px"),color:s,"font-size":z(D,q),"font-family":Z,"font-weight":U,"line-height":z(K,Y),"text-align":l,"padding-left":z(i,"px"),"padding-right":z(i,"px"),"padding-top":z(o,"px"),"padding-bottom":z(o,"px")}," .chosen-container-single span":{"background-color":c,"border-style":u,"border-color":g,"border-width":z(h,"px"),"border-radius":z(d,it),"margin-top":z(k,"px"),"margin-bottom":z(H,"px"),color:s,"font-size":z(D,q),"font-family":Z,"font-weight":U,"line-height":z(K,Y),"text-align":l,"padding-left":z(i,"px"),"padding-right":z(i,"px"),"padding-top":z(o,"px"),"padding-bottom":z(o,"px")}," .chosen-container-single.chosen-container-active .chosen-single span":{"margin-bottom":0}," select.wpgf-form-control.wpgf-select:not([multiple='multiple'])":{"padding-left":z(i,"px"),"padding-right":z(i,"px"),"padding-top":z(o,"px"),"padding-bottom":z(o,"px")}," select.wpgf-select[multiple='multiple'] option":{"padding-left":z(i,"px"),"padding-right":z(i,"px"),"padding-top":z(o,"px"),"padding-bottom":z(o,"px")}," textarea":{"background-color":c,color:s,"border-color":g,"border-width":z(h,"px"),"border-radius":z(d,it),"border-style":u,"padding-left":z(i,"px"),"padding-right":z(i,"px"),"padding-top":z(o,"px"),"padding-bottom":z(o,"px"),"margin-top":z(k,"px"),"margin-bottom":z(H,"px"),"font-size":z(D,q),"font-family":Z,"font-weight":U,"line-height":z(K,Y),"text-align":l,height:"auto"===I?I:I+"px"}," textarea::placeholder":{color:s,"text-align":l}," input::placeholder":{color:s,"text-align":l}," form label.gfield_label":{color:r,"font-size":z(S,L),"font-family":T,"font-weight":N,"line-height":z(F,A)}," form .gfield_radio label.gfield_label":{color:r,"font-size":z(S,L),"font-family":T,"font-weight":N,"line-height":z(F,A)}," form .gfield_checkbox label.gfield_label":{color:r,"font-size":z(S,L),"font-family":T,"font-weight":N,"line-height":z(F,A)}," .wpgf .gfield_checkbox input[type='checkbox'] + label, .wpgf .gfield_checkbox input[type='checkbox'] + label":{"margin-top":z(k,"px")}," form input:not([type=submit]):focus":{"border-color":m}," form select:focus":{"border-color":m}," textarea:focus":{"border-color":m}," input.gform_button":{color:p,"background-color":f,"font-size":z(Q,X),"font-family":ae,"font-weight":le,"line-height":z(ie,ne),"border-color":M,"border-style":x,"border-width":z(O,"px"),"border-radius":z(C,ot),"padding-left":z(v,"px"),"padding-right":z(v,"px"),"padding-top":z(b,"px"),"padding-bottom":z(b,"px")}," input.gform_button:hover":{color:w,"background-color":_,"border-color":E}," input.gform_next_button:hover":{color:w,"background-color":_,"border-color":E}," .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type='checkbox']:checked + label:before":{"background-color":c,color:s,"font-size":"calc( "+se+"px / 1.2 )","border-color":m}," .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type='checkbox'] + label:before":{"background-color":c,color:s,height:z(o,"px"),width:z(o,"px"),"border-style":u,"border-color":g,"border-width":z(h,"px"),"border-radius":z(d,it),"font-size":"calc( "+o+"px / 1.2 )"}," .uagb-gf-styler__check-style-enabled input[type='checkbox']:checked + label:before":{"background-color":c,color:s,"font-size":"calc( "+se+"px / 1.2 )","border-color":m}," .uagb-gf-styler__check-style-enabled input[type='checkbox'] + label:before":{"background-color":c,color:s,height:z(o,"px"),width:z(o,"px"),"font-size":"calc( "+o+"px / 1.2 )","border-color":g,"border-style":u,"border-width":z(h,"px"),"border-radius":z(d,it)}," .uagb-gf-styler__check-style-enabled .gfield_radio input[type='radio'] + label:before":{"background-color":c,color:s,height:z(o,"px"),width:z(o,"px"),"border-style":u,"border-color":g,"border-width":z(h,"px")}," .uagb-gf-styler__check-style-enabled .gfield_radio input[type='radio']:checked + label:before":{"border-color":m}," .uagb-gf-styler__field-style-underline input:not([type=submit])":{"border-style":"none","border-bottom-color":g,"border-bottom-style":"solid","border-bottom-width":z(h,"px"),"border-radius":z(d,it)}," .uagb-gf-styler__field-style-underline textarea":{"border-style":"none","border-bottom-color":g,"border-bottom-style":"solid","border-bottom-width":z(h,"px"),"border-radius":z(d,it)}," .uagb-gf-styler__field-style-underline select":{"border-style":"none","border-bottom-color":g,"border-bottom-style":"solid","border-bottom-width":z(h,"px"),"border-radius":z(d,it)}},j()(t," .uagb-gf-styler__check-style-enabled input[type='checkbox'] + label:before",{"border-style":"solid"}),j()(t," .uagb-gf-styler__check-style-enabled input[type='radio'] + label:before",{"border-style":"solid"}),j()(t," .uagb-gf-styler__field-style-box .gfield_checkbox input[type='checkbox']:checked + label:before",{"border-style":"solid","border-width":z(h,"px"),"border-radius":z(d,it),"font-size":"calc( "+se+"px / 1.2 )"}),j()(t," .uagb-gf-styler__field-style-box input[type='checkbox']:checked + label:before",{"border-style":"solid","border-width":z(h,"px"),"border-radius":z(d,it),"font-size":"calc( "+se+"px / 1.2)"}),j()(t," .gfield_radio input[type='radio']:checked + label:before",{"background-color":s}),j()(t," .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type='checkbox'] + label:before",{"background-color":ue,color:he,height:z(se,"px"),width:z(se,"px"),"font-size":"calc( "+se+"px / 1.2 )","border-color":ge,"border-style":"solid","border-width":z(me,"px"),"border-radius":z(be,nt)}),j()(t," .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type='checkbox']:checked + label:before",{"border-color":m}),j()(t," .uagb-gf-styler__check-style-enabled input[type='checkbox'] + label:before",{"background-color":ue,color:he,height:z(se,"px"),width:z(se,"px"),"font-size":"calc( "+se+"px / 1.2 )","border-color":ge,"border-width":z(me,"px"),"border-radius":z(be,nt)}),j()(t," .uagb-gf-styler__check-style-enabled input[type='checkbox']:checked + label:before",{"border-color":m}),j()(t," .uagb-gf-styler__check-style-enabled .gfield_radio input[type='radio'] + label:before",{"background-color":ue,color:he,height:z(se,"px"),width:z(se,"px"),"font-size":"calc( "+se+"px / 1.2 )","border-color":ge,"border-width":z(me,"px")}),j()(t," .uagb-gf-styler__check-style-enabled .gfield_radio input[type='radio']:checked + label:before",{"background-color":he}),j()(t," .uagb-gf-styler__check-style-enabled form .gfield_radio label",{"font-size":z(ve,pe),"font-family":_e,"font-weight":ye,"line-height":z(xe,ze),color:de}),j()(t," .uagb-gf-styler__check-style-enabled form .gfield_checkbox label",{"font-size":z(ve,pe),"font-family":_e,"font-weight":ye,"line-height":z(xe,ze),color:de}),j()(t," .gform_wrapper .gfield_description.validation_message",{color:je}),j()(t," .gform_wrapper .validation_message",{"font-size":z(ke,Se),"font-family":Ee,"font-weight":He,"line-height":z(Te,Ve)}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper .gfield.gfield_error",{"background-color":Me}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input:not([type='submit']):not([type='button']):not([type='image'])",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container select",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container .chosen-single",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container textarea",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes li.gfield_error .gfield_checkbox input[type='checkbox'] + label:before",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes li.gfield_error .ginput_container_consent input[type='checkbox'] + label:before",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes li.gfield_error .gfield_radio input[type='radio'] + label:before",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type='text']",{"border-color":h+"px ".fieldBorderStyle+" "+g+"!important"}),j()(t," .uael-gf-style-underline.uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type='text']",{"border-width":h+"px!important","border-style":"solid!important","border-color":g+"!important"}),j()(t," .gform_wrapper div.validation_error",{color:ct,"background-color":rt,"border-color":st,"border-style":"solid","border-width":z(ut,"px"),"border-radius":z(ht,dt),padding:gt+"px "+mt+"px","font-size":Re.msgFontSizeType,"font-family":Fe,"font-weight":Pe,"line-height":z(Ge,We)}),j()(t," .gform_confirmation_message",{color:bt,"font-size":z(Je,$e),"font-family":Ye,"font-weight":Ke,"line-height":z(tt,et)}),t),pt={" input:not([type=submit])":{"font-size":z(W,q),"line-height":z(J,Y)}," select":{"font-size":z(B,L),"line-height":z(P,A)}," textarea":{"font-size":z(W,q),"line-height":z(J,Y)}," form label":{"font-size":z(B,L),"line-height":z(P,A)}," form .gfield_radio label":{"font-size":z(B,L),"line-height":z(P,A)}," form .gfield_checkbox label":{"font-size":z(B,L),"line-height":z(P,A)}," input.gform_button":{"font-size":z(ee,X),"line-height":z(oe,ne)}," .uagb-gf-styler__check-style-enabled form .gfield_radio label":{"font-size":z(fe,pe),"line-height":z(Oe,ze)}," .uagb-gf-styler__check-style-enabled form .gfield_checkbox label":{"font-size":z(fe,pe),"line-height":z(Oe,ze)}," span.wpgf-not-valid-tip":{"font-size":z(Le,Se),"line-height":z(Ne,Ve)}," .gform_wrapper .validation_message":{"font-size":z(Le,Se),"line-height":z(Ne,Ve)}," .gform_wrapper div.validation_error":{"font-size":z(De,Ie),"line-height":z(Ze,We)}," .gform_confirmation_message":{"font-size":z(Qe,$e),"line-height":z(at,et)}},ft={" input:not([type=submit])":{"font-size":z(G,q),"line-height":z($,Y)}," select":{"font-size":z(V,L),"line-height":z(R,A)}," textarea":{"font-size":z(W,q),"line-height":z(J,Y)}," form label":{"font-size":z(G,q),"line-height":z($,Y)}," form .gfield_radio label":{"font-size":z(V,L),"line-height":z(R,A)}," form .gfield_checkbox label":{"font-size":z(V,L),"line-height":z(R,A)}," input.gform_button":{"font-size":z(te,X),"line-height":z(ce,ne)}," .uagb-gf-styler__check-style-enabled form .gfield_radio label":{"font-size":z(we,pe),"line-height":z(Ce,ze)}," .uagb-gf-styler__check-style-enabled form .gfield_checkbox label":{"font-size":z(we,pe),"line-height":z(Ce,ze)}," span.wpgf-not-valid-tip":{"font-size":z(Be,Se),"line-height":z(Ae,Ve)}," .gform_wrapper .validation_message":{"font-size":z(Be,Se),"line-height":z(Ae,Ve)}," .gform_wrapper div.validation_error":{"font-size":z(qe,Ie),"line-height":z(Ue,We)}," .gform_confirmation_message":{"font-size":z(Xe,$e),"line-height":z(lt,et)}},wt=y(vt,".block-editor-page #wpwrap .edit-post-visual-editor .wp-block-uagb-gf-styler.uagb-block-".concat(e.clientId.substr(0,8)));return(wt+=y(pt,".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8))))+y(ft,".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8)))}(this.props))}}]),i}(bp),fp=lp((function(e,t){var a=t.setAttributes,l=t.attributes,n=l.formId,i=l.isHtml,o="";return n&&-1!=n&&0!=n&&!i&&$.ajax({url:uagb_blocks_info.ajax_url,data:{action:"uagb_gf_shortcode",formId:n,nonce:uagb_blocks_info.uagb_ajax_nonce},dataType:"json",type:"POST",success:function(e){a({isHtml:!0}),a({formJson:e}),o=e}}),{formHTML:o}}))(pp),_p=(a(388),a(389),wp.blocks.registerBlockType);uagb_blocks_info.blocks["uagb/gf-styler"].is_active&&_p("uagb/gf-styler",{title:uagb_blocks_info.blocks["uagb/gf-styler"].title,description:uagb_blocks_info.blocks["uagb/gf-styler"].description,icon:n.gf_styler,keywords:[Object(M.__)("GF styler","ultimate-addons-for-gutenberg"),Object(M.__)("gravity form styler","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},category:uagb_blocks_info.category,edit:fp,example:{},save:function(){return null}});var yp=wp.element.Fragment,zp=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){return c()(this,i),l.apply(this,arguments)}return s()(i,[{key:"onSubmitClick",value:function(e){e.preventDefault()}},{key:"render",value:function(){var e=this.props.attributes;return Object(f.createElement)("a",{onClick:this.onSubmitClick,href:"/",className:"uagb-blockquote__tweet-button",target:"_blank",rel:"noopener noreferrer"},"icon_text"===e.iconView&&Object(f.createElement)(yp,null,n.quote_tweet_icon,Object(f.createElement)("span",{className:"uagb-blockquote__tweet-label"},e.iconLabel)),"icon"===e.iconView&&Object(f.createElement)(yp,null,n.quote_tweet_icon),"text"===e.iconView&&Object(f.createElement)(yp,null,Object(f.createElement)("span",{className:"uagb-blockquote__tweet-label"},e.iconLabel)))}}]),i}(React.Component);var xp=wp.blockEditor.RichText,Op=wp.blocks.createBlock,Cp=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.props;return"not_set"!==a?Object(f.createElement)(xp,{tagName:"div",value:t.descriptionText,placeholder:Object(M.__)("Write a Quote","ultimate-addons-for-gutenberg"),className:"uagb-blockquote__content",onChange:function(e){return a({descriptionText:e})},onMerge:l.mergeBlocks,onSplit:l.insertBlocksAfter?function(e,t){a({content:e});for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];l.insertBlocksAfter([].concat(i,[Op("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return l.onReplace([])}}):Object(f.createElement)(xp.Content,{tagName:"div",value:t.descriptionText,className:"uagb-blockquote__content"})}}]),n}(React.Component);var jp=wp.blockEditor.RichText,Mp=wp.blocks.createBlock,Ep=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.props;return"not_set"!==a?Object(f.createElement)(jp,{tagName:"div",value:t.author,placeholder:Object(M.__)("Author","ultimate-addons-for-gutenberg"),className:"uagb-blockquote__author",onChange:function(e){return a({author:e})},onMerge:l.mergeBlocks,onSplit:l.insertBlocksAfter?function(e,t){a({content:e});for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];l.insertBlocksAfter([].concat(i,[Mp("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return l.onReplace([])}}):Object(f.createElement)(jp.Content,{tagName:"cite",value:t.author,className:"uagb-blockquote__author"})}}]),n}(React.Component);var Hp=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props.attributes,t="";void 0!==e.authorImage&&null!==e.authorImage&&""!==e.authorImage&&(t=e.authorImage.url);var a="";if(""!==t){var l=e.authorImage.sizes,n=e.authorImageSize;return a=void 0!==l&&void 0!==l[n]?l[n].url:t,Object(f.createElement)("div",{className:"uagb-blockquote__author-image"},Object(f.createElement)("img",{className:"",src:a,alt:e.authorImage.alt}))}return null}}]),n}(React.Component);var kp=wp.blockEditor,Sp=kp.AlignmentToolbar,Lp=kp.BlockControls,Bp=kp.InspectorControls,Vp=kp.ColorPalette,Tp=kp.MediaUpload,Np=wp.components,Ap=Np.PanelBody,Fp=Np.SelectControl,Pp=Np.RangeControl,Rp=Np.Button,Ip=Np.TextControl,Dp=Np.BaseControl,qp=Np.ToggleControl,Wp=Np.Toolbar,Gp=Np.Tooltip,Zp=Np.TabPanel,Up=Np.ButtonGroup,Yp=Np.Dashicon,Kp=wp.element,Jp=Kp.Component,$p=Kp.Fragment,Qp=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(h()(e)),e.onRemoveImage=e.onRemoveImage.bind(h()(e)),e}return s()(i,[{key:"onRemoveImage",value:function(){(0,this.props.setAttributes)({authorImage:null})}},{key:"onSelectImage",value:function(e){var t=this.props.setAttributes;e&&e.url?e.type&&"image"==e.type&&t({authorImage:e}):t({authorImage:null})}},{key:"render",value:function(){var e,t,a,l=this.props,i=l.className,o=l.setAttributes,c=l.attributes,r=c.skinStyle,s=c.align,u=c.authorColor,h=c.descColor,d=c.descFontSize,g=c.descFontSizeType,m=c.descFontSizeTablet,b=c.descFontSizeMobile,v=c.descFontFamily,p=c.descFontWeight,w=c.descFontSubset,y=c.descLineHeightType,z=c.descLineHeight,x=c.descLineHeightTablet,O=c.descLineHeightMobile,C=c.descLoadGoogleFonts,j=c.authorFontSize,E=c.authorFontSizeType,H=c.authorFontSizeTablet,k=c.authorFontSizeMobile,L=c.authorFontFamily,B=c.authorFontWeight,V=c.authorFontSubset,T=c.authorLineHeightType,N=c.authorLineHeight,A=c.authorLineHeightTablet,F=c.authorLineHeightMobile,P=c.authorLoadGoogleFonts,R=c.descSpace,I=c.authorSpace,D=c.stack,q=c.borderColor,W=c.borderStyle,G=c.borderWidth,Z=c.borderGap,U=c.verticalPadding,Y=c.quoteColor,K=c.quoteBgColor,J=c.quoteSize,$=c.quoteSizeType,Q=c.quoteSizeTablet,X=c.quoteSizeMobile,ee=c.quotePadding,te=c.quotePaddingType,ae=c.quotePaddingTablet,le=c.quotePaddingMobile,ne=c.quoteBorderRadius,ie=c.quoteStyle,oe=c.enableTweet,ce=c.tweetLinkColor,re=c.tweetBtnColor,se=c.tweetBtnHoverColor,ue=c.tweetBtnBgColor,he=c.tweetBtnBgHoverColor,de=c.tweetBtnFontSize,ge=c.tweetBtnFontSizeType,me=c.tweetBtnFontSizeTablet,be=c.tweetBtnFontSizeMobile,ve=c.tweetBtnFontFamily,pe=c.tweetBtnFontWeight,fe=c.tweetBtnFontSubset,we=c.tweetBtnLineHeightType,_e=c.tweetBtnLineHeight,ye=c.tweetBtnLineHeightTablet,ze=c.tweetBtnLineHeightMobile,xe=c.tweetBtnLoadGoogleFonts,Oe=c.tweetBtnHrPadding,Ce=c.tweetBtnVrPadding,je=c.tweetIconSpacing,Me=c.iconView,Ee=c.iconSkin,He=c.iconLabel,ke=c.iconShareVia,Se=c.iconTargetUrl,Le=c.customUrl,Be=c.authorImage,Ve=c.authorImageWidth,Te=c.authorImageSize,Ne=c.authorImgBorderRadius,Ae=c.authorImgPosition,Fe=c.quoteTopMargin,Pe=c.quoteBottomMargin,Re=c.quoteLeftMargin,Ie=c.quoteRightMargin,De=c.quoteHoverColor,qe=c.quoteBgHoverColor,We=c.borderHoverColor,Ge=[{key:"px",name:Object(M.__)("px","ultimate-addons-for-gutenberg")},{key:"em",name:Object(M.__)("em","ultimate-addons-for-gutenberg")}];if(1==C){var Ze={google:{families:[v+(p?":"+p:"")]}};e=Object(f.createElement)(ha,{config:Ze})}if(1==P){var Ue={google:{families:[L+(B?":"+B:"")]}};t=Object(f.createElement)(ha,{config:Ue})}if(1==xe){var Ye={google:{families:[ve+(pe?":"+pe:"")]}};a=Object(f.createElement)(ha,{config:Ye})}var Ke=Object(f.createElement)(Up,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},S()(Ge,(function(e){var t=e.name,a=e.key;return Object(f.createElement)(Rp,{key:a,className:"uagb-size-btn",isSmall:!0,isPrimary:$===a,"aria-pressed":$===a,onClick:function(){return o({quoteSizeType:a})}},t)}))),Je=Object(f.createElement)(Up,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},S()(Ge,(function(e){var t=e.name,a=e.key;return Object(f.createElement)(Rp,{key:a,className:"uagb-size-btn",isSmall:!0,isPrimary:te===a,"aria-pressed":te===a,onClick:function(){return o({quotePaddingType:a})}},t)}))),$e=Object(M.__)("Select Image","ultimate-addons-for-gutenberg");Be&&($e=null==Be.url||""==Be.url?Object(M.__)("Select Image","ultimate-addons-for-gutenberg"):Object(M.__)("Replace Image","ultimate-addons-for-gutenberg"));var Qe=[{value:"thumbnail",label:Object(M.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(M.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(M.__)("Large","ultimate-addons-for-gutenberg")}],Xe=Object(f.createElement)($p,null,Object(f.createElement)("h2",null,Object(M.__)("Modern Layout - Styling","ultimate-addons-for-gutenberg")),Object(f.createElement)(Fp,{label:Object(M.__)("Quote Border Style","ultimate-addons-for-gutenberg"),value:W,onChange:function(e){return o({borderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=W&&Object(f.createElement)(Pp,{label:Object(M.__)("Thickness (px)","ultimate-addons-for-gutenberg"),value:G,onChange:function(e){return o({borderWidth:e})},min:0,max:50,allowReset:!0})),et=Object(f.createElement)($p,null,Object(f.createElement)("h2",null,Object(M.__)("Quotation Layout - Styling","ultimate-addons-for-gutenberg")),Object(f.createElement)(Zp,{className:"uagb-size-type-field-tabs",activeClass:"active-tab",tabs:[{name:"desktop",title:Object(f.createElement)(Yp,{icon:"desktop"}),className:"uagb-desktop-tab uagb-responsive-tabs"},{name:"tablet",title:Object(f.createElement)(Yp,{icon:"tablet"}),className:"uagb-tablet-tab uagb-responsive-tabs"},{name:"mobile",title:Object(f.createElement)(Yp,{icon:"smartphone"}),className:"uagb-mobile-tab uagb-responsive-tabs"}]},(function(e){var t;return t="mobile"===e.name?Object(f.createElement)($p,null,Ke,Object(f.createElement)(Pp,{label:Object(M.__)("Quote Icon Size","ultimate-addons-for-gutenberg"),value:X,onChange:function(e){return o({quoteSizeMobile:e})},min:0,max:500,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30})):"tablet"===e.name?Object(f.createElement)($p,null,Ke,Object(f.createElement)(Pp,{label:Object(M.__)("Quote Icon Size","ultimate-addons-for-gutenberg"),value:Q,onChange:function(e){return o({quoteSizeTablet:e})},min:0,max:500,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30})):Object(f.createElement)($p,null,Ke,Object(f.createElement)(Pp,{label:Object(M.__)("Quote Icon Size","ultimate-addons-for-gutenberg"),value:J,onChange:function(e){return o({quoteSize:e})},min:0,max:500,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30})),Object(f.createElement)("div",null,t)})),Object(f.createElement)(Zp,{className:"uagb-size-type-field-tabs",activeClass:"active-tab",tabs:[{name:"desktop",title:Object(f.createElement)(Yp,{icon:"desktop"}),className:"uagb-desktop-tab uagb-responsive-tabs"},{name:"tablet",title:Object(f.createElement)(Yp,{icon:"tablet"}),className:"uagb-tablet-tab uagb-responsive-tabs"},{name:"mobile",title:Object(f.createElement)(Yp,{icon:"smartphone"}),className:"uagb-mobile-tab uagb-responsive-tabs"}]},(function(e){var t;return t="mobile"===e.name?Object(f.createElement)($p,null,Je,Object(f.createElement)(Pp,{label:Object(M.__)("Background Size","ultimate-addons-for-gutenberg"),value:le,onChange:function(e){return o({quotePaddingMobile:e})},min:0,max:500,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30})):"tablet"===e.name?Object(f.createElement)($p,null,Je,Object(f.createElement)(Pp,{label:Object(M.__)("Background Size","ultimate-addons-for-gutenberg"),value:ae,onChange:function(e){return o({quotePaddingTablet:e})},min:0,max:500,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30})):Object(f.createElement)($p,null,Je,Object(f.createElement)(Pp,{label:Object(M.__)("Background Size","ultimate-addons-for-gutenberg"),value:ee,onChange:function(e){return o({quotePadding:e})},min:0,max:500,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30})),Object(f.createElement)("div",null,t)})),K&&Object(f.createElement)(Pp,{label:Object(M.__)("Quote Icon Border Radius (%)","ultimate-addons-for-gutenberg"),value:ne,onChange:function(e){return o({quoteBorderRadius:e})},min:0,max:100,allowReset:!0})),tt=Object(f.createElement)(Ap,{title:Object(M.__)("Layout","ultimate-addons-for-gutenberg")},Object(f.createElement)(Fp,{label:Object(M.__)("Layout","ultimate-addons-for-gutenberg"),options:[{value:"border",label:Object(M.__)("Modern","ultimate-addons-for-gutenberg")},{value:"quotation",label:Object(M.__)("Quotation","ultimate-addons-for-gutenberg")}],value:r,onChange:function(e){return o({skinStyle:e})}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),"border"===r&&Xe,"quotation"===r&&et,"quotation"===r&&Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Quote Icon Colors","ultimate-addons-for-gutenberg"))),"none"!=W&&Object(f.createElement)(Zp,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:Object(M.__)("Normal","ultimate-addons-for-gutenberg"),className:"uagb-normal-tab"},{name:"hover",title:Object(M.__)("Hover","ultimate-addons-for-gutenberg"),className:"uagb-hover-tab"}]},(function(e){var t;return t="hover"===e.name?nt:lt,Object(f.createElement)("div",null,t)})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Fp,{label:Object(M.__)("Stack on","ultimate-addons-for-gutenberg"),value:D,options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(M.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(M.__)("Mobile","ultimate-addons-for-gutenberg")}],help:Object(M.__)("Note: Choose on what breakpoint the elements will stack.","ultimate-addons-for-gutenberg"),onChange:function(e){return o({stack:e})}})),at=Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Dp,{className:"editor-bg-image-control",label:Object(M.__)("Author Image","ultimate-addons-for-gutenberg")},Object(f.createElement)(Tp,{title:Object(M.__)("Select Image","ultimate-addons-for-gutenberg"),onSelect:this.onSelectImage,allowedTypes:["image"],value:Be,render:function(e){var t=e.open;return Object(f.createElement)(Rp,{isSecondary:!0,onClick:t},$e)}}),Be&&"null"!==Be.url&&""!==Be.url&&Object(f.createElement)(Rp,{className:"uagb-rm-btn",onClick:this.onRemoveImage,isLink:!0,isDestructive:!0},Object(M.__)("Remove Image","ultimate-addons-for-gutenberg"))),Be&&"null"!==Be.url&&""!==Be.url&&Object(f.createElement)($p,null,Object(f.createElement)(Fp,{label:Object(M.__)("Author Image Position","ultimate-addons-for-gutenberg"),value:Ae,onChange:function(e){return o({authorImgPosition:e})},options:[{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")},{value:"top",label:Object(M.__)("Top","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(Fp,{label:Object(M.__)("Author Image Size","ultimate-addons-for-gutenberg"),options:Qe,value:Te,onChange:function(e){return o({authorImageSize:e})}}),Object(f.createElement)(Pp,{label:Object(M.__)("Author Image Width","ultimate-addons-for-gutenberg"),value:Ve,onChange:function(e){return o({authorImageWidth:e})},min:0,max:500,beforeIcon:"",allowReset:!0}),Object(f.createElement)(Pp,{label:Object(M.__)("Author Image Rounded Corners","ultimate-addons-for-gutenberg"),value:Ne,onChange:function(e){return o({authorImgBorderRadius:e})},min:0,max:100,beforeIcon:"",allowReset:!0}))),lt=Object(f.createElement)($p,null,"none"!=W&&"border"==r&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:q}}))),Object(f.createElement)(Vp,{value:q,onChange:function(e){return o({borderColor:e})},allowReset:!0})),"quotation"==r&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Icon Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Y}}))),Object(f.createElement)(Vp,{value:Y,onChange:function(e){return o({quoteColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Icon Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:K}}))),Object(f.createElement)(Vp,{value:K,onChange:function(e){return o({quoteBgColor:e})},allowReset:!0}))),nt=Object(f.createElement)($p,null,"border"==r&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:We}}))),Object(f.createElement)(Vp,{value:We,onChange:function(e){return o({borderHoverColor:e})},allowReset:!0})),"quotation"==r&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:De}}))),Object(f.createElement)(Vp,{value:De,onChange:function(e){return o({quoteHoverColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:qe}}))),Object(f.createElement)(Vp,{value:qe,onChange:function(e){return o({quoteBgHoverColor:e})},allowReset:!0}))),it=Object(f.createElement)($p,null,Object(f.createElement)(Ap,{title:Object(M.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("h2",null,Object(M.__)("Quote","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:c,setAttributes:o,loadGoogleFonts:{value:C,label:"descLoadGoogleFonts"},fontFamily:{value:v,label:"descFontFamily"},fontWeight:{value:p,label:"descFontWeight"},fontSubset:{value:w,label:"descFontSubset"},fontSizeType:{value:g,label:"descFontSizeType"},fontSize:{value:d,label:"descFontSize"},fontSizeMobile:{value:b,label:"descFontSizeMobile"},fontSizeTablet:{value:m,label:"descFontSizeTablet"},lineHeightType:{value:y,label:"descLineHeightType"},lineHeight:{value:z,label:"descLineHeight"},lineHeightMobile:{value:O,label:"descLineHeightMobile"},lineHeightTablet:{value:x,label:"descLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Quote Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:h}}))),Object(f.createElement)(Vp,{value:h,onChange:function(e){return o({descColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Author","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:c,setAttributes:o,loadGoogleFonts:{value:P,label:"authorLoadGoogleFonts"},fontFamily:{value:L,label:"authorFontFamily"},fontWeight:{value:B,label:"authorFontWeight"},fontSubset:{value:V,label:"authorFontSubset"},fontSizeType:{value:E,label:"authorFontSizeType"},fontSize:{value:j,label:"authorFontSize"},fontSizeMobile:{value:k,label:"authorFontSizeMobile"},fontSizeTablet:{value:H,label:"authorFontSizeTablet"},lineHeightType:{value:T,label:"authorLineHeightType"},lineHeight:{value:N,label:"authorLineHeight"},lineHeightMobile:{value:F,label:"authorLineHeightMobile"},lineHeightTablet:{value:A,label:"authorLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Author Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:u}}))),Object(f.createElement)(Vp,{value:u,onChange:function(e){return o({authorColor:e})},allowReset:!0}),at)),ot=Object(f.createElement)($p,null,"link"==Ee&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Tweet Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ce}}))),Object(f.createElement)(Vp,{value:ce,onChange:function(e){return o({tweetLinkColor:e})},allowReset:!0})),"link"!==Ee&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Tweet Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:re}}))),Object(f.createElement)(Vp,{value:re,onChange:function(e){return o({tweetBtnColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Tweet Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ue}}))),Object(f.createElement)(Vp,{value:ue,onChange:function(e){return o({tweetBtnBgColor:e})},allowReset:!0}))),ct=Object(f.createElement)($p,null,"link"==Ee&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Tweet Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:se}}))),Object(f.createElement)(Vp,{value:se,onChange:function(e){return o({tweetBtnHoverColor:e})},allowReset:!0})),"link"!==Ee&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Tweet Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:se}}))),Object(f.createElement)(Vp,{value:se,onChange:function(e){return o({tweetBtnHoverColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Tweet Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:he}}))),Object(f.createElement)(Vp,{value:he,onChange:function(e){return o({tweetBtnBgHoverColor:e})},allowReset:!0}))),rt=Object(f.createElement)(Ap,{title:Object(M.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},"quotation"===r&&Object(f.createElement)($p,null,Object(f.createElement)("h2",null,Object(M.__)("Quote Icon Margin (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(Pp,{label:n.top_margin,className:"uagb-margin-control",value:Fe,onChange:function(e){return o({quoteTopMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Pp,{label:n.bottom_margin,className:"uagb-margin-control",value:Pe,onChange:function(e){return o({quoteBottomMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Pp,{label:n.left_margin,className:"uagb-margin-control",value:Re,onChange:function(e){return o({quoteLeftMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Pp,{label:n.right_margin,className:"uagb-margin-control",value:Ie,onChange:function(e){return o({quoteRightMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"})),"border"===r&&Object(f.createElement)(Pp,{label:Object(M.__)("Gap Between Border and Quote","ultimate-addons-for-gutenberg"),value:Z,onChange:function(e){return o({borderGap:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Pp,{label:Object(M.__)("Quote Bottom Spacing","ultimate-addons-for-gutenberg"),value:R,onChange:function(e){return o({descSpace:e})},min:0,max:200,allowReset:!0,initialPosition:0}),"center"==s&&"border"!==r&&Object(f.createElement)(Pp,{label:Object(M.__)("Author Bottom Spacing","ultimate-addons-for-gutenberg"),value:I,onChange:function(e){return o({authorSpace:e})},min:0,max:200,allowReset:!0,initialPosition:0}),"border"===r&&Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Vertical Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(Pp,{label:n.vertical_spacing,className:"uagb-margin-control",value:U,onChange:function(e){return o({verticalPadding:e})},min:0,max:500,allowReset:!0}))),st=Object(f.createElement)(Ap,{title:Object(M.__)("Twitter Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(qp,{label:Object(M.__)("Enable Twitter Icon","ultimate-addons-for-gutenberg"),checked:oe,onChange:function(e){return o({enableTweet:!oe})}}),oe&&Object(f.createElement)($p,null,Object(f.createElement)(Fp,{label:Object(M.__)("Icon View","ultimate-addons-for-gutenberg"),value:Me,onChange:function(e){return o({iconView:e})},options:[{value:"icon_text",label:Object(M.__)("Icon & Text","ultimate-addons-for-gutenberg")},{value:"icon",label:Object(M.__)("Icon","ultimate-addons-for-gutenberg")},{value:"text",label:Object(M.__)("Text","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(Fp,{label:Object(M.__)("Icon Style","ultimate-addons-for-gutenberg"),value:Ee,onChange:function(e){return o({iconSkin:e})},options:[{value:"classic",label:Object(M.__)("Classic","ultimate-addons-for-gutenberg")},{value:"bubble",label:Object(M.__)("Bubble","ultimate-addons-for-gutenberg")},{value:"link",label:Object(M.__)("Link","ultimate-addons-for-gutenberg")}]})),oe&&"icon"!==Me&&Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Ip,{label:Object(M.__)("Label","ultimate-addons-for-gutenberg"),value:He,onChange:function(e){return o({iconLabel:e})}})),oe&&Object(f.createElement)($p,null,Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:c,setAttributes:o,loadGoogleFonts:{value:xe,label:"tweetBtnLoadGoogleFonts"},fontFamily:{value:ve,label:"tweetBtnFontFamily"},fontWeight:{value:pe,label:"tweetBtnFontWeight"},fontSubset:{value:fe,label:"tweetBtnFontSubset"},fontSizeType:{value:ge,label:"tweetBtnFontSizeType"},fontSize:{value:de,label:"tweetBtnFontSize"},fontSizeMobile:{value:be,label:"tweetBtnFontSizeMobile"},fontSizeTablet:{value:me,label:"tweetBtnFontSizeTablet"},lineHeightType:{value:we,label:"tweetBtnLineHeightType"},lineHeight:{value:_e,label:"tweetBtnLineHeight"},lineHeightMobile:{value:ze,label:"tweetBtnLineHeightMobile"},lineHeightTablet:{value:ye,label:"tweetBtnLineHeightTablet"}}),Object(f.createElement)(Fp,{label:Object(M.__)("Target URL","ultimate-addons-for-gutenberg"),value:Se,onChange:function(e){return o({iconTargetUrl:e})},options:[{value:"current",label:Object(M.__)("Current Page","ultimate-addons-for-gutenberg")},{value:"custom",label:Object(M.__)("Custom URL","ultimate-addons-for-gutenberg")}]}),"custom"==Se&&Object(f.createElement)(Ip,{label:Object(M.__)("URL","ultimate-addons-for-gutenberg"),value:Le,onChange:function(e){return o({customUrl:e})}})),oe&&"link"!==Ee&&Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Button Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(Pp,{label:n.vertical_spacing,className:"uagb-margin-control",value:Ce,onChange:function(e){return o({tweetBtnVrPadding:e})},min:0,max:500,allowReset:!0,initialPosition:5}),Object(f.createElement)(Pp,{label:n.horizontal_spacing,className:"uagb-margin-control",value:Oe,onChange:function(e){return o({tweetBtnHrPadding:e})},min:0,max:500,allowReset:!0,initialPosition:5})),oe&&"icon_text"==Me&&Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Pp,{label:Object(M.__)("Space between Tweet Icon and Text","ultimate-addons-for-gutenberg"),value:je,onChange:function(e){return o({tweetIconSpacing:e})},min:0,max:20,allowReset:!0,initialPosition:5})),oe&&Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Zp,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:Object(M.__)("Normal","ultimate-addons-for-gutenberg"),className:"uagb-normal-tab"},{name:"hover",title:Object(M.__)("Hover","ultimate-addons-for-gutenberg"),className:"uagb-hover-tab"}]},(function(e){var t;return t="hover"===e.name?ct:ot,Object(f.createElement)("div",null,t)}))));return Object(f.createElement)($p,null,Object(f.createElement)(Lp,{key:"controls"},"border"!==r&&Object(f.createElement)(Sp,{value:s,onChange:function(e){return o({align:e})}}),"quotation"===r&&Object(f.createElement)($p,null,Object(f.createElement)(Wp,{label:"Options"},Object(f.createElement)(Gp,{text:Object(M.__)("Normal Quote","ultimate-addons-for-gutenberg")},Object(f.createElement)(Rp,{className:_()("components-icon-button","components-toolbar__control",{"is-active":"style_1"===ie}),onClick:function(){return o({quoteStyle:"style_1"})}},n.quote_1))),Object(f.createElement)(Wp,{label:"Options"},Object(f.createElement)(Gp,{text:Object(M.__)("Inline Quote","ultimate-addons-for-gutenberg")},Object(f.createElement)(Rp,{className:_()("components-icon-button","components-toolbar__control",{"is-active":"style_2"===ie}),onClick:function(){return o({quoteStyle:"style_2"})}},n.quote_2)))),oe&&Object(f.createElement)($p,null,Object(f.createElement)(Wp,{label:"Options"},Object(f.createElement)("label",{"aria-label":Object(M.__)("Twitter Username","ultimate-addons-for-gutenberg"),className:"".concat(i,"__via-label"),htmlFor:"".concat(i,"__via")}," ",n.at_the_rate),Object(f.createElement)("input",{"aria-label":Object(M.__)("Twitter Username","ultimate-addons-for-gutenberg"),className:"".concat(i,"__via"),id:"".concat(i,"__via"),onChange:function(e){return o({iconShareVia:e.target.value})},placeholder:Object(M.__)("Username","ultimate-addons-for-gutenberg"),type:"text",value:ke})))),Object(f.createElement)(Bp,null,tt,it,st,rt),Object(f.createElement)("div",{className:_()(i,"uagb-blockquote__outer-wrap","uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:_()("uagb-blockquote__wrap","uagb-blockquote__skin-".concat(r),"border"!==r?"uagb-blockquote__align-".concat(s):"","quotation"===r?"uagb-blockquote__style-".concat(ie):"",oe?"uagb-blockquote__with-tweet uagb-blockquote__tweet-style-".concat(Ee," uagb-blockquote__tweet-").concat(Me):"","uagb-blockquote__stack-img-".concat(D))},Object(f.createElement)("blockquote",{className:"uagb-blockquote"},"quotation"===r&&Object(f.createElement)("div",{className:"uagb-blockquote__icon-wrap"},Object(f.createElement)("span",{className:"uagb-blockquote__icon"},n.quote_inline_icon)," "),Object(f.createElement)("div",{className:"uagb-blockquote__content-wrap"},Object(f.createElement)(Cp,{attributes:c,setAttributes:o,props:this.props}),Object(f.createElement)("footer",null,Object(f.createElement)("div",{className:_()("uagb-blockquote__author-wrap",""!==Be?"uagb-blockquote__author-at-".concat(Ae):"")},Object(f.createElement)(Hp,{attributes:c}),Object(f.createElement)(Ep,{attributes:c,setAttributes:o,props:this.props})),oe&&Object(f.createElement)(zp,{attributes:c})))))),e,t,a)}},{key:"componentDidUpdate",value:function(e,t){var a=document.getElementById("uagb-blockquote-style-"+this.props.clientId.substr(0,8));null!=a&&(a.innerHTML=function(e){var t=e.attributes,a=(t.classMigrate,t.skinStyle),l=t.align,n=t.authorColor,i=t.descColor,o=t.descFontSize,c=t.descFontSizeType,r=t.descFontSizeTablet,s=t.descFontSizeMobile,u=t.descFontFamily,h=t.descFontWeight,d=t.descLineHeightType,g=t.descLineHeight,m=t.descLineHeightTablet,b=t.descLineHeightMobile,v=t.authorFontSize,p=t.authorFontSizeType,f=t.authorFontSizeTablet,w=t.authorFontSizeMobile,_=t.authorFontFamily,x=t.authorFontWeight,O=t.authorLineHeightType,C=t.authorLineHeight,j=t.authorLineHeightTablet,M=t.authorLineHeightMobile,E=t.descSpace,H=t.authorSpace,k=t.borderColor,S=t.borderStyle,L=t.borderWidth,B=t.borderGap,V=t.verticalPadding,T=t.quoteColor,N=t.quoteSize,A=t.quoteSizeType,F=t.quoteSizeTablet,P=t.quoteSizeMobile,R=t.quoteBgColor,I=t.enableTweet,D=t.tweetBtnFontSize,q=t.tweetBtnFontSizeType,W=t.tweetBtnFontSizeTablet,G=t.tweetBtnFontSizeMobile,Z=t.tweetBtnFontFamily,U=t.tweetBtnFontWeight,Y=t.tweetBtnLineHeightType,K=t.tweetBtnLineHeight,J=t.tweetBtnLineHeightTablet,$=t.tweetBtnLineHeightMobile,Q=t.tweetLinkColor,X=t.tweetBtnColor,ee=t.tweetBtnBgColor,te=t.tweetBtnHoverColor,ae=t.tweetBtnBgHoverColor,le=t.tweetBtnHrPadding,ne=t.tweetBtnVrPadding,ie=t.tweetIconSpacing,oe=t.authorImageWidth,ce=t.authorImgBorderRadius,re=t.quoteBorderRadius,se=t.quoteTopMargin,ue=t.quoteBottomMargin,he=t.quoteLeftMargin,de=t.quoteRightMargin,ge=t.quoteHoverColor,me=t.quoteBgHoverColor,be=t.borderHoverColor,ve=t.quotePadding,pe=t.quotePaddingType,fe=t.quotePaddingTablet,we=t.quotePaddingMobile,_e=H;"center"===l&&"border"!=a||(_e=0);var ye=l;"border"==a&&(ye="left");var ze={" .uagb-blockquote__content.block-editor-rich-text__editable":{"font-size":z(o,c),"font-family":u,"font-weight":h,"line-height":z(g,d),color:i,"margin-bottom":z(E,"px"),"text-align":ye}," .uagb-blockquote__author.block-editor-rich-text__editable":{"font-size":z(v,p),"font-family":_,"font-weight":x,"line-height":z(C,O),color:n,"text-align":ye}," .uagb-blockquote__skin-border blockquote.uagb-blockquote":{"border-color":k,"border-left-style":S,"border-left-width":z(L,"px"),"padding-left":z(B,"px"),"padding-top":z(V,"px"),"padding-bottom":z(V,"px")}," .uagb-blockquote__skin-border blockquote.uagb-blockquote:hover":{"border-left-color":be}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap":{background:R,"border-radius":z(re,"%"),"margin-top":z(se,"px"),"margin-bottom":z(ue,"px"),"margin-left":z(he,"px"),"margin-right":z(de,"px"),padding:z(ve,pe)}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon":{width:z(N,A),height:z(N,A)}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg":{fill:T}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap:hover":{background:me}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap:hover .uagb-blockquote__icon svg":{fill:ge}," .uagb-blockquote__style-style_1 .uagb-blockquote":{"text-align":l}," .uagb-blockquote__author-wrap":{"margin-bottom":z(_e,"px")}," .uagb-blockquote__author-image img":{width:z(oe,"px"),height:z(oe,"px"),"border-radius":z(ce,"%")}};I&&(ze[" a.uagb-blockquote__tweet-button"]={"font-size":z(D,q),"font-family":Z,"font-weight":U,"line-height":z(K,Y)},ze[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button"]={color:Q},ze[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button svg"]={fill:Q},ze[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button"]={color:X,"background-color":ee,"padding-left":z(le,"px"),"padding-right":z(le,"px"),"padding-top":z(ne,"px"),"padding-bottom":z(ne,"px")},ze[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button svg"]={fill:X},ze[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button"]={color:X,"background-color":ee,"padding-left":z(le,"px"),"padding-right":z(le,"px"),"padding-top":z(ne,"px"),"padding-bottom":z(ne,"px")},ze[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button svg"]={fill:X},ze[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before"]={"border-right-color":ee},ze[" a.uagb-blockquote__tweet-button svg"]={width:z(D,q),height:z(D,q)},ze[" .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button svg"]={"margin-right":z(ie,"px")},ze[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover"]={color:te},ze[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover svg"]={fill:te},ze[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover"]={color:te,"background-color":ae},ze[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover svg"]={fill:te,"background-color":ae},ze[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover "]={color:te,"background-color":ae},ze[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover svg"]={fill:te,"background-color":ae},ze[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover:before"]={"border-right-color":ae});var xe={" .uagb-blockquote__content.block-editor-rich-text__editable":{"font-size":z(r,c),"line-height":z(m,d)}," .uagb-blockquote__author.block-editor-rich-text__editable":{"font-size":z(f,p),"line-height":z(j,O)}," a.uagb-blockquote__tweet-button":{"font-size":z(W,q),"line-height":z(J,Y)}," a.uagb-blockquote__tweet-button svg":{width:z(W,q),height:z(W,q)}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap":{padding:z(fe,pe)}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon":{width:z(F,A),height:z(F,A)}},Oe={" .uagb-blockquote__content.block-editor-rich-text__editable":{"font-size":z(s,c),"line-height":z(b,d)}," .uagb-blockquote__author.block-editor-rich-text__editable":{"font-size":z(w,p),"line-height":z(M,O)}," a.uagb-blockquote__tweet-button":{"font-size":z(G,q),"line-height":z($,Y)}," a.uagb-blockquote__tweet-button svg":{width:z(G,q),height:z(G,q)}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap":{padding:z(we,pe)}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon":{width:z(P,A),height:z(P,A)}},Ce=".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8)),je=y(ze,Ce);return(je+=y(xe,Ce))+y(Oe,Ce)}(this.props))}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)}),this.props.setAttributes({classMigrate:!0});var e=document.createElement("style");e.setAttribute("id","uagb-blockquote-style-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}}]),i}(Jp),Xp={block_id:{type:"string"},classMigrate:{type:"boolean",default:!1},skinStyle:{type:"string",default:"border"},align:{type:"string",default:"left"},descriptionText:{selector:"div.uagb-blockquote__content",default:"Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."},descColor:{type:"string"},descFontSize:{type:"number"},descFontSizeType:{type:"string",default:"px"},descFontSizeTablet:{type:"number"},descFontSizeMobile:{type:"number"},descFontFamily:{type:"string",default:"Default"},descFontWeight:{type:"string"},descFontSubset:{type:"string"},descLineHeightType:{type:"string",default:"em"},descLineHeight:{type:"number"},descLineHeightTablet:{type:"number"},descLineHeightMobile:{type:"number"},descLoadGoogleFonts:{type:"boolean",default:!1},descSpace:{type:"number",default:20},author:{selector:".uagb-blockquote__author",default:"Author"},authorColor:{type:"string",default:"#888888"},authorFontSize:{type:"number"},authorFontSizeType:{type:"string",default:"px"},authorFontSizeTablet:{type:"number"},authorFontSizeMobile:{type:"number"},authorFontFamily:{type:"string",default:"Default"},authorFontWeight:{type:"string"},authorFontSubset:{type:"string"},authorLineHeightType:{type:"string",default:"em"},authorLineHeight:{type:"number"},authorLineHeightTablet:{type:"number"},authorLineHeightMobile:{type:"number"},authorLoadGoogleFonts:{type:"boolean",default:!1},authorSpace:{type:"number",default:10},authorImage:{type:"object",default:{url:"",alt:"Author Image"}},authorImageSize:{type:"string",default:"thumbnail"},authorImageWidth:{type:"number",default:40},authorImgBorderRadius:{type:"number",default:100},authorImgPosition:{type:"string",default:"left"},stack:{type:"string",default:"none"},enableTweet:{type:"boolean",default:!0},iconView:{type:"string",default:"icon_text"},iconSkin:{type:"string",default:"classic"},iconLabel:{type:"string",default:"Tweet"},iconShareVia:{type:"string",default:""},iconTargetUrl:{type:"string",default:"current"},customUrl:{type:"string"},tweetLinkColor:{type:"string",default:"#1DA1F2"},tweetBtnColor:{type:"string",default:"#fff"},tweetBtnBgColor:{type:"string",default:"#1DA1F2"},tweetBtnHoverColor:{type:"string"},tweetBtnBgHoverColor:{type:"string",default:"#1DA1F2"},tweetBtnFontSize:{type:"number",default:15},tweetBtnFontSizeType:{type:"string",default:"px"},tweetBtnFontSizeTablet:{type:"number"},tweetBtnFontSizeMobile:{type:"number"},tweetBtnFontFamily:{type:"string",default:"Default"},tweetBtnFontWeight:{type:"string"},tweetBtnFontSubset:{type:"string"},tweetBtnLineHeightType:{type:"string",default:"em"},tweetBtnLineHeight:{type:"number"},tweetBtnLineHeightTablet:{type:"number"},tweetBtnLineHeightMobile:{type:"number"},tweetBtnLoadGoogleFonts:{type:"boolean",default:!1},tweetBtnHrPadding:{type:"number",default:10},tweetBtnVrPadding:{type:"number",default:10},tweetIconSpacing:{type:"number",default:10},borderColor:{type:"string",default:"#abb8c3"},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:4},borderGap:{type:"number",default:15},verticalPadding:{type:"number"},quoteStyle:{type:"string",default:"style_2"},quoteColor:{type:"string",default:"#abb8c3"},quoteSize:{type:"number",default:25},quoteSizeType:{type:"string",default:"px"},quoteSizeTablet:{type:"number"},quoteSizeMobile:{type:"number"},quotePadding:{type:"number",default:10},quotePaddingType:{type:"string",default:"px"},quotePaddingTablet:{type:"number"},quotePaddingMobile:{type:"number"},quoteBorderRadius:{type:"number",default:100},quoteBgColor:{type:"string",default:"#333"},quoteTopMargin:{type:"number"},quoteBottomMargin:{type:"number"},quoteLeftMargin:{type:"number"},quoteRightMargin:{type:"number",default:20},quoteHoverColor:{type:"string"},quoteBgHoverColor:{type:"string"},borderHoverColor:{type:"string"}};var ef=wp.element.Fragment,tf=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){return c()(this,i),l.apply(this,arguments)}return s()(i,[{key:"render",value:function(){var e=this.props.attributes;return Object(f.createElement)("a",{href:"javascript:void(0)",className:"uagb-blockquote__tweet-button",target:"_blank",rel:"noopener noreferrer"},"icon_text"===e.iconView&&Object(f.createElement)(ef,null,n.quote_tweet_icon,Object(f.createElement)("span",{className:"uagb-blockquote__tweet-label"},e.iconLabel)),"icon"===e.iconView&&Object(f.createElement)(ef,null,n.quote_tweet_icon),"text"===e.iconView&&Object(f.createElement)(ef,null,Object(f.createElement)("span",{className:"uagb-blockquote__tweet-label"},e.iconLabel)))}}]),i}(React.Component),af=(wp.blockEditor.RichText,[{attributes:Xp,save:function(e){var t=e.attributes,a=t.block_id,l=t.skinStyle,i=t.align,o=t.quoteStyle,c=t.iconSkin,r=t.authorImage,s=t.enableTweet,u=t.iconView,h=t.author,d=t.descriptionText,g=t.authorImgPosition,m=t.stack;return Object(f.createElement)("div",{className:_()(e.className,"uagb-blockquote__outer-wrap"),id:"uagb-blockquote-".concat(a)},Object(f.createElement)("div",{className:_()("uagb-blockquote__wrap","uagb-blockquote__skin-".concat(l),"border"!==l?"uagb-blockquote__align-".concat(i):"","quotation"===l?"uagb-blockquote__style-".concat(o):"",s?"uagb-blockquote__with-tweet uagb-blockquote__tweet-style-".concat(c," uagb-blockquote__tweet-").concat(u):"","uagb-blockquote__stack-img-".concat(m))},Object(f.createElement)("blockquote",{className:"uagb-blockquote"},"quotation"===l&&Object(f.createElement)("div",{className:"uagb-blockquote__icon-wrap"},Object(f.createElement)("span",{className:"uagb-blockquote__icon"},n.quote_inline_icon)),Object(f.createElement)("div",{className:"uagb-blockquote__content-wrap"},""!==d&&Object(f.createElement)(Cp,{attributes:e.attributes,setAttributes:"not_set",props:e}),Object(f.createElement)("footer",null,Object(f.createElement)("div",{className:_()("uagb-blockquote__author-wrap",""!==r?"uagb-blockquote__author-at-".concat(g):"")},Object(f.createElement)(Hp,{attributes:e.attributes}),""!==h&&Object(f.createElement)(Ep,{attributes:e.attributes,setAttributes:"not_set",props:e})),s&&Object(f.createElement)(tf,{attributes:e.attributes}))))))}},{attributes:Xp,save:function(e){var t=e.attributes,a=t.block_id,l=t.skinStyle,i=t.align,o=t.quoteStyle,c=t.iconSkin,r=t.authorImage,s=t.enableTweet,u=t.iconView,h=t.author,d=t.descriptionText,g=t.authorImgPosition,m=t.stack;return Object(f.createElement)("div",{className:_()(e.className,"uagb-blockquote__outer-wrap"),id:"uagb-blockquote-".concat(a)},Object(f.createElement)("div",{className:_()("uagb-blockquote__wrap","uagb-blockquote__skin-".concat(l),"border"!==l?"uagb-blockquote__align-".concat(i):"","quotation"===l?"uagb-blockquote__style-".concat(o):"",s?"uagb-blockquote__with-tweet uagb-blockquote__tweet-style-".concat(c," uagb-blockquote__tweet-").concat(u):"","uagb-blockquote__stack-img-".concat(m))},Object(f.createElement)("blockquote",{className:"uagb-blockquote"},"quotation"===l&&Object(f.createElement)("div",{className:"uagb-blockquote__icon-wrap"},Object(f.createElement)("span",{className:"uagb-blockquote__icon"},n.quote_inline_icon)),Object(f.createElement)("div",{className:"uagb-blockquote__content-wrap"},""!==d&&Object(f.createElement)(Cp,{attributes:e.attributes,setAttributes:"not_set",props:e}),Object(f.createElement)("footer",null,Object(f.createElement)("div",{className:_()("uagb-blockquote__author-wrap",""!==r?"uagb-blockquote__author-at-".concat(g):"")},Object(f.createElement)(Hp,{attributes:e.attributes}),""!==h&&Object(f.createElement)(Ep,{attributes:e.attributes,setAttributes:"not_set",props:e})),s&&Object(f.createElement)(zp,{attributes:e.attributes}))))))}}]);wp.blockEditor.RichText,wp.element.Fragment,a(390),a(391);var lf=wp.blocks,nf=lf.registerBlockType,of=lf.createBlock;nf("uagb/blockquote",{title:Object(M.__)("Blockquote","ultimate-addons-for-gutenberg"),description:Object(M.__)("This block allows you to display your Blockquote.","ultimate-addons-for-gutenberg"),icon:n.blockquote,keywords:[Object(M.__)("blockquote","ultimate-addons-for-gutenberg"),Object(M.__)("quote","ultimate-addons-for-gutenberg"),Object(M.__)("uagb","ultimate-addons-for-gutenberg")],supports:{anchor:!0},category:uagb_blocks_info.category,attributes:Xp,edit:Qp,save:function(e){var t=e.attributes,a=t.block_id,l=t.skinStyle,i=t.align,o=t.quoteStyle,c=t.iconSkin,r=t.authorImage,s=t.enableTweet,u=t.iconView,h=t.author,d=t.descriptionText,g=t.authorImgPosition,m=t.stack;return Object(f.createElement)("div",{className:_()(e.className,"uagb-blockquote__outer-wrap","uagb-block-".concat(a))},Object(f.createElement)("div",{className:_()("uagb-blockquote__wrap","uagb-blockquote__skin-".concat(l),"border"!==l?"uagb-blockquote__align-".concat(i):"","quotation"===l?"uagb-blockquote__style-".concat(o):"",s?"uagb-blockquote__with-tweet uagb-blockquote__tweet-style-".concat(c," uagb-blockquote__tweet-").concat(u):"","uagb-blockquote__stack-img-".concat(m))},Object(f.createElement)("blockquote",{className:"uagb-blockquote"},"quotation"===l&&Object(f.createElement)("div",{className:"uagb-blockquote__icon-wrap"},Object(f.createElement)("span",{className:"uagb-blockquote__icon"},n.quote_inline_icon)),Object(f.createElement)("div",{className:"uagb-blockquote__content-wrap"},""!==d&&Object(f.createElement)(Cp,{attributes:e.attributes,setAttributes:"not_set",props:e}),Object(f.createElement)("footer",null,Object(f.createElement)("div",{className:_()("uagb-blockquote__author-wrap",""!==r?"uagb-blockquote__author-at-".concat(g):"")},Object(f.createElement)(Hp,{attributes:e.attributes}),""!==h&&Object(f.createElement)(Ep,{attributes:e.attributes,setAttributes:"not_set",props:e})),s&&Object(f.createElement)(zp,{attributes:e.attributes}))))))},example:{},deprecated:af,transforms:{from:[{type:"block",blocks:["core/quote"],transform:function(e){return of("uagb/blockquote",{descriptionText:e.value,author:e.citation,align:e.align})}},{type:"block",blocks:["core/heading"],transform:function(e){return of("uagb/blockquote",{descriptionText:e.content,align:e.align})}}],to:[{type:"block",blocks:["core/quote"],transform:function(e){return of("core/quote",{value:"<p>".concat(e.descriptionText,"</p>"),citation:e.author,align:e.align})}},{type:"block",blocks:["core/heading"],transform:function(e){return of("core/heading",{content:e.descriptionText,align:e.align})}}]}});var cf={block_id:{type:"string"},classMigrate:{type:"boolean",default:!1},align:{type:"string",default:"center"},textAlign:{type:"string",default:"center"},link:{type:"string",default:"#"},linkTarget:{type:"boolean",default:!1},titleSpace:{type:"number",default:0},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string",default:"#333"},borderHoverColor:{type:"string"},vPadding:{type:"number",default:8},hPadding:{type:"number",default:20},vPaddingTablet:{type:"number"},hPaddingTablet:{type:"number"},vPaddingMobile:{type:"number"},hPaddingMobile:{type:"number"},paddingType:{type:"string",default:"px"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string",default:"#eeeeee"},backgroundHoverColor:{type:"string"},gradientColor1:{type:"string"},gradientColor2:{type:"string"},gradientType:{type:"string",default:"linear"},gradientLocation1:{type:"number",default:0},gradientLocation2:{type:"number",default:100},gradientAngle:{type:"number",default:0},backgroundOpacity:{type:"number"},backgroundHoverOpacity:{type:"number"},titleColor:{type:"string",default:"#333"},titleHoverColor:{type:"string"},iconColor:{type:"string",default:"#333"},iconHoverColor:{type:"string"},prefixColor:{type:"string",default:"#333"},prefixHoverColor:{type:"string"},heading:{source:"html",selector:"h1,h2,h3,h4,h5,h6,p,span",default:"Subscribe Now"},prefix:{source:"html",selector:"p",default:"Get access to Premium Features for FREE for a year!"},icon:{type:"string",default:"external-link-alt"},iconPosition:{type:"string",default:"before"},iconSpace:{type:"number",default:10},titleLoadGoogleFonts:{type:"boolean",default:!1},titleFontFamily:{type:"string",default:"Default"},titleFontWeight:{type:"string"},titleFontSubset:{type:"string"},titleFontSize:{type:"number",default:20},titleFontSizeType:{type:"string",default:"px"},titleFontSizeTablet:{type:"number",default:20},titleFontSizeMobile:{type:"number",default:20},titleLineHeightType:{type:"string",default:"em"},titleLineHeight:{type:"number"},titleLineHeightTablet:{type:"number"},titleLineHeightMobile:{type:"number"},titleTag:{type:"string",default:"h6"},prefixLoadGoogleFonts:{type:"boolean",default:!1},prefixFontFamily:{type:"string",default:"Default"},prefixFontWeight:{type:"string"},prefixFontSubset:{type:"string"},prefixFontSize:{type:"number",default:14},prefixFontSizeType:{type:"string",default:"px"},prefixFontSizeTablet:{type:"number",default:14},prefixFontSizeMobile:{type:"number",default:14},prefixLineHeightType:{type:"string",default:"em"},prefixLineHeight:{type:"number"},prefixLineHeightTablet:{type:"number"},prefixLineHeightMobile:{type:"number"},iconFontSize:{type:"number",default:20},iconFontSizeType:{type:"string",default:"px"},iconFontSizeTablet:{type:"number",default:20},iconFontSizeMobile:{type:"number",default:20}};var rf=Object.keys(Ho),sf=wp.element,uf=sf.Component,hf=sf.Fragment,df=wp.blockEditor,gf=df.BlockControls,mf=df.BlockAlignmentToolbar,bf=df.InspectorControls,vf=df.RichText,pf=df.PanelColorSettings,ff=df.ColorPalette,wf=df.__experimentalLinkControl,_f=wp.components,yf=_f.PanelBody,zf=_f.SelectControl,xf=_f.RangeControl,Of=_f.TabPanel,Cf=_f.ButtonGroup,jf=_f.Button,Mf=(_f.Dashicon,_f.ToggleControl,_f.TextControl,_f.Popover),Ef=_f.ToolbarButton,Hf=_f.ToolbarGroup,kf=wp.data.withSelect,Sf=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onClickLinkSettings=e.onClickLinkSettings.bind(h()(e)),e.onChangeOpensInNewTab=e.onChangeOpensInNewTab.bind(h()(e)),e.state={isURLPickerOpen:!1},e}return s()(i,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)}),this.props.setAttributes({classMigrate:!0});var e=document.createElement("style");e.setAttribute("id","uagb-style-marketing-btn-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e){var t=document.getElementById("uagb-style-marketing-btn-"+this.props.clientId.substr(0,8));null!=t&&(t.innerHTML=function(e){var t,a,l=e.attributes,n=l.titleSpace,i=l.iconPosition,o=l.iconSpace,c=l.iconFontSize,r=l.iconFontSizeType,s=l.iconFontSizeMobile,u=l.iconFontSizeTablet,h=l.titleColor,d=l.titleHoverColor,g=l.prefixColor,m=l.prefixHoverColor,b=l.iconColor,v=l.iconHoverColor,p=l.borderStyle,f=l.borderWidth,w=l.borderRadius,_=l.borderColor,x=l.borderHoverColor,O=l.vPadding,C=l.hPadding,j=l.hPaddingMobile,M=l.vPaddingMobile,E=l.hPaddingTablet,H=l.vPaddingTablet,k=l.paddingType,S=l.backgroundType,L=l.backgroundColor,B=l.backgroundHoverColor,V=l.gradientColor1,T=l.gradientColor2,N=l.gradientLocation1,A=l.gradientLocation2,F=l.gradientType,P=l.gradientAngle,R=l.backgroundOpacity,I=l.backgroundHoverOpacity,D=l.titleFontFamily,q=l.titleFontWeight,W=l.titleFontSize,G=l.titleFontSizeType,Z=l.titleFontSizeTablet,U=l.titleFontSizeMobile,Y=l.titleLineHeightType,K=l.titleLineHeight,J=l.titleLineHeightTablet,$=l.titleLineHeightMobile,Q=l.prefixFontFamily,X=l.prefixFontWeight,ee=l.prefixFontSize,te=l.prefixFontSizeType,ae=l.prefixFontSizeTablet,le=l.prefixFontSizeMobile,ne=l.prefixLineHeightType,ie=l.prefixLineHeight,oe=l.prefixLineHeightTablet,ce=l.prefixLineHeightMobile,re={},se=""==b?h:b,ue=""==v?d:v;re={" .uagb-marketing-btn__title-wrap":{"margin-bottom":z(n,"px")}," .block-editor-rich-text__editable.uagb-marketing-btn__title":{"font-size":z(W,G),"line-height":z(K,Y),"font-family":D,"font-weight":q,color:h}," .uagb-marketing-btn__icon-wrap svg":{fill:se}," .uagb-marketing-btn__icon-wrap":{width:z(c,r),height:z(c,r)}," .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{"font-size":z(ee,te),"line-height":z(ie,ne),"font-family":Q,"font-weight":X,color:g}," .uagb-marketing-btn__link:hover .block-editor-rich-text__editable.uagb-marketing-btn__title":{color:d}," .uagb-marketing-btn__link:hover .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{color:m}," .uagb-marketing-btn__link:hover .uagb-marketing-btn__icon-wrap svg":{fill:ue}," .uagb-marketing-btn__link":{"padding-left":z(C,k),"padding-right":z(C,k),"padding-top":z(O,k),"padding-bottom":z(O,k),"border-style":p,"border-width":z(f,"px"),"border-color":_,"border-radius":z(w,"px")}," .uagb-marketing-btn__link:hover":{"border-color":x}},"transparent"==S?re[" .uagb-marketing-btn__link"].background="transparent":"color"==S?(re[" .uagb-marketing-btn__link"].background=Ci(L,R),re[" .uagb-marketing-btn__link:hover"].background=Ci(B,I)):"gradient"==S&&(re[" .uagb-marketing-btn__link"]["background-color"]="transparent",re[" .uagb-marketing-btn__link"]["background-image"]="linear"===F?"linear-gradient(".concat(P,"deg, ").concat(Ci(V,R)," ").concat(N,"%, ").concat(Ci(T,R)," ").concat(A,"%)"):"radial-gradient( at center center, ".concat(Ci(V,R)," ").concat(N,"%, ").concat(Ci(T,R)," ").concat(A,"%)"));var he="after"==i?"margin-left":"margin-right";re[" .uagb-marketing-btn__icon-wrap"][he]=z(o,"px"),t={" .block-editor-rich-text__editable.uagb-marketing-btn__title":{"font-size":z(Z,G),"line-height":z(J,Y)}," .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{"font-size":z(ae,te),"line-height":z(oe,ne)}," .uagb-marketing-btn__icon-wrap":{width:z(u,r),height:z(u,r)}," .uagb-marketing-btn__link":{"padding-left":z(E,k),"padding-right":z(E,k),"padding-top":z(H,k),"padding-bottom":z(H,k)}},a={" .block-editor-rich-text__editable.uagb-marketing-btn__title":{"font-size":z(U,G),"line-height":z($,Y)}," .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{"font-size":z(le,te),"line-height":z(ce,ne)}," .uagb-marketing-btn__icon-wrap":{width:z(s,r),height:z(s,r)}," .uagb-marketing-btn__link":{"padding-left":z(j,k),"padding-right":z(j,k),"padding-top":z(M,k),"padding-bottom":z(M,k)}};var de=".uagb-block-".concat(e.clientId.substr(0,8)),ge=y(re,de);return(ge+=y(t,"".concat(de,".uagb-editor-preview-mode-tablet")))+y(a,"".concat(de,".uagb-editor-preview-mode-mobile"))}(this.props))}},{key:"onClickLinkSettings",value:function(){this.setState({isURLPickerOpen:!0})}},{key:"onChangeOpensInNewTab",value:function(e){this.props.setAttributes({linkTarget:e})}},{key:"render",value:function(){var e,t,a=this,l=this.props,i=l.attributes,o=l.setAttributes,c=(l.isSelected,l.className),r=l.deviceType,s=i.align,u=i.textAlign,h=i.heading,d=i.prefix,g=i.link,m=i.linkTarget,b=i.titleSpace,v=i.icon,p=i.iconPosition,w=i.iconSpace,y=i.iconFontSize,z=(i.iconFontSizeType,i.iconFontSizeMobile),x=i.iconFontSizeTablet,O=i.titleColor,C=i.titleHoverColor,j=i.prefixColor,E=i.prefixHoverColor,H=i.iconColor,k=i.iconHoverColor,S=i.borderStyle,L=i.borderWidth,B=i.borderRadius,V=i.borderColor,T=i.borderHoverColor,N=i.vPadding,A=i.hPadding,F=i.hPaddingMobile,P=i.vPaddingMobile,R=i.hPaddingTablet,I=i.vPaddingTablet,D=i.paddingType,q=i.backgroundType,W=i.backgroundColor,G=i.backgroundHoverColor,Z=i.gradientColor1,U=i.gradientColor2,Y=i.gradientLocation1,K=i.gradientLocation2,J=i.gradientType,$=i.gradientAngle,Q=i.backgroundOpacity,X=i.backgroundHoverOpacity,ee=i.titleFontFamily,te=i.titleFontWeight,ae=i.titleFontSubset,le=i.titleFontSize,ne=i.titleFontSizeType,ie=i.titleFontSizeTablet,oe=i.titleFontSizeMobile,ce=i.titleLineHeightType,re=i.titleLineHeight,se=i.titleLineHeightTablet,ue=i.titleLineHeightMobile,he=i.titleTag,de=(i.prefixLoadGoogleFonts,i.prefixFontFamily),ge=i.prefixFontWeight,me=i.prefixFontSubset,be=i.prefixFontSize,ve=i.prefixFontSizeType,pe=i.prefixFontSizeTablet,fe=i.prefixFontSizeMobile,we=i.prefixLineHeightType,_e=i.prefixLineHeight,ye=i.prefixLineHeightTablet,ze=i.prefixLineHeightMobile;if(1==e){var xe={google:{families:[ee+(te?":"+te:"")]}};e=Object(f.createElement)(ha,{config:xe})}if(1==t){var Oe={google:{families:[de+(ge?":"+ge:"")]}};t=Object(f.createElement)(ha,{config:Oe})}var Ce=this.state.isURLPickerOpen&&Object(f.createElement)(Mf,{position:"bottom center",onClose:function(){return a.setState({isURLPickerOpen:!1})}},Object(f.createElement)(wf,{value:{url:g,opensInNewTab:m},onChange:function(e){var t=e.url,l=void 0===t?"":t,n=e.opensInNewTab;o({link:l}),o({linkTarget:n}),a.onChangeOpensInNewTab(n)}}));return Object(f.createElement)(hf,null,Object(f.createElement)(gf,null,Object(f.createElement)(mf,{value:s,onChange:function(e){o({align:e})},controls:["left","center","right","full"]})),Object(f.createElement)(gf,null,Object(f.createElement)(Hf,null,Object(f.createElement)(Ef,{icon:"admin-links",name:"link",title:Object(M.__)("Link","ultimate-addons-for-gutenberg"),onClick:this.onClickLinkSettings}))),Ce,Object(f.createElement)(bf,null,Object(f.createElement)(yf,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},Object(f.createElement)(zf,{label:Object(M.__)("Text Alignment","ultimate-addons-for-gutenberg"),value:u,onChange:function(e){return o({textAlign:e})},options:[{value:"center",label:Object(M.__)("Center","ultimate-addons-for-gutenberg")},{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Button Icon")),Object(f.createElement)(So.a,{icons:rf,renderFunc:Lo,value:v,onChange:function(e){return o({icon:e})},isMulti:!1,noSelectedPlaceholder:Object(M.__)("Select Icon","ultimate-addons-for-gutenberg")}),""!=v&&Object(f.createElement)(hf,null,Object(f.createElement)(zf,{label:Object(M.__)("Icon Position","ultimate-addons-for-gutenberg"),value:p,onChange:function(e){return o({iconPosition:e})},options:[{value:"before",label:Object(M.__)("Before Text","ultimate-addons-for-gutenberg")},{value:"after",label:Object(M.__)("After Text","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(xf,{label:Object(M.__)("Icon Spacing","ultimate-addons-for-gutenberg"),value:w,onChange:function(e){return o({iconSpace:e})},min:0,max:50,beforeIcon:"",allowReset:!0}),Object(f.createElement)(Ga,null),"Desktop"===r&&Object(f.createElement)(hf,null,Object(f.createElement)(xf,{label:Object(M.__)("Icon Size","ultimate-addons-for-gutenberg"),value:y,onChange:function(e){return o({iconFontSize:e})},min:0,max:500,allowReset:!0})),"Tablet"===r&&Object(f.createElement)(hf,null,Object(f.createElement)(xf,{label:Object(M.__)("Icon Size","ultimate-addons-for-gutenberg"),value:x,onChange:function(e){return o({iconFontSizeTablet:e})},min:0,max:500,allowReset:!0})),"Mobile"===r&&Object(f.createElement)(hf,null,Object(f.createElement)(xf,{label:Object(M.__)("Icon Size","ultimate-addons-for-gutenberg"),value:z,onChange:function(e){return o({iconFontSizeMobile:e})},min:0,max:500,allowReset:!0}))),Object(f.createElement)(xf,{label:Object(M.__)("Title Bottom Spacing","ultimate-addons-for-gutenberg"),value:b,onChange:function(e){return o({titleSpace:e})},min:0,max:20,beforeIcon:"",allowReset:!0})),Object(f.createElement)(yf,{title:Object(M.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(zf,{label:Object(M.__)("Title Tag","ultimate-addons-for-gutenberg"),value:he,onChange:function(e){return o({titleTag:e})},options:[{value:"h1",label:Object(M.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(M.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(M.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(M.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(M.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(M.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(M.__)("span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(M.__)("p","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Title","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:e,label:"loadTitleGoogleFonts"},fontFamily:{value:ee,label:"titleFontFamily"},fontWeight:{value:te,label:"titleFontWeight"},fontSubset:{value:ae,label:"titleFontSubset"},fontSizeType:{value:ne,label:"titleFontSizeType"},fontSize:{value:le,label:"titleFontSize"},fontSizeMobile:{value:oe,label:"titleFontSizeMobile"},fontSizeTablet:{value:ie,label:"titleFontSizeTablet"},lineHeightType:{value:ce,label:"titleLineHeightType"},lineHeight:{value:re,label:"titleLineHeight"},lineHeightMobile:{value:ue,label:"titleLineHeightMobile"},lineHeightTablet:{value:se,label:"titleLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Description","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:t,label:"loadPrefixGoogleFonts"},fontFamily:{value:de,label:"prefixFontFamily"},fontWeight:{value:ge,label:"prefixFontWeight"},fontSubset:{value:me,label:"prefixFontSubset"},fontSizeType:{value:ve,label:"prefixFontSizeType"},fontSize:{value:be,label:"prefixFontSize"},fontSizeMobile:{value:fe,label:"prefixFontSizeMobile"},fontSizeTablet:{value:pe,label:"prefixFontSizeTablet"},lineHeightType:{value:we,label:"prefixLineHeightType"},lineHeight:{value:_e,label:"prefixLineHeight"},lineHeightMobile:{value:ze,label:"prefixLineHeightMobile"},lineHeightTablet:{value:ye,label:"prefixLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Colors")),Object(f.createElement)(Of,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:Object(M.__)("Normal","ultimate-addons-for-gutenberg"),className:"uagb-normal-tab"},{name:"hover",title:Object(M.__)("Hover","ultimate-addons-for-gutenberg"),className:"uagb-focus-tab"}]},(function(e){var t;return t="normal"===e.name?Object(f.createElement)(hf,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Title Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:O}}))),Object(f.createElement)(ff,{value:O,onChange:function(e){return o({titleColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Icon Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:H}}))),Object(f.createElement)(ff,{value:H,onChange:function(e){return o({iconColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Description Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:j}}))),Object(f.createElement)(ff,{value:j,onChange:function(e){return o({prefixColor:e})},allowReset:!0})):Object(f.createElement)(hf,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Title Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:C}}))),Object(f.createElement)(ff,{value:C,onChange:function(e){return o({titleHoverColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Icon Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:k}}))),Object(f.createElement)(ff,{value:k,onChange:function(e){return o({iconHoverColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Description Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:E}}))),Object(f.createElement)(ff,{value:E,onChange:function(e){return o({prefixHoverColor:e})},allowReset:!0})),Object(f.createElement)("div",null,t)}))),Object(f.createElement)(yf,{title:Object(M.__)("Background"),initialOpen:!1},Object(f.createElement)(Ga,null),"Desktop"===r&&Object(f.createElement)(hf,null,Object(f.createElement)(Cf,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===D,"aria-pressed":"px"===D,onClick:function(){return o({paddingType:"px"})}},"px"),Object(f.createElement)(jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===D,"aria-pressed":"%"===D,onClick:function(){return o({paddingType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Button Padding")),Object(f.createElement)(xf,{label:n.vertical_spacing,className:"uagb-margin-control",value:N,onChange:function(e){return o({vPadding:e})},min:0,max:"%"==D?100:2e3}),Object(f.createElement)(xf,{label:n.horizontal_spacing,className:"uagb-margin-control",value:A,onChange:function(e){return o({hPadding:e})},min:0,max:"%"==D?100:2e3})),"Tablet"===r&&Object(f.createElement)(hf,null,Object(f.createElement)(Cf,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===D,"aria-pressed":"px"===D,onClick:function(){return o({paddingType:"px"})}},"px"),Object(f.createElement)(jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===D,"aria-pressed":"%"===D,onClick:function(){return o({paddingType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Button Padding")),Object(f.createElement)(xf,{label:n.vertical_spacing,className:"uagb-margin-control",value:I,onChange:function(e){return o({vPaddingTablet:e})},min:0,max:"%"==D?100:2e3}),Object(f.createElement)(xf,{label:n.horizontal_spacing,className:"uagb-margin-control",value:R,onChange:function(e){return o({hPaddingTablet:e})},min:0,max:"%"==D?100:2e3})),"Mobile"===r&&Object(f.createElement)(hf,null,Object(f.createElement)(Cf,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===D,"aria-pressed":"px"===D,onClick:function(){return o({paddingType:"px"})}},"px"),Object(f.createElement)(jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===D,"aria-pressed":"%"===D,onClick:function(){return o({paddingType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Button Padding")),Object(f.createElement)(xf,{label:n.vertical_spacing,className:"uagb-margin-control",value:P,onChange:function(e){return o({vPaddingMobile:e})},min:0,max:"%"==D?100:2e3}),Object(f.createElement)(xf,{label:n.horizontal_spacing,className:"uagb-margin-control",value:F,onChange:function(e){return o({hPaddingMobile:e})},min:0,max:"%"==D?100:2e3})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Button Background","ultimate-addons-for-gutenberg")),Object(f.createElement)(zf,{label:Object(M.__)("Background Type","ultimate-addons-for-gutenberg"),value:q,onChange:function(e){return o({backgroundType:e})},options:[{value:"transparent",label:Object(M.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(M.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(M.__)("Gradient","ultimate-addons-for-gutenberg")}]}),"color"==q&&Object(f.createElement)(hf,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:W}}))),Object(f.createElement)(ff,{value:W,onChange:function(e){return o({backgroundColor:e})},allowReset:!0})),"gradient"==q&&Object(f.createElement)(hf,null,Object(f.createElement)(pf,{title:Object(M.__)("Color Settings","ultimate-addons-for-gutenberg"),colorSettings:[{value:U,onChange:function(e){return o({gradientColor2:e})},label:Object(M.__)("Color 1","ultimate-addons-for-gutenberg")},{value:Z,onChange:function(e){return o({gradientColor1:e})},label:Object(M.__)("Color 2","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(zf,{label:Object(M.__)("Type","ultimate-addons-for-gutenberg"),value:J,onChange:function(e){return o({gradientType:e})},options:[{value:"linear",label:Object(M.__)("Linear","ultimate-addons-for-gutenberg")},{value:"radial",label:Object(M.__)("Radial","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(xf,{label:Object(M.__)("Location 1","ultimate-addons-for-gutenberg"),value:Y,onChange:function(e){return o({gradientLocation1:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(xf,{label:Object(M.__)("Location 2","ultimate-addons-for-gutenberg"),value:K,onChange:function(e){return o({gradientLocation2:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(xf,{label:Object(M.__)("Angle","ultimate-addons-for-gutenberg"),value:$,onChange:function(e){return o({gradientAngle:e})},min:0,max:360,allowReset:!0})),"transparent"!=q&&Object(f.createElement)(xf,{label:Object(M.__)("Opacity","ultimate-addons-for-gutenberg"),value:Q,onChange:function(e){return o({backgroundOpacity:e})},min:0,max:100,allowReset:!0,initialPosition:0}),"color"==q&&Object(f.createElement)(hf,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:G}}))),Object(f.createElement)(ff,{value:G,onChange:function(e){return o({backgroundHoverColor:e})},allowReset:!0}),Object(f.createElement)(xf,{label:Object(M.__)("Opacity","ultimate-addons-for-gutenberg"),value:X,onChange:function(e){return o({backgroundHoverOpacity:e})},min:0,max:100,allowReset:!0,initialPosition:0}))),Object(f.createElement)(yf,{title:Object(M.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(zf,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:S,onChange:function(e){return o({borderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=S&&Object(f.createElement)(xf,{label:Object(M.__)("Border Width","ultimate-addons-for-gutenberg"),value:L,onChange:function(e){return o({borderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(xf,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:B,onChange:function(e){return o({borderRadius:e})},min:0,max:1e3,allowReset:!0}),"none"!=S&&Object(f.createElement)(hf,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:V}}))),Object(f.createElement)(ff,{value:V,onChange:function(e){return o({borderColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:T}}))),Object(f.createElement)(ff,{value:T,onChange:function(e){return o({borderHoverColor:e})},allowReset:!0})))),Object(f.createElement)("div",{className:_()(c,"uagb-marketing-btn__outer-wrap","uagb-marketing-btn__align-".concat(s),"uagb-marketing-btn__align-text-".concat(u),"uagb-marketing-btn__icon-".concat(p),"uagb-editor-preview-mode-".concat(r.toLowerCase()),"uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:"uagb-marketing-btn__wrap"},Object(f.createElement)("a",{className:"uagb-marketing-btn__link"},Object(f.createElement)("div",{className:"uagb-marketing-btn__title-wrap"},""!=v&&Object(f.createElement)("div",{className:"uagb-marketing-btn__icon-wrap"},Lo(v)),Object(f.createElement)(vf,{placeholder:Object(M.__)("Add Button Title…","ultimate-addons-for-gutenberg"),value:h,tagName:he,onChange:function(e){return o({heading:e})},allowedFormats:["bold","italic","strikethrough"],className:"uagb-marketing-btn__title",onRemove:function(){return a.props.onReplace([])},multiline:!1,onMerge:this.props.mergeBlocks,onSplit:this.props.insertBlocksAfter?function(e,t){o({content:e});for(var l=arguments.length,n=new Array(l>2?l-2:0),i=2;i<l;i++)n[i-2]=arguments[i];a.props.insertBlocksAfter([].concat(n,[createBlock("core/paragraph",{content:t})]))}:void 0})),Object(f.createElement)("div",{className:"uagb-marketing-btn__prefix-wrap"},Object(f.createElement)(vf,{placeholder:Object(M.__)("Add Button Description…","ultimate-addons-for-gutenberg"),value:d,tagName:"p",onChange:function(e){return o({prefix:e})},allowedFormats:["bold","italic","strikethrough"],className:"uagb-marketing-btn__prefix",onRemove:function(){return a.props.onReplace([])},multiline:!1,onMerge:this.props.mergeBlocks,onSplit:this.props.insertBlocksAfter?function(e,t){o({content:e});for(var l=arguments.length,n=new Array(l>2?l-2:0),i=2;i<l;i++)n[i-2]=arguments[i];a.props.insertBlocksAfter([].concat(n,[createBlock("core/paragraph",{content:t})]))}:void 0}))))),e,t)}}]),i}(uf),Lf=kf((function(e,t){var a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=void 0===a?null:a;return{deviceType:l?l():null}}))(Sf),Bf=wp.blockEditor.RichText,Vf=wp.blockEditor.RichText,Tf=[{attributes:cf,save:function(e){e.attributes;var t=e.className,a=e.attributes,l=a.block_id,n=a.align,i=a.textAlign,o=a.iconPosition,c=a.icon,r=a.heading,s=a.prefix,u=a.link,h=a.linkTarget?"_blank":"";return Object(f.createElement)("div",{className:_()(t,"uagb-marketing-btn__outer-wrap","uagb-marketing-btn__align-".concat(n),"uagb-marketing-btn__align-text-".concat(i),"uagb-marketing-btn__icon-".concat(o)),id:"uagb-marketing-btn-".concat(l)},Object(f.createElement)("div",{className:"uagb-marketing-btn__wrap"},Object(f.createElement)("a",{href:u,className:"uagb-marketing-btn__link",target:h,rel:"noopener noreferrer"},Object(f.createElement)("div",{className:"uagb-marketing-btn__title-wrap"},""!=c&&Object(f.createElement)("div",{className:"uagb-marketing-btn__icon-wrap"},Lo(c)),Object(f.createElement)(Vf.Content,{value:r,tagName:"h6",className:"uagb-marketing-btn__title"})),Object(f.createElement)("div",{className:"uagb-marketing-btn__prefix-wrap"},Object(f.createElement)(Vf.Content,{value:s,tagName:"p",className:"uagb-marketing-btn__prefix"})))))}}];a(392),a(393),(0,wp.blocks.registerBlockType)("uagb/marketing-button",{title:uagb_blocks_info.blocks["uagb/marketing-button"].title,description:uagb_blocks_info.blocks["uagb/marketing-button"].description,icon:n.marketing_button,category:uagb_blocks_info.category,keywords:[Object(M.__)("marketing button","ultimate-addons-for-gutenberg"),Object(M.__)("cta","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:cf,edit:Lf,save:function(e){e.attributes;var t=e.className,a=e.attributes,l=a.block_id,n=a.align,i=a.textAlign,o=a.iconPosition,c=a.icon,r=a.heading,s=a.prefix,u=a.link,h=a.linkTarget,d=a.titleTag,g=h?"_blank":"";return Object(f.createElement)("div",{className:_()(t,"uagb-marketing-btn__outer-wrap","uagb-marketing-btn__align-".concat(n),"uagb-marketing-btn__align-text-".concat(i),"uagb-marketing-btn__icon-".concat(o),"uagb-block-".concat(l))},Object(f.createElement)("div",{className:"uagb-marketing-btn__wrap"},Object(f.createElement)("a",{href:u,className:"uagb-marketing-btn__link",target:g,rel:"noopener noreferrer"},Object(f.createElement)("div",{className:"uagb-marketing-btn__title-wrap"},""!=c&&Object(f.createElement)("div",{className:"uagb-marketing-btn__icon-wrap"},Lo(c)),Object(f.createElement)(Bf.Content,{value:r,tagName:d,className:"uagb-marketing-btn__title"})),Object(f.createElement)("div",{className:"uagb-marketing-btn__prefix-wrap"},Object(f.createElement)(Bf.Content,{value:s,tagName:"p",className:"uagb-marketing-btn__prefix"})))))},example:{},deprecated:Tf});var Nf={block_id:{type:"string",default:"not_set"},classMigrate:{type:"boolean",default:!1},disableBullets:{type:"boolean",default:!1},makeCollapsible:{type:"boolean",default:!1},initialCollapse:{type:"boolean",default:!1},icon:{type:"string",default:"fa-angle-down"},iconSize:{type:"number"},iconColor:{type:"string"},bulletColor:{type:"string"},smoothScroll:{type:"boolean",default:!0},smoothScrollDelay:{type:"number",default:800},smoothScrollOffset:{type:"number",default:30},scrollToTop:{type:"boolean",default:!1},scrollToTopColor:{type:"string"},scrollToTopBgColor:{type:"string"},mappingHeaders:{type:"array",default:Array(6).fill(!0)},align:{type:"string",default:"left"},headerLinks:{type:"html",default:""},heading:{source:"html",selector:".uagb-toc__title",default:Object(M.__)("Table Of Contents","ultimate-addons-for-gutenberg")},headingTitle:{type:"string",default:Object(M.__)("Table Of Contents","ultimate-addons-for-gutenberg")},customWidth:{type:"boolean",default:!1},widthTypeDesktop:{type:"string",default:"%"},widthTypeTablet:{type:"string",default:"%"},widthTypeMobile:{type:"string",default:"%"},widthDesktop:{type:"number",default:100},widthTablet:{type:"number"},widthMobile:{type:"number"},tColumnsDesktop:{type:"number",default:1},tColumnsTablet:{type:"number",default:1},tColumnsMobile:{type:"number",default:1},backgroundColor:{type:"string",default:"#eee"},linkColor:{type:"string",default:"#333"},linkHoverColor:{type:"string"},headingColor:{type:"string"},vPaddingDesktop:{type:"number",default:30},hPaddingDesktop:{type:"number",default:30},vPaddingTablet:{type:"number"},hPaddingTablet:{type:"number"},vPaddingMobile:{type:"number"},hPaddingMobile:{type:"number"},vMarginDesktop:{type:"number"},hMarginDesktop:{type:"number"},vMarginTablet:{type:"number"},hMarginTablet:{type:"number"},vMarginMobile:{type:"number"},hMarginMobile:{type:"number"},marginTypeDesktop:{type:"string",default:"px"},marginTypeTablet:{type:"string",default:"px"},marginTypeMobile:{type:"string",default:"px"},headingBottom:{type:"number"},paddingTypeDesktop:{type:"string",default:"px"},paddingTypeTablet:{type:"string",default:"px"},paddingTypeMobile:{type:"string",default:"px"},contentPaddingDesktop:{type:"number"},contentPaddingTablet:{type:"number"},contentPaddingMobile:{type:"number"},contentPaddingTypeDesktop:{type:"string",default:"px"},contentPaddingTypeTablet:{type:"string",default:"px"},contentPaddingTypeMobile:{type:"string",default:"px"},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string",default:"#333"},loadGoogleFonts:{type:"boolean",default:!1},fontFamily:{type:"string",default:"Default"},fontWeight:{type:"string"},fontSubset:{type:"string"},fontSize:{type:"number"},fontSizeType:{type:"string",default:"px"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},lineHeightType:{type:"string",default:"em"},lineHeight:{type:"number"},lineHeightTablet:{type:"number"},lineHeightMobile:{type:"number"},headingLoadGoogleFonts:{type:"boolean",default:!1},headingFontFamily:{type:"string",default:"Default"},headingFontWeight:{type:"string",default:"500"},headingFontSubset:{type:"string"},headingFontSize:{type:"number",default:20},headingFontSizeType:{type:"string",default:"px"},headingFontSizeTablet:{type:"number"},headingFontSizeMobile:{type:"number"},headingLineHeightType:{type:"string",default:"em"},headingLineHeight:{type:"number"},headingLineHeightTablet:{type:"number"},headingLineHeightMobile:{type:"number"},headingAlignment:{type:"string",default:"left"},emptyHeadingTeaxt:{type:"string",default:Object(M.__)("Add a header to begin generating the table of contents","ultimate-addons-for-gutenberg")}};var Af=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e,t=this.props,a=t.mappingHeaders,l=t.headers;return"undefined"!=a&&l&&l.length>0&&l.filter((function(e){return a[e.tag-1]})).length>0?Object(f.createElement)("div",{className:"uagb-toc__list-wrap"},function(e){var t="",a="",l="",n="",i="</li></ul>",o=0,c={1:0,2:0,3:0,4:0,5:0,6:0};return e.forEach((function(e,r){var s=e.tag,u=e.content;if(0===r&&(l=s),!(s<l)){if((""===a||s<a)&&(a=s),""!==t)if(s>t)n+='<ul class="uagb-toc__list">',o++,c[s]=o;else if(s===t&&s!==a)n+='<li class="uagb-toc__list">',c[s]=o;else if(s<t){var h=Math.abs(o-c[s]);s>a?(n+=i.repeat(h),o=Math.abs(o-h)):s===a&&(n+=i.repeat(h),n+="</li>")}n+='<li class="uagb-toc__list"><a href="#">'+u+"</a>",t=s}})),n+=i.repeat(t),Object(f.createElement)("ol",{className:"uagb-toc__list",dangerouslySetInnerHTML:{__html:n}})}((e=[],l.forEach((function(t,l){a[t.tag-1]&&e.push(t)})),e))):Object(f.createElement)("p",{className:"uagb_table-of-contents-placeholder"},Object(M.__)("Add a header to begin generating the table of contents"))}}]),n}(React.Component);a(143);var Ff=wp.data.withSelect,Pf=wp.compose.compose,Rf=wp.element,If=Rf.Component,Df=Rf.Fragment,qf=wp.blockEditor,Wf=qf.BlockControls,Gf=qf.BlockAlignmentToolbar,Zf=qf.InspectorControls,Uf=qf.RichText,Yf=qf.ColorPalette,Kf=wp.components,Jf=Kf.Button,$f=Kf.ButtonGroup,Qf=Kf.PanelBody,Xf=Kf.PanelRow,ew=Kf.SelectControl,tw=Kf.RangeControl,aw=Kf.ToggleControl,lw=(Kf.Dashicon,Kf.TabPanel,Object.keys(Ho)),nw=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).getIcon=e.getIcon.bind(h()(e)),e}return s()(i,[{key:"getIcon",value:function(e){this.props.setAttributes({icon:e})}},{key:"componentDidUpdate",value:function(e,t){var a=document.getElementById("uagb-style-toc-"+this.props.clientId.substr(0,8));null!=a&&(a.innerHTML=function(e){var t,a,l=e.attributes,n=l.customWidth,i=l.widthDesktop,o=l.widthTablet,c=l.widthMobile,r=l.widthTypeTablet,s=l.widthTypeMobile,u=l.widthTypeDesktop,h=l.tColumnsDesktop,d=l.tColumnsTablet,g=l.tColumnsMobile,m=l.iconColor,b=l.bulletColor,v=l.iconSize,p=l.backgroundColor,f=l.linkColor,w=l.linkHoverColor,_=l.scrollToTopColor,x=l.scrollToTopBgColor,O=l.headingColor,C=l.vMarginDesktop,j=l.hMarginDesktop,M=l.marginTypeDesktop,E=l.hMarginMobile,H=l.vMarginMobile,k=l.marginTypeMobile,S=l.vMarginTablet,L=l.hMarginTablet,B=l.marginTypeTablet,V=l.vPaddingDesktop,T=l.vPaddingTablet,N=l.vPaddingMobile,A=l.hPaddingDesktop,F=l.hPaddingTablet,P=l.hPaddingMobile,R=l.headingBottom,I=l.paddingTypeDesktop,D=l.paddingTypeTablet,q=l.paddingTypeMobile,W=l.contentPaddingDesktop,G=l.contentPaddingTablet,Z=l.contentPaddingMobile,U=l.contentPaddingTypeDesktop,Y=l.contentPaddingTypeTablet,K=l.contentPaddingTypeMobile,J=l.borderStyle,$=l.borderWidth,Q=l.borderRadius,X=l.borderColor,ee=l.fontFamily,te=l.fontWeight,ae=l.fontSize,le=l.fontSizeType,ne=l.fontSizeTablet,ie=l.fontSizeMobile,oe=l.lineHeightType,ce=l.lineHeight,re=l.lineHeightTablet,se=l.lineHeightMobile,ue=l.headingFontFamily,he=l.headingFontWeight,de=l.headingFontSize,ge=l.headingFontSizeType,me=l.headingFontSizeTablet,be=l.headingFontSizeMobile,ve=l.headingLineHeightType,pe=l.headingLineHeight,fe=l.headingLineHeightTablet,we=l.headingLineHeightMobile,_e=l.disableBullets,ye=l.headingAlignment,ze={},xe="left"==ye?"flex-start":"right"==ye?"flex-end":"center";(ze={" .uagb-toc__list-wrap ol li a":{"font-size":z(ae,le),"line-height":z(ce,oe),"font-family":ee,"font-weight":te,color:f}," .uagb-toc__title-wrap":{"justify-content":xe,"margin-bottom":z(R,"px")}," .uagb-toc__title":{"font-size":z(de,ge),"line-height":z(pe,ve),"font-family":ue,"font-weight":he,color:O}," .uagb-toc__list-wrap ol li a:hover":{color:w}," .uagb-toc__wrap":{"border-style":J,"border-width":z($,"px"),"border-color":X,"border-radius":z(Q,"px"),"padding-left":z(A,I),"padding-right":z(A,I),"padding-top":z(V,I),"padding-bottom":z(V,I),background:p}," .uagb-toc__list-wrap ol.uagb-toc__list:first-child":{"margin-left":z(j,M),"margin-right":z(j,M),"margin-top":z(C,M),"margin-bottom":z(C,M)}," .uagb-toc__list-wrap > ol.uagb-toc__list > li:first-child":{"padding-top":0}," .uagb-toc__list-wrap > ol.uagb-toc__list li":{color:b}," .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child":{"padding-bottom":0}," .uagb-toc__list-wrap ol.uagb-toc__list > li":{"padding-top":"calc( "+z(W,U)+" / 2 )","padding-bottom":"calc( "+z(W,U)+" / 2 )"}," .uagb-toc__list-wrap ul.uagb-toc__list > li":{"padding-top":"calc( "+z(W,U)+" / 2 )","padding-bottom":"calc( "+z(W,U)+" / 2 )"}," .uag-toc__collapsible-wrap svg":{width:z(v,"px"),height:z(v,"px"),fill:m}})[" .uagb-toc__list-wrap"]={"column-count":h,overflow:"hidden"},n&&(ze[" .uagb-toc__wrap"].width=z(i,u)),_e&&(ze[".wp-block-uagb-table-of-contents ol.uagb-toc__list>li"]={"list-style-type":"none"},ze[" .uagb-toc__list"]={"list-style-type":"none"},ze[" .uagb-toc__list .uagb-toc__list"]={"list-style-type":"none"}),t={" .uagb-toc__list-wrap ol li a":{"font-size":z(ne,le),"line-height":z(re,oe)}," .uagb-toc__title":{"font-size":z(me,ge),"line-height":z(fe,ve)}," .uagb-toc__wrap":{width:z(o,r),"padding-left":z(F,D),"padding-right":z(F,D),"padding-top":z(T,D),"padding-bottom":z(T,D)}," .uagb-toc__list-wrap ul.uagb-toc__list:first-child":{"margin-left":z(L,B),"margin-right":z(L,B),"margin-top":z(S,B),"margin-bottom":z(S,B)}," .uagb-toc__list-wrap":{"column-count":d,overflow:"hidden"}," .uagb-toc__list-wrap > ol.uagb-toc__list > li:first-child":{"padding-top":z(G,Y)}," .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child":{"padding-bottom":z(G,Y)}," .uagb-toc__list-wrap ol.uagb-toc__list > li":{"padding-top":"calc( "+z(G,Y)+" / 2 )","padding-bottom":"calc( "+z(G,Y)+" / 2 )"}," .uagb-toc__list-wrap ul.uagb-toc__list > li":{"padding-top":"calc( "+z(G,Y)+" / 2 )","padding-bottom":"calc( "+z(G,Y)+" / 2 )"}},a={" .uagb-toc__list-wrap ol li a":{"font-size":z(ie,le),"line-height":z(se,oe)}," .uagb-toc__title":{"font-size":z(be,ge),"line-height":z(we,ve)}," .uagb-toc__wrap":{width:z(c,s),"padding-left":z(P,q),"padding-right":z(P,q),"padding-top":z(N,q),"padding-bottom":z(N,q)}," .uagb-toc__list-wrap ul.uagb-toc__list:first-child":{"margin-left":z(E,k),"margin-right":z(E,k),"margin-top":z(H,k),"margin-bottom":z(H,k)}," .uagb-toc__list-wrap":{"column-count":g,overflow:"hidden"}," .uagb-toc__list-wrap > ol.uagb-toc__list > li:first-child":{"padding-top":z(Z,K)}," .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child":{"padding-bottom":z(Z,K)}," .uagb-toc__list-wrap ol.uagb-toc__list > li":{"padding-top":"calc( "+z(Z,K)+" / 2 )","padding-bottom":"calc( "+z(Z,K)+" / 2 )"}," .uagb-toc__list-wrap ul.uagb-toc__list > li":{"padding-top":"calc( "+z(Z,K)+" / 2 )","padding-bottom":"calc( "+z(Z,K)+" / 2 )"}};var Oe=".uagb-block-".concat(e.clientId.substr(0,8)),Ce=y(ze,Oe);return Ce+=y(t,"".concat(Oe,".uagb-editor-preview-mode-tablet")),Ce+=y(a,"".concat(Oe,".uagb-editor-preview-mode-mobile")),""!=_&&(Ce+=".uagb-toc__scroll-top { color: "+_+"; }"),""!=x&&(Ce+=".uagb-toc__scroll-top.uagb-toc__show-scroll { background: "+x+"; }"),Ce}(this.props))}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)}),this.props.setAttributes({classMigrate:!0});var e=document.createElement("div");e.setAttribute("class","uagb-toc__scroll-top dashicons dashicons-arrow-up-alt2"),document.body.insertBefore(e,document.body.lastChild);var t=document.createElement("style");t.setAttribute("id","uagb-style-toc-"+this.props.clientId.substr(0,8)),document.head.appendChild(t),this.props.attributes.heading&&""!==this.props.attributes.heading&&this.props.setAttributes({headingTitle:this.props.attributes.heading})}},{key:"render",value:function(){var e,t,a=this.props,l=a.attributes,i=a.setAttributes,o=a.className,c=a.headers,r=a.deviceType,s=l.align,u=(l.heading,l.disableBullets),h=l.makeCollapsible,d=l.initialCollapse,g=l.icon,m=l.iconColor,b=l.bulletColor,v=l.iconSize,p=l.smoothScroll,w=l.smoothScrollOffset,y=l.smoothScrollDelay,z=l.scrollToTop,x=l.scrollToTopColor,O=l.scrollToTopBgColor,C=l.customWidth,j=l.widthDesktop,E=l.widthTablet,H=l.widthMobile,k=l.widthTypeMobile,S=l.widthTypeTablet,L=l.widthTypeDesktop,B=l.tColumnsDesktop,V=l.tColumnsTablet,T=l.tColumnsMobile,N=l.backgroundColor,A=l.linkColor,F=l.linkHoverColor,P=l.headingColor,R=l.vPaddingDesktop,I=l.vPaddingTablet,D=l.vPaddingMobile,q=l.hPaddingDesktop,W=l.hPaddingTablet,G=l.hPaddingMobile,Z=l.paddingTypeMobile,U=l.paddingTypeTablet,Y=l.paddingTypeDesktop,K=l.vMarginDesktop,J=l.vMarginTablet,$=l.vMarginMobile,Q=l.hMarginDesktop,X=l.hMarginTablet,ee=l.hMarginMobile,te=l.marginTypeMobile,ae=l.marginTypeTablet,le=l.marginTypeDesktop,ne=l.headingBottom,ie=l.contentPaddingDesktop,oe=l.contentPaddingTablet,ce=l.contentPaddingMobile,re=l.contentPaddingTypeMobile,se=l.contentPaddingTypeTablet,ue=l.contentPaddingTypeDesktop,he=l.borderStyle,de=l.borderWidth,ge=l.borderRadius,me=l.borderColor,be=l.loadGoogleFonts,ve=l.fontFamily,pe=l.fontWeight,fe=l.fontSubset,we=l.fontSize,_e=l.fontSizeType,ye=l.fontSizeTablet,ze=l.fontSizeMobile,xe=l.lineHeightType,Oe=l.lineHeight,Ce=l.lineHeightTablet,je=l.lineHeightMobile,Me=l.headingLoadGoogleFonts,Ee=l.headingFontFamily,He=l.headingFontWeight,ke=l.headingFontSubset,Se=l.headingFontSize,Le=l.headingFontSizeType,Be=l.headingFontSizeTablet,Ve=l.headingFontSizeMobile,Te=l.headingLineHeightType,Ne=l.headingLineHeight,Ae=l.headingLineHeightTablet,Fe=l.headingLineHeightMobile,Pe=l.mappingHeaders,Re=l.headingAlignment,Ie=l.headingTitle;if(1==be){var De={google:{families:[ve+(pe?":"+pe:"")]}};e=Object(f.createElement)(ha,{config:De})}if(1==Me){var qe={google:{families:[Ee+(He?":"+He:"")]}};t=Object(f.createElement)(ha,{config:qe})}var We=jQuery(".uagb-toc__scroll-top");null!=We&&"undefined"!==We&&(z?We.addClass("uagb-toc__show-scroll"):We.removeClass("uagb-toc__show-scroll"));var Ge={icons:lw,value:g,onChange:this.getIcon,isMulti:!1,renderFunc:Lo,noSelectedPlaceholder:Object(M.__)("Select Icon","ultimate-addons-for-gutenberg")},Ze="";return h&&g&&(Ze=Object(f.createElement)("span",{className:"uag-toc__collapsible-wrap"},Lo(g))),Object(f.createElement)(Df,null,Object(f.createElement)(Wf,null,Object(f.createElement)(Gf,{value:s,onChange:function(e){i({align:e})},controls:["left","center","right"]})),Object(f.createElement)(Zf,null,Object(f.createElement)(Qf,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},Object(f.createElement)("h2",null,Object(M.__)("Select the heading to consider when generating the table","ultimate-addons-for-gutenberg")),Pe.map((function(e,t){return Object(f.createElement)(Xf,{key:t},Object(f.createElement)("label",{htmlFor:"ub_toggle_h".concat(t+1)},"H".concat(t+1)),Object(f.createElement)(aw,{id:"ub_toggle_h".concat(t+1),checked:e,onChange:function(){return i({mappingHeaders:[].concat(ic()(Pe.slice(0,t)),[!Pe[t]],ic()(Pe.slice(t+1)))})}}))}))),Object(f.createElement)(Qf,{title:Object(M.__)("Scroll","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(aw,{label:Object(M.__)("Smooth Scroll","ultimate-addons-for-gutenberg"),checked:p,help:Object(M.__)("This will be in Action only in Front End.","ultimate-addons-for-gutenberg"),onChange:function(e){return i({smoothScroll:!p})}}),p&&Object(f.createElement)(Df,null,Object(f.createElement)(tw,{label:Object(M.__)("Smooth Scroll Offset (px)","ultimate-addons-for-gutenberg"),value:w,onChange:function(e){return i({smoothScrollOffset:e})},min:0,max:1e3}),Object(f.createElement)(tw,{label:Object(M.__)("Scroll Animation Delay (ms)","ultimate-addons-for-gutenberg"),value:y,onChange:function(e){return i({smoothScrollDelay:e})},min:100,max:5e3})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(aw,{label:Object(M.__)("Show Scroll To Top","ultimate-addons-for-gutenberg"),checked:z,help:Object(M.__)("This will add a Scroll to Top arrow at the bottom of page.","ultimate-addons-for-gutenberg"),onChange:function(e){return i({scrollToTop:!z})}}),z&&Object(f.createElement)(Df,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Icon Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:x}}))),Object(f.createElement)(Yf,{value:x,onChange:function(e){return i({scrollToTopColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:O}}))),Object(f.createElement)(Yf,{value:O,onChange:function(e){return i({scrollToTopBgColor:e})},allowReset:!0}))),Object(f.createElement)(Qf,{title:Object(M.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("h2",null,Object(M.__)("Heading","ultimate-addons-for-gutenberg")),Object(f.createElement)(ew,{label:Object(M.__)("Alignment","ultimate-addons-for-gutenberg"),value:Re,onChange:function(e){return i({headingAlignment:e})},options:[{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",label:Object(M.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(tw,{label:Object(M.__)("Bottom Space","ultimate-addons-for-gutenberg"),value:ne,onChange:function(e){return i({headingBottom:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:Me,label:"headingLoadGoogleFonts"},fontFamily:{value:Ee,label:"headingFontFamily"},fontWeight:{value:He,label:"headingFontWeight"},fontSubset:{value:ke,label:"headingFontSubset"},fontSizeType:{value:Le,label:"headingFontSizeType"},fontSize:{value:Se,label:"headingFontSize"},fontSizeMobile:{value:Ve,label:"headingFontSizeMobile"},fontSizeTablet:{value:Be,label:"headingFontSizeTablet"},lineHeightType:{value:Te,label:"headingLineHeightType"},lineHeight:{value:Ne,label:"headingLineHeight"},lineHeightMobile:{value:Fe,label:"headingLineHeightMobile"},lineHeightTablet:{value:Ae,label:"headingLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Heading Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:P}}))),Object(f.createElement)(Yf,{value:P,onChange:function(e){return i({headingColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Collapsible","ultimate-addons-for-gutenberg")),Object(f.createElement)(aw,{label:Object(M.__)("Make Content Collapsible","ultimate-addons-for-gutenberg"),checked:h,onChange:function(e){return i({makeCollapsible:!h})}}),h&&Object(f.createElement)(Df,null,Object(f.createElement)(aw,{label:Object(M.__)("Keep Collapsed Initially","ultimate-addons-for-gutenberg"),checked:d,onChange:function(e){return i({initialCollapse:!d})}}),Object(f.createElement)(So.a,Ge),Object(f.createElement)(tw,{label:Object(M.__)("Icon Size","ultimate-addons-for-gutenberg"),value:v,onChange:function(e){return i({iconSize:e})},min:0,max:300,beforeIcon:"",allowReset:!0}),Object(f.createElement)(Yf,{value:m,onChange:function(e){return i({iconColor:e})},allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Content","ultimate-addons-for-gutenberg")),Object(f.createElement)(aw,{label:Object(M.__)("Disable Bullet Points","ultimate-addons-for-gutenberg"),checked:u,onChange:function(e){return i({disableBullets:!u})}}),!u&&Object(f.createElement)(Df,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Bullet Points Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:b}}))),Object(f.createElement)(Yf,{value:b,onChange:function(e){return i({bulletColor:e})},allowReset:!0})),Object(f.createElement)(Ga,null),"Desktop"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===ue,"aria-pressed":"px"===ue,onClick:function(){return i({contentPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===ue,"aria-pressed":"%"===ue,onClick:function(){return i({contentPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",{className:"uagb-light-font-weight"},Object(M.__)("Gap Between Lists")),Object(f.createElement)(tw,{className:"uagb-gap-control",value:ie,onChange:function(e){return i({contentPaddingDesktop:e})},min:0,max:100,allowReset:!0})),"Tablet"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===se,"aria-pressed":"px"===se,onClick:function(){return i({contentPaddingTypeTablet:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===se,"aria-pressed":"%"===se,onClick:function(){return i({contentPaddingTypeTablet:"%"})}},"%")),Object(f.createElement)("h2",{className:"uagb-lighter-font-weight"},Object(M.__)("Gap Between Lists")),Object(f.createElement)(tw,{className:"uagb-margin-control",value:oe,onChange:function(e){return i({contentPaddingTablet:e})},min:0,max:100,allowReset:!0})),"Mobile"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===re,"aria-pressed":"px"===re,onClick:function(){return i({contentPaddingTypeMobile:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===re,"aria-pressed":"%"===re,onClick:function(){return i({contentPaddingTypeMobile:"%"})}},"%")),Object(f.createElement)("h2",{className:"uagb-light-font-weight"},Object(M.__)("Gap Between Lists")),Object(f.createElement)(tw,{className:"uagb-margin-control",value:ce,onChange:function(e){return i({contentPaddingMobile:e})},min:0,max:100,allowReset:!0})),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:be,label:"loadGoogleFonts"},fontFamily:{value:ve,label:"fontFamily"},fontWeight:{value:pe,label:"fontWeight"},fontSubset:{value:fe,label:"fontSubset"},fontSizeType:{value:_e,label:"fontSizeType"},fontSize:{value:we,label:"fontSize"},fontSizeMobile:{value:ze,label:"fontSizeMobile"},fontSizeTablet:{value:ye,label:"fontSizeTablet"},lineHeightType:{value:xe,label:"lineHeightType"},lineHeight:{value:Oe,label:"lineHeight"},lineHeightMobile:{value:je,label:"lineHeightMobile"},lineHeightTablet:{value:Ce,label:"lineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Content Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:A}}))),Object(f.createElement)(Yf,{value:A,onChange:function(e){return i({linkColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Content Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:F}}))),Object(f.createElement)(Yf,{value:F,onChange:function(e){return i({linkHoverColor:e})},allowReset:!0})),Object(f.createElement)(Qf,{title:Object(M.__)("Style","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("h2",null,Object(M.__)("Background","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:N}}))),Object(f.createElement)(Yf,{value:N,onChange:function(e){return i({backgroundColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(aw,{label:Object(M.__)("Custom Width","ultimate-addons-for-gutenberg"),checked:C,onChange:function(e){return i({customWidth:!C})},help:Object(M.__)("Table's width will be auto if this is kept off.","ultimate-addons-for-gutenberg")}),C&&Object(f.createElement)(Ga,null),"Desktop"===r&&C&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===L,"aria-pressed":"px"===L,onClick:function(){return i({widthTypeDesktop:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===L,"aria-pressed":"%"===L,onClick:function(){return i({widthTypeDesktop:"%"})}},"%")),Object(f.createElement)(tw,{label:Object(M.__)("Width"),value:j,onChange:function(e){return i({widthDesktop:e})},min:0,max:"%"==L?100:1e3,beforeIcon:"",allowReset:!0})),"Tablet"===r&&C&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===S,"aria-pressed":"px"===S,onClick:function(){return i({widthTypeTablet:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===S,"aria-pressed":"%"===S,onClick:function(){return i({widthTypeTablet:"%"})}},"%")),Object(f.createElement)(tw,{label:Object(M.__)("Width"),value:E,onChange:function(e){return i({widthTablet:e})},min:0,max:"%"==S?100:1e3,beforeIcon:"",allowReset:!0})),"Mobile"===r&&C&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===k,"aria-pressed":"px"===k,onClick:function(){return i({widthTypeMobile:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===k,"aria-pressed":"%"===k,onClick:function(){return i({widthTypeMobile:"%"})}},"%")),Object(f.createElement)(tw,{label:Object(M.__)("Width"),value:H,onChange:function(e){return i({widthMobile:e})},min:0,max:"%"==k?100:1e3,beforeIcon:"",allowReset:!0})),Object(f.createElement)(Ga,null),"Desktop"===r&&Object(f.createElement)(Df,null,Object(f.createElement)(tw,{label:Object(M.__)("Columns"),value:B,onChange:function(e){return i({tColumnsDesktop:e})},min:1,max:10})),"Tablet"===r&&Object(f.createElement)(Df,null,Object(f.createElement)(tw,{label:Object(M.__)("Columns"),value:V,onChange:function(e){return i({tColumnsTablet:e})},min:1,max:10})),"Mobile"===r&&Object(f.createElement)(Df,null,Object(f.createElement)(tw,{label:Object(M.__)("Columns"),value:T,onChange:function(e){return i({tColumnsMobile:e})},min:1,max:10})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Ga,null),"Desktop"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Y,"aria-pressed":"px"===Y,onClick:function(){return i({paddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Y,"aria-pressed":"%"===Y,onClick:function(){return i({paddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding")),Object(f.createElement)(tw,{label:n.vertical_spacing,className:"uagb-margin-control",value:R,onChange:function(e){return i({vPaddingDesktop:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(tw,{label:n.horizontal_spacing,className:"uagb-margin-control",value:q,onChange:function(e){return i({hPaddingDesktop:e})},min:0,max:100,allowReset:!0})),"Tablet"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===U,"aria-pressed":"px"===U,onClick:function(){return i({paddingTypeTablet:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===U,"aria-pressed":"%"===U,onClick:function(){return i({paddingTypeTablet:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding")),Object(f.createElement)(tw,{label:n.vertical_spacing,className:"uagb-margin-control",value:I,onChange:function(e){return i({vPaddingTablet:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(tw,{label:n.horizontal_spacing,className:"uagb-margin-control",value:W,onChange:function(e){return i({hPaddingTablet:e})},min:0,max:100,allowReset:!0})),"Mobile"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Z,"aria-pressed":"px"===Z,onClick:function(){return i({paddingTypeMobile:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Z,"aria-pressed":"%"===Z,onClick:function(){return i({paddingTypeMobile:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding")),Object(f.createElement)(tw,{label:n.vertical_spacing,className:"uagb-margin-control",value:D,onChange:function(e){return i({vPaddingMobile:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(tw,{label:n.horizontal_spacing,className:"uagb-margin-control",value:G,onChange:function(e){return i({hPaddingMobile:e})},min:0,max:100,allowReset:!0})),Object(f.createElement)(Ga,null),"Desktop"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===le,"aria-pressed":"px"===le,onClick:function(){return i({marginTypeDesktop:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===le,"aria-pressed":"%"===le,onClick:function(){return i({marginTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("List Margin")),Object(f.createElement)(tw,{label:n.vertical_spacing,className:"uagb-margin-control",value:K,onChange:function(e){return i({vMarginDesktop:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(tw,{label:n.horizontal_spacing,className:"uagb-margin-control",value:Q,onChange:function(e){return i({hMarginDesktop:e})},min:0,max:100,allowReset:!0})),"Tablet"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===ae,"aria-pressed":"px"===ae,onClick:function(){return i({marginTypeTablet:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===ae,"aria-pressed":"%"===ae,onClick:function(){return i({marginTypeTablet:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("List Margin")),Object(f.createElement)(tw,{label:n.vertical_spacing,className:"uagb-margin-control",value:J,onChange:function(e){return i({vMarginTablet:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(tw,{label:n.horizontal_spacing,className:"uagb-margin-control",value:X,onChange:function(e){return i({hMarginTablet:e})},min:0,max:100,allowReset:!0})),"Mobile"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===te,"aria-pressed":"px"===te,onClick:function(){return i({marginTypeMobile:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===te,"aria-pressed":"%"===te,onClick:function(){return i({marginTypeMobile:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("List Margin")),Object(f.createElement)(tw,{label:n.vertical_spacing,className:"uagb-margin-control",value:$,onChange:function(e){return i({vMarginMobile:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(tw,{label:n.horizontal_spacing,className:"uagb-margin-control",value:ee,onChange:function(e){return i({hMarginMobile:e})},min:0,max:100,allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Border","ultimate-addons-for-gutenberg")),Object(f.createElement)(ew,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:he,onChange:function(e){return i({borderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=he&&Object(f.createElement)(tw,{label:Object(M.__)("Border Width","ultimate-addons-for-gutenberg"),value:de,onChange:function(e){return i({borderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(tw,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:ge,onChange:function(e){return i({borderRadius:e})},min:0,max:1e3,allowReset:!0}),"none"!=he&&Object(f.createElement)(Df,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:me}}))),Object(f.createElement)(Yf,{value:me,onChange:function(e){return i({borderColor:e})},allowReset:!0})))),Object(f.createElement)("div",{className:_()(o,"uagb-toc__align-".concat(s),"uagb-toc__columns-".concat(B),d?"uagb-toc__collapse":"","uagb-editor-preview-mode-".concat(r.toLowerCase()),"uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:"uagb-toc__wrap"},Object(f.createElement)("div",{className:"uagb-toc__title-wrap"},Object(f.createElement)(Uf,{tagName:"div",placeholder:Object(M.__)("Table Of Contents","ultimate-addons-for-gutenberg"),value:Ie,className:"uagb-toc__title",onChange:function(e){return i({headingTitle:e})},multiline:!1,onRemove:function(){return props.onReplace([])}}),Ze),Object(f.createElement)(Af,{mappingHeaders:Pe,headers:c}))),e,t)}}]),i}(If),iw=Pf(Ff((function(e,t){var a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=void 0===a?null:a,n=l?l():null,i=0,o=$("div.is-root-container").find("h1, h2, h3, h4, h5, h6"),c=[];return"undefined"!=o&&o.each((function(e,t){var a,l=$(this);a=!!t.className.includes("uagb-toc-hide-heading")||0<l.parents(".uagb-toc-hide-heading").length;var n=function(e){if(!e)return e;var t=e.toString().toLowerCase().replace(/\…+/g,"").replace(/&(amp;)/g,"").replace(/&(mdash;)/g,"").replace(/\u2013|\u2014/g,"").replace(/[&]nbsp[;]/gi,"-").replace(/\s+/g,"-").replace(/[&\/\\#,^!+()$~%.\[\]'":*?<>{}@‘’”“|]/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"");return decodeURI(encodeURIComponent(t))}(l.text()),o=l[0].nodeName.replace(/^H+/,""),r=l.text();i=parseInt(o),a||c.push({tag:i,text:r,link:n,content:l.text()})})),void 0!==c&&c.forEach((function(e,t){e.level=0;for(var a=t-1;a>=0;a--){var l=c[a];if(l.tag<=e.tag){e.level=l.level,l.tag<e.tag&&e.level++;break}}})),{deviceType:n,headers:c}})))(nw);var ow=wp.data,cw=ow.select,rw=ow.subscribe,sw=a(143),uw=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(e){var t;return c()(this,n),(t=l.call(this,e)).state={headers:e.headers,deregister:null},t}return s()(n,[{key:"componentDidMount",value:function(){var e=this,t=function(){var t=function e(t,a){return t.map((function(t){var l=t.innerBlocks;l.length>0?l.forEach((function(t){t.innerBlocks.length>0?e(t.innerBlocks,a):a.push(t.attributes)})):("core/heading"===t.name&&a.push(t.attributes),"uagb/advanced-heading"===t.name&&a.push(t.attributes))})),a}(cw("core/block-editor").getBlocks(),[]);void 0!==t&&t.forEach((function(e,t){var a=void 0===e.content||""===e.content?"headingId":"anchor",l=void 0===e[a]||""===e[a],n=void 0===e.content||""===e.content?"headingTitle":"content",i=void 0===e[n]||""===e[n],o=!l&&0===e[a].indexOf(t+"-");i||!l&&!o||(e[a]=t+"-"+sw(e[n]).toString().toLowerCase().replace(/( |<.+?>|&nbsp;)/g,"-"),e[a]=e[a].replace(/[^\w\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s-]/g,""))})),e.setState({headers:t})};t();var a=rw((function(){t()}));this.setState({deregister:a})}},{key:"componentWillUnmount",value:function(){this.state.deregister()}},{key:"componentDidUpdate",value:function(e,t){JSON.stringify(this.state.headers)!==JSON.stringify(t.headers)&&this.props.blockProp.setAttributes({headerLinks:JSON.stringify(this.state.headers)})}},{key:"render",value:function(){var e=this.props,t=e.mappingHeaders,a=e.blockProp,l=e.style,n=this.state.headers;return null!=H()(t)&&n.length>0&&n.filter((function(e){return t[e.level-1]})).length>0?Object(f.createElement)("div",{style:l,className:"uagb-toc__list-wrap"},function e(t){var a=[];return t.forEach((function(t){Array.isArray(t)?a.push(e(t)):void 0===t.content||""===t.content?t.headingTitle&&a.push(Object(f.createElement)("li",{key:t.headingId},Object(f.createElement)("a",{href:"#".concat(t.headingId),dangerouslySetInnerHTML:{__html:t.headingTitle.replace(/(<a.+?>|<\/a>)/g,"")}}))):t.content&&a.push(Object(f.createElement)("li",{key:"#".concat(t.anchor)},Object(f.createElement)("a",{href:"#".concat(t.anchor),dangerouslySetInnerHTML:{__html:t.content.replace(/(<a.+?>|<\/a>)/g,"")}})))})),Object(f.createElement)("ul",{className:"uagb-toc__list"},a)}(function(e){var a=[];for(e.filter((function(e){return t[e.level-1]})).forEach((function(e){var t=a.length-1;if(0===a.length||a[t][0].level<e.level)a.push([e]);else if(a[t][0].level===e.level)a[t].push(e);else{for(;a[t][0].level>e.level&&a.length>1;)a[a.length-2].push(a.pop()),t=a.length-1;a[t][0].level===e.level&&a[t].push(e)}}));a.length>1&&a[a.length-1][0].level>a[a.length-2][0].level;)a[a.length-2].push(a.pop());return a[0]}(n))):a&&Object(f.createElement)("p",{className:"ub_table-of-contents-placeholder"},Object(M.__)("Add a header to begin generating the table of contents"))}}]),n}(B.Component);var hw=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e,t=this.props,a=t.mappingHeaders,l=t.headers;return null!=H()(a)&&l&&l.length>0&&l.filter((function(e){return a[e.tag-1]})).length>0?Object(f.createElement)("div",{className:"uagb-toc__list-wrap","data-headers":JSON.stringify(l)},function e(t){var a=[];return t.forEach((function(l){Array.isArray(l)?a.push(e(l)):a.push(Object(f.createElement)("li",{key:t.indexOf(l)},Object(f.createElement)("a",{href:"#".concat(l.link),dangerouslySetInnerHTML:{__html:l.text}})))})),Object(f.createElement)("ul",{className:"uagb-toc__list"},a)}((e=[],l.forEach((function(t,l){a[t.tag-1]&&e.push(t)})),function(e){var t=[];for(e.filter((function(e){return a[e.tag-1]})).forEach((function(e){var a=t.length-1;if(0===t.length||t[a][0].tag<e.tag)t.push([e]);else if(t[a][0].tag===e.tag)t[a].push(e);else{for(;t[a][0].tag>e.tag&&t.length>1;)t[t.length-2].push(t.pop()),a=t.length-1;t[a][0].tag===e.tag&&t[a].push(e)}}));t.length>1&&t[t.length-1][0].tag>t[t.length-2][0].tag;)t[t.length-2].push(t.pop());return t[0]}(e)))):Object(f.createElement)("p",{className:"uagb_table-of-contents-placeholder"},Object(M.__)("Add a header to begin generating the table of contents"))}}]),n}(React.Component);var dw=wp.i18n.__,gw=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e,t=this.props,a=t.mappingHeaders,l=t.headers,n=0,i=0;return"undefined"!=a&&l&&l.length>0&&l.filter((function(e){return a[e.tag-1]})).length>0?Object(f.createElement)("div",{className:"uagb-toc__list-wrap"},function e(t){var a=[];if("undefined"!==t&&t&&t.length>0)return t.forEach((function(t){Array.isArray(t)?a.push(e(t)):(a.push(Object(f.createElement)("li",{key:n},Object(f.createElement)("a",{href:"#".concat(t.link),dangerouslySetInnerHTML:{__html:t.text}}))),n++)})),i++,Object(f.createElement)("ul",{key:n+"-"+i,className:"uagb-toc__list"},a)}((e=[],l.forEach((function(t,l){a[t.tag-1]&&e.push(t)})),function(e){var t=[];for(e.filter((function(e){return a[e.tag-1]})).forEach((function(e){var a=t.length-1;if(0===t.length||t[a][0].tag<e.tag)t.push([e]);else if(t[a][0].tag===e.tag)t[a].push(e);else{for(;t[a][0].tag>e.tag&&t.length>1;)t[t.length-2].push(t.pop()),a=t.length-1;t[a][0].tag===e.tag&&t[a].push(e)}}));t.length>1&&t[t.length-1][0].tag>t[t.length-2][0].tag;)t[t.length-2].push(t.pop());return t[0]}(e)))):Object(f.createElement)("p",{className:"uagb_table-of-contents-placeholder"},dw("Add a header to begin generating the table of contents"))}}]),n}(React.Component),mw=wp.blockEditor.RichText,bw=[{attributes:Nf,save:function(e){var t=e.className,a=e.attributes,l=a.align,n=a.block_id,i=a.tColumns,o=a.heading,c=a.headerLinks,r=a.mappingHeaders,s=a.scrollToTop;return Object(f.createElement)("div",{className:_()(t,"uagb-toc__align-".concat(l),"uagb-toc__columns-".concat(i)),id:"uagb-toc-".concat(n)},Object(f.createElement)("div",{className:"uagb-toc__wrap"},Object(f.createElement)(mw.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),Object(f.createElement)(uw,{align:l,numcolumns:i,scrollToTop:s,mappingHeaders:r,headers:c&&JSON.parse(c),blockProp:e})))}},{attributes:Nf,save:function(e){var t=e.className,a=e.attributes,l=a.align,n=a.block_id,i=a.tColumns,o=a.heading,c=a.headerLinks,r=a.mappingHeaders,s=a.scrollToTop,u=a.smoothScroll,h=a.makeCollapsible,d=a.icon,g=a.initialCollapse,m=a.smoothScrollOffset,b=a.smoothScrollDelay,v="";return h&&d&&(v=Object(f.createElement)("span",{className:"uag-toc__collapsible-wrap"},Lo(d))),Object(f.createElement)("div",{className:_()(t,"uagb-toc__align-".concat(l),"uagb-toc__columns-".concat(i),g?"uagb-toc__collapse":""),"data-scroll":u,"data-offset":m,"data-delay":b,id:"uagb-toc-".concat(n)},Object(f.createElement)("div",{className:"uagb-toc__wrap"},Object(f.createElement)("div",{className:"uagb-toc__title-wrap"},Object(f.createElement)(mw.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),v),Object(f.createElement)(uw,{align:l,numcolumns:i,scrollToTop:s,mappingHeaders:r,headers:c&&JSON.parse(c),blockProp:e})))}},{attributes:Nf,save:function(e){var t=e.className,a=e.attributes,l=a.align,n=a.block_id,i=a.tColumns,o=a.heading,c=a.headerLinks,r=a.mappingHeaders,s=a.smoothScroll,u=a.makeCollapsible,h=a.icon,d=a.initialCollapse,g=a.smoothScrollOffset,m=a.smoothScrollDelay,b="";return u&&h&&(b=Object(f.createElement)("span",{className:"uag-toc__collapsible-wrap"},Lo(h))),Object(f.createElement)("div",{className:_()(t,"uagb-toc__align-".concat(l),"uagb-toc__columns-".concat(i),d?"uagb-toc__collapse":"","uagb-block-".concat(n)),"data-scroll":s,"data-offset":g,"data-delay":m},Object(f.createElement)("div",{className:"uagb-toc__wrap"},Object(f.createElement)("div",{className:"uagb-toc__title-wrap"},Object(f.createElement)(mw.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),b),Object(f.createElement)(hw,{mappingHeaders:r,headers:c&&JSON.parse(c)})))}},{attributes:Nf,save:function(e){var t=e.className,a=e.attributes,l=a.align,n=a.block_id,i=a.tColumns,o=a.heading,c=a.headerLinks,r=a.mappingHeaders,s=a.smoothScroll,u=a.makeCollapsible,h=a.icon,d=a.initialCollapse,g=a.smoothScrollOffset,m=a.smoothScrollDelay,b="";return u&&h&&(b=Object(f.createElement)("span",{className:"uag-toc__collapsible-wrap"},Lo(h))),Object(f.createElement)("div",{className:_()(t,"uagb-toc__align-".concat(l),"uagb-toc__columns-".concat(i),d?"uagb-toc__collapse":"","uagb-block-".concat(n)),"data-scroll":s,"data-offset":g,"data-delay":m},Object(f.createElement)("div",{className:"uagb-toc__wrap"},Object(f.createElement)("div",{className:"uagb-toc__title-wrap"},Object(f.createElement)(mw.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),b),Object(f.createElement)(gw,{mappingHeaders:r,headers:c&&JSON.parse(c)})))}}];a(394),a(395),(0,wp.blocks.registerBlockType)("uagb/table-of-contents",{title:uagb_blocks_info.blocks["uagb/table-of-contents"].title,description:uagb_blocks_info.blocks["uagb/table-of-contents"].description,icon:n.table_of_contents,category:uagb_blocks_info.category,keywords:[Object(M.__)("table of contents","ultimate-addons-for-gutenberg"),Object(M.__)("table","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Nf,edit:iw,save:function(){return null},example:{},deprecated:bw});var vw=[],pw=[];vw.push({add_required_tools:Object(M.__)("- A Computer.","ultimate-addons-for-gutenberg")}),pw.push({add_required_materials:Object(M.__)("- A WordPress Website.","ultimate-addons-for-gutenberg")});var fw={block_id:{type:"string"},overallAlignment:{type:"string",default:"left"},toolsTitle:{type:"html",default:Object(M.__)("Required Tools:","ultimate-addons-for-gutenberg")},materialTitle:{type:"html",default:Object(M.__)("Things Needed?","ultimate-addons-for-gutenberg")},stepsTitle:{type:"html",default:Object(M.__)("Steps to configure the How-to Schema:","ultimate-addons-for-gutenberg")},tools_count:{type:"number",default:1},material_count:{type:"number",default:1},tools:{type:"array",default:vw},materials:{type:"array",default:pw},showTotaltime:{type:"boolean",default:!0},showEstcost:{type:"boolean",default:!0},showTools:{type:"boolean",default:!0},showMaterials:{type:"boolean",default:!0},mainimage:{type:"object",default:{url:""}},estCost:{type:"html",default:Object(M.__)("Total Cost:","ultimate-addons-for-gutenberg")},timeNeeded:{type:"html",default:Object(M.__)("Total Time Needed :","ultimate-addons-for-gutenberg")},timeIn:{type:"html",default:Object(M.__)(" Minutes","ultimate-addons-for-gutenberg")},imgSize:{type:"string",default:"thumbnail"},timeSpace:{type:"number",default:5},costSpace:{type:"number",default:5},time:{type:"string",default:"30"},cost:{type:"string",default:"65"},headingTitle:{source:"html",selector:"h1,h2,h3,h4,h5,h6",default:Object(M.__)("How To Configure How-To Schema In Ultimate Addons For Gutenberg?","ultimate-addons-for-gutenberg")},currencyType:{type:"html",default:" USD"},headingDesc:{source:"html",selector:"p",default:Object(M.__)("So to get started, you will just need to drag-n-drop the How-to Schema block in the Gutenberg editor. The How-to Schema block can be used on pages that contain a How-to in their title and describe steps to achieve certain requirements.","ultimate-addons-for-gutenberg")},headingAlign:{type:"string",default:"left"},descriptionAlign:{type:"string",default:"left"},headingColor:{type:"string"},showEstcostcolor:{type:"string"},showTotaltimecolor:{type:"string",default:""},subHeadingColor:{type:"string",default:""},headingTag:{type:"string",default:"h3"},headSpace:{type:"number",default:15},headFontFamily:{type:"string",default:"Default"},headFontWeight:{type:"string"},headFontSubset:{type:"string"},headFontSizeType:{type:"string",default:"px"},headLineHeightType:{type:"string",default:"em"},headFontSize:{type:"number"},headFontSizeTablet:{type:"number"},headFontSizeMobile:{type:"number"},headLineHeight:{type:"number"},headLineHeightTablet:{type:"number"},headLineHeightMobile:{type:"number"},subHeadFontFamily:{type:"string",default:"Default"},subHeadFontWeight:{type:"string"},subHeadFontSubset:{type:"string"},subHeadFontSize:{type:"number"},subHeadFontSizeType:{type:"string",default:"px"},subHeadFontSizeTablet:{type:"number"},subHeadFontSizeMobile:{type:"number"},subHeadLineHeight:{type:"number"},subHeadLineHeightType:{type:"string",default:"em"},subHeadLineHeightTablet:{type:"number"},subHeadLineHeightMobile:{type:"number"},separatorSpace:{type:"number",default:15},headLoadGoogleFonts:{type:"boolean",default:!1},subHeadLoadGoogleFonts:{type:"boolean",default:!1},priceFontSizeType:{type:"string",default:"px"},priceFontSize:{type:"number"},priceFontSizeTablet:{type:"number"},priceFontSizeMobile:{type:"number"},priceFontFamily:{type:"string",default:"Default"},priceFontWeight:{type:"string"},priceFontSubset:{type:"string"},priceLineHeightType:{type:"string",default:"em"},priceLineHeight:{type:"number"},priceLineHeightTablet:{type:"number"},priceLineHeightMobile:{type:"number"},priceLoadGoogleFonts:{type:"boolean",default:!1},row_gap:{type:"number",default:20},step_gap:{type:"number"},schema:{type:"html",default:""},timeInMins:{type:"number"},timeInHours:{type:"number"},timeInDays:{type:"number"},timeInMonths:{type:"number"},timeInYears:{type:"number"}};var ww=wp.data.select,_w=wp.element,yw=_w.Component,zw=_w.Fragment,xw=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.headingTitle,a=e.headingDesc,l=e.mainimage,n=e.showTotaltime,i=e.showTools,o=e.showMaterials,c=e.timeNeeded,r=(e.time,e.timeIn,e.showEstcost),s=e.estCost,u=e.cost,h=e.currencyType,d=e.tools,g=e.materials,m=e.clientId,b=e.minsValue,v=e.timeInHours,p=e.timeInDays,w=e.timeInMonths,_=e.timeInYears,y=[],z=ww("core/block-editor").getBlocks(m),x=!1;z.forEach((function(e,t){var a;""!==e.attributes.ctaLink&&"#"!==e.attributes.ctaLink&&""!==e.attributes.infoBoxTitle&&""!==e.attributes.headingDesc&&""!==(null===(a=e.attributes.iconImage)||void 0===a?void 0:a.url)||(x=!0)})),void 0!==t&&""!==t||y.push("How-To Title"),void 0!==a&&""!==a||y.push("Description"),void 0!==l.url&&null!==l.url&&""!==l.url||y.push("Image"),!0!==n||void 0!==c&&""!==c||y.push("Time Needed Label"),!0!==n||void 0!==b&&""!==b||void 0!==v&&""!==v||void 0!==p&&""!==p||void 0!==w&&""!==w||void 0!==_&&""!==_||y.push("Time"),!0!==r||void 0!==s&&""!==s||y.push("Total Cost Label"),!0!==r||void 0!==u&&""!==u||y.push("Cost"),!0!==r||void 0!==h&&""!==h||y.push("Currency Unit"),!0!==i||void 0!==d&&0!==d.length&&""!==d[0].add_required_tools||y.push("Tools"),!0!==o||void 0!==g&&0!==g.length&&""!==g[0].add_required_materials||y.push("Materials"),(void 0===z||2>z.length)&&y.push("Atleast 2 Steps are required"),!0===x&&y.push("The Info Box Heading, Description, Image, Call To Action Link are required for each Step. ");var O=y.map((function(e){return Object(f.createElement)("li",{key:e}," ",e," ")}));return Object(f.createElement)(zw,null,0!==y.length?Object(f.createElement)("div",{className:"how-to-schema-notices"},Object(f.createElement)("h6",null," ",Object(M.__)("It seems the following fields are empty. This may generate Schema errors / warnings for your Page, we recommend you to fill these fields.")," "),Object(f.createElement)("ul",{className:"how-to-schema-notices-list"},O),Object(f.createElement)("p",null,Object(M.__)("P.S. Note that this notice is visible only in the editor. This will not be visible in frontend. Also, once the required fields are added, this notice will go away.")," ",Object(f.createElement)("a",{href:"https://developers.google.com/search/docs/data-types/how-to",target:"_blank"},Object(M.__)("Read more.")))):"")}}]),n}(yw);function Ow(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Cw(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ow(Object(a),!0).forEach((function(t){j()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ow(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}a(144);var jw=wp.compose.compose,Mw=wp.blocks.createBlock,Ew=wp.blockEditor,Hw=Ew.AlignmentToolbar,kw=Ew.BlockControls,Sw=Ew.MediaUpload,Lw=Ew.InspectorControls,Bw=Ew.RichText,Vw=Ew.ColorPalette,Tw=Ew.InnerBlocks,Nw=wp.components,Aw=Nw.PanelBody,Fw=Nw.SelectControl,Pw=Nw.RangeControl,Rw=Nw.Button,Iw=Nw.ToggleControl,Dw=Nw.ExternalLink,qw=wp.data,Ww=(qw.select,qw.withSelect),Gw=wp.element,Zw=Gw.Component,Uw=Gw.Fragment,Yw=["uagb/info-box"],Kw=[{value:"thumbnail",label:Object(M.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(M.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(M.__)("Large","ultimate-addons-for-gutenberg")}],Jw=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){var e;return c()(this,n),(e=l.apply(this,arguments)).onRemoveImage=e.onRemoveImage.bind(h()(e)),e.onSelectImage=e.onSelectImage.bind(h()(e)),e.getImageSize=e.getImageSize.bind(h()(e)),e}return s()(n,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)}),this.props.setAttributes({schema:JSON.stringify(this.props.schemaJsonData)});var e=document.createElement("style");e.setAttribute("id","uagb-how-to-schema-style-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e,t){JSON.stringify(this.props.schemaJsonData)!==JSON.stringify(e.schemaJsonData)&&this.props.setAttributes({schema:JSON.stringify(this.props.schemaJsonData)});var a=document.getElementById("uagb-how-to-schema-style-"+this.props.clientId.substr(0,8));null!=a&&(a.innerHTML=function(e){var t,a,l=e.attributes,n=l.overallAlignment,i=l.headingTag,o=l.showTotaltimecolor,c=l.headingColor,r=l.headSpace,s=l.subHeadingColor,u=l.headFontFamily,h=l.headFontWeight,d=l.headFontSize,g=l.headFontSizeType,m=l.headFontSizeMobile,b=l.headFontSizeTablet,v=l.headLineHeight,p=l.headLineHeightType,f=l.headLineHeightMobile,w=l.headLineHeightTablet,_=l.subHeadFontFamily,x=l.subHeadFontWeight,O=l.subHeadFontSize,C=l.subHeadFontSizeType,j=l.subHeadFontSizeMobile,M=l.subHeadFontSizeTablet,E=l.subHeadLineHeight,H=l.subHeadLineHeightType,k=l.subHeadLineHeightMobile,S=l.subHeadLineHeightTablet,L=l.priceFontSizeType,B=l.priceFontSize,V=l.priceFontSizeTablet,T=l.priceFontSizeMobile,N=l.priceFontFamily,A=l.priceFontWeight,F=l.priceLineHeightType,P=l.priceLineHeight,R=l.priceLineHeightTablet,I=l.priceLineHeightMobile,D=l.timeSpace,q=l.costSpace,W=l.row_gap,G=l.step_gap,Z=""!==G?G:0;Z+=30;var U={" .block-editor-rich-text__editable.uagb-howto-desc-text":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s}," .uagb-how-to-main-wrap p":{"margin-bottom":z(W,"px")}," .uagb-how-to-main-wrap .uagb-howto__source-wrap":{"margin-bottom":z(W,"px")}," .uagb-how-to-main-wrap span.uagb-howto__time-wrap":{"margin-bottom":z(W,"px")}," .uagb-how-to-main-wrap span.uagb-howto__cost-wrap":{"margin-bottom":z(W,"px")}," .uagb-how-to-tools .uagb-how-to-tools-child__wrapper:last-child":{"margin-bottom":z(W,"px")}," .uagb-how-to-materials .uagb-how-to-materials-child__wrapper:last-child":{"margin-bottom":z(W,"px")}," .uagb-howto-steps__wrap .wp-block-uagb-info-box":{"margin-bottom":z(Z,"px")}," .block-editor-rich-text__editable.uagb-howto-timeNeeded-text":{"font-family":N,"font-weight":A,"font-size":z(B,L),"line-height":z(P,F),color:o}," .uagb-howto-timeNeeded-value":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s,"margin-left":z(D,"px")}," .uagb-howto-timeINmin-text ":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s}," .block-editor-rich-text__editable.uagb-howto-estcost-text":{"font-family":N,"font-weight":A,"font-size":z(B,L),"line-height":z(P,F),color:o}," .block-editor-rich-text__editable.uagb-howto-estcost-value":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s,"margin-left":z(q,"px")}," .uagb-howto-steps__wrap h4.block-editor-rich-text__editable":{"font-family":N,"font-weight":A,"font-size":z(B,L),"line-height":z(P,F)}," .uagb-howto-steps__wrap p.block-editor-rich-text__editable":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H)}," .block-editor-rich-text__editable.uagb-howto-estcost-type":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s}," .block-editor-rich-text__editable.uagb-howto-req-tools-text":{"font-family":N,"font-weight":A,"font-size":z(B,L),"line-height":z(P,F),color:o}," .block-editor-rich-text__editable.uagb-tools__label":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s}," .block-editor-rich-text__editable.uagb-howto-req-materials-text":{"font-family":N,"font-weight":A,"font-size":z(B,L),"line-height":z(P,F),color:o}," .block-editor-rich-text__editable.uagb-howto-req-steps-text":{"font-family":N,"font-weight":A,"font-size":z(B,L),"line-height":z(P,F),color:o}," .block-editor-rich-text__editable.uagb-materials__label":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s}};U[" .uagb-how-to-main-wrap"]={"text-align":n,display:"block"},U[" "+i+".block-editor-rich-text__editable.uagb-howto-heading-text"]={"font-family":u,"font-weight":h,"font-size":z(d,g),"line-height":z(v,p),color:c,"margin-bottom":z(r,"px")},a={" .block-editor-rich-text__editable.uagb-howto-heading-text":{"font-size":z(m,g),"line-height":z(f,p)}," .block-editor-rich-text__editable.uagb-howto-desc-text":{"font-size":z(j,C),"line-height":z(k,H)}," .block-editor-rich-text__editable.uagb-howto-timeNeeded-text":{"font-size":z(T,L),"line-height":z(I,F)}," .uagb-howto-timeNeeded-value":{"font-size":z(j,C),"line-height":z(k,H)}," .uagb-howto-timeINmin-text ":{"font-size":z(j,C),"line-height":z(k,H)}," .block-editor-rich-text__editable.uagb-howto-estcost-text":{"font-size":z(T,L),"line-height":z(I,F)}," .block-editor-rich-text__editable.uagb-howto-estcost-value":{"font-size":z(j,C),"line-height":z(k,H)}," .block-editor-rich-text__editable.uagb-howto-estcost-type":{"font-size":z(j,C),"line-height":z(k,H)}," .block-editor-rich-text__editable.uagb-tools__label":{"font-size":z(T,L),"line-height":z(I,F)}," .block-editor-rich-text__editable.uagb-howto-req-tools-text":{"font-size":z(T,L),"line-height":z(I,F)}," .block-editor-rich-text__editable.uagb-materials__label":{"font-size":z(T,L),"line-height":z(I,F)}," .block-editor-rich-text__editable.uagb-howto-req-materials-text":{"font-size":z(T,L),"line-height":z(I,F)}},t={" .block-editor-rich-text__editable.uagb-howto-heading-text":{"font-size":z(b,g),"line-height":z(w,p)}," .block-editor-rich-text__editable.uagb-howto-desc-text":{"font-size":z(M,C),"line-height":z(S,H)}," .block-editor-rich-text__editable.uagb-howto-timeNeeded-text":{"font-size":z(V,L),"line-height":z(R,F)}," .uagb-howto-timeNeeded-value":{"font-size":z(M,C),"line-height":z(S,H)}," .uagb-howto-timeINmin-text ":{"font-size":z(M,C),"line-height":z(S,H)}," .block-editor-rich-text__editable.uagb-howto-estcost-text":{"font-size":z(V,L),"line-height":z(R,F)}," .block-editor-rich-text__editable.uagb-howto-estcost-value":{"font-size":z(M,C),"line-height":z(S,H)}," .block-editor-rich-text__editable.uagb-howto-estcost-type":{"font-size":z(M,C),"line-height":z(S,H)}," .block-editor-rich-text__editable.uagb-tools__label":{"font-size":z(V,L),"line-height":z(R,F)}," .block-editor-rich-text__editable.uagb-howto-req-tools-text":{"font-size":z(V,L),"line-height":z(R,F)}," .block-editor-rich-text__editable.uagb-materials__label":{"font-size":z(V,L),"line-height":z(R,F)}," .block-editor-rich-text__editable.uagb-howto-req-materials-text":{"font-size":z(V,L),"line-height":z(R,F)}};var Y=".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8)),K=y(U,Y);return(K+=y(t,"".concat(Y,".uagb-editor-preview-mode-tablet")))+y(a,"".concat(Y,".uagb-editor-preview-mode-mobile"))}(this.props))}},{key:"savematerials",value:function(e,t){var a=this.props,l=a.attributes;(0,a.setAttributes)({materials:l.materials.map((function(a,l){return t===l&&(a=Cw(Cw({},a),e)),a}))})}},{key:"savetools",value:function(e,t){var a=this.props,l=a.attributes;(0,a.setAttributes)({tools:l.tools.map((function(a,l){return t===l&&(a=Cw(Cw({},a),e)),a}))})}},{key:"onRemoveImage",value:function(){(0,this.props.setAttributes)({mainimage:null})}},{key:"onSelectImage",value:function(e){var t=this.props.setAttributes;if(e&&e.url){if(e.type&&(t({mainimage:e}),e.sizes)){var a=this.getImageSize(e.sizes);Kw=a}}else t({mainimage:null})}},{key:"getImageSize",value:function(e){var t=[];return $.each(e,(function(e,a){var l={value:e,label:e};t.push(l)})),t}},{key:"render",value:function(){var e,t,a,l=this,n=this.props,i=n.className,o=n.attributes,c=n.setAttributes,r=n.insertBlocksAfter,s=n.mergeBlocks,u=n.onReplace,h=n.deviceType,d=n.attributes,g=d.overallAlignment,m=d.currencyType,b=(d.timeIn,d.showEstcost),v=d.showTotaltime,p=d.showMaterials,w=d.showTools,y=d.showTotaltimecolor,z=d.tools_count,x=d.material_count,O=d.toolsTitle,C=d.materialTitle,E=d.stepsTitle,H=d.tools,k=d.materials,S=d.timeNeeded,L=d.estCost,B=d.mainimage,V=d.imgSize,T=d.headingTitle,N=d.headingDesc,A=d.headingColor,F=d.subHeadingColor,P=d.headingTag,R=d.headFontFamily,I=d.headFontWeight,D=d.headFontSubset,q=d.headFontSizeType,W=d.headFontSize,G=d.headFontSizeMobile,Z=d.headFontSizeTablet,U=d.headLineHeightType,Y=d.headLineHeight,K=d.headLineHeightMobile,J=d.headLineHeightTablet,$=d.subHeadFontFamily,Q=d.subHeadFontWeight,X=d.subHeadFontSubset,ee=d.subHeadFontSize,te=d.subHeadFontSizeType,ae=d.subHeadFontSizeMobile,le=d.subHeadFontSizeTablet,ne=d.subHeadLineHeight,ie=d.subHeadLineHeightType,oe=d.subHeadLineHeightMobile,ce=d.subHeadLineHeightTablet,re=d.headLoadGoogleFonts,se=d.subHeadLoadGoogleFonts,ue=d.priceFontSizeType,he=d.priceFontSize,de=d.priceFontSizeTablet,ge=d.priceFontSizeMobile,me=d.priceFontFamily,be=d.priceFontWeight,ve=d.priceFontSubset,pe=d.priceLineHeightType,fe=d.priceLineHeight,we=d.priceLineHeightTablet,_e=d.priceLineHeightMobile,ye=d.priceLoadGoogleFonts,ze=d.time,xe=d.cost,Oe=d.timeSpace,Ce=d.costSpace,je=d.row_gap,Me=d.step_gap,Ee=d.timeInMins,He=d.timeInHours,ke=d.timeInDays,Se=d.timeInMonths,Le=d.timeInYears;if(B&&B.sizes&&(Kw=this.getImageSize(B.sizes)),!0===re){var Be={google:{families:[R+(I?":"+I:"")]}};e=Object(f.createElement)(ha,{config:Be})}if(!0===se){var Ve={google:{families:[$+(Q?":"+Q:"")]}};t=Object(f.createElement)(ha,{config:Ve})}if(!0===ye){var Te={google:{families:[me+(be?":"+be:"")]}};a=Object(f.createElement)(ha,{config:Te})}var Ne="",Ae="";void 0!==o.mainimage&&null!==o.mainimage&&""!==o.mainimage&&(Ne=o.mainimage.url,Ae=o.mainimage.title);var Fe="";if(""!==Ne){var Pe=o.mainimage.sizes,Re=o.imgSize;Fe=void 0!==Pe&&void 0!==Pe[Re]?Pe[Re].url:Ne}var Ie="";B&&B.url&&(Ie=Object(f.createElement)("img",{className:"uagb-howto__source-image",src:Fe,title:Ae}));var De=Ee||ze,qe=Le>1?Object(M.__)("Years","ultimate-addons-for-gutenberg"):Object(M.__)("Year","ultimate-addons-for-gutenberg"),We=Se>1?Object(M.__)(" Months ","ultimate-addons-for-gutenberg"):Object(M.__)(" Month ","ultimate-addons-for-gutenberg"),Ge=ke>1?Object(M.__)(" Days ","ultimate-addons-for-gutenberg"):Object(M.__)(" Day ","ultimate-addons-for-gutenberg"),Ze=He>1?Object(M.__)("Hours ","ultimate-addons-for-gutenberg"):Object(M.__)(" Hour ","ultimate-addons-for-gutenberg"),Ue=De>1?Object(M.__)(" Minutes ","ultimate-addons-for-gutenberg"):Object(M.__)(" Minute ","ultimate-addons-for-gutenberg");return Object(f.createElement)(Uw,null,Object(f.createElement)(xw,{headingTitle:T,headingDesc:N,mainimage:B,showTotaltime:v,timeNeeded:S,minsValue:De,timeInHours:He,timeInDays:ke,timeInMonths:Se,timeInYears:Le,showEstcost:b,estCost:L,cost:xe,currencyType:m,tools:H,materials:k,clientId:this.props.clientId}),Object(f.createElement)(kw,{key:"index"},Object(f.createElement)(Hw,{value:g,onChange:function(e){return c({overallAlignment:e})}})),Object(f.createElement)(Lw,null,Object(f.createElement)(Aw,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},Object(f.createElement)("h2",null,Object(M.__)("Image","ultimate-addons-for-gutenberg")),Object(f.createElement)(Sw,{title:Object(M.__)("Select Image","ultimate-addons-for-gutenberg"),onSelect:function(e){return c({mainimage:e})},allowedTypes:["image"],value:B,render:function(e){var t=e.open;return Object(f.createElement)(Rw,{isSecondary:!0,onClick:t},B.url?Object(M.__)("Replace image","ultimate-addons-for-gutenberg"):Object(M.__)("Select Image","ultimate-addons-for-gutenberg"))}}),B.url&&Object(f.createElement)(Rw,{className:"uagb-rm-btn",onClick:function(){return c({mainimage:""})},isLink:!0,isDestructive:!0},Object(M.__)("Remove Image","ultimate-addons-for-gutenberg")),B.url&&Object(f.createElement)(Fw,{label:Object(M.__)("Size","ultimate-addons-for-gutenberg"),options:Kw,value:V,onChange:function(e){return c({imgSize:e})}}),Object(f.createElement)("h2",null,Object(M.__)("Primary Heading","ultimate-addons-for-gutenberg")),Object(f.createElement)(Fw,{label:Object(M.__)("Tag"),value:P,onChange:function(e){return c({headingTag:e})},options:[{value:"h1",label:Object(M.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(M.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(M.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(M.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(M.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(M.__)("H6","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Iw,{label:Object(M.__)("Show Total Time","ultimate-addons-for-gutenberg"),checked:v,onChange:function(e){return c({showTotaltime:!v})},help:Object(M.__)("Note: Time is recommended field for schema. It should be ON","ultimate-addons-for-gutenberg")}),v&&Object(f.createElement)(Aw,{title:Object(M.__)("Time","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb-editor-howto-timepanel"},Object(f.createElement)(Uw,null,Object(f.createElement)(Pw,{label:Object(M.__)("Years","ultimate-addons-for-gutenberg"),value:Le,onChange:function(e){return c({timeInYears:e})},min:1,max:10,allowReset:!0}),Object(f.createElement)(Pw,{label:Object(M.__)("Months","ultimate-addons-for-gutenberg"),value:Se,onChange:function(e){return c({timeInMonths:e})},min:1,max:12,allowReset:!0}),Object(f.createElement)(Pw,{label:Object(M.__)("Days","ultimate-addons-for-gutenberg"),value:ke,onChange:function(e){return c({timeInDays:e})},min:1,max:31,allowReset:!0}),Object(f.createElement)(Pw,{label:Object(M.__)("Hours","ultimate-addons-for-gutenberg"),value:He,onChange:function(e){return c({timeInHours:e})},min:1,max:24,allowReset:!0}),Object(f.createElement)(Pw,{label:Object(M.__)("Minutes","ultimate-addons-for-gutenberg"),value:De,onChange:function(e){return c({timeInMins:e})},min:1,max:60,allowReset:!0}))),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Iw,{label:Object(M.__)("Show Estimated Cost","ultimate-addons-for-gutenberg"),checked:b,onChange:function(e){return c({showEstcost:!b})},help:Object(M.__)("Note: Cost is recommended field for schema.It should be ON","ultimate-addons-for-gutenberg")}),Object(f.createElement)(Dw,{href:"https://en.wikipedia.org/wiki/List_of_circulating_currencies"},Object(M.__)("Click here to find your countrys ISO code.","ultimate-addons-for-gutenberg")),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Iw,{label:Object(M.__)("Show Tools","ultimate-addons-for-gutenberg"),checked:w,onChange:function(e){return c({showTools:!w})},help:Object(M.__)("Note: This is recommended field for schema.It should be ON","ultimate-addons-for-gutenberg")}),w&&Object(f.createElement)(Pw,{label:Object(M.__)("Number of Tools","ultimate-addons-for-gutenberg"),value:z,onChange:function(e){var t=ic()(H);if(t.length<e){var a=Math.abs(e-t.length);ao()(a,(function(e){t.push({add_required_tools:"- A Computer"+(t.length+1)})})),c({tools:t})}else{for(var l=Math.abs(e-t.length),n=t,i=0;i<l;i++)n.pop();c({tools:n})}c({tools_count:e})},min:1,max:50}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Iw,{label:Object(M.__)("Show Materials","ultimate-addons-for-gutenberg"),checked:p,onChange:function(e){return c({showMaterials:!p})},help:Object(M.__)("Note: This is recommended field for schema.It should be ON","ultimate-addons-for-gutenberg")}),p&&Object(f.createElement)(Pw,{label:Object(M.__)("Number of Materials","ultimate-addons-for-gutenberg"),value:x,onChange:function(e){var t=ic()(k);if(t.length<e){var a=Math.abs(e-t.length);ao()(a,(function(e){t.push({add_required_materials:"- A WordPress Website"+(t.length+1)})})),c({materials:t})}else{for(var l=Math.abs(e-t.length),n=t,i=0;i<l;i++)n.pop();c({materials:n})}c({material_count:e})},min:1,max:50})),Object(f.createElement)(Aw,{title:Object(M.__)("Style","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("h2",null,Object(M.__)("Colors")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Heading","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:A}}))),Object(f.createElement)(Vw,{value:A,onChange:function(e){return c({headingColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Secondary Heading","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:y}}))),Object(f.createElement)(Vw,{value:y,onChange:function(e){return c({showTotaltimecolor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Description","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:F}}))),Object(f.createElement)(Vw,{value:F,onChange:function(e){return c({subHeadingColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Typography","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Heading","ultimate-addons-for-gutenberg"),attributes:o,setAttributes:c,loadGoogleFonts:{value:re,label:"headLoadGoogleFonts"},fontFamily:{value:R,label:"headFontFamily"},fontWeight:{value:I,label:"headFontWeight"},fontSubset:{value:D,label:"headFontSubset"},fontSizeType:{value:q,label:"headFontSizeType"},fontSize:{value:W,label:"headFontSize"},fontSizeMobile:{value:G,label:"headFontSizeMobile"},fontSizeTablet:{value:Z,label:"headFontSizeTablet"},lineHeightType:{value:U,label:"headLineHeightType"},lineHeight:{value:Y,label:"headLineHeight"},lineHeightMobile:{value:K,label:"headLineHeightMobile"},lineHeightTablet:{value:J,label:"headLineHeightTablet"}}),Object(f.createElement)(la,{label:Object(M.__)("Secondary Heading","ultimate-addons-for-gutenberg"),attributes:o,setAttributes:c,loadGoogleFonts:{value:ye,label:"priceLoadGoogleFonts"},fontFamily:{value:me,label:"priceFontFamily"},fontWeight:{value:be,label:"priceFontWeight"},fontSubset:{value:ve,label:"priceFontSubset"},fontSizeType:{value:ue,label:"priceFontSizeType"},fontSize:{value:he,label:"priceFontSize"},fontSizeMobile:{value:ge,label:"priceFontSizeMobile"},fontSizeTablet:{value:de,label:"priceFontSizeTablet"},lineHeightType:{value:pe,label:"priceLineHeightType"},lineHeight:{value:fe,label:"priceLineHeight"},lineHeightMobile:{value:_e,label:"priceLineHeightMobile"},lineHeightTablet:{value:we,label:"priceLineHeightTablet"}}),Object(f.createElement)(la,{label:Object(M.__)("Description","ultimate-addons-for-gutenberg"),attributes:o,setAttributes:c,loadGoogleFonts:{value:se,label:"subHeadLoadGoogleFonts"},fontFamily:{value:$,label:"subHeadFontFamily"},fontWeight:{value:Q,label:"subHeadFontWeight"},fontSubset:{value:X,label:"subHeadFontSubset"},fontSizeType:{value:te,label:"subHeadFontSizeType"},fontSize:{value:ee,label:"subHeadFontSize"},fontSizeMobile:{value:ae,label:"subHeadFontSizeMobile"},fontSizeTablet:{value:le,label:"subHeadFontSizeTablet"},lineHeightType:{value:ie,label:"subHeadLineHeightType"},lineHeight:{value:ne,label:"subHeadLineHeight"},lineHeightMobile:{value:oe,label:"subHeadLineHeightMobile"},lineHeightTablet:{value:ce,label:"subHeadLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Spacing","ultimate-addons-for-gutenberg")),v&&Object(f.createElement)(Pw,{label:Object(M.__)("Time Margin","ultimate-addons-for-gutenberg"),value:Oe,onChange:function(e){return c({timeSpace:e})},min:0,max:50,allowReset:!0}),b&&Object(f.createElement)(Pw,{label:Object(M.__)("Cost Margin","ultimate-addons-for-gutenberg"),value:Ce,onChange:function(e){return c({costSpace:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(Pw,{label:Object(M.__)("Row Gap","ultimate-addons-for-gutenberg"),value:je,onChange:function(e){return c({row_gap:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Pw,{label:Object(M.__)("Gap Between Steps","ultimate-addons-for-gutenberg"),value:Me,onChange:function(e){return c({step_gap:e})},min:0,max:500,allowReset:!0}))),Object(f.createElement)("div",{className:_()(i,"uagb-editor-preview-mode-".concat(h.toLowerCase()),"uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:"uagb-how-to-main-wrap"},Object(f.createElement)(Bw,{tagName:P,placeholder:Object(M.__)("How to configure HowTo Schema in UAG?","ultimate-addons-for-gutenberg"),value:T,className:"uagb-howto-heading-text",multiline:!1,onChange:function(e){c({headingTitle:e})},onMerge:s,onSplit:r?function(e,t){c({content:e});for(var a=arguments.length,l=new Array(a>2?a-2:0),n=2;n<a;n++)l[n-2]=arguments[n];r([].concat(l,[Mw("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return u([])}}),Object(f.createElement)(Bw,{tagName:"p",placeholder:Object(M.__)("So to get started, you will just need to drag-n-drop the How-to Schema block in the Gutenberg editor. The How-to Schema block can be used on pages which contain a How-to in their title and describe steps to achieve certain requirements.","ultimate-addons-for-gutenberg"),value:N,className:"uagb-howto-desc-text",onChange:function(e){return c({headingDesc:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}}),Object(f.createElement)("div",{className:"uagb-howto__source-wrap"},Ie),Object(f.createElement)("span",{className:"uagb-howto__time-wrap"},v&&Object(f.createElement)(Bw,{tagName:"h4",placeholder:Object(M.__)("Total Time Needed ( Minutes ):","ultimate-addons-for-gutenberg"),value:S,className:"uagb-howto-timeNeeded-text",onChange:function(e){return c({timeNeeded:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}}),v&&Object(f.createElement)(Uw,null,Le&&Object(f.createElement)(Uw,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"}," ",Le),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"}," ",qe)),Se&&Object(f.createElement)(Uw,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},Se),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},We)),ke&&Object(f.createElement)(Uw,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},ke),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},Ge)),He&&Object(f.createElement)(Uw,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},He),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},Ze)),De&&Object(f.createElement)(Uw,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},De),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},Ue)))),Object(f.createElement)("span",{className:"uagb-howto__cost-wrap"},b&&Object(f.createElement)(Bw,{tagName:"h4",placeholder:Object(M.__)("Total Cost:","ultimate-addons-for-gutenberg"),value:L,className:"uagb-howto-estcost-text",onChange:function(e){return c({estCost:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}}),b&&Object(f.createElement)(Bw,{tagName:"p",placeholder:Object(M.__)("30","ultimate-addons-for-gutenberg"),value:xe,className:"uagb-howto-estcost-value",onChange:function(e){return c({cost:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}}),b&&Object(f.createElement)(Bw,{tagName:"p",placeholder:Object(M.__)("USD","ultimate-addons-for-gutenberg"),value:m,className:"uagb-howto-estcost-type",onChange:function(e){return c({currencyType:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}})),Object(f.createElement)("div",{className:"uagb-how-to-tools__wrap"},w&&Object(f.createElement)(Bw,{tagName:"h4",placeholder:Object(M.__)("requirements tools:","ultimate-addons-for-gutenberg"),value:O,className:"uagb-howto-req-tools-text",onChange:function(e){return c({toolsTitle:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}}),w&&Object(f.createElement)("div",{className:"uagb-how-to-tools"},H.map((function(e,t){var a;return Object(f.createElement)("div",{className:_()("uagb-how-to-tools-".concat(t),"uagb-how-to-tools-child__wrapper"),key:t},Object(f.createElement)("div",{className:"uagb-tools"},Object(f.createElement)(Bw,(a={tagName:"div",placeholder:Object(M.__)("Requirements Tools:","ultimate-addons-for-gutenberg"),value:e.add_required_tools,onChange:function(e){l.savetools({add_required_tools:e},t)},className:"uagb-tools__label"},j()(a,"placeholder",Object(M.__)("Description","ultimate-addons-for-gutenberg")),j()(a,"multiline",!1),j()(a,"allowedFormats",["core/bold","core/italic","core/strikethrough"]),a))))}))),Object(f.createElement)("div",{className:"uagb-how-to-materials__wrap"},p&&Object(f.createElement)(Bw,{tagName:"h4",placeholder:Object(M.__)("requirements materials:","ultimate-addons-for-gutenberg"),value:C,className:"uagb-howto-req-materials-text",onChange:function(e){return c({materialTitle:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}})),p&&Object(f.createElement)("div",{className:"uagb-how-to-materials"},k.map((function(e,t){var a;return Object(f.createElement)("div",{className:_()("uagb-how-to-materials-".concat(t),"uagb-how-to-materials-child__wrapper"),key:t},Object(f.createElement)("div",{className:"uagb-materials"},Object(f.createElement)(Bw,(a={tagName:"div",placeholder:Object(M.__)("Requirements Materials:","ultimate-addons-for-gutenberg"),value:e.add_required_materials,onChange:function(e){l.savematerials({add_required_materials:e},t)},className:"uagb-materials__label"},j()(a,"placeholder",Object(M.__)("Description","ultimate-addons-for-gutenberg")),j()(a,"multiline",!1),j()(a,"allowedFormats",["core/bold","core/italic","core/strikethrough"]),a))))})))),Object(f.createElement)("div",{className:"uagb-how-to-steps__wrap"},Object(f.createElement)(Bw,{tagName:"h4",placeholder:Object(M.__)("requirements Steps:","ultimate-addons-for-gutenberg"),value:E,className:"uagb-howto-req-steps-text",onChange:function(e){return c({stepsTitle:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}}),Object(f.createElement)("div",{className:"uagb-howto-steps__wrap"},Object(f.createElement)(Tw,{template:[["uagb/info-box",{infoBoxTitle:"Step 1",iconimgPosition:"left",source_type:"image",showPrefix:!1,seperatorStyle:"none",ctaType:"all",headingTag:"h4"}],["uagb/info-box",{infoBoxTitle:"Step 2",iconimgPosition:"left",source_type:"image",showPrefix:!1,seperatorStyle:"none",ctaType:"all",headingTag:"h4"}],["uagb/info-box",{infoBoxTitle:"Step 3",iconimgPosition:"left",source_type:"image",showPrefix:!1,seperatorStyle:"none",ctaType:"all",headingTag:"h4"}]],allowedBlocks:Yw}))))),e,t,a)}}]),n}(Zw),$w=jw(Ww((function(e,t){var a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=void 0===a?null:a,n=l?l():null,i="";"undefined"!==t.attributes.mainimage&&null!==t.attributes.mainimage&&""!==t.attributes.mainimage&&(i=t.attributes.mainimage.url,t.attributes.mainimage.title);var o={},c={},r={},s={"@context":"https://schema.org","@type":"HowTo",name:t.attributes.headingTitle,description:t.attributes.headingDesc,image:{"@type":"ImageObject",url:i,height:"406",width:"305"},totalTime:"",estimatedCost:[],tool:[],supply:[],step:[]},u=t.attributes.timeInYears?t.attributes.timeInYears:0,h=t.attributes.timeInMonths?t.attributes.timeInMonths:0,d=t.attributes.timeInDays?t.attributes.timeInDays:0,g=t.attributes.timeInHours?t.attributes.timeInHours:0,m=t.attributes.timeInMins?t.attributes.timeInMins:t.attributes.time;return t.attributes.showTotaltime&&(s.totalTime="P"+u+"Y"+h+"M"+d+"DT"+g+"H"+m+"M"),t.attributes.showEstcost&&(s.estimatedCost={"@type":"MonetaryAmount",currency:t.attributes.currencyType,value:t.attributes.cost}),t.attributes.showTools&&t.attributes.tools.forEach((function(e,t){o={"@type":"HowToTool",name:e.add_required_tools},s.tool[t]=o})),t.attributes.showMaterials&&t.attributes.materials.forEach((function(e,t){c={"@type":"HowToSupply",name:e.add_required_materials},s.supply[t]=c})),e("core/block-editor").getBlocks(t.clientId).forEach((function(e,t){var a;r={"@type":"HowToStep",url:e.attributes.ctaLink,name:e.attributes.infoBoxTitle,text:e.attributes.headingDesc,image:null===(a=e.attributes.iconImage)||void 0===a?void 0:a.url},s.step[t]=r})),{schemaJsonData:s,deviceType:n}})))(Jw),Qw=wp.blockEditor,Xw=Qw.RichText,e_=Qw.InnerBlocks,t_=wp.element.Fragment;a(396);var a_=wp.blockEditor,l_=a_.RichText,n_=a_.InnerBlocks,i_=[{attributes:fw,save:function(e){var t=e.attributes,a=e.className,l=t.block_id,n=t.headingTitle,i=t.headingDesc,o=t.headingTag,c=t.timeNeeded,r=t.time,s=t.timeIn,u=t.estCost,h=t.cost,d=t.currencyType,g=t.mainimage,m=t.toolsTitle,b=t.stepsTitle,v=t.materialTitle,p=t.tools,w=t.materials,y=t.schema,z=t.showTotaltime,x=t.showEstcost,O=t.showTools,C=t.showMaterials,j="",M="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(j=t.mainimage.url,M=t.mainimage.title);var E="";if(""!==j){var H=t.mainimage.sizes,k=t.imgSize;E=void 0!==H&&void 0!==H[k]?H[k].url:j}var S="";return g&&g.url&&(S=Object(f.createElement)("img",{className:"uagb-howto__source-image",src:E,title:M})),Object(f.createElement)("div",{className:_()(a,"uagb-block-".concat(l))},Object(f.createElement)("script",{type:"application/ld+json"},y),Object(f.createElement)("div",{className:"uagb-how-to-main-wrap"},Object(f.createElement)("div",{className:"uagb-howto__wrap"},Object(f.createElement)(l_.Content,{value:n,tagName:o,className:"uagb-howto-heading-text"}),Object(f.createElement)(l_.Content,{value:i,tagName:"p",className:"uagb-howto-desc-text"}),g.url&&Object(f.createElement)("div",{className:"uagb-howto__source-wrap"},S),z&&Object(f.createElement)("span",{className:"uagb-howto__time-wrap"},Object(f.createElement)(l_.Content,{value:c,tagName:"h4",className:"uagb-howto-timeNeeded-text"}),Object(f.createElement)(l_.Content,{value:r,tagName:"p",className:"uagb-howto-timeNeeded-value"}),Object(f.createElement)(l_.Content,{tagName:"p",value:s,className:"uagb-howto-timeINmin-text"})),x&&Object(f.createElement)("span",{className:"uagb-howto__cost-wrap"},Object(f.createElement)(l_.Content,{value:u,tagName:"h4",className:"uagb-howto-estcost-text"}),Object(f.createElement)(l_.Content,{value:h,tagName:"p",className:"uagb-howto-estcost-value"}),Object(f.createElement)(l_.Content,{tagName:"p",value:d,className:"uagb-howto-estcost-type"}))),O&&Object(f.createElement)("div",{className:"uagb-how-to-tools__wrap"},Object(f.createElement)(l_.Content,{value:m,tagName:"h4",className:"uagb-howto-req-tools-text"})),O&&Object(f.createElement)("div",{className:"uagb-tools__wrap"},p.map((function(e,t){return Object(f.createElement)("div",{className:_()("uagb-how-to-tools-".concat(t),"uagb-how-to-tools-child__wrapper"),key:t},Object(f.createElement)("div",{className:"uagb-tools"},Object(f.createElement)(l_.Content,{tagName:"div",value:e.add_required_tools,className:"uagb-tools__label"})))}))),C&&Object(f.createElement)("div",{className:"uagb-how-to-materials__wrap"},Object(f.createElement)(l_.Content,{value:v,tagName:"h4",className:"uagb-howto-req-materials-text"})),C&&Object(f.createElement)("div",{className:"uagb-how-to-materials"},w.map((function(e,t){return Object(f.createElement)("div",{className:_()("uagb-how-to-materials-".concat(t),"uagb-how-to-materials-child__wrapper")},Object(f.createElement)("div",{className:"uagb-materials"},Object(f.createElement)(l_.Content,{tagName:"div",value:e.add_required_materials,className:"uagb-materials__label"})))}))),Object(f.createElement)("div",{className:"uagb-how-to-steps__wrap"},Object(f.createElement)(l_.Content,{value:b,tagName:"h4",className:"uagb-howto-req-steps-text"}),Object(f.createElement)("div",{className:"uagb-howto-steps__wrap"},Object(f.createElement)(n_.Content,null)))))}}];(0,wp.blocks.registerBlockType)("uagb/how-to",{title:uagb_blocks_info.blocks["uagb/how-to"].title,description:uagb_blocks_info.blocks["uagb/how-to"].description,icon:n.how_to,category:uagb_blocks_info.category,keywords:[Object(M.__)("how to","ultimate-addons-for-gutenberg"),Object(M.__)("schema","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},example:{innerBlocks:[{name:"uagb/info-box",attributes:{infoBoxTitle:"Step 1",iconimgPosition:"left",source_type:"image",showPrefix:!1,seperatorStyle:"none",ctaType:"all",headingTag:"h4"}},{name:"uagb/info-box",attributes:{infoBoxTitle:"Step 2",iconimgPosition:"left",source_type:"image",showPrefix:!1,seperatorStyle:"none",ctaType:"all",headingTag:"h4"}},{name:"uagb/info-box",attributes:{infoBoxTitle:"Step 3",iconimgPosition:"left",source_type:"image",showPrefix:!1,seperatorStyle:"none",ctaType:"all",headingTag:"h4"}}]},attributes:fw,edit:$w,save:function(e){var t=e.attributes,a=e.className,l=t.block_id,n=t.headingTitle,i=t.headingDesc,o=t.headingTag,c=t.timeNeeded,r=t.time,s=(t.timeIn,t.estCost),u=t.cost,h=t.currencyType,d=t.mainimage,g=t.toolsTitle,m=t.stepsTitle,b=t.materialTitle,v=t.tools,p=t.materials,w=t.schema,y=t.showTotaltime,z=t.showEstcost,x=t.showTools,O=t.showMaterials,C=t.timeInMins,j=t.timeInHours,M=t.timeInDays,E=t.timeInMonths,H=t.timeInYears,k="",S="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(k=t.mainimage.url,S=t.mainimage.title);var L="";if(""!==k){var B=t.mainimage.sizes,V=t.imgSize;L=void 0!==B&&void 0!==B[V]?B[V].url:k}var T="";d&&d.url&&(T=Object(f.createElement)("img",{className:"uagb-howto__source-image",src:L,title:S}));var N=H>1?" Years ":" Year ",A=E>1?" Months ":" Month ",F=M>1?" Days ":" Day ",P=j>1?"Hours ":" Hour ",R=C||r,I=R>1?" Minutes ":" Minute ";return Object(f.createElement)("div",{className:_()(a,"uagb-block-".concat(l))},Object(f.createElement)("script",{type:"application/ld+json"},w),Object(f.createElement)("div",{className:"uagb-how-to-main-wrap"},Object(f.createElement)("div",{className:"uagb-howto__wrap"},Object(f.createElement)(Xw.Content,{value:n,tagName:o,className:"uagb-howto-heading-text"}),Object(f.createElement)(Xw.Content,{value:i,tagName:"p",className:"uagb-howto-desc-text"}),d.url&&Object(f.createElement)("div",{className:"uagb-howto__source-wrap"},T),y&&Object(f.createElement)("span",{className:"uagb-howto__time-wrap"},Object(f.createElement)(Xw.Content,{value:c,tagName:"h4",className:"uagb-howto-timeNeeded-text"}),Object(f.createElement)(t_,null,H&&Object(f.createElement)(t_,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"}," ",H),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"}," ",N)),E&&Object(f.createElement)(t_,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},E),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},A)),M&&Object(f.createElement)(t_,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},M),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},F)),j&&Object(f.createElement)(t_,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},j),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},P)),R&&Object(f.createElement)(t_,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},R),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},I)))),z&&Object(f.createElement)("span",{className:"uagb-howto__cost-wrap"},Object(f.createElement)(Xw.Content,{value:s,tagName:"h4",className:"uagb-howto-estcost-text"}),Object(f.createElement)(Xw.Content,{value:u,tagName:"p",className:"uagb-howto-estcost-value"}),Object(f.createElement)(Xw.Content,{tagName:"p",value:h,className:"uagb-howto-estcost-type"}))),x&&Object(f.createElement)("div",{className:"uagb-how-to-tools__wrap"},Object(f.createElement)(Xw.Content,{value:g,tagName:"h4",className:"uagb-howto-req-tools-text"})),x&&Object(f.createElement)("div",{className:"uagb-tools__wrap"},v.map((function(e,t){return Object(f.createElement)("div",{className:_()("uagb-how-to-tools-".concat(t),"uagb-how-to-tools-child__wrapper"),key:t},Object(f.createElement)("div",{className:"uagb-tools"},Object(f.createElement)(Xw.Content,{tagName:"div",value:e.add_required_tools,className:"uagb-tools__label"})))}))),O&&Object(f.createElement)("div",{className:"uagb-how-to-materials__wrap"},Object(f.createElement)(Xw.Content,{value:b,tagName:"h4",className:"uagb-howto-req-materials-text"})),O&&Object(f.createElement)("div",{className:"uagb-how-to-materials"},p.map((function(e,t){return Object(f.createElement)("div",{className:_()("uagb-how-to-materials-".concat(t),"uagb-how-to-materials-child__wrapper")},Object(f.createElement)("div",{className:"uagb-materials"},Object(f.createElement)(Xw.Content,{tagName:"div",value:e.add_required_materials,className:"uagb-materials__label"})))}))),Object(f.createElement)("div",{className:"uagb-how-to-steps__wrap"},Object(f.createElement)(Xw.Content,{value:m,tagName:"h4",className:"uagb-howto-req-steps-text"}),Object(f.createElement)("div",{className:"uagb-howto-steps__wrap"},Object(f.createElement)(e_.Content,null)))))},deprecated:i_});var o_={block_id:{type:"string"},layout:{type:"string",default:"accordion"},inactiveOtherItems:{type:"boolean",default:!0},expandFirstItem:{type:"boolean",default:!1},enableSchemaSupport:{type:"boolean",default:!1},align:{type:"string",default:"left"},enableSeparator:{type:"boolean",default:!1},rowsGap:{type:"number",default:10},columnsGap:{type:"number",default:10},boxBgColor:{type:"string",default:"#FFFFFF"},boxPaddingTypeMobile:{type:"string",default:"px"},boxPaddingTypeTablet:{type:"string",default:"px"},boxPaddingTypeDesktop:{type:"string",default:"px"},vBoxPaddingMobile:{type:"number",default:10},hBoxPaddingMobile:{type:"number",default:10},vBoxPaddingTablet:{type:"number",default:10},hBoxPaddingTablet:{type:"number",default:10},vBoxPaddingDesktop:{type:"number",default:10},hBoxPaddingDesktop:{type:"number",default:10},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:2},borderColor:{type:"string",default:"#D2D2D2"},questionTextColor:{type:"string",default:"#313131"},questionTextActiveColor:{type:"string",default:"#656565"},questionPaddingTypeDesktop:{type:"string",default:"px"},vquestionPaddingMobile:{type:"number",default:10},vquestionPaddingTablet:{type:"number",default:10},vquestionPaddingDesktop:{type:"number",default:10},hquestionPaddingMobile:{type:"number",default:10},hquestionPaddingTablet:{type:"number",default:10},hquestionPaddingDesktop:{type:"number",default:10},answerTextColor:{type:"string",default:"#313131"},answerPaddingTypeDesktop:{type:"string",default:"px"},vanswerPaddingMobile:{type:"number",default:10},vanswerPaddingTablet:{type:"number",default:10},vanswerPaddingDesktop:{type:"number",default:10},hanswerPaddingMobile:{type:"number",default:10},hanswerPaddingTablet:{type:"number",default:10},hanswerPaddingDesktop:{type:"number",default:10},iconColor:{type:"string"},iconActiveColor:{type:"string"},gapBtwIconQUestion:{type:"number",default:10},questionloadGoogleFonts:{type:"boolean",default:!1},answerloadGoogleFonts:{type:"boolean",default:!1},questionFontFamily:{type:"string",default:"Default"},questionFontWeight:{type:"string"},questionFontSubset:{type:"string"},questionFontSize:{type:"number"},questionFontSizeType:{type:"string",default:"px"},questionFontSizeTablet:{type:"number"},questionFontSizeMobile:{type:"number"},questionLineHeight:{type:"number"},questionLineHeightType:{type:"string",default:"em"},questionLineHeightTablet:{type:"number"},questionLineHeightMobile:{type:"number"},answerFontFamily:{type:"string",default:"Default"},answerFontWeight:{type:"string"},answerFontSubset:{type:"string"},answerFontSize:{type:"number"},answerFontSizeType:{type:"string",default:"px"},answerFontSizeTablet:{type:"number"},answerFontSizeMobile:{type:"number"},answerLineHeight:{type:"number"},answerLineHeightType:{type:"string",default:"em"},answerLineHeightTablet:{type:"number"},answerLineHeightMobile:{type:"number"},icon:{type:"string",default:"fas fa-plus"},iconActive:{type:"string",default:"fas fa-minus"},iconAlign:{type:"string",default:"row"},iconSize:{type:"number",default:12},iconSizeTablet:{type:"number",default:12},iconSizeMobile:{type:"number",default:12},iconSizeType:{type:"string",default:"px"},columns:{type:"number",default:2},tcolumns:{type:"number",default:2},mcolumns:{type:"number",default:1},schema:{type:"string",default:""},enableToggle:{type:"boolean",default:!0},equalHeight:{type:"boolean",default:!0},questionLeftPaddingTablet:{type:"number",default:10},questionBottomPaddingTablet:{type:"number",default:10},questionLeftPaddingDesktop:{type:"number",default:10},questionBottomPaddingDesktop:{type:"number",default:10},questionLeftPaddingMobile:{type:"number",default:10},questionBottomPaddingMobile:{type:"number",default:10},headingTag:{type:"html",selector:"span,p,h1,h2,h3,h4,h5,h6",default:"span"}};var c_=wp.compose.compose,r_=wp.data,s_=r_.select,u_=r_.withSelect,h_=wp.element,d_=h_.Component,g_=h_.Fragment,m_=wp.blockEditor,b_=m_.ColorPalette,v_=m_.InspectorControls,p_=m_.InnerBlocks,f_=wp.components,w_=f_.PanelBody,y_=f_.SelectControl,z_=f_.RangeControl,x_=f_.TabPanel,O_=f_.ButtonGroup,C_=f_.Button,j_=f_.Dashicon,M_=f_.ToggleControl,E_=["uagb/faq-child"],H_=[],k_=Object.keys(Ho),S_=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onchangeIcon=e.onchangeIcon.bind(h()(e)),e.onchangeActiveIcon=e.onchangeActiveIcon.bind(h()(e)),e.onchangeLayout=e.onchangeLayout.bind(h()(e)),e.onchangeTag=e.onchangeTag.bind(h()(e)),e}return s()(i,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=t.questionBottomPaddingDesktop,n=t.vquestionPaddingDesktop,i=t.questionLeftPaddingDesktop,o=t.hquestionPaddingDesktop,c=t.questionBottomPaddingTablet,r=t.vquestionPaddingTablet,s=t.questionLeftPaddingTablet,u=t.hquestionPaddingTablet,h=t.questionBottomPaddingMobile,d=t.vquestionPaddingMobile,g=t.questionLeftPaddingMobile,m=t.hquestionPaddingMobile;a({block_id:this.props.clientId.substr(0,8)}),a({schema:JSON.stringify(this.props.schemaJsonData)});var b=document.createElement("style");b.setAttribute("id","uagb-style-faq-"+this.props.clientId.substr(0,8)),document.head.appendChild(b);for(var v=1;v<=2;v++)H_.push({question:"What is FAQ?",answer:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."});10===l&&10!==n&&a({questionBottomPaddingDesktop:n}),10===i&&10!==o&&a({questionLeftPaddingDesktop:o}),10===c&&10!==r&&a({questionBottomPaddingTablet:r}),10===s&&10!==u&&a({questionLeftPaddingTablet:u}),10===h&&10!==d&&a({questionBottomPaddingMobile:d}),10===g&&10!==m&&a({questionLeftPaddingMobile:m})}},{key:"componentDidUpdate",value:function(e,t){var a=this;JSON.stringify(this.props.schemaJsonData)!==JSON.stringify(e.schemaJsonData)&&this.props.setAttributes({schema:JSON.stringify(this.props.schemaJsonData)});var l=document.getElementById("uagb-style-faq-"+this.props.clientId.substr(0,8));null!=l&&(l.innerHTML=function(e){var t=e.attributes,a=t.layout,l=t.inactiveOtherItems,n=t.expandFirstItem,i=t.rowsGap,o=t.columnsGap,c=t.align,r=t.enableSeparator,s=t.boxBgColor,u=t.borderStyle,h=t.borderWidth,d=t.borderRadius,g=t.borderColor,m=t.questionTextColor,b=t.questionTextActiveColor,v=t.questionPaddingTypeDesktop,p=t.vquestionPaddingMobile,f=t.vquestionPaddingTablet,w=t.vquestionPaddingDesktop,_=t.hquestionPaddingMobile,x=t.hquestionPaddingTablet,O=t.hquestionPaddingDesktop,C=t.answerTextColor,j=t.answerPaddingTypeDesktop,M=t.vanswerPaddingMobile,E=t.vanswerPaddingTablet,H=t.vanswerPaddingDesktop,k=t.hanswerPaddingMobile,S=t.hanswerPaddingTablet,L=t.hanswerPaddingDesktop,B=t.iconColor,V=t.iconActiveColor,T=t.gapBtwIconQUestion,N=t.questionFontFamily,A=t.questionFontWeight,F=t.questionFontSizeType,P=t.questionFontSize,R=t.questionFontSizeMobile,I=t.questionFontSizeTablet,D=t.questionLineHeightType,q=t.questionLineHeight,W=t.questionLineHeightMobile,G=t.questionLineHeightTablet,Z=t.answerFontFamily,U=t.answerFontWeight,Y=t.answerFontSizeType,K=t.answerFontSize,J=t.answerFontSizeMobile,$=t.answerFontSizeTablet,Q=t.answerLineHeightType,X=t.answerLineHeight,ee=t.answerLineHeightMobile,te=t.answerLineHeightTablet,ae=t.iconAlign,le=t.iconSize,ne=t.iconSizeType,ie=t.iconSizeMobile,oe=t.iconSizeTablet,ce=t.columns,re=t.tcolumns,se=t.mcolumns,ue=t.questionLeftPaddingTablet,he=t.questionBottomPaddingTablet,de=t.questionLeftPaddingDesktop,ge=t.questionBottomPaddingDesktop,me=t.questionLeftPaddingMobile,be=t.questionBottomPaddingMobile,ve={},pe={},fe={},we=B,_e=V;void 0!==B&&""!=B||(we=m),void 0!==V&&""!=V||(_e=b),ve={" .uagb-icon svg":{width:z(le,ne),height:z(le,ne),"font-size":z(le,ne),fill:we}," .uagb-icon-active svg":{width:z(le,ne),height:z(le,ne),"font-size":z(le,ne),fill:_e}," .uagb-faq-child__outer-wrap":{"margin-bottom":z(i,"px")},".uagb-faq-layout-grid .block-editor-inner-blocks .block-editor-block-list__layout":{"grid-column-gap":z(o,"px"),"grid-row-gap":z(i,"px")}," .uagb-faq-item":{"background-color":s,"border-style":u,"border-width":z(h,"px"),"border-radius":z(d,"px"),"border-color":g}," .uagb-faq-item .uagb-question":{color:m}," .uagb-faq-item.uagb-faq-item-active .uagb-question":{color:b}," .uagb-faq-item:hover .uagb-question":{color:b}," .uagb-faq-questions-button":{"padding-top":z(w,v),"padding-bottom":z(ge,v),"padding-right":z(O,v),"padding-left":z(de,v)}," .uagb-faq-content span":{"margin-top":z(H,j),"margin-bottom":z(H,j),"margin-right":z(L,j),"margin-left":z(L,j)},".uagb-faq-icon-row .uagb-faq-item .uagb-faq-icon-wrap":{"margin-right":z(T,"px")},".uagb-faq-icon-row-reverse .uagb-faq-item .uagb-faq-icon-wrap":{"margin-left":z(T,"px")}," .uagb-faq-item:hover .uagb-icon svg":{fill:_e}," .uagb-faq-item .uagb-faq-questions-button.uagb-faq-questions":{"flex-direction":ae}," .uagb-faq-questions-button .uagb-question":{"font-size":z(P,F),"line-height":z(q,D),"font-family":N,"font-weight":A}," .uagb-faq-item .uagb-faq-content p":{"font-size":z(K,Y),"line-height":z(X,Q),"font-family":Z,"font-weight":U,color:C}},pe={" .uagb-faq-questions-button":{"padding-top":z(f,v),"padding-bottom":z(he,v),"padding-right":z(x,v),"padding-left":z(ue,v)}," .uagb-faq-content span":{"margin-top":z(E,j),"margin-bottom":z(E,j),"margin-right":z(S,j),"margin-left":z(S,j)}," .uagb-faq-questions-button .uagb-question":{"font-size":z(I,F),"line-height":z(G,D)}," .uagb-faq-item .uagb-faq-content p":{"font-size":z($,Y),"line-height":z(te,Q)}," .uagb-icon svg":{width:z(oe,ne),height:z(oe,ne),"font-size":z(oe,ne)}," .uagb-icon-active svg":{width:z(oe,ne),height:z(oe,ne),"font-size":z(oe,ne)}},fe={" .uagb-faq-questions-button":{"padding-top":z(p,v),"padding-bottom":z(be,v),"padding-right":z(_,v),"padding-left":z(me,v)}," .uagb-faq-content span":{"margin-top":z(M,j),"margin-bottom":z(M,j),"margin-right":z(k,j),"margin-left":z(k,j)}," .uagb-faq-questions-button .uagb-question":{"font-size":z(R,F),"line-height":z(W,D)}," .uagb-faq-item .uagb-faq-content p":{"font-size":z(J,Y),"line-height":z(ee,Q)}," .uagb-icon svg":{width:z(ie,ne),height:z(ie,ne),"font-size":z(ie,ne)}," .uagb-icon-active svg":{width:z(ie,ne),height:z(ie,ne),"font-size":z(ie,ne)}},"accordion"===a&&!0===l&&(ve[" .block-editor-block-list__layout .uagb-faq-child__outer-wrap .uagb-faq-content "]={display:"none"}),"accordion"===a&&!1===l&&(ve[" .block-editor-inner-blocks .uagb-faq-child__outer-wrap .uagb-faq-item .uagb-faq-questions-button .uagb-icon-active"]={display:"inline-block"},ve[" .block-editor-inner-blocks .uagb-faq-child__outer-wrap .uagb-faq-item .uagb-faq-questions-button .uagb-icon"]={display:"none"}),"accordion"===a&&!0===n&&(ve[" .block-editor-block-list__layout > div:first-child > .uagb-faq-child__outer-wrap .uagb-faq-content "]={display:"block"},ve[" .block-editor-block-list__layout > div:first-child > .uagb-faq-child__outer-wrap .uagb-faq-item .uagb-faq-questions-button .uagb-icon-active "]={display:"inline-block"},ve[" .block-editor-block-list__layout > div:first-child > .uagb-faq-child__outer-wrap .uagb-faq-item .uagb-faq-questions-button .uagb-icon "]={display:"none"}),!0===r&&(ve[".uagb-faq__outer-wrap .uagb-faq-child__outer-wrap .uagb-faq-content "]={"border-style":"solid","border-top-color":g,"border-top-width":z(h,"px")}),"grid"===a&&(ve[" .block-editor-block-list__layout .uagb-faq-child__outer-wrap "]={"text-align":c},ve[".uagb-faq-layout-grid .block-editor-inner-blocks > .block-editor-block-list__layout "]={"grid-template-columns":"repeat("+ce+", 1fr)"},pe[".uagb-faq-layout-grid .block-editor-inner-blocks > .block-editor-block-list__layout "]={"grid-template-columns":"repeat("+re+", 1fr)"},fe[".uagb-faq-layout-grid .block-editor-inner-blocks > .block-editor-block-list__layout "]={"grid-template-columns":"repeat("+se+", 1fr)"});var ye="",ze=".uagb-block-".concat(e.clientId.substr(0,8));return ye=y(ve,ze),(ye+=y(pe,"".concat(ze,".uagb-editor-preview-mode-tablet")))+y(fe,"".concat(ze,".uagb-editor-preview-mode-mobile"))}(this.props)),s_("core/block-editor").getBlocks(this.props.clientId).forEach((function(e,t){e.attributes.headingTag=a.props.attributes.headingTag}))}},{key:"onchangeIcon",value:function(e){var t=this.props.setAttributes;s_("core/block-editor").getBlocks(this.props.clientId).forEach((function(t,a){t.attributes.icon=e})),t({icon:e})}},{key:"onchangeActiveIcon",value:function(e){var t=this.props.setAttributes;s_("core/block-editor").getBlocks(this.props.clientId).forEach((function(t,a){t.attributes.iconActive=e})),t({iconActive:e})}},{key:"onchangeLayout",value:function(e){var t=this.props.setAttributes;s_("core/block-editor").getBlocks(this.props.clientId).forEach((function(t,a){t.attributes.layout=e})),t({layout:e})}},{key:"onchangeTag",value:function(e){var t=this.props.setAttributes;s_("core/block-editor").getBlocks(this.props.clientId).forEach((function(t,a){t.attributes.headingTag=e})),t({headingTag:e})}},{key:"render",value:function(){var e,t,a=this,l=this.props,i=l.attributes,o=l.setAttributes,c=l.deviceType,r=i.layout,s=i.inactiveOtherItems,u=i.expandFirstItem,h=i.enableSchemaSupport,d=i.rowsGap,g=i.columnsGap,m=i.align,b=i.enableSeparator,v=i.boxBgColor,p=i.borderStyle,w=i.borderWidth,y=i.borderRadius,z=i.borderColor,x=i.questionTextColor,O=i.questionTextActiveColor,C=i.questionPaddingTypeDesktop,j=i.answerTextColor,E=i.answerPaddingTypeDesktop,H=i.vanswerPaddingMobile,k=i.vanswerPaddingTablet,S=i.vanswerPaddingDesktop,L=i.hanswerPaddingMobile,B=i.hanswerPaddingTablet,V=i.hanswerPaddingDesktop,T=i.iconColor,N=i.iconActiveColor,A=i.gapBtwIconQUestion,F=i.questionloadGoogleFonts,P=i.questionFontFamily,R=i.questionFontWeight,I=i.questionFontSubset,D=i.questionFontSizeType,q=i.questionFontSize,W=i.questionFontSizeMobile,G=i.questionFontSizeTablet,Z=i.questionLineHeightType,U=i.questionLineHeight,Y=i.questionLineHeightMobile,K=i.questionLineHeightTablet,J=i.answerloadGoogleFonts,$=i.answerFontFamily,Q=i.answerFontWeight,X=i.answerFontSubset,ee=i.answerFontSizeType,te=i.answerFontSize,ae=i.answerFontSizeMobile,le=i.answerFontSizeTablet,ne=i.answerLineHeightType,ie=i.answerLineHeight,oe=i.answerLineHeightMobile,ce=i.answerLineHeightTablet,re=i.icon,se=i.iconActive,ue=i.iconAlign,he=i.iconSizeType,de=i.iconSizeMobile,ge=i.iconSizeTablet,me=i.iconSize,be=i.columns,ve=i.tcolumns,pe=i.mcolumns,fe=i.enableToggle,we=i.equalHeight,_e=i.questionLeftPaddingTablet,ye=i.hquestionPaddingTablet,ze=i.vquestionPaddingTablet,xe=i.questionBottomPaddingTablet,Oe=i.questionLeftPaddingDesktop,Ce=i.hquestionPaddingDesktop,je=i.vquestionPaddingDesktop,Me=i.questionBottomPaddingDesktop,Ee=i.questionLeftPaddingMobile,He=i.hquestionPaddingMobile,ke=i.vquestionPaddingMobile,Se=i.questionBottomPaddingMobile,Le=i.headingTag,Be=no()((function(e,t){return ao()(e,(function(e){return["uagb/faq-child",t[e]]}))})),Ve=we?"uagb-faq-equal-height":"";if(1==F){var Te={google:{families:[P+(R?":"+R:"")]}};e=Object(f.createElement)(ha,{config:Te})}if(1==J){var Ne={google:{families:[$+(Q?":"+Q:"")]}};t=Object(f.createElement)(ha,{config:Ne})}return Object(f.createElement)(g_,null,Object(f.createElement)(v_,null,Object(f.createElement)(w_,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(y_,{label:Object(M.__)("Layout","ultimate-addons-for-gutenberg"),value:r,options:[{value:"accordion",label:Object(M.__)("Accordion","ultimate-addons-for-gutenberg")},{value:"grid",label:Object(M.__)("Grid","ultimate-addons-for-gutenberg")}],onChange:function(e){return a.onchangeLayout(e)}}),"accordion"===r&&Object(f.createElement)(g_,null,Object(f.createElement)(M_,{label:Object(M.__)("Collapse other items","ultimate-addons-for-gutenberg"),checked:s,onChange:function(e){return o({inactiveOtherItems:!s})}}),!0===s&&Object(f.createElement)(M_,{label:Object(M.__)("Expand First Item","ultimate-addons-for-gutenberg"),checked:u,onChange:function(e){return o({expandFirstItem:!u})}}),Object(f.createElement)(M_,{label:Object(M.__)("Enable Toggle","ultimate-addons-for-gutenberg"),checked:fe,onChange:function(e){return o({enableToggle:!fe})}})),Object(f.createElement)(M_,{label:Object(M.__)("Enable Schema Support","ultimate-addons-for-gutenberg"),checked:h,onChange:function(e){return o({enableSchemaSupport:!h})}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),"grid"===r&&Object(f.createElement)(x_,{className:"uagb-size-type-field-tabs uagb-without-size-type",activeClass:"active-tab",tabs:[{name:"desktop",title:Object(f.createElement)(j_,{icon:"desktop"}),className:"uagb-desktop-tab uagb-responsive-tabs"},{name:"tablet",title:Object(f.createElement)(j_,{icon:"tablet"}),className:"uagb-tablet-tab uagb-responsive-tabs"},{name:"mobile",title:Object(f.createElement)(j_,{icon:"smartphone"}),className:"uagb-mobile-tab uagb-responsive-tabs"}]},(function(e){var t;return t="mobile"===e.name?Object(f.createElement)(z_,{label:Object(M.__)("Mobile Columns","ultimate-addons-for-gutenberg"),value:pe,onChange:function(e){return o({mcolumns:e})},min:1,max:2}):"tablet"===e.name?Object(f.createElement)(z_,{label:Object(M.__)("Tab Columns","ultimate-addons-for-gutenberg"),value:ve,onChange:function(e){return o({tcolumns:e})},min:1,max:4}):Object(f.createElement)(z_,{label:Object(M.__)("Desktop Columns","ultimate-addons-for-gutenberg"),value:be,onChange:function(e){return o({columns:e})},min:1,max:6}),Object(f.createElement)("div",null,t)})),"grid"===r&&Object(f.createElement)(g_,null,Object(f.createElement)("h2",null," ",Object(M.__)("Alignment","ultimate-addons-for-gutenberg")),Object(f.createElement)(C_,{key:"left",icon:"editor-alignleft",label:"Left",onClick:function(){return o({align:"left"})},"aria-pressed":"left"===m,isPrimary:"left"===m}),Object(f.createElement)(C_,{key:"center",icon:"editor-aligncenter",label:"Right",onClick:function(){return o({align:"center"})},"aria-pressed":"center"===m,isPrimary:"center"===m}),Object(f.createElement)(C_,{key:"right",icon:"editor-alignright",label:"Right",onClick:function(){return o({align:"right"})},"aria-pressed":"right"===m,isPrimary:"right"===m})),"accordion"===r&&Object(f.createElement)(g_,null,Object(f.createElement)("h2",null," ",Object(M.__)("Icon","ultimate-addons-for-gutenberg")," "),Object(f.createElement)("p",{className:"components-base-control__label"},Object(M.__)("Expand","ultimate-addons-for-gutenberg")),Object(f.createElement)(So.a,{icons:k_,renderFunc:Lo,theme:"default",value:re,onChange:function(e){return a.onchangeIcon(e)},isMulti:!1,noSelectedPlaceholder:Object(M.__)("Select Icon","ultimate-addons-for-gutenberg")}),Object(f.createElement)("p",{className:"components-base-control__label"},Object(M.__)("Collapse","ultimate-addons-for-gutenberg")),Object(f.createElement)(So.a,{icons:k_,renderFunc:Lo,theme:"default",value:se,onChange:function(e){return a.onchangeActiveIcon(e)},isMulti:!1,noSelectedPlaceholder:Object(M.__)("Select Icon","ultimate-addons-for-gutenberg")}),Object(f.createElement)("h2",null," ",Object(M.__)("Icon Alignment","ultimate-addons-for-gutenberg")),Object(f.createElement)(C_,{key:"row",icon:"editor-alignleft",label:"Left",onClick:function(){return o({iconAlign:"row"})},"aria-pressed":"row"===ue,isPrimary:"row"===ue}),Object(f.createElement)(C_,{key:"row-reverse",icon:"editor-alignright",label:"Right",onClick:function(){return o({iconAlign:"row-reverse"})},"aria-pressed":"row-reverse"===ue,isPrimary:"row-reverse"===ue}))),Object(f.createElement)(w_,{title:Object(M.__)("Style","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:v}}))),Object(f.createElement)(b_,{value:v,onChange:function(e){return o({boxBgColor:e})},allowReset:!0}),Object(f.createElement)(z_,{label:Object(M.__)("Rows Gap (px)","ultimate-addons-for-gutenberg"),value:d,onChange:function(e){return o({rowsGap:e})},min:0,max:50}),"grid"===r&&Object(f.createElement)(g_,null,Object(f.createElement)(z_,{label:Object(M.__)("Columns Gap (px)","ultimate-addons-for-gutenberg"),value:g,onChange:function(e){return o({columnsGap:e})},min:0,max:50}),Object(f.createElement)(M_,{label:Object(M.__)("Equal Height","ultimate-addons-for-gutenberg"),checked:we,onChange:function(e){return o({equalHeight:!we})}})),Object(f.createElement)(M_,{label:Object(M.__)("Enable Separator","ultimate-addons-for-gutenberg"),checked:b,onChange:function(e){return o({enableSeparator:!b})}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Border","ultimate-addons-for-gutenberg")),Object(f.createElement)(y_,{label:Object(M.__)("Style","ultimate-addons-for-gutenberg"),value:p,options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")}],onChange:function(e){o({borderStyle:e})}}),"none"!==p&&Object(f.createElement)(z_,{label:Object(M.__)("Thickness (px)","ultimate-addons-for-gutenberg"),value:w,onChange:function(e){o({borderWidth:e})},min:0,max:20}),"none"!==p&&Object(f.createElement)(z_,{label:Object(M.__)("Rounded Corners (px)","ultimate-addons-for-gutenberg"),value:y,onChange:function(e){o({borderRadius:e})},min:0,max:50}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:z}}))),Object(f.createElement)(b_,{value:z,onChange:function(e){return o({borderColor:e})},allowReset:!0}),"accordion"===r&&Object(f.createElement)(g_,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Icon","ultimate-addons-for-gutenberg")),Object(f.createElement)(Ga,null),"Desktop"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===he,"aria-pressed":"px"===he,onClick:function(){return o({iconSizeType:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===he,"aria-pressed":"%"===he,onClick:function(){return o({iconSizeType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Size")),Object(f.createElement)(z_,{value:me,onChange:function(e){return o({iconSize:e})},min:0,max:100,allowReset:!0})),"Tablet"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===he,"aria-pressed":"px"===he,onClick:function(){return o({iconSizeType:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===he,"aria-pressed":"%"===he,onClick:function(){return o({iconSizeType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Size")),Object(f.createElement)(z_,{value:ge,onChange:function(e){return o({iconSizeTablet:e})},min:0,max:100,allowReset:!0})),"Mobile"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===he,"aria-pressed":"px"===he,onClick:function(){return o({iconSizeType:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===he,"aria-pressed":"%"===he,onClick:function(){return o({iconSizeType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Size")),Object(f.createElement)(z_,{value:de,onChange:function(e){return o({iconSizeMobile:e})},min:0,max:100,allowReset:!0})),Object(f.createElement)(z_,{label:Object(M.__)("Gap between Icon and Question","ultimate-addons-for-gutenberg"),value:A,onChange:function(e){return o({gapBtwIconQUestion:e})},min:0,max:100}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Expand Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:T}}))),Object(f.createElement)(b_,{value:T,onChange:function(e){return o({iconColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Collapse Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:N}}))),Object(f.createElement)(b_,{value:N,onChange:function(e){return o({iconActiveColor:e})},allowReset:!0}))),Object(f.createElement)(w_,{title:Object(M.__)("Question","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)(y_,{label:Object(M.__)("Question Tag","ultimate-addons-for-gutenberg"),value:Le,onChange:function(e){return a.onchangeTag(e)},options:[{value:"span",label:Object(M.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(M.__)("P","ultimate-addons-for-gutenberg")},{value:"h1",label:Object(M.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(M.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(M.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(M.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(M.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(M.__)("H6","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:F,label:"questionloadGoogleFonts"},fontFamily:{value:P,label:"questionFontFamily"},fontWeight:{value:R,label:"questionFontWeight"},fontSubset:{value:I,label:"questionFontSubset"},fontSizeType:{value:D,label:"questionFontSizeType"},fontSize:{value:q,label:"questionFontSize"},fontSizeMobile:{value:W,label:"questionFontSizeMobile"},fontSizeTablet:{value:G,label:"questionFontSizeTablet"},lineHeightType:{value:Z,label:"questionLineHeightType"},lineHeight:{value:U,label:"questionLineHeight"},lineHeightMobile:{value:Y,label:"questionLineHeightMobile"},lineHeightTablet:{value:K,label:"questionLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:x}}))),Object(f.createElement)(b_,{value:x,onChange:function(e){return o({questionTextColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Active/Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:O}}))),Object(f.createElement)(b_,{value:O,onChange:function(e){return o({questionTextActiveColor:e})},allowReset:!0}),Object(f.createElement)(Ga,null),"Desktop"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===C,"aria-pressed":"px"===C,onClick:function(){return o({questionPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===C,"aria-pressed":"%"===C,onClick:function(){return o({questionPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding")),Object(f.createElement)(z_,{label:n.left_margin,className:"uagb-margin-control",value:Oe,onChange:function(e){return o({questionLeftPaddingDesktop:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.right_margin,className:"uagb-margin-control",value:Ce,onChange:function(e){return o({hquestionPaddingDesktop:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.top_margin,className:"uagb-margin-control",value:je,onChange:function(e){return o({vquestionPaddingDesktop:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.bottom_margin,className:"uagb-margin-control",value:Me,onChange:function(e){return o({questionBottomPaddingDesktop:e})},min:0,max:50,allowReset:!0})),"Tablet"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===C,"aria-pressed":"px"===C,onClick:function(){return o({questionPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===C,"aria-pressed":"%"===C,onClick:function(){return o({questionPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(z_,{label:n.left_margin,className:"uagb-margin-control",value:_e,onChange:function(e){return o({questionLeftPaddingTablet:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.right_margin,className:"uagb-margin-control",value:ye,onChange:function(e){return o({hquestionPaddingTablet:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.top_margin,className:"uagb-margin-control",value:ze,onChange:function(e){return o({vquestionPaddingTablet:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.bottom_margin,className:"uagb-margin-control",value:xe,onChange:function(e){return o({questionBottomPaddingTablet:e})},min:0,max:50,allowReset:!0})),"Mobile"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===C,"aria-pressed":"px"===C,onClick:function(){return o({questionPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===C,"aria-pressed":"%"===C,onClick:function(){return o({questionPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(z_,{label:n.left_margin,className:"uagb-margin-control",value:Ee,onChange:function(e){return o({questionLeftPaddingMobile:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.right_margin,className:"uagb-margin-control",value:He,onChange:function(e){return o({hquestionPaddingMobile:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.top_margin,className:"uagb-margin-control",value:ke,onChange:function(e){return o({vquestionPaddingMobile:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.bottom_margin,className:"uagb-margin-control",value:Se,onChange:function(e){return o({questionBottomPaddingMobile:e})},min:0,max:50,allowReset:!0}))),Object(f.createElement)(w_,{title:Object(M.__)("Answer","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:J,label:"answerloadGoogleFonts"},fontFamily:{value:$,label:"answerFontFamily"},fontWeight:{value:Q,label:"answerFontWeight"},fontSubset:{value:X,label:"answerFontSubset"},fontSizeType:{value:ee,label:"answerFontSizeType"},fontSize:{value:te,label:"answerFontSize"},fontSizeMobile:{value:ae,label:"answerFontSizeMobile"},fontSizeTablet:{value:le,label:"answerFontSizeTablet"},lineHeightType:{value:ne,label:"answerLineHeightType"},lineHeight:{value:ie,label:"answerLineHeight"},lineHeightMobile:{value:oe,label:"answerLineHeightMobile"},lineHeightTablet:{value:ce,label:"answerLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:j}}))),Object(f.createElement)(b_,{value:j,onChange:function(e){return o({answerTextColor:e})},allowReset:!0}),Object(f.createElement)(Ga,null),"Desktop"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===E,"aria-pressed":"px"===E,onClick:function(){return o({answerPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===E,"aria-pressed":"%"===E,onClick:function(){return o({answerPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(z_,{label:n.vertical_spacing,className:"uagb-margin-control",value:S,onChange:function(e){return o({vanswerPaddingDesktop:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(z_,{label:n.horizontal_spacing,className:"uagb-margin-control",value:V,onChange:function(e){return o({hanswerPaddingDesktop:e})},min:0,max:100,allowReset:!0})),"Tablet"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===E,"aria-pressed":"px"===E,onClick:function(){return o({answerPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===E,"aria-pressed":"%"===E,onClick:function(){return o({answerPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(z_,{label:n.vertical_spacing,className:"uagb-margin-control",value:k,onChange:function(e){return o({vanswerPaddingTablet:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(z_,{label:n.horizontal_spacing,className:"uagb-margin-control",value:B,onChange:function(e){return o({hanswerPaddingTablet:e})},min:0,max:100,allowReset:!0})),"Mobile"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===E,"aria-pressed":"px"===E,onClick:function(){return o({answerPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===E,"aria-pressed":"%"===E,onClick:function(){return o({answerPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(z_,{label:n.vertical_spacing,className:"uagb-margin-control",value:H,onChange:function(e){return o({vanswerPaddingMobile:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(z_,{label:n.horizontal_spacing,className:"uagb-margin-control",value:L,onChange:function(e){return o({hanswerPaddingMobile:e})},min:0,max:100,allowReset:!0})))),Object(f.createElement)("div",{className:_()("uagb-faq__outer-wrap","uagb-editor-preview-mode-".concat(c.toLowerCase()),"uagb-block-".concat(this.props.clientId.substr(0,8)),"uagb-faq-icon-".concat(this.props.attributes.iconAlign),"uagb-faq-layout-".concat(this.props.attributes.layout),"uagb-faq-expand-first-".concat(this.props.attributes.expandFirstItem),"uagb-faq-inactive-other-".concat(this.props.attributes.inactiveOtherItems),Ve),"data-faqtoggle":this.props.attributes.enableToggle,role:"tablist"},Object(f.createElement)(p_,{template:Be(2,H_),templateLock:!1,allowedBlocks:E_,__experimentalMoverDirection:"vertical"})),e,t)}}]),i}(d_),L_=c_(u_((function(e,t){var a=e("core/editor").getPermalink(),l=e("core/edit-post").__experimentalGetPreviewDeviceType,n=void 0===l?null:l,i=n?n():null,o={},c={"@context":"https://schema.org","@type":"FAQPage","@id":a,mainEntity:[]};return e("core/block-editor").getBlocks(t.clientId).forEach((function(e,t){o={"@type":"Question",name:e.attributes.question,acceptedAnswer:{"@type":"Answer",text:e.attributes.answer}},c.mainEntity[t]=o})),{deviceType:i,schemaJsonData:c}})))(S_),B_=wp.blockEditor.InnerBlocks;a(397),a(398);var V_=wp.blockEditor.InnerBlocks,T_=[{attributes:o_,save:function(e){var t=e.className,a=e.attributes,l=a.block_id,n=a.schema,i=a.enableSchemaSupport,o=a.equalHeight?"uagb-faq-equal-height":"";return Object(f.createElement)("div",{className:_()(t,"uagb-faq__outer-wrap","uagb-block-".concat(l),"uagb-faq-icon-".concat(e.attributes.iconAlign),"uagb-faq-layout-".concat(e.attributes.layout),"uagb-faq-expand-first-".concat(e.attributes.expandFirstItem),"uagb-faq-inactive-other-".concat(e.attributes.inactiveOtherItems),o),"data-faqtoggle":e.attributes.enableToggle},!0===i?Object(f.createElement)("script",{type:"application/ld+json"},n):"",Object(f.createElement)("div",{className:"uagb-faq__wrap uagb-buttons-layout-wrap"},Object(f.createElement)(V_.Content,null)))}}],N_=wp.hooks.addFilter,A_=wp.element.Fragment,F_=wp.data.withSelect,P_=wp.compose,R_=P_.compose,I_=P_.createHigherOrderComponent,D_=wp.blocks.registerBlockType,q_=R_(F_((function(e){return{selected:e("core/block-editor").getSelectedBlock()}}))),W_=I_((function(e){return q_((function(t){var a=O()({},t);return Object(f.createElement)(A_,null,Object(f.createElement)(e,a))}))}),"withFaq");D_("uagb/faq",{title:uagb_blocks_info.blocks["uagb/faq"].title,description:uagb_blocks_info.blocks["uagb/faq"].description,icon:n.faq,category:uagb_blocks_info.category,keywords:[Object(M.__)("faq","ultimate-addons-for-gutenberg"),Object(M.__)("schema","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg"),Object(M.__)("accordion","ultimate-addons-for-gutenberg")],example:{innerBlocks:[{name:"uagb/faq-child",innerBlocks:[{name:"uagb/faq-child",attributes:{question:"What is FAQ?",answer:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."}}]},{name:"uagb/faq-child",innerBlocks:[{name:"uagb/faq-child",attributes:{question:"What is FAQ?",answer:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."}}]}]},attributes:o_,deprecated:T_,edit:L_,supports:{anchor:!0},save:function(e){var t=e.className,a=e.attributes,l=a.block_id,n=a.schema,i=a.enableSchemaSupport,o=a.equalHeight?"uagb-faq-equal-height":"";return Object(f.createElement)("div",{className:_()(t,"uagb-faq__outer-wrap","uagb-block-".concat(l),"uagb-faq-icon-".concat(e.attributes.iconAlign),"uagb-faq-layout-".concat(e.attributes.layout),"uagb-faq-expand-first-".concat(e.attributes.expandFirstItem),"uagb-faq-inactive-other-".concat(e.attributes.inactiveOtherItems),o),"data-faqtoggle":e.attributes.enableToggle,role:"tablist"},!0===i?Object(f.createElement)("script",{type:"application/ld+json"},n):"",Object(f.createElement)("div",{className:"uagb-faq__wrap uagb-buttons-layout-wrap"},Object(f.createElement)(B_.Content,null)))}}),N_("editor.BlockEdit","uagb/faq",W_);var G_={block_id:{type:"string"},question:{type:"html",default:Object(M.__)("What is FAQ?","ultimate-addons-for-gutenberg")},answer:{type:"html",default:Object(M.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.","ultimate-addons-for-gutenberg")},icon:{type:"html",default:"fas fa-plus"},iconActive:{type:"html",default:"fas fa-minus"},layout:{type:"string",default:"accordion"},headingTag:{type:"html",selector:"span,p,h1,h2,h3,h4,h5,h6",default:"span"}};var Z_=wp.element,U_=Z_.Component,Y_=Z_.Fragment,K_=wp.blockEditor,J_=K_.InspectorControls,$_=K_.RichText,Q_=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){var e;return c()(this,n),(e=l.apply(this,arguments)).state={isFocused:"false"},e}return s()(n,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)})}},{key:"componentDidUpdate",value:function(e,t){!this.props.isSelected&&e.isSelected&&this.state.isFocused&&this.setState({isFocused:"false"}),this.props.isSelected&&!e.isSelected&&this.setState({isFocused:!0})}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=t.question,n=t.answer,i=t.icon,o=t.iconActive,c=t.layout,r=t.headingTag;return Object(f.createElement)(Y_,null,Object(f.createElement)(J_,null,(function(){return Object(f.createElement)("p",{className:"uagb-settings-notice"},Object(M.__)("For the styling options please select the Parent Block."))})),Object(f.createElement)("div",{className:_()("uagb-faq-child__outer-wrap","uagb-block-".concat(this.props.clientId.substr(0,8)),this.props.isSelected&&!1!==this.state.isFocused?"uagb-faq__active":"")},Object(f.createElement)("div",{className:"uagb-faq-child__wrapper"},Object(f.createElement)("div",{className:"uagb-faq-item",role:"tab",tabIndex:"0"},Object(f.createElement)("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===c&&Object(f.createElement)(Y_,null,Object(f.createElement)("span",{className:"uagb-icon uagb-faq-icon-wrap"},Lo(i)),Object(f.createElement)("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},Lo(o))),Object(f.createElement)($_,{tagName:"span"!=r?r:"div",placeholder:Object(M.__)("Question"),value:l,onChange:function(e){return a({question:e})},className:"uagb-question",multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"]})),Object(f.createElement)("div",{className:"uagb-faq-content"},Object(f.createElement)("span",null,Object(f.createElement)($_,{tagName:"p",placeholder:Object(M.__)("Answer"),value:n,onChange:function(e){return a({answer:e})},multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"]})))))))}}]),n}(U_),X_=wp.element.Fragment,ey=wp.blockEditor.RichText;a(399),a(400);var ty=wp.element.Fragment,ay=wp.blockEditor.RichText,ly=[{attributes:G_,save:function(e){var t=e.className,a=e.attributes,l=a.block_id,n=a.question,i=a.answer,o=a.icon,c=a.iconActive,r=a.layout;return Object(f.createElement)("div",{className:_()(t,"uagb-faq-child__outer-wrap","uagb-block-".concat(l))},Object(f.createElement)("div",{className:"uagb-faq-child__wrapper"},Object(f.createElement)("div",{className:"uagb-faq-item"},Object(f.createElement)("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===r&&Object(f.createElement)(ty,null,Object(f.createElement)("span",{className:"uagb-icon uagb-faq-icon-wrap"},Lo(o)),Object(f.createElement)("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},Lo(c))),Object(f.createElement)(ay.Content,{tagName:"span",value:n,className:"uagb-question"})),Object(f.createElement)("div",{className:"uagb-faq-content"},Object(f.createElement)("span",null,Object(f.createElement)(ay.Content,{tagName:"p",value:i}))))))}}];(0,wp.blocks.registerBlockType)("uagb/faq-child",{title:uagb_blocks_info.blocks["uagb/faq-child"].title,description:uagb_blocks_info.blocks["uagb/faq-child"].description,icon:n.faq,category:uagb_blocks_info.category,parent:["uagb/faq"],attributes:G_,edit:Q_,supports:{anchor:!0},save:function(e){var t=e.className,a=e.attributes,l=a.block_id,n=a.question,i=a.answer,o=a.icon,c=a.iconActive,r=a.layout,s=a.headingTag;return Object(f.createElement)("div",{className:_()(t,"uagb-faq-child__outer-wrap","uagb-block-".concat(l))},Object(f.createElement)("div",{className:"uagb-faq-child__wrapper"},Object(f.createElement)("div",{className:"uagb-faq-item",role:"tab",tabIndex:"0"},Object(f.createElement)("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===r&&Object(f.createElement)(X_,null,Object(f.createElement)("span",{className:"uagb-icon uagb-faq-icon-wrap"},Lo(o)),Object(f.createElement)("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},Lo(c))),Object(f.createElement)(ey.Content,{tagName:s,value:n,className:"uagb-question"})),Object(f.createElement)("div",{className:"uagb-faq-content"},Object(f.createElement)("span",null,Object(f.createElement)(ey.Content,{tagName:"p",value:i}))))))},deprecated:ly});var ny=wp.blockEditor,iy=ny.AlignmentToolbar,oy=ny.BlockControls,cy=ny.InspectorControls,ry=ny.RichText,sy=ny.ColorPalette,uy=wp.components,hy=uy.PanelBody,dy=uy.RangeControl,gy=uy.SelectControl,my=uy.ToggleControl,by=wp.element,vy=by.Component,py=by.Fragment,fy=Object.keys(Ho),wy=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).update_cookie_id=e.update_cookie_id.bind(h()(e)),e}return s()(i,[{key:"update_cookie_id",value:function(e){var t=(0,wp.data.select("core/editor").getCurrentPostId)().toString(),a=(new Date).getTime();this.props.setAttributes({c_id:t+"-"+a}),this.props.setAttributes({cookies:e})}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-inline-notice-style-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e){var t=document.getElementById("uagb-inline-notice-style-"+this.props.clientId.substr(0,8));null!=t&&(t.innerHTML=function(e){var t,a,l=e.attributes,n=l.block_id,i=l.textColor,o=l.titleColor,c=l.noticeColor,r=l.contentBgColor,s=l.noticeDismissColor,u=l.titleFontFamily,h=l.titleFontWeight,d=l.titleFontSizeType,g=l.titleLineHeightType,m=l.titleFontSize,b=l.titleFontSizeTablet,v=l.titleFontSizeMobile,p=l.titleLineHeight,f=l.titleLineHeightTablet,w=l.titleLineHeightMobile,_=l.descFontFamily,x=l.descFontWeight,O=l.descFontSize,C=l.descFontSizeType,j=l.descFontSizeTablet,M=l.descFontSizeMobile,E=l.descLineHeight,H=l.descLineHeightType,k=l.descLineHeightTablet,S=l.descLineHeightMobile,L=l.contentVrPadding,B=l.contentHrPadding,V=l.titleVrPadding,T=l.titleHrPadding,N=l.noticeDismiss,A=l.noticeAlignment,F=l.layout,P=l.highlightWidth;N?"left"===A||"center"===A?(a=T+13,t=T):(t=T+13,a=T):(t=T,a=T);var R,I,D={" .rich-text.block-editor-rich-text__editable.uagb-notice-title":{"font-size":z(m,d),"font-weight":h,"font-family":u,"line-height":z(p,g),color:o,"padding-left":z(t,"px"),"padding-right":z(a,"px"),"padding-top":z(V,"px"),"padding-bottom":z(V,"px")}," .rich-text.block-editor-rich-text__editable.uagb-notice-text":{"padding-left":z(B,"px"),"padding-right":z(B,"px"),"padding-top":z(L,"px"),"padding-bottom":z(L,"px")}," .rich-text.block-editor-rich-text__editable.uagb-notice-text p":{"font-size":z(O,C),"font-weight":x,"font-family":_,"line-height":z(E,H),color:i}," span.uagb-notice-dismiss":{fill:s}};"modern"==F?(D[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["background-color"]=c,D[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-top-right-radius"]="3px",D[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-top-left-radius"]="3px",D[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["background-color"]=r,D[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"].border="2px solid"+c,D[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-bottom-left-radius"]="3px",D[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-bottom-right-radius"]="3px"):"simple"==F&&(D[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["background-color"]=r,D[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-left"]=z(P,"px")+" solid "+c,D[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["background-color"]=r,D[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-left"]=z(P,"px")+" solid "+c),I={" .rich-text.block-editor-rich-text__editable.uagb-notice-title":{"font-size":z(v,d),"line-height":z(w,g)}," .rich-text.block-editor-rich-text__editable.uagb-notice-text p":{"font-size":z(M,C),"line-height":z(S,H)}},R={" .rich-text.block-editor-rich-text__editable.uagb-notice-title":{"font-size":z(b,d),"line-height":z(f,g)}," .rich-text.block-editor-rich-text__editable.uagb-notice-text p":{"font-size":z(j,C),"line-height":z(k,H)}};var q=".block-editor-page #wpwrap .uagb-block-".concat(n),W=y(D,q);return(W+=y(R,q))+y(I,q)}(this.props))}},{key:"render",value:function(){var e,t,a=this,l=this.props,i=l.attributes,o=i.block_id,c=i.icon,r=i.noticeTitle,s=i.noticeContent,u=i.noticeDismiss,h=i.cookies,d=i.close_cookie_days,g=i.textColor,m=i.titleColor,b=i.noticeColor,v=i.contentBgColor,p=i.noticeDismissColor,w=i.noticeAlignment,y=i.titleFontFamily,z=i.titleFontWeight,x=i.titleFontSubset,O=i.titleFontSizeType,C=i.titleLineHeightType,j=i.titleFontSize,E=i.titleFontSizeTablet,H=i.titleFontSizeMobile,k=i.titleLineHeight,S=i.titleLineHeightTablet,L=i.titleLineHeightMobile,B=i.descFontFamily,V=i.descFontWeight,T=i.descFontSubset,N=i.descFontSize,A=i.descFontSizeType,F=i.descFontSizeTablet,P=i.descFontSizeMobile,R=i.descLineHeight,I=i.descLineHeightType,D=i.descLineHeightTablet,q=i.descLineHeightMobile,W=i.titleLoadGoogleFonts,G=i.descLoadGoogleFonts,Z=i.contentVrPadding,U=i.contentHrPadding,Y=i.titleVrPadding,K=i.titleHrPadding,J=i.headingTag,$=i.layout,Q=i.highlightWidth,X=l.setAttributes,ee=l.className,te=l.attributes,ae=[{value:"",label:Object(M.__)("Allow Always","ultimate-addons-for-gutenberg")},{value:"uagb-dismissable",label:Object(M.__)("Allow to Dismiss","ultimate-addons-for-gutenberg")}];if(!0===W){var le={google:{families:[y+(z?":"+z:"")]}};e=Object(f.createElement)(ha,{config:le})}if(!0===G){var ne={google:{families:[B+(V?":"+V:"")]}};t=Object(f.createElement)(ha,{config:ne})}var ie="";return u&&(ie=Object(f.createElement)("span",{className:"uagb-notice-dismiss"},Lo(c))),Object(f.createElement)(py,null,Object(f.createElement)(oy,{key:"controls"},Object(f.createElement)(iy,{value:w,onChange:function(e){return X({noticeAlignment:e})}})),Object(f.createElement)(cy,null,Object(f.createElement)(hy,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},Object(f.createElement)(gy,{label:Object(M.__)("Layout","ultimate-addons-for-gutenberg"),value:$,onChange:function(e){return X({layout:e})},options:[{value:"modern",label:Object(M.__)("Modern","ultimate-addons-for-gutenberg")},{value:"simple",label:Object(M.__)("Default","ultimate-addons-for-gutenberg")}]}),"simple"==$&&Object(f.createElement)(dy,{label:Object(M.__)("Highlight width","ultimate-addons-for-gutenberg"),value:Q,onChange:function(e){return X({highlightWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Primary Heading","ultimate-addons-for-gutenberg")),Object(f.createElement)(gy,{label:Object(M.__)("Tag"),value:J,onChange:function(e){return X({headingTag:e})},options:[{value:"h1",label:Object(M.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(M.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(M.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(M.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(M.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(M.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(M.__)("span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(M.__)("p","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(gy,{label:Object(M.__)("Notice Display","ultimate-addons-for-gutenberg"),options:ae,value:u,onChange:function(e){return a.props.setAttributes({noticeDismiss:e})}}),u&&Object(f.createElement)(py,null,Object(f.createElement)("p",{className:"components-base-control__label"},Object(M.__)("Icon","ultimate-addons-for-gutenberg")),Object(f.createElement)(So.a,{icons:fy,renderFunc:Lo,theme:"default",value:c,onChange:function(e){return X({icon:e})},isMulti:!1,noSelectedPlaceholder:Object(M.__)("Select Icon","ultimate-addons-for-gutenberg")})),u&&Object(f.createElement)("hr",{className:"uagb-editor__separator"}),u&&Object(f.createElement)(my,{label:Object(M.__)("Enable Cookies","ultimate-addons-for-gutenberg"),checked:h,onChange:a.update_cookie_id}),h&&Object(f.createElement)(dy,{label:Object(M.__)("Show Closed Notice After (Days)","ultimate-addons-for-gutenberg"),value:d,onChange:function(e){return X({close_cookie_days:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Colors","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Title Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:m}}))),Object(f.createElement)(sy,{value:m,onChange:function(e){return X({titleColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Highlight Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:b}}))),Object(f.createElement)(sy,{value:b,onChange:function(e){return X({noticeColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Content Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:g}}))),Object(f.createElement)(sy,{value:g,onChange:function(e){return X({textColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Content Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:v}}))),Object(f.createElement)(sy,{value:v,onChange:function(e){return X({contentBgColor:e})},allowReset:!0}),u&&Object(f.createElement)("hr",{className:"uagb-editor__separator"}),u&&Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Dismiss Icon Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:p}}))),u&&Object(f.createElement)(sy,{value:p,onChange:function(e){return X({noticeDismissColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Typography","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Title","ultimate-addons-for-gutenberg"),attributes:te,setAttributes:X,loadGoogleFonts:{value:W,label:"titleLoadGoogleFonts"},fontFamily:{value:y,label:"titleFontFamily"},fontWeight:{value:z,label:"titleFontWeight"},fontSubset:{value:x,label:"titleFontSubset"},fontSizeType:{value:O,label:"titleFontSizeType"},fontSize:{value:j,label:"titleFontSize"},fontSizeMobile:{value:H,label:"titleFontSizeMobile"},fontSizeTablet:{value:E,label:"titleFontSizeTablet"},lineHeightType:{value:C,label:"titleLineHeightType"},lineHeight:{value:k,label:"titleLineHeight"},lineHeightMobile:{value:L,label:"titleLineHeightMobile"},lineHeightTablet:{value:S,label:"titleLineHeightTablet"}}),Object(f.createElement)(la,{label:Object(M.__)("Content","ultimate-addons-for-gutenberg"),attributes:te,setAttributes:X,loadGoogleFonts:{value:G,label:"descLoadGoogleFonts"},fontFamily:{value:B,label:"descFontFamily"},fontWeight:{value:V,label:"descFontWeight"},fontSubset:{value:T,label:"descFontSubset"},fontSizeType:{value:A,label:"descFontSizeType"},fontSize:{value:N,label:"descFontSize"},fontSizeMobile:{value:P,label:"descFontSizeMobile"},fontSizeTablet:{value:F,label:"descFontSizeTablet"},lineHeightType:{value:I,label:"descLineHeightType"},lineHeight:{value:R,label:"descLineHeight"},lineHeightMobile:{value:q,label:"descLineHeightMobile"},lineHeightTablet:{value:D,label:"descLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Title Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(dy,{label:n.vertical_spacing,className:"uagb-margin-control",value:Y,onChange:function(e){return X({titleVrPadding:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(dy,{label:n.horizontal_spacing,className:"uagb-margin-control",value:K,onChange:function(e){return X({titleHrPadding:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Content Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(dy,{label:n.vertical_spacing,className:"uagb-margin-control",value:Z,onChange:function(e){return X({contentVrPadding:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(dy,{label:n.horizontal_spacing,className:"uagb-margin-control",value:U,onChange:function(e){return X({contentHrPadding:e})},min:0,max:50,allowReset:!0}))),Object(f.createElement)("div",{className:_()(ee,"uagb-inline_notice__outer-wrap","".concat(u),"uagb-inline_notice__align-".concat(w),"uagb-block-".concat(o))},ie,Object(f.createElement)(ry,{tagName:J,placeholder:Object(M.__)("Notice Title","ultimate-addons-for-gutenberg"),keepPlaceholderOnFocus:!0,value:r,className:"uagb-notice-title",onChange:function(e){return X({noticeTitle:e})}}),Object(f.createElement)(ry,{tagName:"div",multiline:"p",placeholder:Object(M.__)("Add notice text...","ultimate-addons-for-gutenberg"),value:s,className:"uagb-notice-text",onChange:function(e){return X({noticeContent:e})}})),e,t)}}]),i}(vy),_y=wp.blockEditor.RichText;a(401),a(402),(0,wp.blocks.registerBlockType)("uagb/inline-notice",{title:uagb_blocks_info.blocks["uagb/inline-notice"].title,description:uagb_blocks_info.blocks["uagb/inline-notice"].description,icon:n.inline_notice,category:uagb_blocks_info.category,keywords:[Object(M.__)("inline notice","ultimate-addons-for-gutenberg"),Object(M.__)("notice","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:{block_id:{type:"string"},c_id:{type:"string",default:null},noticeTitle:{type:"string",source:"html",selector:".uagb-notice-title",default:"Notice Title"},headingTag:{type:"string",default:"h4"},noticeContent:{type:"string",default:""},noticeDismiss:{type:"string",default:""},cookies:{type:"boolean",default:!1},close_cookie_days:{type:"number",default:1},textColor:{type:"string",default:""},titleColor:{type:"string",default:""},noticeColor:{type:"string",default:"#FFD54F"},contentBgColor:{type:"string"},noticeDismissColor:{type:"string",default:""},icon:{type:"string",default:"fa fa-window-close"},noticeAlignment:{type:"string",default:"left"},titleFontFamily:{type:"string",default:"Default"},titleFontWeight:{type:"string"},titleFontSubset:{type:"string"},titleFontSizeType:{type:"string",default:"px"},titleLineHeightType:{type:"string",default:"em"},titleFontSize:{type:"number"},titleFontSizeTablet:{type:"number"},titleFontSizeMobile:{type:"number"},titleLineHeight:{type:"number"},titleLineHeightTablet:{type:"number"},titleLineHeightMobile:{type:"number"},descFontFamily:{type:"string",default:"Default"},descFontWeight:{type:"string"},descFontSubset:{type:"string"},descFontSize:{type:"number"},descFontSizeType:{type:"string",default:"px"},descFontSizeTablet:{type:"number"},descFontSizeMobile:{type:"number"},descLineHeight:{type:"number"},descLineHeightType:{type:"string",default:"em"},descLineHeightTablet:{type:"number"},descLineHeightMobile:{type:"number"},titleLoadGoogleFonts:{type:"boolean",default:!1},descLoadGoogleFonts:{type:"boolean",default:!1},contentVrPadding:{type:"number",default:15},contentHrPadding:{type:"number",default:15},titleVrPadding:{type:"number",default:15},titleHrPadding:{type:"number",default:15},layout:{type:"string",default:"modern"},highlightWidth:{type:"number",default:10}},example:{},edit:wy,save:function(e){var t=e.attributes,a=e.className,l=t.block_id,n=(t.c_id,t.noticeTitle),i=t.noticeContent,o=t.noticeAlignment,c=t.headingTag,r=t.icon,s=t.noticeDismiss,u=t.cookies,h=(t.close_cookie_days,"");s&&(h=Object(f.createElement)("span",{className:"uagb-notice-dismiss"},Lo(r)));var d="";return!0===u&&(d="uagb-notice__active"),Object(f.createElement)("div",{className:_()(a,"uagb-inline_notice__outer-wrap","".concat(s),"uagb-inline_notice__align-".concat(o),"uagb-block-".concat(l),"".concat(d))},h,Object(f.createElement)(_y.Content,{value:n,tagName:c,className:"uagb-notice-title"}),Object(f.createElement)(_y.Content,{value:i,tagName:"div",className:"uagb-notice-text"}))}}),a(403),a(404);var yy=wp.blockEditor.RichText;var zy=wp.element.Component,xy=wp.blockEditor,Oy=xy.InspectorControls,Cy=xy.ColorPalette,jy=xy.RichText,My=wp.components,Ey=My.PanelBody,Hy=My.SelectControl,ky=My.RangeControl,Sy=My.TextControl,Ly=(My.TabPanel,My.ButtonGroup),By=My.Button,Vy=(My.Dashicon,wp.data),Ty=(Vy.select,Vy.withSelect),Ny=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).formPreventDefault=e.formPreventDefault.bind(h()(e)),e.state={isFocused:"false"},e}return s()(i,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-style-wp-search-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e,t){!this.props.isSelected&&e.isSelected&&this.state.isFocused&&this.setState({isFocused:"false"}),this.props.isSelected&&!e.isSelected&&this.setState({isFocused:!0});var a=document.getElementById("uagb-style-wp-search-"+this.props.clientId.substr(0,8));null!=a&&void 0!==a&&(a.innerHTML=function(e){var t=e.attributes,a=t.block_id,l=t.layout,n=t.inputSize,i=t.textColor,o=t.inputBgColor,c=t.boxShadowColor,r=t.boxShadowHOffset,s=t.boxShadowVOffset,u=t.boxShadowBlur,h=t.boxShadowSpread,d=t.boxShadowPosition,g=t.borderStyle,m=t.borderWidth,b=t.borderRadius,v=t.borderColor,p=t.buttonBgColor,f=t.buttonBgHoverColor,w=t.buttonIconColor,_=t.buttonIconHoverColor,x=t.buttonWidth,O=t.buttonIconSize,C=t.iconColor,j=t.iconSize,M=t.inputFontFamily,E=t.inputFontWeight,H=t.inputFontSize,k=t.inputFontSizeType,S=t.inputFontSizeTablet,L=t.inputFontSizeMobile,B=t.inputLineHeight,V=t.inputLineHeightType,T=t.inputLineHeightTablet,N=t.inputLineHeightMobile,A=t.inputPaddingTypeDesktop,F=t.vinputPaddingMobile,P=t.vinputPaddingTablet,R=t.vinputPaddingDesktop,I=t.hinputPaddingMobile,D=t.hinputPaddingTablet,q=t.hinputPaddingDesktop,W=t.buttonFontFamily,G=t.buttonFontWeight,Z=t.buttonFontSize,U=t.buttonFontSizeType,Y=t.buttonFontSizeTablet,K=t.buttonFontSizeMobile,J=t.buttonLineHeight,$=t.buttonLineHeightType,Q=t.buttonLineHeightTablet,X=t.buttonLineHeightMobile,ee=t.buttonTextColor,te=t.buttonTextHoverColor,ae=t.inputSizeType,le=d;"outset"===d&&(le="");var ne,ie,oe={},ce=z(R,A),re=z(q,A),se=z(P,A),ue=z(D,A),he=z(F,A),de=z(I,A),ge=z(j,"px"),me=z(O,"px"),be={color:i,"background-color":o,"font-size":z(H,k),"line-height":z(B,V),"font-family":M,"font-weight":E,border:0,"border-radius":"0px",margin:0,outline:"unset","padding-top":ce,"padding-bottom":ce,"padding-right":re,"padding-left":re,transition:"all .5s"},ve={"border-style":g,"border-width":z(m,"px"),"border-color":v,outline:"unset","border-radius":z(b,"px"),"box-shadow":z(r,"px")+" "+z(s,"px")+" "+z(u,"px")+" "+z(h,"px")+" "+c+" "+le},pe=i;void 0!==C&&""!==C&&(pe=C),"px"===ae?ve["max-width"]=z(n,ae):ve.width=z(n,ae),oe={" .uagb-search-form__container .uagb-search-submit":{width:z(x,"px"),padding:0,border:0}," .uagb-search-form__container .uagb-search-form__input::placeholder":{color:i,opacity:.6}," .uagb-search-form__container .uagb-search-submit .uagb-wp-search-button-icon-wrap svg":{width:me,height:me,"font-size":me,fill:w}," .uagb-search-form__container .uagb-search-submit .uagb-wp-search-button-text":{"font-size":z(Z,U),"line-height":z(J,$),"font-family":W,"font-weight":G,color:ee}," .uagb-search-form__container .uagb-search-submit:hover .uagb-wp-search-button-text":{color:te}," .uagb-search-form__container .uagb-search-submit:hover .uagb-wp-search-button-icon-wrap svg":{fill:_},".uagb-layout-input .uagb-wp-search-icon-wrap svg":{width:ge,height:ge,"font-size":ge,fill:pe}},"input-button"!==l&&"input"!==l||(oe[" .uagb-search-form__container .uagb-search-form__input"]=be,oe[" .uagb-search-wrapper .uagb-search-form__container"]=ve,"inset"===d&&(oe[" .uagb-search-wrapper .uagb-search-form__input"]={"box-shadow":z(r,"px")+" "+z(s,"px")+" "+z(u,"px")+" "+z(h,"px")+" "+c+" "+le}),oe[" .uagb-search-form__container .uagb-wp-search-icon-wrap"]={"background-color":o,"padding-top":ce,"padding-bottom":ce,"padding-left":re}),oe[".uagb-layout-input-button .uagb-search-form__container .uagb-search-submit"]={"background-color":p},oe[".uagb-layout-input-button .uagb-search-form__container .uagb-search-submit:hover"]={"background-color":f},ie={" .uagb-search-wrapper .uagb-search-form__container .uagb-search-form__input":{"font-size":z(L,k),"line-height":z(N,V),"padding-top":he,"padding-bottom":he,"padding-right":de,"padding-left":de}," .uagb-search-form__container .uagb-wp-search-icon-wrap":{"padding-top":he,"padding-bottom":he,"padding-left":de}," .uagb-search-wrapper .uagb-search-form__container .uagb-search-submit .uagb-wp-search-button-text":{"font-size":z(K,U),"line-height":z(X,$)}},ne={" .uagb-search-wrapper .uagb-search-form__container .uagb-search-form__input":{"font-size":z(S,k),"line-height":z(T,V),"padding-top":se,"padding-bottom":se,"padding-right":ue,"padding-left":ue}," .uagb-search-form__container .uagb-wp-search-icon-wrap":{"padding-top":se,"padding-bottom":se,"padding-left":ue}," .uagb-search-wrapper .uagb-search-form__container .uagb-search-submit .uagb-wp-search-button-text":{"font-size":z(Y,U),"line-height":z(Q,$)}};var fe="",we=".uagb-block-".concat(a);return fe=y(oe,we),(fe+=y(ne,"".concat(we,".uagb-editor-preview-mode-tablet")))+y(ie,"".concat(we,".uagb-editor-preview-mode-mobile"))}(this.props))}},{key:"formPreventDefault",value:function(e){e.preventDefault()}},{key:"render",value:function(){var e,t,a=this.props,l=a.attributes,i=a.setAttributes,o=a.deviceType,c=l.block_id,r=l.layout,s=l.placeholder,u=l.inputSize,h=l.textColor,d=l.inputBgColor,g=l.boxShadowColor,m=l.boxShadowHOffset,b=l.boxShadowVOffset,v=l.boxShadowBlur,p=l.boxShadowSpread,w=l.boxShadowPosition,y=l.borderStyle,z=l.borderWidth,x=l.borderRadius,O=l.borderColor,C=l.buttonBgColor,j=l.buttonBgHoverColor,E=l.buttonIconColor,H=l.buttonIconHoverColor,k=l.buttonWidth,S=l.buttonIconSize,L=l.iconColor,V=l.iconSize,T=l.inputloadGoogleFonts,N=l.inputFontFamily,A=l.inputFontWeight,F=l.inputFontSubset,P=l.inputFontSize,R=l.inputFontSizeType,I=l.inputFontSizeTablet,D=l.inputFontSizeMobile,q=l.inputLineHeight,W=l.inputLineHeightType,G=l.inputLineHeightTablet,Z=l.inputLineHeightMobile,U=l.inputPaddingTypeDesktop,Y=l.vinputPaddingMobile,K=l.vinputPaddingTablet,J=l.vinputPaddingDesktop,$=l.hinputPaddingMobile,Q=l.hinputPaddingTablet,X=l.hinputPaddingDesktop,ee=l.buttonType,te=l.buttonText,ae=l.buttonloadGoogleFonts,le=l.buttonFontFamily,ne=l.buttonFontWeight,ie=l.buttonFontSubset,oe=l.buttonFontSize,ce=l.buttonFontSizeType,re=l.buttonFontSizeTablet,se=l.buttonFontSizeMobile,ue=l.buttonLineHeight,he=l.buttonLineHeightType,de=l.buttonLineHeightTablet,ge=l.buttonLineHeightMobile,me=l.buttonTextColor,be=l.buttonTextHoverColor,ve=l.inputSizeType;if(1==T){var pe={google:{families:[N+(A?":"+A:"")]}};e=Object(f.createElement)(ha,{config:pe})}if(1==ae){var fe={google:{families:[le+(ne?":"+ne:"")]}};t=Object(f.createElement)(ha,{config:fe})}return Object(f.createElement)("div",{className:_()("uagb-wp-search__outer-wrap","uagb-editor-preview-mode-".concat(o.toLowerCase()),"uagb-block-".concat(c),"uagb-layout-".concat(r))},Object(f.createElement)(Oy,null,Object(f.createElement)(Ey,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(Hy,{label:Object(M.__)("Layout","ultimate-addons-for-gutenberg"),value:r,options:[{value:"input-button",label:Object(M.__)("Classic","ultimate-addons-for-gutenberg")},{value:"input",label:Object(M.__)("Minimal","ultimate-addons-for-gutenberg")}],onChange:function(e){return i({layout:e})}}),Object(f.createElement)(B.Fragment,null,Object(f.createElement)(Sy,{label:Object(M.__)("Placeholder","ultimate-addons-for-gutenberg"),value:s,onChange:function(e){return i({placeholder:e})}}),Object(f.createElement)(Ly,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(By,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===ve,"aria-pressed":"px"===ve,onClick:function(){return i({inputSizeType:"px"})}},"px"),Object(f.createElement)(By,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===ve,"aria-pressed":"%"===ve,onClick:function(){return i({inputSizeType:"%"})}},"%")),Object(f.createElement)(ky,{label:Object(M.__)("Input Width","ultimate-addons-for-gutenberg"),value:u,onChange:function(e){return i({inputSize:e})},min:0,max:"px"===ve?500:100}))),Object(f.createElement)(Ey,{title:Object(M.__)("Input Box","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:h}}))),Object(f.createElement)(Cy,{value:h,onChange:function(e){return i({textColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:d}}))),Object(f.createElement)(Cy,{value:d,onChange:function(e){return i({inputBgColor:e})},allowReset:!0}),Object(f.createElement)("hr",null),Object(f.createElement)("h2",null,Object(M.__)("Border","ultimate-addons-for-gutenberg")),Object(f.createElement)(Hy,{label:Object(M.__)("Style","ultimate-addons-for-gutenberg"),value:y,options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")}],onChange:function(e){i({borderStyle:e})}}),"none"!==y&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)(ky,{label:Object(M.__)("Thickness (px)","ultimate-addons-for-gutenberg"),value:z,onChange:function(e){i({borderWidth:e})},min:0,max:20}),Object(f.createElement)(ky,{label:Object(M.__)("Rounded Corners (px)","ultimate-addons-for-gutenberg"),value:x,onChange:function(e){i({borderRadius:e})},min:0,max:50}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:O}}))),Object(f.createElement)(Cy,{value:O,onChange:function(e){return i({borderColor:e})},allowReset:!0})),Object(f.createElement)("hr",null),Object(f.createElement)(Ga,null),"Desktop"===o&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)(Ly,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(By,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===U,"aria-pressed":"px"===U,onClick:function(){return i({inputPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(By,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===U,"aria-pressed":"%"===U,onClick:function(){return i({inputPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(ky,{label:n.vertical_spacing,className:"uagb-margin-control",value:J,onChange:function(e){return i({vinputPaddingDesktop:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(ky,{label:n.horizontal_spacing,className:"uagb-margin-control",value:X,onChange:function(e){return i({hinputPaddingDesktop:e})},min:0,max:100,allowReset:!0})),"Tablet"===o&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)(Ly,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(By,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===U,"aria-pressed":"px"===U,onClick:function(){return i({inputPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(By,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===U,"aria-pressed":"%"===U,onClick:function(){return i({inputPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(ky,{label:n.vertical_spacing,className:"uagb-margin-control",value:K,onChange:function(e){return i({vinputPaddingTablet:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(ky,{label:n.horizontal_spacing,className:"uagb-margin-control",value:Q,onChange:function(e){return i({hinputPaddingTablet:e})},min:0,max:100,allowReset:!0})),"Mobile"===o&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)(Ly,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(By,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===U,"aria-pressed":"px"===U,onClick:function(){return i({inputPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(By,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===U,"aria-pressed":"%"===U,onClick:function(){return i({inputPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(ky,{label:n.vertical_spacing,className:"uagb-margin-control",value:Y,onChange:function(e){return i({vinputPaddingMobile:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(ky,{label:n.horizontal_spacing,className:"uagb-margin-control",value:$,onChange:function(e){return i({hinputPaddingMobile:e})},min:0,max:100,allowReset:!0})),Object(f.createElement)("hr",null),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:T,label:"inputloadGoogleFonts"},fontFamily:{value:N,label:"inputFontFamily"},fontWeight:{value:A,label:"inputFontWeight"},fontSubset:{value:F,label:"inputFontSubset"},fontSizeType:{value:R,label:"inputFontSizeType"},fontSize:{value:P,label:"inputFontSize"},fontSizeMobile:{value:D,label:"inputFontSizeMobile"},fontSizeTablet:{value:I,label:"inputFontSizeTablet"},lineHeightType:{value:W,label:"inputLineHeightType"},lineHeight:{value:q,label:"inputLineHeight"},lineHeightMobile:{value:Z,label:"inputLineHeightMobile"},lineHeightTablet:{value:G,label:"inputLineHeightTablet"}}),Object(f.createElement)(Oi,{setAttributes:i,label:Object(M.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:g,label:Object(M.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:m,label:Object(M.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:b,label:Object(M.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:v,label:Object(M.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:p,label:Object(M.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:w,label:Object(M.__)("Position","ultimate-addons-for-gutenberg")}})),"input-button"===r?Object(f.createElement)(Ey,{title:Object(M.__)("Button","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)(B.Fragment,null,Object(f.createElement)(Hy,{label:Object(M.__)("Type","ultimate-addons-for-gutenberg"),value:ee,options:[{value:"icon",label:Object(M.__)("Icon","ultimate-addons-for-gutenberg")},{value:"text",label:Object(M.__)("Text","ultimate-addons-for-gutenberg")}],onChange:function(e){i({buttonType:e})}}),"text"===ee&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)(Sy,{label:"Text",value:te,onChange:function(e){i({buttonText:e})}}),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:ae,label:"buttonloadGoogleFonts"},fontFamily:{value:le,label:"buttonFontFamily"},fontWeight:{value:ne,label:"buttonFontWeight"},fontSubset:{value:ie,label:"buttonFontSubset"},fontSizeType:{value:ce,label:"buttonFontSizeType"},fontSize:{value:oe,label:"buttonFontSize"},fontSizeMobile:{value:se,label:"buttonFontSizeMobile"},fontSizeTablet:{value:re,label:"buttonFontSizeTablet"},lineHeightType:{value:he,label:"buttonLineHeightType"},lineHeight:{value:ue,label:"buttonLineHeight"},lineHeightMobile:{value:ge,label:"buttonLineHeightMobile"},lineHeightTablet:{value:de,label:"buttonLineHeightTablet"}})),Object(f.createElement)(ky,{label:Object(M.__)("Width","ultimate-addons-for-gutenberg"),value:k,onChange:function(e){i({buttonWidth:e})},min:0,max:500}),Object(f.createElement)(B.Fragment,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:C}}))),Object(f.createElement)(Cy,{value:C,onChange:function(e){return i({buttonBgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:j}}))),Object(f.createElement)(Cy,{value:j,onChange:function(e){return i({buttonBgHoverColor:e})},allowReset:!0}),"text"===ee&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:me}}))),Object(f.createElement)(Cy,{value:me,onChange:function(e){return i({buttonTextColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:be}}))),Object(f.createElement)(Cy,{value:be,onChange:function(e){return i({buttonTextHoverColor:e})},allowReset:!0}))),"icon"===ee&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Icon","ultimate-addons-for-gutenberg")),Object(f.createElement)(ky,{label:Object(M.__)("Size","ultimate-addons-for-gutenberg"),value:S,onChange:function(e){i({buttonIconSize:e})},min:0,max:500}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:E}}))),Object(f.createElement)(Cy,{value:E,onChange:function(e){return i({buttonIconColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:H}}))),Object(f.createElement)(Cy,{value:H,onChange:function(e){return i({buttonIconHoverColor:e})},allowReset:!0})))):"","input"===r?Object(f.createElement)(Ey,{title:Object(M.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)(B.Fragment,null,Object(f.createElement)(ky,{label:Object(M.__)("Size","ultimate-addons-for-gutenberg"),value:V,onChange:function(e){i({iconSize:e})},min:0,max:500}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:L}}))),Object(f.createElement)(Cy,{value:L,onChange:function(e){return i({iconColor:e})},allowReset:!0}))):""),"input-button"===r?Object(f.createElement)("form",{className:"uagb-search-wrapper",onSubmit:this.formPreventDefault,role:"search",action:uagb_blocks_info.uagb_home_url,method:"get"},Object(f.createElement)("div",{className:"uagb-search-form__container wp-block-button",role:"tablist"},Object(f.createElement)("input",{placeholder:s,className:"uagb-search-form__input",type:"search",name:"s",title:"Search"}),Object(f.createElement)("button",{className:"uagb-search-submit wp-block-button__link",type:"submit"},"icon"===ee&&Object(f.createElement)("span",{className:"uagb-wp-search-button-icon-wrap"},Lo("fas fa-search")),"text"===ee&&Object(f.createElement)(jy,{tagName:"span",placeholder:Object(M.__)("Search","ultimate-addons-for-gutenberg"),value:te,onChange:function(e){return i({buttonText:e})},className:"uagb-wp-search-button-text",multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"]})))):"","input"===r?Object(f.createElement)("form",{className:"uagb-search-wrapper",onSubmit:this.formPreventDefault,role:"search",action:uagb_blocks_info.uagb_home_url,method:"get"},Object(f.createElement)("div",{className:"uagb-search-form__container",role:"tablist"},Object(f.createElement)("span",{className:"uagb-wp-search-icon-wrap"},Lo("fas fa-search")),Object(f.createElement)("input",{placeholder:s,className:"uagb-search-form__input",type:"search",name:"s",title:"Search"}))):"",e,t)}}]),i}(zy),Ay=Ty((function(e,t){var a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=void 0===a?null:a;return{deviceType:l?l():null}}))(Ny);(0,wp.blocks.registerBlockType)("uagb/wp-search",{title:uagb_blocks_info.blocks["uagb/wp-search"].title,description:uagb_blocks_info.blocks["uagb/wp-search"].description,icon:n.wp_search,keywords:[Object(M.__)("search","ultimate-addons-for-gutenberg"),Object(M.__)("wp","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},category:uagb_blocks_info.category,attributes:{block_id:{type:"string"},layout:{type:"string",default:"input-button"},placeholder:{type:"string",default:"Type & Hit Enter"},inputSize:{type:"number",default:100},textColor:{type:"string"},inputBgColor:{type:"string",default:"#ECEEEF"},boxShadowColor:{type:"string"},boxShadowHOffset:{type:"number",default:0},boxShadowVOffset:{type:"number",default:0},boxShadowBlur:{type:"number"},boxShadowSpread:{type:"number"},boxShadowPosition:{type:"string",default:"outset"},borderStyle:{type:"string",default:"none"},borderWidth:{type:"number"},borderRadius:{type:"number",default:3},borderColor:{type:"string"},buttonBgColor:{type:"string",default:"#9d9d9d"},buttonBgHoverColor:{type:"string"},buttonIconColor:{type:"string"},buttonIconHoverColor:{type:"string"},buttonWidth:{type:"number",default:55},buttonIconSize:{type:"number",default:17},iconColor:{type:"string",default:""},iconSize:{type:"number",default:17},inputloadGoogleFonts:{type:"boolean",default:!1},inputFontFamily:{type:"string",default:"Default"},inputFontWeight:{type:"string"},inputFontSubset:{type:"string"},inputFontSize:{type:"number"},inputFontSizeType:{type:"string",default:"px"},inputFontSizeTablet:{type:"number"},inputFontSizeMobile:{type:"number"},inputLineHeight:{type:"number"},inputLineHeightType:{type:"string",default:"em"},inputLineHeightTablet:{type:"number"},inputLineHeightMobile:{type:"number"},inputPaddingTypeDesktop:{type:"string",default:"px"},vinputPaddingMobile:{type:"number",default:15},vinputPaddingTablet:{type:"number",default:15},vinputPaddingDesktop:{type:"number",default:15},hinputPaddingMobile:{type:"number",default:13},hinputPaddingTablet:{type:"number",default:13},hinputPaddingDesktop:{type:"number",default:13},buttonType:{type:"string",default:"icon"},buttonText:{type:"string",default:"Search"},buttonloadGoogleFonts:{type:"boolean",default:!1},buttonFontFamily:{type:"string",default:"Default"},buttonFontWeight:{type:"string"},buttonFontSubset:{type:"string"},buttonFontSize:{type:"number"},buttonFontSizeType:{type:"string",default:"px"},buttonFontSizeTablet:{type:"number"},buttonFontSizeMobile:{type:"number"},buttonLineHeight:{type:"number"},buttonLineHeightType:{type:"string",default:"em"},buttonLineHeightTablet:{type:"number"},buttonLineHeightMobile:{type:"number"},buttonTextColor:{type:"string",default:"#313131"},buttonTextHoverColor:{type:"string"},inputSizeType:{type:"string",default:"%"}},edit:Ay,save:function(e){var t=e.attributes,a=t.block_id,l=t.layout,n=t.placeholder,i=t.buttonType,o=t.buttonText;return Object(f.createElement)("div",{className:_()("uagb-wp-search__outer-wrap","uagb-block-".concat(a),"uagb-layout-".concat(l))},"input-button"===l?Object(f.createElement)("form",{className:"uagb-search-wrapper",role:"search",action:uagb_blocks_info.uagb_home_url,method:"get"},Object(f.createElement)("div",{className:"uagb-search-form__container",role:"tablist"},Object(f.createElement)("input",{placeholder:n,className:"uagb-search-form__input",type:"search",name:"s",title:"Search"}),Object(f.createElement)("button",{className:"uagb-search-submit",type:"submit"},"icon"===i&&Object(f.createElement)("span",{className:"uagb-wp-search-button-icon-wrap"},Lo("fas fa-search")),"text"===i&&Object(f.createElement)(yy.Content,{tagName:"span",value:o,className:"uagb-wp-search-button-text"})))):"","input"===l?Object(f.createElement)("form",{className:"uagb-search-wrapper",role:"search",action:uagb_blocks_info.uagb_home_url,method:"get"},Object(f.createElement)("div",{className:"uagb-search-form__container",role:"tablist"},Object(f.createElement)("span",{className:"uagb-wp-search-icon-wrap"},Lo("fas fa-search")),Object(f.createElement)("input",{placeholder:n,className:"uagb-search-form__input",type:"search",name:"s",title:"Search"}))):"")},example:{}});var Fy={ID:{type:"string",default:""},itemType:{type:"string",default:Object(M.__)("Product")},itemSubtype:{type:"string",default:""},reviewPublisher:{type:"string",default:""},bookAuthorName:{type:"string",default:""},isbn:{type:"string",default:""},provider:{type:"string",default:""},appCategory:{type:"string",default:""},operatingSystem:{type:"string",default:""},datecreated:{type:"string",default:"Dec 19 2020"},directorname:{type:"string",default:""},overallAlignment:{type:"string",default:"left"},schema:{type:"string",default:""},rTitle:{type:"string",default:""},rContent:{type:"string",default:""},rAuthor:{type:"string",default:""},headingTag:{type:"string",default:"h3"},block_id:{type:"string",default:""},mainimage:{type:"object",default:{url:""}},imgSize:{type:"string",default:"thumbnail"},authorName:{type:"string",default:""},itemName:{type:"string",default:""},items:{type:"string",default:'[{"label":"","value":0}]'},description:{type:"string",default:""},descriptionAlign:{type:"string",default:"left"},imgURL:{type:"string",default:""},imgID:{type:"number"},imgAlt:{type:"string",default:""},parts:{type:"array",default:[{label:"",value:0}]},starCount:{type:"number",default:5},summaryTitle:{type:"string",default:Object(M.__)("Summary")},summaryDescription:{type:"string",default:""},callToActionText:{type:"string",default:""},ctaLink:{type:"string",default:"#"},callToActionBackColor:{type:"string",default:"#f63d3d"},callToActionForeColor:{type:"string",default:"#ffffff"},inactiveStarColor:{type:"string",default:"#888888"},activeStarColor:{type:"string",default:"#eeee00"},authorColor:{type:"string",default:""},summaryColor:{type:"string",default:""},titleAlign:{type:"string",default:"left"},authorAlign:{type:"string",default:"left"},enableCTA:{type:"boolean",default:!0},ctaNoFollow:{type:"boolean",default:!0},ctaOpenInNewTab:{type:"boolean",default:!0},enableReviewSchema:{type:"boolean",default:!0},enableImage:{type:"boolean",default:!0},enableDescription:{type:"boolean",default:!0},enableSchema:{type:"boolean",default:!0},starOutlineColor:{type:"string",default:"#000000"},starActiveColor:{type:"string",default:"#000000"},imageSize:{type:"number",default:100},brand:{type:"string",default:""},sku:{type:"string",default:""},identifier:{type:"string",default:""},identifierType:{type:"string",default:"gtin"},ctaTarget:{type:"boolean",default:!1},offerType:{type:"string",default:"Offer"},offerStatus:{type:"string",default:""},offerPrice:{type:"string",default:0},offerCurrency:{type:"string",default:"USD"},offerExpiry:{type:"string",default:"Dec 19 2020"},datepublish:{type:"string",default:"Dec 19 2020"},featuresTitle:{type:"string",default:Object(M.__)("List Of Features:")},featuresAvgText:{type:"string",default:Object(M.__)("Average Ratings")},feature_count:{type:"number",default:1},showFeature:{type:"boolean",default:!1},showAuthor:{type:"boolean",default:!0},starSize:{type:"number",default:20},starColor:{type:"string",default:"#ffff00"},selectedStars:{type:"number",default:0},starAlign:{type:"string",default:"left"},descColor:{type:"string",default:""},titleColor:{type:"string",default:""},pricevalue:{type:"string",default:"US$65"},pricetext:{type:"string",default:"Price"},availabilityvalue:{type:"string",default:Object(M.__)("Instock")},availabilitytext:{type:"string",default:Object(M.__)("Availability")},contentVrPadding:{type:"number",default:15},contentHrPadding:{type:"number",default:50},star_gap:{type:"number",default:100},contentColor:{type:"string",default:""},author:{type:"string",default:""},headFontFamily:{type:"string",default:"Default"},headFontWeight:{type:"string"},headFontSubset:{type:"string"},headFontSizeType:{type:"string",default:"px"},headLineHeightType:{type:"string",default:"em"},headFontSize:{type:"number"},headFontSizeTablet:{type:"number"},headFontSizeMobile:{type:"number"},headLineHeight:{type:"number"},headLineHeightTablet:{type:"number"},headLineHeightMobile:{type:"number"},subHeadFontFamily:{type:"string",default:""},subHeadFontWeight:{type:"string"},subHeadFontSubset:{type:"string"},subHeadFontSize:{type:"number"},subHeadFontSizeType:{type:"string",default:"px"},subHeadFontSizeTablet:{type:"number"},subHeadFontSizeMobile:{type:"number"},subHeadLineHeight:{type:"number"},subHeadLineHeightType:{type:"string",default:"em"},subHeadLineHeightTablet:{type:"number"},subHeadLineHeightMobile:{type:"number"},separatorSpace:{type:"number",default:15},headLoadGoogleFonts:{type:"boolean",default:!1},subHeadLoadGoogleFonts:{type:"boolean",default:!1},contentFontFamily:{type:"string",default:"Default"},contentLoadGoogleFonts:{type:"boolean",default:!1},contentFontWeight:{type:"string"},contentFontSubset:{type:"string"},contentFontSize:{type:"number"},contentFontSizeType:{type:"string",default:"px"},contentFontSizeTablet:{type:"number"},contentFontSizeMobile:{type:"number"},contentLineHeight:{type:"number"},contentLineHeightType:{type:"string",default:"em"},contentLineHeightTablet:{type:"number"},contentLineHeightMobile:{type:"number"}};var Py=wp.element,Ry=Py.Component,Iy=Py.Fragment,Dy=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e,t=this.props,a=t.enableSchema,l=t.itemType,n=t.rTitle,i=t.enableDescription,o=t.rContent,c=t.enableImage,r=t.mainimage,s=t.sku,u=t.brand,h=t.showAuthor,d=t.rAuthor,g=t.offerType,m=t.offerCurrency,b=t.offerPrice,v=t.ctaLink,p=t.offerExpiry,w=t.datepublish,_=t.identifier,y=t.isbn,z=t.bookAuthorName,x=t.directorname,O=t.datecreated,C=t.provider,j=t.appCategory,E=t.reviewPublisher,H=t.operatingSystem,k=[];switch(l){case"Product":void 0!==s&&""!==s||(e=Object(M.__)("Missing merchant-specific identifier for product ( SKU )","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==u&&""!==u||(e=Object(M.__)("Missing brand of the product","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==g&&""!==g||(e=Object(M.__)("Missing offer Type","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==m&&""!==m||(e=Object(M.__)("Missing offer currency of a product","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==b&&""!==b||(e=Object(M.__)("Missing offer price of a product","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==p&&""!==p||(e=Object(M.__)("Missing offer expiry of a product","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==_&&""!==_||(e=Object(M.__)("Missing global identifiers","ultimate-addons-for-gutenberg"),k.push(e));break;case"Book":void 0!==y&&""!==y||(e=Object(M.__)("Missing ISBN number of a book","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==z&&""!==z||(e=Object(M.__)("Missing author of the book","ultimate-addons-for-gutenberg"),k.push(e));break;case"Movie":void 0!==O&&""!==O||(e=Object(M.__)("Missing released date of the movie","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==x&&""!==x||(e=Object(M.__)("Missing director name of the movie","ultimate-addons-for-gutenberg"),k.push(e));break;case"Course":void 0!==C&&""!==C||(e=Object(M.__)("Missing provider of the course","ultimate-addons-for-gutenberg"),k.push(e));break;case"SoftwareApplication":void 0!==j&&""!==j||(e=Object(M.__)("Missing type of application (Application Category)","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==H&&""!==H||(e=Object(M.__)("Missing operating system(s) required","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==g&&""!==g||(e=Object(M.__)("Missing Offer Type","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==b&&""!==b||(e=Object(M.__)("Missing offer price of the application","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==m&&""!==m||(e=Object(M.__)("Missing offer currency of the application","ultimate-addons-for-gutenberg"),k.push(e))}l&&(void 0!==n&&""!==n||(e=Object(M.__)("Missing title of the review","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==o&&""!==o&&0!=i||(e=Object(M.__)("Missing review description","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==r.url&&null!==r.url&&""!==r.url&&0!=c||(e=Object(M.__)("Missing review Image","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==v&&""!==v||(e=Object(M.__)("Missing url field","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==d&&""!==d&&0!=h||(e=Object(M.__)("Missing review author name","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==E&&""!==E||(e=Object(M.__)("Missing review publisher","ultimate-addons-for-gutenberg"),k.push(e)),void 0!==w&&""!==w||(e=Object(M.__)("Missing date of publish","ultimate-addons-for-gutenberg"),k.push(e)));var S=k.map((function(e){return Object(f.createElement)("li",{key:e}," ",e," ")}));return Object(f.createElement)(Iy,null,1==a&&0!==k.length?Object(f.createElement)("div",{className:"rating-schema-notices"},Object(f.createElement)("h6",null," ",Object(M.__)("It seems that the following fields are empty. This may generate Schema errors / warnings for your Page, we recommend you to fill these fields.","ultimate-addons-for-gutenberg")," "),Object(f.createElement)("ul",{className:"rating-schema-notices-list"},S),Object(f.createElement)("p",null,Object(M.__)("P.S. Note that this notice is visible only in the editor. This will not be visible in frontend. Also, once the required fields are added, this notice will go away.","ultimate-addons-for-gutenberg")," ",Object(f.createElement)("a",{href:"https://developers.google.com/search/docs/data-types/review-snippet",target:"_blank"},Object(M.__)("Read more.","ultimate-addons-for-gutenberg")))):"")}}]),n}(Ry);function qy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=p()(e);if(t){var n=p()(this).constructor;a=Reflect.construct(l,arguments,n)}else a=l.apply(this,arguments);return b()(this,a)}}var Wy=(wp.blockEditor||wp.editor).RichText,Gy=function(e){g()(a,e);var t=qy(a);function a(e){var l;return c()(this,a),(l=t.call(this,e)).state={displayValue:l.props.value,displayColor:l.props.activeStarColor},l.mouseHover=l.mouseHover.bind(h()(l)),l.mouseLeave=l.mouseLeave.bind(h()(l)),l.mouseClick=l.mouseClick.bind(h()(l)),l}return s()(a,[{key:"mouseHover",value:function(e){this.setState({displayValue:e+(this.props.value-e==1?.5:1),displayColor:this.props.selectedStarColor})}},{key:"mouseLeave",value:function(){this.setState({displayValue:this.props.value,displayColor:this.props.activeStarColor})}},{key:"mouseClick",value:function(e){var t=this.props,a=t.setValue,l=t.value;a(l===e+1?e+.5:e+1),this.setState({displayValue:l===e+1?e+.5:e+1})}},{key:"componentWillReceiveProps",value:function(e){var t=e.value,a=e.activeStarColor;this.props.onHover||this.state.displayValue!==t?this.setState({displayValue:t,displayColor:a}):this.setState({displayColor:a})}},{key:"render",value:function(){var e=this,t=this.state.displayValue,a=this.props,l=a.limit,n=a.id,i=a.className,o=a.inactiveStarColor,c=a.onHover,r=a.onClick,s=a.style,u=a.starOutlineColor;return Object(f.createElement)("div",{className:i,style:Object.assign({display:"flex",flexDirection:"flex-row"},s)},ic()(Array(l).keys()).map((function(a){return Object(f.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",key:a,height:"20",width:"20",viewBox:"0 0 150 150",onMouseOver:function(){return c||e.mouseHover(a)},onMouseOut:function(){return e.mouseLeave()},onClick:function(){return r||e.mouseClick(a)}},Object(f.createElement)("defs",null,Object(f.createElement)("mask",{id:"uagb_review_star_filter-".concat(n,"-").concat(a)},Object(f.createElement)("rect",{height:"150",width:150*(t-a>0?t-a<1?t-a:1:0),y:"0",x:"0",fill:"#fff"}))),Object(f.createElement)("path",{fill:o,strokeWidth:"2.5",d:"m0.75,56.89914l56.02207,0l17.31126,-56.14914l17.31126,56.14914l56.02206,0l-45.32273,34.70168l17.31215,56.14914l-45.32274,-34.70262l-45.32274,34.70262l17.31215,-56.14914l-45.32274,-34.70168z",stroke:u}),Object(f.createElement)("path",{className:"star",id:"star".concat(a),mask:"url(#uagb_review_star_filter-".concat(n,"-").concat(a,")"),fill:e.state.displayColor,strokeWidth:"2.5",d:"m0.75,56.89914l56.02207,0l17.31126,-56.14914l17.31126,56.14914l56.02206,0l-45.32273,34.70168l17.31215,56.14914l-45.32274,-34.70262l-45.32274,34.70262l17.31215,-56.14914l-45.32274,-34.70168z",stroke:u}))})))}}]),a}(B.Component),Zy=function(e){g()(a,e);var t=qy(a);function a(e){var l;return c()(this,a),(l=t.call(this,e)).state={average:l.props.items.map((function(e){return e.value})).reduce((function(e,t){return e+t}))/l.props.items.length},l}return s()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.ID,l=t.items,n=t.summaryTitle,i=t.summaryDescription,o=t.starCount,c=t.setItems,r=t.setSummaryDescription,s=t.setSummaryTitle,u=t.setTitle,h=t.setDescription,d=t.setAuthorName,g=t.inactiveStarColor,m=t.activeStarColor,b=t.selectedStarColor,v=t.starOutlineColor,p=t.ctaTarget,w=t.ctaLink,_=t.setActiveStarIndex,y=t.rTitle,z=t.rContent,x=t.rAuthor,O=t.headingTag,C=t.image_icon_html,j=t.showfeature,E=t.imageEnabled,H=t.descriptionEnabled,k=t.showauthor,S=this.state.average,L=l.map((function(e){return e.value})).reduce((function(e,t){return e+t}))/l.length;S!==L&&this.setState({average:L});var B="_self";return p&&(B="_blank"),Object(f.createElement)("div",{className:"uagb_review_block"},Object(f.createElement)("a",{href:w,className:"uagb-rating-link-wrapper",target:B,rel:"noopener noreferrer"},Object(f.createElement)(Wy,{tagName:O,placeholder:Object(M.__)("Title of the review","ultimate-addons-for-gutenberg"),keepPlaceholderOnFocus:!0,value:y,className:"uagb-rating-title",onChange:function(e){return u(e)}})),!0===H&&Object(f.createElement)(Wy,{tagName:"p",placeholder:Object(M.__)("Review Description","ultimate-addons-for-gutenberg"),keepPlaceholderOnFocus:!0,value:z,className:"uagb-rating-desc",onChange:function(e){return h(e)}}),!0===k&&Object(f.createElement)(Wy,{tagName:"p",placeholder:Object(M.__)("Review Author","ultimate-addons-for-gutenberg"),keepPlaceholderOnFocus:!0,value:x,className:"uagb-rating-author",onChange:function(e){return d(e)}}),!0===E&&Object(f.createElement)("div",{className:"uagb-rating__source-wrap"},C),l.map((function(t,n){return!0===j&&Object(f.createElement)("div",{className:"uagb_review_entry"},Object(f.createElement)(Wy,{style:{marginRight:"auto"},key:n,placeholder:Object(M.__)("Edit feature"),value:t.label,onChange:function(e){return c([].concat(ic()(l.slice(0,n)),[{label:e,value:t.value}],ic()(l.slice(n+1))))}}),Object(f.createElement)("div",{key:n,style:{marginLeft:"auto",minWidth:l.length>1?120:100}},l.length>1&&Object(f.createElement)("div",{className:"dashicons dashicons-trash",onClick:function(){var t=l.slice(0,n).concat(l.slice(n+1,l.length));c(t),e.setState({average:t.map((function(e){return e.value})).reduce((function(e,t){return e+t}))/t.length})}}),Object(f.createElement)(Gy,{id:"".concat(a,"-").concat(n),key:n,value:t.value,limit:o,setValue:function(a){var i=[].concat(ic()(l.slice(0,n)),[{label:t.label,value:a}],ic()(l.slice(n+1)));c(i),_(n),e.setState({average:i.map((function(e){return e.value})).reduce((function(e,t){return e+t}))/i.length})},inactiveStarColor:g,activeStarColor:m,selectedStarColor:b,starOutlineColor:v})))})),!0===j&&Object(f.createElement)("div",{title:Object(M.__)("Insert new review entry"),onClick:function(){c([].concat(ic()(l),[{label:"",value:0}])),e.setState({average:S/(l.length+1)})},className:"uagb_review_add_entry dashicons dashicons-plus-alt"}),Object(f.createElement)("div",{className:"uagb_review_summary"},Object(f.createElement)(Wy,{className:"uagb_review_summary_title",placeholder:Object(M.__)("Title of the summary goes here","ultimate-addons-for-gutenberg"),tagName:"p",onChange:function(e){return s(e)},value:n}),Object(f.createElement)("div",{className:"uagb_review_overall_value"},Object(f.createElement)(Wy,{placeholder:Object(M.__)("Summary of the review goes here","ultimate-addons-for-gutenberg"),onChange:function(e){return r(e)},value:i}),Object(f.createElement)("div",{className:"uagb_review_average"},Object(f.createElement)("span",{className:"uagb_review_rating"},Math.round(10*S)/10),Object(f.createElement)(Gy,{id:"".concat(a,"-average"),className:"uagb_review_average_stars",onHover:function(){return null},onClick:function(){return null},value:S,limit:o,inactiveStarColor:g,activeStarColor:m,selectedStarColor:b,starOutlineColor:v})))))}}]),a}(B.Component);var Uy=wp.compose,Yy=Uy.withState,Ky=Uy.compose,Jy=wp.data.withSelect,$y=wp.blockEditor,Qy=$y.InspectorControls,Xy=$y.ColorPalette,ez=$y.MediaUpload,tz=$y.AlignmentToolbar,az=$y.BlockControls,lz=wp.components,nz=lz.PanelBody,iz=lz.RangeControl,oz=lz.SelectControl,cz=lz.ToggleControl,rz=lz.Button,sz=lz.TextControl,uz=lz.DateTimePicker,hz=wp.element,dz=hz.Component,gz=hz.Fragment,mz=[{value:"thumbnail",label:Object(M.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(M.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(M.__)("Large","ultimate-addons-for-gutenberg")}],bz=function(e,t){return e.filter((function(e){return Array.isArray(t)?!t.includes(e):e!==t}))};Ky([Yy({editable:"",editedStar:0}),Jy((function(e,t){var a=(e("core/block-editor")||e("core/editor")).getBlock;return{block:a(t.clientId),getBlock:a}}))]);var vz=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onRemoveImage=e.onRemoveImage.bind(h()(e)),e.onSelectImage=e.onSelectImage.bind(h()(e)),e.getImageSize=e.getImageSize.bind(h()(e)),e.toggleTarget=e.toggleTarget.bind(h()(e)),e}return s()(i,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)}),this.props.setAttributes({schema:JSON.stringify(this.props.schemaJsonData)});var e=document.createElement("style");e.setAttribute("id","uagb-ratings-style-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e){JSON.stringify(this.props.schemaJsonData)!==JSON.stringify(e.schemaJsonData)&&this.props.setAttributes({schema:JSON.stringify(this.props.schemaJsonData)});var t=document.getElementById("uagb-ratings-style-"+this.props.clientId.substr(0,8));null!=t&&(t.innerHTML=function(e){var t,a,l=e.attributes,n=l.block_id,i=l.starColor,o=l.descColor,c=l.titleColor,r=l.contentColor,s=l.headFontFamily,u=l.headFontWeight,h=l.headFontSizeType,d=l.headLineHeightType,g=l.headFontSize,m=l.headFontSizeTablet,b=l.headFontSizeMobile,v=l.headLineHeight,p=l.headLineHeightTablet,f=l.headLineHeightMobile,w=l.subHeadFontFamily,_=l.subHeadFontWeight,x=l.subHeadFontSize,O=l.subHeadFontSizeType,C=l.subHeadFontSizeMobile,j=l.subHeadFontSizeTablet,M=l.subHeadLineHeight,E=l.subHeadLineHeightType,H=l.subHeadLineHeightMobile,k=l.subHeadLineHeightTablet,S=l.contentFontFamily,L=l.contentFontWeight,B=l.contentFontSizeType,V=l.contentLineHeightType,T=l.contentFontSize,N=l.contentFontSizeTablet,A=l.contentFontSizeMobile,F=l.contentLineHeight,P=l.contentLineHeightTablet,R=l.contentLineHeightMobile,I=l.contentVrPadding,D=l.contentHrPadding,q=l.authorColor,W=l.summaryColor,G=l.starActiveColor,Z=l.starOutlineColor,U=l.overallAlignment,Y={" .uagb-star-inner-container svg":{fill:i}," .uagb-avg-review-star-inner-container svg":{fill:i}," .uagb-rating-title":{"font-size":z(g,h),"font-weight":u,"font-family":s,"line-height":z(v,d),color:c}," .uagb_review_entry":{"font-size":z(g,h),"font-weight":u,"font-family":s,"line-height":z(v,d)}," .uagb-rating-desc":{"font-size":z(x,O),"font-weight":_,"font-family":w,"line-height":z(M,E),color:o}," .uagb-rating-author":{"font-size":z(x,O),"font-weight":_,"font-family":w,"line-height":z(M,E),color:q}," .uagb-rating-desc, .uagb-rating-author":{"font-size":z(x,O),"font-weight":_,"font-family":w,"line-height":z(M,E),color:o}," .uagb_review_block":{"padding-left":z(D,"px"),"padding-right":z(D,"px"),"padding-top":z(I,"px"),"padding-bottom":z(I,"px"),"text-align":U}," .uagb_review_summary, p.rich-text.block-editor-rich-text__editable.uagb_review_summary_title":{"font-size":z(T,B),"font-weight":L,"font-family":S,"line-height":z(F,V),color:W}," .uagb_review_entry .rich-text":{color:r}," .uagb_review_entry .star, .uagb_review_average_stars .star":{fill:i}," .uagb_review_entry path, .uagb_review_average_stars path":{stroke:Z,fill:G}};a={" .uagb-rating-title, .uagb_review_entry":{"font-size":z(b,h),"line-height":z(f,d)}," .uagb-rating-desc, .uagb-rating-author":{"font-size":z(C,O),"line-height":z(H,E)}," .uagb_review_summary, p.rich-text.block-editor-rich-text__editable.uagb_review_summary_title":{"font-size":z(A,B),"line-height":z(R,V)}},t={" .uagb-rating-title, .uagb_review_entry":{"font-size":z(m,h),"line-height":z(p,d)}," .uagb-rating-desc, .uagb-rating-author":{"font-size":z(j,O),"line-height":z(k,E)}," .uagb_review_summary, p.rich-text.block-editor-rich-text__editable.uagb_review_summary_title":{"font-size":z(N,B),"line-height":z(P,V)}};var K=".block-editor-page #wpwrap .uagb-block-".concat(n.substr(0,8)),J=y(Y,K);return(J+=y(t,K))+y(a,K)}(this.props)),$(".uagb-rating-link-wrapper").on("click",(function(e){e.preventDefault()}))}},{key:"onRemoveImage",value:function(){(0,this.props.setAttributes)({mainimage:null})}},{key:"onSelectImage",value:function(e){var t=this.props.setAttributes;if(e&&e.url){if(e.type&&(t({mainimage:e}),e.sizes)){var a=this.getImageSize(e.sizes);mz=a}}else t({mainimage:null})}},{key:"toggleTarget",value:function(){var e=this.props.attributes.ctaTarget;(0,this.props.setAttributes)({ctaTarget:!e})}},{key:"getImageSize",value:function(e){var t=[];return $.each(e,(function(e,a){var l={value:e,label:e};t.push(l)})),t}},{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,l=a.block_id,i=a.enableSchema,o=a.itemType,c=a.itemSubtype,r=a.authorName,s=a.itemName,u=a.description,h=a.items,d=a.parts,g=a.starCount,m=a.summaryTitle,b=a.summaryDescription,v=a.inactiveStarColor,p=a.activeStarColor,w=a.sku,y=a.identifier,z=a.identifierType,x=a.offerType,O=a.offerCurrency,C=a.offerStatus,j=a.offerPrice,E=a.offerExpiry,H=a.datepublish,k=a.ctaLink,S=a.ctaTarget,L=a.brand,B=a.rTitle,V=a.rContent,T=a.rAuthor,N=a.headingTag,A=a.mainimage,F=a.imgSize,P=a.showFeature,R=a.showAuthor,I=a.starColor,D=a.descColor,q=a.titleColor,W=a.contentColor,G=a.headFontFamily,Z=a.headFontWeight,U=a.headFontSubset,Y=a.headFontSizeType,K=a.headFontSize,J=a.headFontSizeMobile,$=a.headFontSizeTablet,Q=a.headLineHeightType,X=a.headLineHeight,ee=a.headLineHeightMobile,te=a.headLineHeightTablet,ae=a.headLoadGoogleFonts,le=a.subHeadFontFamily,ne=a.subHeadFontWeight,ie=a.subHeadFontSubset,oe=a.subHeadFontSize,ce=a.subHeadFontSizeType,re=a.subHeadFontSizeMobile,se=a.subHeadFontSizeTablet,ue=a.subHeadLineHeight,he=a.subHeadLineHeightType,de=a.subHeadLineHeightMobile,ge=a.subHeadLineHeightTablet,me=a.subHeadLoadGoogleFonts,be=a.contentLoadGoogleFonts,ve=a.contentFontFamily,pe=a.contentFontWeight,fe=a.contentFontSubset,we=a.contentFontSizeType,_e=a.contentLineHeightType,ye=a.contentFontSize,ze=a.contentFontSizeTablet,xe=a.contentFontSizeMobile,Oe=a.contentLineHeight,Ce=a.contentLineHeightTablet,je=a.contentLineHeightMobile,Me=a.contentVrPadding,Ee=a.contentHrPadding,He=a.authorColor,ke=a.summaryColor,Se=a.starActiveColor,Le=a.starOutlineColor,Be=a.enableDescription,Ve=a.enableImage,Te=a.overallAlignment,Ne=a.isbn,Ae=a.bookAuthorName,Fe=a.reviewPublisher,Pe=a.provider,Re=a.appCategory,Ie=a.operatingSystem,De=a.datecreated,qe=a.directorname,We=t.setAttributes,Ge=t.isSelected,Ze=t.className;""===l&&We({block_id:this.props.clientId.substr(0,8)}),h&&h!==JSON.stringify(d)&&1===d.length&&""===d[0].label&&0===d[0].value&&We({parts:JSON.parse(h),items:'[{"label":"","value":0}]'}),A&&A.sizes&&(mz=this.getImageSize(A.sizes));var Ue="",Ye="";void 0!==this.props.attributes.mainimage&&null!==this.props.attributes.mainimage&&""!==this.props.attributes.mainimage&&(Ue=this.props.attributes.mainimage.url,Ye=this.props.attributes.mainimage.title);var Ke="";if(""!==Ue){var Je=this.props.attributes.mainimage.sizes,$e=this.props.attributes.imgSize;Ke=void 0!==Je&&void 0!==Je[$e]?Je[$e].url:Ue}var Qe,Xe,et,tt,at="";if(A&&A.url&&(at=Object(f.createElement)("img",{className:"uagb-review__source-image",src:Ke,title:Ye})),1==ae){var lt={google:{families:[G+(Z?":"+Z:"")]}};Xe=Object(f.createElement)(ha,{config:lt})}if(1==me){var nt={google:{families:[le+(ne?":"+ne:"")]}};et=Object(f.createElement)(ha,{config:nt})}if(1==be){var it={google:{families:[ve+(pe?":"+pe:"")]}};Qe=Object(f.createElement)(ha,{config:it})}var ot={Book:[{value:"Audiobook",label:Object(M.__)("Audio book","ultimate-addons-for-gutenberg")}],Product:[{value:"IndividualProduct",label:Object(M.__)("Individual Product","ultimate-addons-for-gutenberg")},{value:"ProductCollection",label:Object(M.__)("Product Collection","ultimate-addons-for-gutenberg")},{value:"ProductGroup",label:Object(M.__)("Product Group","ultimate-addons-for-gutenberg")},{value:"ProductModel",label:Object(M.__)("Product Model","ultimate-addons-for-gutenberg")},{value:"SomeProducts",label:Object(M.__)("Some Products","ultimate-addons-for-gutenberg")},{value:"Vehicle",label:Object(M.__)("Vehicle","ultimate-addons-for-gutenberg")}],SoftwareApplication:[{value:"MobileApplication",label:Object(M.__)("Mobile Application","ultimate-addons-for-gutenberg")},{value:"VideoGame",label:Object(M.__)("Video Game","ultimate-addons-for-gutenberg")},{value:"WebApplication",label:Object(M.__)("Web Application","ultimate-addons-for-gutenberg")}]},ct=["bookAuthorName","isbn","provider","brand","sku","identifierType","identifier","appCategory","operatingSystem","directorname","datecreated"];switch(o){default:break;case"Book":tt=Object(f.createElement)(gz,null,Object(f.createElement)(sz,{label:Object(M.__)("ISBN","ultimate-addons-for-gutenberg"),value:Ne,onChange:function(e){return We({isbn:e})},help:Object(M.__)("Note: This is a mandatory field for the Review schema","ultimate-addons-for-gutenberg")}),Object(f.createElement)(sz,{label:Object(M.__)("Book author name","ultimate-addons-for-gutenberg"),value:Ae,onChange:function(e){return We({bookAuthorName:e})},help:Object(M.__)("Note: This is a mandatory field for the Review schema","ultimate-addons-for-gutenberg")})),ct=bz(ct,["isbn","bookAuthorName"]);break;case"Course":tt=Object(f.createElement)(gz,null,Object(f.createElement)(sz,{label:Object(M.__)("Provider","ultimate-addons-for-gutenberg"),value:Pe,onChange:function(e){return We({provider:e})}})),ct=bz(ct,["provider"]);break;case"SoftwareApplication":tt=Object(f.createElement)(gz,null,Object(f.createElement)(sz,{label:Object(M.__)("Application Category","ultimate-addons-for-gutenberg"),value:Re,onChange:function(e){return We({appCategory:e})}}),Object(f.createElement)(sz,{label:Object(M.__)("Operating System","ultimate-addons-for-gutenberg"),value:Ie,onChange:function(e){return We({operatingSystem:e})}})),ct=bz(ct,["appCategory","operatingSystem"]);break;case"Movie":tt=Object(f.createElement)(gz,null,Object(f.createElement)(sz,{label:Object(M.__)("Director Name","ultimate-addons-for-gutenberg"),value:qe,onChange:function(e){return We({directorname:e})}}),Object(f.createElement)("h2",null,Object(M.__)("Date of create")),Object(f.createElement)(uz,{currentDate:De,onChange:function(e){return We({datecreated:e})},is12Hour:!0})),ct=bz(ct,["directorname","datecreated"])}return[Object(f.createElement)(Dy,{enableSchema:i,itemType:o,rTitle:B,enableDescription:Be,rContent:V,enableImage:Ve,mainimage:A,sku:w,brand:L,starCount:g,showAuthor:R,rAuthor:T,showfeature:P,offerType:x,datepublish:H,offerCurrency:O,offerPrice:j,ctaLink:k,offerExpiry:E,identifier:y,isbn:Ne,bookAuthorName:Ae,directorname:qe,datecreated:De,provider:Pe,appCategory:Re,operatingSystem:Ie,reviewPublisher:Fe}),Object(f.createElement)(az,{key:"index"},Object(f.createElement)(tz,{value:Te,onChange:function(e){return We({overallAlignment:e})}})),Object(f.createElement)(Qy,null,Object(f.createElement)(nz,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},Object(f.createElement)("h2",null,Object(M.__)("Review Title","ultimate-addons-for-gutenberg")),Object(f.createElement)(oz,{label:Object(M.__)("Tag","ultimate-addons-for-gutenberg"),value:N,onChange:function(e){return We({headingTag:e})},options:[{value:"h1",label:Object(M.__)("H1")},{value:"h2",label:Object(M.__)("H2")},{value:"h3",label:Object(M.__)("H3")},{value:"h4",label:Object(M.__)("H4")},{value:"h5",label:Object(M.__)("H5")},{value:"h6",label:Object(M.__)("H6")}]}),Object(f.createElement)("h2",null,Object(M.__)("Link")),Object(f.createElement)(sz,{value:k,onChange:function(e){return We({ctaLink:e})}}),Object(f.createElement)(cz,{label:Object(M.__)("Open in new window","ultimate-addons-for-gutenberg"),checked:S,onChange:e.toggleTarget}),Object(f.createElement)(cz,{label:Object(M.__)("Show review description","ultimate-addons-for-gutenberg"),checked:Be,onChange:function(e){return We({enableDescription:!Be})},help:Object(M.__)("Note: This is a mandatory field for the Review schema.","ultimate-addons-for-gutenberg")}),Object(f.createElement)(cz,{label:Object(M.__)("Show review author","ultimate-addons-for-gutenberg"),checked:R,onChange:function(e){return We({showAuthor:!R})},help:Object(M.__)("Note: This is a mandatory field for the Review schema.","ultimate-addons-for-gutenberg")}),Object(f.createElement)(cz,{label:Object(M.__)("Show review image","ultimate-addons-for-gutenberg"),checked:Ve,onChange:function(e){return We({enableImage:!Ve})},help:Object(M.__)("Note: This is a mandatory field for the Review schema.","ultimate-addons-for-gutenberg")}),!0===Ve&&Object(f.createElement)(gz,null,Object(f.createElement)("h2",null,Object(M.__)("Image")),Object(f.createElement)(ez,{title:Object(M.__)("Select Image","ultimate-addons-for-gutenberg"),onSelect:function(e){return We({mainimage:e})},allowedTypes:["image"],value:A,render:function(e){var t=e.open;return Object(f.createElement)(rz,{className:"uagb-review-select-btn",isSecondary:!0,onClick:t},A.url?Object(M.__)("Replace image","ultimate-addons-for-gutenberg"):Object(M.__)("Select Image","ultimate-addons-for-gutenberg"))}}),A.url&&Object(f.createElement)(rz,{className:"uagb-rm-btn",onClick:function(){return We({mainimage:""})},isLink:!0,isDestructive:!0},Object(M.__)("Remove Image","ultimate-addons-for-gutenberg")),A.url&&Object(f.createElement)(oz,{label:Object(M.__)("Size","ultimate-addons-for-gutenberg"),options:mz,value:F,onChange:function(e){return We({imgSize:e})}})),Object(f.createElement)(cz,{label:Object(M.__)("Show ratings","ultimate-addons-for-gutenberg"),checked:P,onChange:function(e){return We({showFeature:!P})},help:Object(M.__)("Note: Add feature/section ratings separately.","ultimate-addons-for-gutenberg")}),Object(f.createElement)(cz,{label:Object(M.__)("Enable schema support","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return We({enableSchema:!i})}})),function(){if(!0===i)return Object(f.createElement)(nz,{title:Object(M.__)("Schema","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(oz,{label:Object(M.__)("Item type","ultimate-addons-for-gutenberg"),value:o,onChange:function(e){We({itemType:e}),"Movie"===o&&We({enableImage:!0}),"Course"===o&&We({enableDescription:!0}),ot.hasOwnProperty(o)&&ot[o].includes(c)||We({itemSubtype:"None"})},options:[{value:"Book",label:Object(M.__)("Book","ultimate-addons-for-gutenberg")},{value:"Course",label:Object(M.__)("Course","ultimate-addons-for-gutenberg")},{value:"Movie",label:Object(M.__)("Movie","ultimate-addons-for-gutenberg")},{value:"Product",label:Object(M.__)("Product","ultimate-addons-for-gutenberg")},{value:"SoftwareApplication",label:Object(M.__)("Software Application","ultimate-addons-for-gutenberg")}]}),ot.hasOwnProperty(o)&&Object(f.createElement)(oz,{label:Object(M.__)("Item subtype","ultimate-addons-for-gutenberg"),options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")}].concat(ic()(ot[o])),value:c,onChange:function(e){return We({itemSubtype:e})}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),tt,Object(f.createElement)(sz,{label:Object(M.__)("Review publisher","ultimate-addons-for-gutenberg"),value:Fe,onChange:function(e){return We({reviewPublisher:e})},help:Object(M.__)("Note: This is a mandatory field for the Review schema","ultimate-addons-for-gutenberg")}),Object(f.createElement)("h2",null,Object(M.__)("Date of publish","ultimate-addons-for-gutenberg")),Object(f.createElement)(uz,{currentDate:H,onChange:function(e){return We({datepublish:e})},is12Hour:!0}),["Product","SoftwareApplication"].includes(o)&&Object(f.createElement)(gz,null,["Product"].includes(o)&&Object(f.createElement)(gz,null,Object(f.createElement)(sz,{label:Object(M.__)("Brand","ultimate-addons-for-gutenberg"),value:L,onChange:function(e){return We({brand:e})}}),Object(f.createElement)(sz,{label:Object(M.__)("SKU","ultimate-addons-for-gutenberg"),value:w,onChange:function(e){return We({sku:e})}}),Object(f.createElement)(sz,{label:Object(M.__)("Identifier","ultimate-addons-for-gutenberg"),value:y,onChange:function(e){return We({identifier:e})}}),Object(f.createElement)(oz,{label:Object(M.__)("Identifier type","ultimate-addons-for-gutenberg"),value:z,options:["nsn","mpn","gtin8","gtin12","gtin13","gtin14","gtin"].map((function(e){return{label:Object(M.__)(e.toUpperCase()),value:e}})),onChange:function(e){return We({identifierType:e})}})),["Product","SoftwareApplication"].includes(o)&&Object(f.createElement)(gz,null,Object(f.createElement)(sz,{label:Object(M.__)("Offer Currency","ultimate-addons-for-gutenberg"),value:O,onChange:function(e){return We({offerCurrency:e})}})),"Offer"==x&&Object(f.createElement)(gz,null,Object(f.createElement)(sz,{label:Object(M.__)("Offer Price","ultimate-addons-for-gutenberg"),value:j,onChange:function(e){return We({offerPrice:e})},help:Object(M.__)("Note: This is a mandatory field for the Review schema","ultimate-addons-for-gutenberg")}),Object(f.createElement)(oz,{label:Object(M.__)("Offer Status"),value:C,options:[{value:"https://schema.org/Discontinued",label:Object(M.__)("Discontinued","ultimate-addons-for-gutenberg")},{value:"https://schema.org/InStock",label:Object(M.__)("In Stock","ultimate-addons-for-gutenberg")},{value:"https://schema.org/InStoreOnly",label:Object(M.__)("In Store Only","ultimate-addons-for-gutenberg")},{value:"https://schema.org/LimitedAvailability",label:Object(M.__)("Limited Availability","ultimate-addons-for-gutenberg")},{value:"https://schema.org/OnlineOnly",label:Object(M.__)("Online Only","ultimate-addons-for-gutenberg")},{value:"https://schema.org/OutOfStock",label:Object(M.__)("Out Of Stock","ultimate-addons-for-gutenberg")},{value:"https://schema.org/PreOrder",label:Object(M.__)("Pre Order","ultimate-addons-for-gutenberg")},{value:"https://schema.org/PreSale",label:Object(M.__)("Pre Sale","ultimate-addons-for-gutenberg")},{value:"https://schema.org/SoldOut",label:Object(M.__)("Sold Out","ultimate-addons-for-gutenberg")}],onChange:function(t){return e.props.setAttributes({offerStatus:t})}}),Object(f.createElement)("h2",null,Object(M.__)("Price Valid Until","ultimate-addons-for-gutenberg")),Object(f.createElement)(uz,{currentDate:E,onChange:function(e){return We({offerExpiry:e})},is12Hour:!0}))))}(),Object(f.createElement)(nz,{title:Object(M.__)("Style","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(la,{label:Object(M.__)("Title Typography","ultimate-addons-for-gutenberg"),attributes:e.props.attributes,setAttributes:We,loadGoogleFonts:{value:ae,label:"headLoadGoogleFonts"},fontFamily:{value:G,label:"headFontFamily"},fontWeight:{value:Z,label:"headFontWeight"},fontSubset:{value:U,label:"headFontSubset"},fontSizeType:{value:Y,label:"headFontSizeType"},fontSize:{value:K,label:"headFontSize"},fontSizeMobile:{value:J,label:"headFontSizeMobile"},fontSizeTablet:{value:$,label:"headFontSizeTablet"},lineHeightType:{value:Q,label:"headLineHeightType"},lineHeight:{value:X,label:"headLineHeight"},lineHeightMobile:{value:ee,label:"headLineHeightMobile"},lineHeightTablet:{value:te,label:"headLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Title Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:q}}))),Object(f.createElement)(Xy,{value:q,onChange:function(e){return We({titleColor:e})},allowReset:!0}),!0===Be&&Object(f.createElement)(gz,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(la,{label:Object(M.__)("Description Typography","ultimate-addons-for-gutenberg"),attributes:e.props.attributes,setAttributes:We,loadGoogleFonts:{value:me,label:"subHeadLoadGoogleFonts"},fontFamily:{value:le,label:"subHeadFontFamily"},fontWeight:{value:ne,label:"subHeadFontWeight"},fontSubset:{value:ie,label:"subHeadFontSubset"},fontSizeType:{value:ce,label:"subHeadFontSizeType"},fontSize:{value:oe,label:"subHeadFontSize"},fontSizeMobile:{value:re,label:"subHeadFontSizeMobile"},fontSizeTablet:{value:se,label:"subHeadFontSizeTablet"},lineHeightType:{value:he,label:"subHeadLineHeightType"},lineHeight:{value:ue,label:"subHeadLineHeight"},lineHeightMobile:{value:de,label:"subHeadLineHeightMobile"},lineHeightTablet:{value:ge,label:"subHeadLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Description Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:D}}))),Object(f.createElement)(Xy,{value:D,onChange:function(e){return We({descColor:e})},allowReset:!0})),!0===R&&Object(f.createElement)(gz,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Author Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:He}}))),Object(f.createElement)(Xy,{value:He,onChange:function(e){return We({authorColor:e})},allowReset:!0})),!0===P&&Object(f.createElement)(gz,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Content Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:W}}))),Object(f.createElement)(Xy,{value:W,onChange:function(e){return We({contentColor:e})},allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(la,{label:Object(M.__)("Summary Typography","ultimate-addons-for-gutenberg"),attributes:e.props.attributes,setAttributes:We,loadGoogleFonts:{value:be,label:"contentLoadGoogleFonts"},fontFamily:{value:ve,label:"contentFontFamily"},fontWeight:{value:pe,label:"contentFontWeight"},fontSubset:{value:fe,label:"contentFontSubset"},fontSizeType:{value:we,label:"contentFontSizeType"},fontSize:{value:ye,label:"contentFontSize"},fontSizeMobile:{value:xe,label:"contentFontSizeMobile"},fontSizeTablet:{value:ze,label:"contentFontSizeTablet"},lineHeightType:{value:_e,label:"contentLineHeightType"},lineHeight:{value:Oe,label:"contentLineHeight"},lineHeightMobile:{value:je,label:"contentLineHeightMobile"},lineHeightTablet:{value:Ce,label:"contentLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Summary Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ke}}))),Object(f.createElement)(Xy,{value:ke,onChange:function(e){return We({summaryColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Active Star Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:I}}))),Object(f.createElement)(Xy,{value:I,onChange:function(e){return We({starColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Inactive Star Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Se}}))),Object(f.createElement)(Xy,{value:Se,onChange:function(e){return We({starActiveColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Star Outline Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Le}}))),Object(f.createElement)(Xy,{value:Le,onChange:function(e){return We({starOutlineColor:e})},allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Overall Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(iz,{label:n.vertical_spacing,className:"uagb-margin-control",value:Me,onChange:function(e){return We({contentVrPadding:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(iz,{label:n.horizontal_spacing,className:"uagb-margin-control",value:Ee,onChange:function(e){return We({contentHrPadding:e})},min:0,max:50,allowReset:!0}))),Object(f.createElement)("div",{className:_()(Ze,"uagb-ratings__outer-wrap","uagb-block-".concat(l.substr(0,8)))},Object(f.createElement)(Zy,{rTitle:B,setTitle:function(e){return We({rTitle:e})},ctaLink:k,ctaTarget:S,rContent:V,setDescription:function(e){return We({rContent:e})},rAuthor:T,setAuthorName:function(e){return We({rAuthor:e})},headingTag:N,mainimage:A,imgSize:F,image_icon_html:at,isSelected:Ge,authorName:r,itemName:s,description:u,descriptionEnabled:Be,ID:l,imageEnabled:Ve,items:d,starCount:g,summaryTitle:m,summaryDescription:b,inactiveStarColor:v,activeStarColor:p,selectedStarColor:p,starOutlineColor:Le,setItemName:function(e){return We({itemName:e})},setImage:function(e){return We({imgID:e.id,imgURL:e.url,imgAlt:e.alt})},setItems:function(e){return We({parts:e})},setSummaryTitle:function(e){return We({summaryTitle:e})},setSummaryDescription:function(e){return We({summaryDescription:e})},hasFocus:Ge,setEditable:function(t){return e.setState({editable:t})},setActiveStarIndex:function(t){return e.setState({editedStar:t})},showfeature:P,showauthor:R}),Xe,et,Qe)]}}]),i}(dz),pz=Ky(Jy((function(e,t){var a,l=t.attributes.parts.map((function(e){return e.value})).reduce((function(e,t){return e+t}))/t.attributes.parts.length;a=["Product","SoftwareApplication","Book"].includes(t.attributes.itemType)&&"None"!=t.attributes.itemSubtype&&""!=t.attributes.itemSubtype?t.attributes.itemSubtype:t.attributes.itemType;var n={"@context":"http://schema.org/","@type":"Review",reviewBody:t.attributes.summaryDescription,description:t.attributes.rContent,itemReviewed:[],reviewRating:{"@type":"Rating",ratingValue:l,bestRating:t.attributes.starCount},author:{"@type":"Person",name:t.attributes.rAuthor},publisher:t.attributes.reviewPublisher,datePublished:t.attributes.datepublish,url:t.attributes.ctaLink};switch(t.attributes.itemType){case"Book":n.itemReviewed={"@type":a,name:t.attributes.rTitle,description:t.attributes.rContent,image:[],author:t.attributes.rAuthor,isbn:t.attributes.isbn};break;case"Course":n.itemReviewed={"@type":t.attributes.itemType,name:t.attributes.rTitle,description:t.attributes.rContent,image:[],provider:t.attributes.provider};break;case"Product":n.itemReviewed={"@type":a,name:t.attributes.rTitle,description:t.attributes.rContent,image:[],sku:t.attributes.sku,brand:{"@type":"Brand",name:t.attributes.brand},offers:[]};break;case"Movie":n.itemReviewed={"@type":t.attributes.itemType,name:t.attributes.rTitle,dateCreated:t.attributes.datecreated,director:{"@type":"Person",name:t.attributes.directorname}};break;case"SoftwareApplication":n.itemReviewed={"@type":a,name:t.attributes.rTitle,applicationCategory:t.attributes.appCategory,operatingSystem:t.attributes.operatingSystem,offers:{"@type":t.attributes.offerType,price:t.attributes.offerPrice,url:t.attributes.ctaLink,priceCurrency:t.attributes.offerCurrency}}}return t.attributes.mainimage&&(n.itemReviewed.image=t.attributes.mainimage.url),"Product"==t.attributes.itemType&&(n.itemReviewed[t.attributes.identifierType]=t.attributes.identifier,n.itemReviewed.offers={"@type":t.attributes.offerType,price:t.attributes.offerPrice,url:t.attributes.ctaLink,priceValidUntil:t.attributes.offerExpiry,priceCurrency:t.attributes.offerCurrency,availability:t.attributes.offerStatus}),{schemaJsonData:n}})))(vz),fz=wp.blockEditor.RichText;a(405),a(406),(0,wp.blocks.registerBlockType)("uagb/review",{title:uagb_blocks_info.blocks["uagb/review"].title,description:uagb_blocks_info.blocks["uagb/review"].description,icon:n.review,category:uagb_blocks_info.category,keywords:[Object(M.__)("ratings","ultimate-addons-for-gutenberg"),Object(M.__)("review","ultimate-addons-for-gutenberg"),Object(M.__)("schema","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],example:{},supports:{anchor:!0},attributes:Fy,edit:pz,save:function(e){var t=e.attributes,a=e.className,l=t.enableSchema,n=t.rTitle,i=t.rContent,o=t.mainimage,c=t.rAuthor,r=t.headingTag,s=t.starCount,u=t.ID,h=t.parts,d=t.summaryTitle,g=t.summaryDescription,m=t.inactiveStarColor,b=t.activeStarColor,v=t.selectedStarColor,p=t.starOutlineColor,w=t.schema,y=t.block_id,z=t.showAuthor,x=t.showFeature,O=t.enableDescription,C=t.enableImage,j=t.ctaTarget,M=t.ctaLink,E=h.map((function(e){return e.value})).reduce((function(e,t){return e+t}))/h.length,H="",k="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(H=t.mainimage.url,k=t.mainimage.title);var S="";if(""!==H){var L=t.mainimage.sizes,B=t.imgSize;S=void 0!==L&&void 0!==L[B]?L[B].url:H}var V="";o&&o.url&&(V=Object(f.createElement)("img",{className:"uagb-howto__source-image",src:S,title:k}));var T="";return j&&(T="_blank"),Object(f.createElement)("div",{className:_()(a,"uagb-ratings__outer-wrap","uagb-block-".concat(y.substr(0,8)))},l&&Object(f.createElement)("script",{type:"application/ld+json"},w),Object(f.createElement)("div",{className:"uagb_review_block"},Object(f.createElement)("a",{href:M,className:_()("uagb-rating-link-wrapper"),target:T,rel:"noopener noreferrer"},Object(f.createElement)(fz.Content,{value:n,className:"uagb-rating-title",tagName:r})),!0===O&&Object(f.createElement)(fz.Content,{tagName:"p",value:i,className:"uagb-rating-desc"}),!0===z&&Object(f.createElement)(fz.Content,{tagName:"p",value:c,className:"uagb-rating-author"}),!0===C&&Object(f.createElement)("div",{className:"uagb-rating__source-wrap"},V),h.map((function(e,t){return!0===x&&Object(f.createElement)("div",{className:"uagb_review_entry"},Object(f.createElement)(fz.Content,{tagName:"div",value:e.label}),Object(f.createElement)("div",{key:t,style:{marginLeft:"auto",minWidth:h.length>1?120:100}},Object(f.createElement)(Gy,{id:"".concat(t),key:t,value:e.value,limit:s,inactiveStarColor:m,activeStarColor:b,selectedStarColor:v,starOutlineColor:p})))})),Object(f.createElement)("div",{className:"uagb_review_summary"},Object(f.createElement)(fz.Content,{className:"uagb_review_summary_title",tagName:"p",value:d}),Object(f.createElement)("div",{className:"uagb_review_overall_value"},Object(f.createElement)(fz.Content,{className:"uagb_review_summary_desc",tagName:"p",value:g}),Object(f.createElement)("div",{className:"uagb_review_average"},Object(f.createElement)("span",{className:"uagb_review_rating"},Math.round(10*E)/10),Object(f.createElement)(Gy,{id:"".concat(u,"-average"),className:"uagb_review_average_stars",onHover:function(){return null},onClick:function(){return null},value:E,limit:s,inactiveStarColor:m,activeStarColor:b,selectedStarColor:v,starOutlineColor:p}))))))}}),a(407),a(408);var wz=wp.components,_z=wz.PanelBody,yz=wz.RangeControl,zz=wz.SelectControl,xz=wz.TabPanel,Oz=(wz.Dashicon,wz.TextControl),Cz=wz.Button,jz=wz.ButtonGroup,Mz=wz.ToggleControl,Ez=wp.blockEditor,Hz=Ez.InspectorControls,kz=Ez.ColorPalette,Sz=wp.element,Lz=Sz.Component,Bz=Sz.Fragment,Vz=wp.data.withSelect,Tz=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){var e;return c()(this,n),(e=l.apply(this,arguments)).onSelectPostType=e.onSelectPostType.bind(h()(e)),e.onSelectTaxonomyType=e.onSelectTaxonomyType.bind(h()(e)),e}return s()(n,[{key:"onSelectPostType",value:function(e){var t=this.props.setAttributes;t({postType:e}),t({categories:""}),t({taxonomyType:""})}},{key:"onSelectTaxonomyType",value:function(e){var t=this.props.setAttributes;t({taxonomyType:e}),t({categories:""})}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-style-taxonomy-list-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e,t){var a=document.getElementById("uagb-style-taxonomy-list-"+this.props.clientId.substr(0,8));null!=a&&void 0!==a&&(a.innerHTML=function(e){var t,a,l=e.attributes,n=l.block_id,i=l.columns,o=l.tcolumns,c=l.mcolumns,r=l.bgColor,s=l.titleColor,u=l.countColor,h=l.rowGap,d=l.columnGap,g=l.contentPadding,m=l.contentPaddingMobile,b=l.contentPaddingTablet,v=l.titleBottomSpace,p=l.alignment,f=l.listStyle,w=l.seperatorStyle,_=l.seperatorWidth,x=l.seperatorThickness,O=l.seperatorColor,C=l.listTextColor,j=l.hoverlistTextColor,M=l.listBottomMargin,E=l.listStyleColor,H=l.hoverlistStyleColor,k=l.boxShadowColor,S=l.boxShadowHOffset,L=l.boxShadowVOffset,B=l.boxShadowBlur,V=l.boxShadowSpread,T=l.boxShadowPosition,N=l.titleFontSize,A=l.titleFontSizeType,F=l.titleFontSizeMobile,P=l.titleFontSizeTablet,R=l.titleFontFamily,I=l.titleFontWeight,D=l.titleLineHeightType,q=l.titleLineHeight,W=l.titleLineHeightTablet,G=l.titleLineHeightMobile,Z=l.countFontSize,U=l.countFontSizeType,Y=l.countFontSizeMobile,K=l.countFontSizeTablet,J=l.countFontFamily,$=l.countFontWeight,Q=l.countLineHeightType,X=l.countLineHeight,ee=l.countLineHeightTablet,te=l.countLineHeightMobile,ae=l.listFontSize,le=l.listFontSizeType,ne=l.listFontSizeMobile,ie=l.listFontSizeTablet,oe=l.listFontFamily,ce=l.listFontWeight,re=(l.listFontSubset,l.listLineHeightType),se=l.listLineHeight,ue=l.listLineHeightTablet,he=l.listLineHeightMobile,de=l.borderStyle,ge=l.borderThickness,me=l.borderColor,be=l.borderRadius,ve={},pe=T;"outset"===T&&(pe=""),ve={" .uagb-taxonomy-wrap.uagb-layout-grid":{display:"grid","grid-template-columns":"repeat("+i+", 1fr)","grid-column-gap":z(d,"px"),"grid-row-gap":z(h,"px")}," .uagb-layout-grid .uagb-taxomony-box":{padding:z(g,"px"),"background-color":r,"text-align":p,"box-shadow":z(S,"px")+" "+z(L,"px")+" "+z(B,"px")+" "+z(V,"px")+" "+k+" "+pe}," .uagb-layout-grid .uagb-tax-title":{color:s,"margin-top":"0","margin-bottom":z(v,"px"),"font-size":z(N,A),"font-family":R,"font-weight":I,"line-height":z(q,D)}," .uagb-layout-grid .uagb-tax-count":{color:u,"font-size":z(Z,U),"font-family":J,"font-weight":$,"line-height":z(X,Q)}," .uagb-layout-list .uagb-tax-list":{"list-style":f,color:E,"font-size":z(ae,le),"font-family":oe,"font-weight":ce,"line-height":z(se,re)}," .uagb-layout-list .uagb-tax-list:hover":{color:H}," .uagb-layout-list .uagb-tax-list a.uagb-tax-link":{color:C}," .uagb-layout-list .uagb-tax-list a.uagb-tax-link:hover":{color:j}," .uagb-layout-list .uagb-tax-list .uagb-tax-link-wrap":{"margin-bottom":z(M,"px")}},"none"!==w&&(ve[" .uagb-layout-list .uagb-tax-separator"]={"border-top-color":O,"border-top-style":w,"border-top-width":z(x,"px"),width:z(_,"%")}),"none"!==de&&(ve[" .uagb-taxomony-box"]={border:z(ge,"px")+" "+de+" "+me,"border-radius":z(be,"px")}),a={" .uagb-taxonomy-wrap.uagb-layout-grid":{"grid-template-columns":"repeat("+c+", 1fr)"}," .uagb-layout-grid .uagb-taxomony-box":{padding:z(m,"px")}," .uagb-layout-grid .uagb-tax-title":{"font-size":z(F,A),"line-height":z(G,D)}," .uagb-layout-grid .uagb-tax-count":{"font-size":z(Y,U),"line-height":z(te,Q)}," .uagb-layout-list .uagb-tax-list":{"font-size":z(ne,le),"line-height":z(he,re)}},t={" .uagb-taxonomy-wrap.uagb-layout-grid":{"grid-template-columns":"repeat("+o+", 1fr)"}," .uagb-layout-grid .uagb-taxomony-box":{padding:z(b,"px")}," .uagb-layout-grid .uagb-tax-title":{"font-size":z(P,A),"line-height":z(W,D)}," .uagb-layout-grid .uagb-tax-count":{"font-size":z(K,U),"line-height":z(ee,Q)}," .uagb-layout-list .uagb-tax-list":{"font-size":z(ie,le),"line-height":z(ue,re)}};var fe="",we=".uagb-block-".concat(n);return fe=y(ve,we),(fe+=y(t,"".concat(we,".uagb-editor-preview-mode-tablet")))+y(a,"".concat(we,".uagb-editor-preview-mode-mobile"))}(this.props))}},{key:"render",value:function(){var e,t,a,l=this,n=this.props,i=(n.className,n.attributes),o=n.setAttributes,c=n.taxonomyList,r=n.categoriesList,s=n.termsList,u=n.deviceType,h=(i.block_id,i.postType),d=i.taxonomyType,g=i.layout,m=i.columns,b=i.tcolumns,v=i.mcolumns,p=i.bgColor,w=i.titleColor,y=i.countColor,z=i.rowGap,x=i.columnGap,O=i.contentPadding,C=i.contentPaddingMobile,j=i.contentPaddingTablet,E=i.titleBottomSpace,H=i.alignment,k=i.listStyle,S=i.seperatorStyle,L=i.seperatorWidth,B=i.seperatorThickness,V=i.seperatorColor,T=i.listTextColor,N=i.hoverlistTextColor,A=i.listBottomMargin,F=i.listStyleColor,P=i.hoverlistStyleColor,R=i.noTaxDisplaytext,I=i.boxShadowColor,D=i.boxShadowHOffset,q=i.boxShadowVOffset,W=i.boxShadowBlur,G=i.boxShadowSpread,Z=i.boxShadowPosition,U=i.showCount,Y=i.titleFontSize,K=i.titleFontSizeType,J=i.titleFontSizeMobile,$=i.titleFontSizeTablet,Q=i.titleFontFamily,X=i.titleFontWeight,ee=i.titleFontSubset,te=i.titleLineHeightType,ae=i.titleLineHeight,le=i.titleLineHeightTablet,ne=i.titleLineHeightMobile,ie=i.titleLoadGoogleFonts,oe=i.countFontSize,ce=i.countFontSizeType,re=i.countFontSizeMobile,se=i.countFontSizeTablet,ue=i.countFontFamily,he=i.countFontWeight,de=i.countFontSubset,ge=i.countLineHeightType,me=i.countLineHeight,be=i.countLineHeightTablet,ve=i.countLineHeightMobile,pe=i.countLoadGoogleFonts,fe=i.listFontSize,we=i.listFontSizeType,_e=i.listFontSizeMobile,ye=i.listFontSizeTablet,ze=i.listFontFamily,xe=i.listFontWeight,Oe=i.listFontSubset,Ce=i.listLineHeightType,je=i.listLineHeight,Me=i.listLineHeightTablet,Ee=i.listLineHeightMobile,He=i.listLoadGoogleFonts,ke=i.showEmptyTaxonomy,Se=i.borderStyle,Le=i.borderThickness,Be=i.borderColor,Ve=i.borderRadius,Te=i.listDisplayStyle,Ne=i.showhierarchy,Ae=i.titleTag,Fe=ke?c:s;if(""!=Fe&&null!=Fe){var Pe=[{value:"",label:Object(M.__)("Select Taxonomy","ultimate-addons-for-gutenberg")}];Object.keys(Fe).map((function(e,t){return Pe.push({value:c[e].name,label:c[e].label})}))}if(1==ie){var Re={google:{families:[Q+(X?":"+X:"")]}};e=Object(f.createElement)(ha,{config:Re})}if(1==pe){var Ie={google:{families:[ue+(he?":"+he:"")]}};t=Object(f.createElement)(ha,{config:Ie})}if(1==He){var De={google:{families:[ze+(xe?":"+xe:"")]}};a=Object(f.createElement)(ha,{config:De})}var qe=Object(f.createElement)(Bz,null,Object(f.createElement)("h2",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:T}}))),Object(f.createElement)(kz,{value:T,onChange:function(e){return o({listTextColor:e})},allowReset:!0}),Object(f.createElement)("br",null),"none"!=k&&Object(f.createElement)(Bz,null,Object(f.createElement)("h2",{className:"uagb-setting-label"},Object(M.__)("Bullet/Numbers Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:F}}))),Object(f.createElement)(kz,{value:F,onChange:function(e){return o({listStyleColor:e})},allowReset:!0}))),We=Object(f.createElement)(Bz,null,Object(f.createElement)("h2",{className:"uagb-setting-label"},Object(M.__)("Text Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:N}}))),Object(f.createElement)(kz,{value:N,onChange:function(e){return o({hoverlistTextColor:e})},allowReset:!0}),Object(f.createElement)("br",null),"none"!=k&&Object(f.createElement)(Bz,null,Object(f.createElement)("h2",{className:"uagb-setting-label"},Object(M.__)("Bullet/Numbers Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:P}}))),Object(f.createElement)(kz,{value:P,onChange:function(e){return o({hoverlistStyleColor:e})},allowReset:!0}))),Ge=Object(f.createElement)(Hz,null,Object(f.createElement)(_z,{title:Object(M.__)("General","ultimate-addons-for-gutenberg")},Object(f.createElement)(zz,{label:Object(M.__)("Heading Tag","ultimate-addons-for-gutenberg"),value:Ae,onChange:function(e){return o({titleTag:e})},options:[{value:"div",label:Object(M.__)("Div","ultimate-addons-for-gutenberg")},{value:"h1",label:Object(M.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(M.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(M.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(M.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(M.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(M.__)("H6","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(zz,{label:Object(M.__)("Layout","ultimate-addons-for-gutenberg"),value:g,onChange:function(e){return o({layout:e})},options:[{value:"grid",label:Object(M.__)("Grid","ultimate-addons-for-gutenberg")},{value:"list",label:Object(M.__)("List","ultimate-addons-for-gutenberg")}]}),"grid"===g&&Object(f.createElement)(Ga,null),"Desktop"===u&&"grid"===g&&Object(f.createElement)(Bz,null,Object(f.createElement)(yz,{label:Object(M.__)("Desktop Columns","ultimate-addons-for-gutenberg"),value:m,onChange:function(e){return o({columns:e})},min:1,max:4})),"Tablet"===u&&"grid"===g&&Object(f.createElement)(Bz,null,Object(f.createElement)(yz,{label:Object(M.__)("Tab Columns","ultimate-addons-for-gutenberg"),value:b,onChange:function(e){return o({tcolumns:e})},min:1,max:3})),"Mobile"===u&&"grid"===g&&Object(f.createElement)(Bz,null,Object(f.createElement)(yz,{label:Object(M.__)("Mobile Columns","ultimate-addons-for-gutenberg"),value:v,onChange:function(e){return o({mcolumns:e})},min:1,max:2})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(zz,{label:Object(M.__)("Post Type","ultimate-addons-for-gutenberg"),value:h,onChange:function(e){return l.onSelectPostType(e)},options:uagb_blocks_info.post_types}),""!=c&&Object(f.createElement)(zz,{label:Object(M.__)("Taxonomy","ultimate-addons-for-gutenberg"),value:d,onChange:function(e){return l.onSelectTaxonomyType(e)},options:Pe}),""==c&&Object(f.createElement)(Oz,{autoComplete:"off",label:Object(M.__)("Display Message","ultimate-addons-for-gutenberg"),value:R,onChange:function(e){return o({noTaxDisplaytext:e})},help:Object(M.__)("If Taxonomy Not Found","ultimate-addons-for-gutenberg")}),"list"==g&&Object(f.createElement)(Bz,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Display Style","ultimate-addons-for-gutenberg")),Object(f.createElement)(jz,{className:"uagb-list-display-style-group"},Object(f.createElement)(Cz,{key:"list",label:"List",onClick:function(){return o({listDisplayStyle:"list"})},"aria-pressed":"list"===Te,isPrimary:"list"===Te},"List"),Object(f.createElement)(Cz,{key:"dropdown",label:"Dropdown",onClick:function(){return o({listDisplayStyle:"dropdown"})},"aria-pressed":"dropdown"===Te,isPrimary:"dropdown"===Te},"Dropdown"))),Object(f.createElement)(Mz,{label:Object(M.__)("Show Empty Taxonomy","ultimate-addons-for-gutenberg"),checked:ke,onChange:function(e){return o({showEmptyTaxonomy:!ke})},help:Object(M.__)("Show Empty Taxonomy in list ")}),Object(f.createElement)(Mz,{label:Object(M.__)("Show Posts Count","ultimate-addons-for-gutenberg"),checked:U,onChange:function(e){return o({showCount:!U})},help:Object(M.__)("Show Count of taxonomy ","ultimate-addons-for-gutenberg")}),"list"==g&&"list"==Te&&"post_tag"!==d&&Object(f.createElement)(Mz,{label:Object(M.__)("Show Hierarchy","ultimate-addons-for-gutenberg"),checked:Ne,onChange:function(e){return o({showhierarchy:!Ne})},help:Object(M.__)("Show Hierarchy of taxonomy ","ultimate-addons-for-gutenberg")}),"grid"==g&&Object(f.createElement)(Bz,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Alignment","ultimate-addons-for-gutenberg")),Object(f.createElement)(Cz,{key:"left",icon:"editor-alignleft",label:"Left",onClick:function(){return o({alignment:"left"})},"aria-pressed":"left"===H,isPrimary:"left"===H}),Object(f.createElement)(Cz,{key:"center",icon:"editor-aligncenter",label:"Center",onClick:function(){return o({alignment:"center"})},"aria-pressed":"center"===H,isPrimary:"center"===H}),Object(f.createElement)(Cz,{key:"right",icon:"editor-alignright",label:"Right",onClick:function(){return o({alignment:"right"})},"aria-pressed":"right"===H,isPrimary:"right"===H})),"list"==g&&"dropdown"!==Te&&Object(f.createElement)(Bz,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("List Style","ultimate-addons-for-gutenberg")),Object(f.createElement)(Cz,{key:"bullet",icon:"editor-ul",label:"Bullet",onClick:function(){return o({listStyle:"disc"})},"aria-pressed":"disc"===k,isPrimary:"disc"===k}),Object(f.createElement)(Cz,{key:"numbers",icon:"editor-ol",label:"Numbers",onClick:function(){return o({listStyle:"decimal"})},"aria-pressed":"decimal"===k,isPrimary:"decimal"===k}),Object(f.createElement)(Cz,{key:"none",icon:"menu",label:"None",onClick:function(){return o({listStyle:"none"})},"aria-pressed":"none"===k,isPrimary:"none"===k}))),"dropdown"!==Te&&Object(f.createElement)(Bz,null,Object(f.createElement)(_z,{title:Object(M.__)("Color","ultimate-addons-for-gutenberg"),initialOpen:!1},"grid"==g&&Object(f.createElement)(Bz,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:p}}))),Object(f.createElement)(kz,{value:p,onChange:function(e){return o({bgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Title Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:w}}))),Object(f.createElement)(kz,{value:w,onChange:function(e){return o({titleColor:e})},allowReset:!0}),U&&Object(f.createElement)(Bz,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Count Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:y}}))),Object(f.createElement)(kz,{value:y,onChange:function(e){return o({countColor:e})},allowReset:!0}))),"list"==g&&Object(f.createElement)(xz,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:Object(M.__)("Normal","ultimate-addons-for-gutenberg"),className:"uagb-normal-tab"},{name:"hover",title:Object(M.__)("Hover","ultimate-addons-for-gutenberg"),className:"uagb-hover-tab"}]},(function(e){var t;return t="normal"===e.name?qe:We,Object(f.createElement)("div",null,t)}))),Object(f.createElement)(_z,{title:Object(M.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},"grid"==g&&Object(f.createElement)(Bz,null,Object(f.createElement)(yz,{label:Object(M.__)("Row Gap","ultimate-addons-for-gutenberg"),value:z,onChange:function(e){return o({rowGap:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(yz,{label:Object(M.__)("Column Gap","ultimate-addons-for-gutenberg"),value:x,onChange:function(e){return o({columnGap:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),"grid"===g&&Object(f.createElement)(Ga,null),"Desktop"===u&&"grid"===g&&Object(f.createElement)(Bz,null,Object(f.createElement)(yz,{label:Object(M.__)("Content Padding"),value:O,onChange:function(e){return o({contentPadding:e})},min:10,max:100})),"Tablet"===u&&"grid"===g&&Object(f.createElement)(Bz,null,Object(f.createElement)(yz,{label:Object(M.__)("Content Padding"),value:j,onChange:function(e){return o({contentPaddingTablet:e})},min:0,max:100})),"Mobile"===u&&"grid"===g&&Object(f.createElement)(Bz,null,Object(f.createElement)(yz,{label:Object(M.__)("Content Padding"),value:C,onChange:function(e){return o({contentPaddingMobile:e})},min:0,max:100})),U&&Object(f.createElement)(Bz,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(yz,{label:Object(M.__)("Title Bottom Spacing","ultimate-addons-for-gutenberg"),value:E,onChange:function(e){return o({titleBottomSpace:e})},min:0,max:50,allowReset:!0}))),"list"==g&&Object(f.createElement)(yz,{label:Object(M.__)("Bottom Margin","ultimate-addons-for-gutenberg"),value:A,onChange:function(e){return o({listBottomMargin:e})},min:0,max:100,allowReset:!0})),Object(f.createElement)(_z,{title:Object(M.__)("Style","ultimate-addons-for-gutenberg"),initialOpen:!1},"grid"==g&&Object(f.createElement)(Bz,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Title ","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:ie,label:"titleLoadGoogleFonts"},fontFamily:{value:Q,label:"titleFontFamily"},fontWeight:{value:X,label:"titleFontWeight"},fontSubset:{value:ee,label:"titleFontSubset"},fontSizeType:{value:K,label:"titleFontSizeType"},fontSize:{value:Y,label:"titleFontSize"},fontSizeMobile:{value:J,label:"titleFontSizeMobile"},fontSizeTablet:{value:$,label:"titleFontSizeTablet"},lineHeightType:{value:te,label:"titleLineHeightType"},lineHeight:{value:ae,label:"titleLineHeight"},lineHeightMobile:{value:ne,label:"titleLineHeightMobile"},lineHeightTablet:{value:le,label:"titleLineHeightTablet"}}),U&&Object(f.createElement)(Bz,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Count ","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:pe,label:"countLoadGoogleFonts"},fontFamily:{value:ue,label:"countFontFamily"},fontWeight:{value:he,label:"countFontWeight"},fontSubset:{value:de,label:"countFontSubset"},fontSizeType:{value:ce,label:"countFontSizeType"},fontSize:{value:oe,label:"countFontSize"},fontSizeMobile:{value:re,label:"countFontSizeMobile"},fontSizeTablet:{value:se,label:"countFontSizeTablet"},lineHeightType:{value:ge,label:"countLineHeightType"},lineHeight:{value:me,label:"countLineHeight"},lineHeightMobile:{value:ve,label:"countLineHeightMobile"},lineHeightTablet:{value:be,label:"countLineHeightTablet"}})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Oi,{setAttributes:o,label:Object(M.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:I,label:Object(M.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:D,label:Object(M.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:q,label:Object(M.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:W,label:Object(M.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:G,label:Object(M.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:Z,label:Object(M.__)("Position","ultimate-addons-for-gutenberg")}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(zz,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:Se,onChange:function(e){return o({borderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=Se&&Object(f.createElement)(Bz,null,Object(f.createElement)(yz,{label:Object(M.__)("Border Thickness","ultimate-addons-for-gutenberg"),value:Le,onChange:function(e){return o({borderThickness:e})},min:0,max:10,allowReset:!0}),Object(f.createElement)(yz,{label:Object(M.__)("Rounded Corners (px)","ultimate-addons-for-gutenberg"),value:Ve,onChange:function(e){o({borderRadius:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Be}}))),Object(f.createElement)(kz,{value:Be,onChange:function(e){return o({borderColor:e})},allowReset:!0}))),"list"==g&&Object(f.createElement)(Bz,null,Object(f.createElement)(zz,{label:Object(M.__)("Separator Style","ultimate-addons-for-gutenberg"),value:S,onChange:function(e){return o({seperatorStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=S&&Object(f.createElement)(Bz,null,Object(f.createElement)(yz,{label:Object(M.__)("Separator Width (%)","ultimate-addons-for-gutenberg"),value:L,onChange:function(e){return o({seperatorWidth:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(yz,{label:Object(M.__)("Separator Thickness","ultimate-addons-for-gutenberg"),value:B,onChange:function(e){return o({seperatorThickness:e})},min:0,max:20,allowReset:!0}),Object(f.createElement)(Bz,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Separator Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:V}}))),Object(f.createElement)(kz,{value:V,onChange:function(e){return o({seperatorColor:e})},allowReset:!0}))),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("List ","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:He,label:"listLoadGoogleFonts"},fontFamily:{value:ze,label:"listFontFamily"},fontWeight:{value:xe,label:"listFontWeight"},fontSubset:{value:Oe,label:"listFontSubset"},fontSizeType:{value:we,label:"listFontSizeType"},fontSize:{value:fe,label:"listFontSize"},fontSizeMobile:{value:_e,label:"listFontSizeMobile"},fontSizeTablet:{value:ye,label:"listFontSizeTablet"},lineHeightType:{value:Ce,label:"listLineHeightType"},lineHeight:{value:je,label:"listLineHeight"},lineHeightMobile:{value:Ee,label:"listLineHeightMobile"},lineHeightTablet:{value:Me,label:"listLineHeightTablet"}})))));if("grid"==g)var Ze=Ae||"H4";else"list"==g&&(Ze=Ae||"div");return Object(f.createElement)(Bz,null,Ge,Object(f.createElement)("div",{className:_()("uagb-taxonomy__outer-wrap","uagb-editor-preview-mode-".concat(u.toLowerCase()),"uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:_()("uagb-taxonomy-wrap","uagb-layout-".concat(g))},"grid"==g&&r.map((function(e,t){return Object(f.createElement)("div",{className:"uagb-taxomony-box",key:t},Object(f.createElement)("a",{className:"uagb-tax-link",href:e.link},Object(f.createElement)(Ze,{className:"uagb-tax-title",dangerouslySetInnerHTML:{__html:e.name}}),U&&Object(f.createElement)("div",{className:"uagb-tax-count"},e.count," ",e.count>"1"?"".concat(e.singular_name,"s"):e.singular_name)))})),"list"==g&&"list"==Te&&Object(f.createElement)("ul",{className:"uagb-list-wrap"},r.map((function(e,t){return Object(f.createElement)("li",{className:"uagb-tax-list",key:t},Object(f.createElement)(Ze,{className:"uagb-tax-link-wrap"},Object(f.createElement)("a",{className:"uagb-tax-link",href:e.link,dangerouslySetInnerHTML:{__html:e.name}}),U&&Object(f.createElement)("span",{className:"uagb-tax-list-count"}," (".concat(e.count,")")),Ne&&null!=e.children&&Object(f.createElement)("ul",{className:"uagb-taxonomy-list-children"},Object.keys(e.children).map((function(t,a){return Object(f.createElement)("li",{className:"uagb-tax-list",key:a},Object(f.createElement)("a",{className:"uagb-tax-link",href:"".concat(e.link).concat(e.children[t].slug)},e.children[t].name),U&&Object(f.createElement)("span",null," (".concat(e.children[t].count,")")))})))),"none"!=S&&Object(f.createElement)("div",{className:"uagb-tax-separator-wrap"},Object(f.createElement)("div",{className:"uagb-tax-separator"})))}))),"list"==g&&"dropdown"==Te&&Object(f.createElement)("select",{className:"uagb-list-dropdown-wrap"},r.map((function(e,t){return Object(f.createElement)("option",{value:e.link},e.name,U&&" (".concat(e.count,")"))})))),""==r&&Object(f.createElement)("div",{className:"uagb-tax-not-available"},R)),e,t,a)}}]),n}(Lz),Nz=Vz((function(e,t){var a=t.attributes,l=(a.categories,a.postsToShow),n=a.order,i=a.orderBy,o=a.postType,c=a.taxonomyType,r=a.showEmptyTaxonomy,s=e("core").getEntityRecords,u=e("core/edit-post").__experimentalGetPreviewDeviceType,h=void 0===u?null:u,d=h?h():null,g=uagb_blocks_info.taxonomy_list[o],m=r?"with_empty_taxonomy":"without_empty_taxonomy",b=[];return void 0!==g&&void 0!==g[m]&&void 0!==g[m][c]&&(b=g[m][c]),{latestPosts:s("postType",o,{order:n,orderby:i,per_page:l}),categoriesList:b,taxonomyList:void 0!==g?g.taxonomy:[],termsList:void 0!==g?g.terms:[],deviceType:d}}))(Tz);(0,wp.blocks.registerBlockType)("uagb/taxonomy-list",{title:uagb_blocks_info.blocks["uagb/taxonomy-list"].title,description:uagb_blocks_info.blocks["uagb/taxonomy-list"].description,icon:n.taxonomy_list,category:uagb_blocks_info.category,keywords:[Object(M.__)("post","ultimate-addons-for-gutenberg"),Object(M.__)("taxonomy","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],example:{},edit:Nz,save:function(){return null}});var Az={block_id:{type:"string"},submitButtonText:{type:"string",default:Object(M.__)("Submit","ultimate-addons-for-gutenberg")},formLabel:{type:"string",default:Object(M.__)("UAG Form","ultimate-addons-for-gutenberg")},buttonAlign:{type:"string",default:"left"},confirmationType:{type:"string",default:"message"},confirmationMessage:{type:"string",default:Object(M.__)("The form has been submitted successfully!","ultimate-addons-for-gutenberg")},failedMessage:{type:"string",default:Object(M.__)("There has been some error while submitting the form. Please verify all form fields again.","ultimate-addons-for-gutenberg")},confirmationUrl:{type:"string"},sendAfterSubmitEmail:{type:"boolean",default:!0},afterSubmitToEmail:{type:"string",default:""},afterSubmitCcEmail:{type:"string",default:""},afterSubmitBccEmail:{type:"string",default:""},afterSubmitEmailSubject:{type:"string",default:Object(M.__)("Form Submission","ultimate-addons-for-gutenberg")},submitColor:{type:"string",default:"#ffffff"},submitColorHover:{type:"string",default:"#000000"},submitBgColor:{type:"string",default:"#000000"},submitBgColorHover:{type:"string",default:"#ffffff"},buttonSize:{type:"string",default:"medium"},submitborderStyle:{type:"string"},submitborderWidth:{type:"number"},submitborderRadius:{type:"number",default:3},submitborderColor:{type:"string"},submitborderHoverColor:{type:"string"},hPaddingSubmit:{type:"number"},vPaddingSubmit:{type:"number"},submitTextloadGoogleFonts:{type:"boolean",default:!1},submitTextFontFamily:{type:"string",default:"Default"},submitTextFontWeight:{type:"string"},submitTextFontSubset:{type:"string"},submitTextFontSize:{type:"number",default:15},submitTextFontSizeType:{type:"string",default:"px"},submitTextFontSizeTablet:{type:"number",default:15},submitTextFontSizeMobile:{type:"number",default:15},submitTextLineHeightType:{type:"string",default:"em"},submitTextLineHeight:{type:"number"},submitTextLineHeightTablet:{type:"number"},submitTextLineHeightMobile:{type:"number"},labelloadGoogleFonts:{type:"boolean",default:!1},labelFontFamily:{type:"string",default:"Default"},labelFontWeight:{type:"string"},labelFontSubset:{type:"string"},labelFontSize:{type:"number",default:15},labelFontSizeType:{type:"string",default:"px"},labelFontSizeTablet:{type:"number",default:15},labelFontSizeMobile:{type:"number",default:15},labelLineHeightType:{type:"string",default:"em"},labelLineHeight:{type:"number"},labelLineHeightTablet:{type:"number"},labelLineHeightMobile:{type:"number"},inputloadGoogleFonts:{type:"boolean",default:!1},inputFontFamily:{type:"string",default:"Default"},inputFontWeight:{type:"string"},inputFontSubset:{type:"string"},inputFontSize:{type:"number"},inputFontSizeType:{type:"string",default:"px"},inputFontSizeTablet:{type:"number",default:15},inputFontSizeMobile:{type:"number",default:15},inputLineHeightType:{type:"string",default:"em"},inputLineHeight:{type:"number"},toggleSize:{type:"number",default:15},toggleWidthSize:{type:"number",default:0},toggleActiveColor:{type:"string",default:"#000000"},toggleHeightSize:{type:"number",default:0},inputLineHeightTablet:{type:"number"},inputLineHeightMobile:{type:"number"},labelColor:{type:"string",default:"#000000"},inputColor:{type:"string",default:"#000000"},bgColor:{type:"string"},inputplaceholderColor:{type:"string",default:"#abb8c3"},inputactiveColor:{type:"string",default:"#000000"},inputborderStyle:{type:"string",default:"solid"},inputborderWidth:{type:"number",default:1},inputborderRadius:{type:"number",default:3},inputborderColor:{type:"string",default:"#BDBDBD"},inputborderHoverColor:{type:"string"},hPaddingField:{type:"number",default:10},vPaddingField:{type:"number",default:10},fieldGap:{type:"number",default:20},formStyle:{type:"string",default:"boxed"},overallAlignment:{type:"string",default:"left"},reCaptchaEnable:{type:"boolean",default:!1},reCaptchaType:{type:"string",default:"v2"},reCaptchaSiteKeyV2:{type:"string",default:""},reCaptchaSecretKeyV2:{type:"string",default:""},reCaptchaSiteKeyV3:{type:"string",default:""},reCaptchaSecretKeyV3:{type:"string",default:""},hidereCaptchaBatch:{type:"boolean",default:!1},successMessageTextColor:{type:"string",default:"#000000"},successMessageBGColor:{type:"string",default:"#00800030"},successMessageBorderColor:{type:"string",default:"green"},successMessageBorderStyle:{type:"string",default:"solid"},successMessageBorderWidth:{type:"string",default:"2"},failedMessageTextColor:{type:"string",default:"#000000"},failedMessageBorderColor:{type:"string",default:"red"},failedMessageBGColor:{type:"string",default:"#f5f5f5"},captchaMessage:{type:"string",default:Object(M.__)("Please fill up the above captcha.","ultimate-addons-for-gutenberg")}};var Fz=wp.data,Pz=Fz.withSelect,Rz=Fz.useDispatch,Iz=wp.compose,Dz=Iz.compose,qz=Iz.createHigherOrderComponent,Wz=wp.element.Component,Gz=wp.blocks.createBlock,Zz=wp.blockEditor,Uz=Zz.InnerBlocks,Yz=Zz.RichText,Kz=Zz.InspectorControls,Jz=Zz.ColorPalette,$z=Zz.__experimentalBlockVariationPicker,Qz=wp.components,Xz=Qz.PanelBody,ex=Qz.SelectControl,tx=Qz.RangeControl,ax=Qz.Button,lx=Qz.TextControl,nx=Qz.ToggleControl,ix=Qz.TabPanel,ox=Qz.ButtonGroup,cx=Qz.TextareaControl,rx=Qz.CheckboxControl,sx=Qz.ExternalLink,ux=Qz.withNotices,hx=["uagb/forms-name","uagb/forms-email","uagb/forms-hidden","uagb/forms-phone","uagb/forms-textarea","uagb/forms-url","uagb/forms-select","uagb/forms-radio","uagb/forms-checkbox","uagb/forms-toggle","uagb/forms-date","uagb/forms-accept"],dx=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).blockVariationPickerOnSelect=e.blockVariationPickerOnSelect.bind(h()(e)),e}return s()(i,[{key:"onSubmitClick",value:function(e){e.preventDefault()}},{key:"blockVariationPickerOnSelect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.defaultVariation;e.attributes&&this.props.setAttributes(e.attributes),e.innerBlocks&&this.props.replaceInnerBlocks(this.props.clientId,this.createBlocksFromInnerBlocksTemplate(e.innerBlocks))}},{key:"createBlocksFromInnerBlocksTemplate",value:function(e){var t=this;return S()(e,(function(e){var a=Na()(e,3),l=a[0],n=a[1],i=a[2],o=void 0===i?[]:i;return Gz(l,n,t.createBlocksFromInnerBlocksTemplate(o))}))}},{key:"render",value:function(){var e,t,a,l=this,i=this.props,o=i.attributes,c=i.setAttributes,r=i.variations,s=i.hasInnerBlocks,u=o.block_id,h=o.submitButtonText,d=o.formLabel,g=o.buttonAlign,m=o.buttonSize,b=o.confirmationType,v=o.confirmationMessage,p=o.failedMessage,w=o.confirmationUrl,y=o.sendAfterSubmitEmail,z=o.afterSubmitToEmail,x=o.afterSubmitCcEmail,O=o.afterSubmitBccEmail,C=o.afterSubmitEmailSubject,j=o.submitColor,E=o.submitColorHover,H=o.submitBgColor,k=o.submitBgColorHover,S=o.submitborderStyle,L=o.submitborderWidth,V=o.submitborderRadius,T=o.submitborderColor,N=o.submitborderHoverColor,A=o.vPaddingSubmit,F=o.hPaddingSubmit,P=o.submitTextloadGoogleFonts,R=o.submitTextFontFamily,I=o.submitTextFontWeight,D=o.submitTextFontSubset,q=o.submitTextFontSize,W=o.submitTextFontSizeType,G=o.submitTextFontSizeTablet,Z=o.submitTextFontSizeMobile,U=o.submitTextLineHeightType,Y=o.submitTextLineHeight,K=o.submitTextLineHeightTablet,J=o.submitTextLineHeightMobile,$=o.labelloadGoogleFonts,Q=o.labelFontFamily,X=o.labelFontWeight,ee=o.labelFontSubset,te=o.labelFontSize,ae=o.labelFontSizeType,le=o.labelFontSizeTablet,ne=o.labelFontSizeMobile,ie=o.labelLineHeightType,oe=o.labelLineHeight,ce=o.labelLineHeightTablet,re=o.labelLineHeightMobile,se=o.inputloadGoogleFonts,ue=o.inputFontFamily,he=o.inputFontWeight,de=o.inputFontSubset,ge=o.inputFontSize,me=o.inputFontSizeType,be=o.inputFontSizeTablet,ve=o.inputFontSizeMobile,pe=o.inputLineHeightType,fe=o.inputLineHeight,we=o.inputLineHeightTablet,_e=o.inputLineHeightMobile,ye=o.toggleSize,ze=o.toggleWidthSize,xe=o.toggleHeightSize,Oe=o.toggleActiveColor,Ce=o.labelColor,je=o.inputColor,Me=o.bgColor,Ee=o.inputplaceholderColor,He=o.inputactiveColor,ke=o.inputborderStyle,Se=o.inputborderWidth,Le=o.inputborderRadius,Be=o.inputborderColor,Ve=o.inputborderHoverColor,Te=o.vPaddingField,Ne=o.hPaddingField,Ae=o.fieldGap,Fe=o.formStyle,Pe=o.overallAlignment,Re=o.reCaptchaEnable,Ie=o.reCaptchaType,De=o.reCaptchaSecretKeyV2,qe=o.reCaptchaSiteKeyV2,We=o.reCaptchaSecretKeyV3,Ge=o.reCaptchaSiteKeyV3,Ze=o.hidereCaptchaBatch,Ue=o.successMessageTextColor,Ye=o.successMessageBGColor,Ke=o.successMessageBorderColor,Je=o.successMessageBorderStyle,$e=o.successMessageBorderWidth,Qe=o.failedMessageTextColor,Xe=o.failedMessageBorderColor,et=o.failedMessageBorderStyle,tt=o.failedMessageBorderWidth,at=o.failedMessageBGColor;if(1==P){var lt={google:{families:[R+(I?":"+I:"")]}};e=Object(f.createElement)(ha,{config:lt})}if(1==$){var nt={google:{families:[Q+(X?":"+X:"")]}};t=Object(f.createElement)(ha,{config:nt})}if(1==se){var it={google:{families:[ue+(he?":"+he:"")]}};a=Object(f.createElement)(ha,{config:it})}return s?Object(f.createElement)(B.Fragment,null,Object(f.createElement)(Kz,null,Object(f.createElement)(Xz,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(lx,{label:Object(M.__)("Hidden Field Label","ultimate-addons-for-gutenberg"),value:d,onChange:function(e){return c({formLabel:e})}}),Object(f.createElement)(ex,{label:Object(M.__)("Style","ultimate-addons-for-gutenberg"),value:Fe,onChange:function(e){return c({formStyle:e})},options:[{value:"boxed",label:Object(M.__)("Boxed","ultimate-addons-for-gutenberg")},{value:"underlined",label:Object(M.__)("Underlined","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("h2",null," ",Object(M.__)("Overall Alignment","ultimate-addons-for-gutenberg")),Object(f.createElement)(ax,{key:"left",icon:"editor-alignleft",label:Object(M.__)("Left","ultimate-addons-for-gutenberg"),onClick:function(){return c({overallAlignment:"left"})},"aria-pressed":"left"===Pe,isPrimary:"left"===Pe}),Object(f.createElement)(ax,{key:"center",icon:"editor-aligncenter",label:Object(M.__)("Right","ultimate-addons-for-gutenberg"),onClick:function(){return c({overallAlignment:"center"})},"aria-pressed":"center"===Pe,isPrimary:"center"===Pe}),Object(f.createElement)(ax,{key:"right",icon:"editor-alignright",label:Object(M.__)("Right","ultimate-addons-for-gutenberg"),onClick:function(){return c({overallAlignment:"right"})},"aria-pressed":"right"===Pe,isPrimary:"right"===Pe}),Object(f.createElement)("h2",null," ",Object(M.__)("Confirmation Type","ultimate-addons-for-gutenberg")),Object(f.createElement)(ox,{className:"uagb-forms-button-group","aria-label":Object(M.__)("Confirmation Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(ax,{key:"message",isSmall:!0,isPrimary:"message"===b,"aria-pressed":"message"===b,onClick:function(){return c({confirmationType:"message"})}},Object(M.__)("Message","ultimate-addons-for-gutenberg")),Object(f.createElement)(ax,{key:"url",isSmall:!0,isPrimary:"url"===b,"aria-pressed":"url"===b,onClick:function(){return c({confirmationType:"url"})}},Object(M.__)("URL","ultimate-addons-for-gutenberg"))),"message"===b&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)(Xz,{title:Object(M.__)("Success Message","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)(cx,{label:"Success Message Text",help:Object(M.__)("Enter a message you want to display after successfull form submission","ultimate-addons-for-gutenberg"),value:v,onChange:function(e){return c({confirmationMessage:e})}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{Color:Ue}}))),Object(f.createElement)(Jz,{value:Ue,onChange:function(e){return c({successMessageTextColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ye}}))),Object(f.createElement)(Jz,{value:Ye,onChange:function(e){return c({successMessageBGColor:e})},allowReset:!0}),Object(f.createElement)(ex,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:Je,onChange:function(e){return c({successMessageBorderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(tx,{label:Object(M.__)("Border Width","ultimate-addons-for-gutenberg"),value:$e,onChange:function(e){return c({successMessageBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ke}}))),Object(f.createElement)(Jz,{value:Ke,onChange:function(e){return c({successMessageBorderColor:e})},allowReset:!0})),Object(f.createElement)(Xz,{title:Object(M.__)("Error Message ","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)(cx,{label:"Error Message Text",help:Object(M.__)("Enter a message you want to display after unsuccessfull form submission","ultimate-addons-for-gutenberg"),value:p,onChange:function(e){return c({failedMessage:e})}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Qe}}))),Object(f.createElement)(Jz,{value:Qe,onChange:function(e){return c({failedMessageTextColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:at}}))),Object(f.createElement)(Jz,{value:at,onChange:function(e){return c({failedMessageBGColor:e})},allowReset:!0}),Object(f.createElement)(ex,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:et,onChange:function(e){return c({failedMessageBorderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(tx,{label:Object(M.__)("Border Width","ultimate-addons-for-gutenberg"),value:tt,onChange:function(e){return c({failedMessageBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Xe}}))),Object(f.createElement)(Jz,{value:Xe,onChange:function(e){return c({failedMessageBorderColor:e})},allowReset:!0}))),"url"===b&&Object(f.createElement)(lx,{label:Object(M.__)("Success Redirect URL","ultimate-addons-for-gutenberg"),help:Object(M.__)("Enter a URL you want to redirect your page to after form Submission","ultimate-addons-for-gutenberg"),value:w,onChange:function(e){return c({confirmationUrl:e})}})),Object(f.createElement)(Xz,{title:Object(M.__)("Submit Button","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)(B.Fragment,null,Object(f.createElement)(ex,{label:Object(M.__)("Button Size","ultimate-addons-for-gutenberg"),value:m,onChange:function(e){return c({buttonSize:e})},options:[{value:"small",label:Object(M.__)("Small","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(M.__)("Medium","ultimate-addons-for-gutenberg")},{value:"large",label:Object(M.__)("Large","ultimate-addons-for-gutenberg")},{value:"extralarge",label:Object(M.__)("Extra Large","ultimate-addons-for-gutenberg")},{value:"full",label:Object(M.__)("Full","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("h2",null," ",Object(M.__)("Button Alignment","ultimate-addons-for-gutenberg")),Object(f.createElement)(ax,{key:"left",icon:"editor-alignleft",label:Object(M.__)("Left","ultimate-addons-for-gutenberg"),onClick:function(){return c({buttonAlign:"left"})},"aria-pressed":"left"===g,isPrimary:"left"===g}),Object(f.createElement)(ax,{key:"center",icon:"editor-aligncenter",label:Object(M.__)("Right","ultimate-addons-for-gutenberg"),onClick:function(){return c({buttonAlign:"center"})},"aria-pressed":"center"===g,isPrimary:"center"===g}),Object(f.createElement)(ax,{key:"right",icon:"editor-alignright",label:Object(M.__)("Right","ultimate-addons-for-gutenberg"),onClick:function(){return c({buttonAlign:"right"})},"aria-pressed":"right"===g,isPrimary:"right"===g}),Object(f.createElement)("h2",null,Object(M.__)("Button Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(tx,{label:n.vertical_spacing,className:"uagb-padding-control submit-btn-control",value:A,onChange:function(e){return c({vPaddingSubmit:e})},min:0,max:100}),Object(f.createElement)(tx,{label:n.horizontal_spacing,className:"uagb-padding-control submit-btn-control",value:F,onChange:function(e){return c({hPaddingSubmit:e})},min:0,max:100})),Object(f.createElement)(ix,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:Object(M.__)("Normal","ultimate-addons-for-gutenberg"),className:"uagb-normal-tab"},{name:"hover",title:Object(M.__)("Hover","ultimate-addons-for-gutenberg"),className:"uagb-focus-tab"}]},(function(e){var t;return t="normal"===e.name?Object(f.createElement)(B.Fragment,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Submit Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:j}}))),Object(f.createElement)(Jz,{value:j,onChange:function(e){return c({submitColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:H}}))),Object(f.createElement)(Jz,{value:H,onChange:function(e){return c({submitBgColor:e})},allowReset:!0})):Object(f.createElement)(B.Fragment,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Submit Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:E}}))),Object(f.createElement)(Jz,{value:E,onChange:function(e){return c({submitColorHover:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:k}}))),Object(f.createElement)(Jz,{value:k,onChange:function(e){return c({submitBgColorHover:e})},allowReset:!0})),Object(f.createElement)("div",null,t)})),Object(f.createElement)(ex,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:S,onChange:function(e){return c({submitborderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=S&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)(tx,{label:Object(M.__)("Border Width","ultimate-addons-for-gutenberg"),value:L,onChange:function(e){return c({submitborderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(tx,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:V,onChange:function(e){return c({submitborderRadius:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:T}}))),Object(f.createElement)(Jz,{value:T,onChange:function(e){return c({submitborderColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:N}}))),Object(f.createElement)(Jz,{value:N,onChange:function(e){return c({submitborderHoverColor:e})},allowReset:!0})),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:o,setAttributes:c,loadGoogleFonts:{value:P,label:Object(M.__)("submitTextloadGoogleFonts","ultimate-addons-for-gutenberg")},fontFamily:{value:R,label:Object(M.__)("submitTextFontFamily","ultimate-addons-for-gutenberg")},fontWeight:{value:I,label:Object(M.__)("submitTextFontWeight","ultimate-addons-for-gutenberg")},fontSubset:{value:D,label:Object(M.__)("submitTextFontSubset","ultimate-addons-for-gutenberg")},fontSizeType:{value:W,label:Object(M.__)("submitTextFontSizeType","ultimate-addons-for-gutenberg")},fontSize:{value:q,label:Object(M.__)("submitTextFontSize","ultimate-addons-for-gutenberg")},fontSizeMobile:{value:Z,label:Object(M.__)("submitTextFontSizeMobile","ultimate-addons-for-gutenberg")},fontSizeTablet:{value:G,label:Object(M.__)("submitTextFontSizeTablet","ultimate-addons-for-gutenberg")},lineHeightType:{value:U,label:Object(M.__)("submitTextLineHeightType","ultimate-addons-for-gutenberg")},lineHeight:{value:Y,label:Object(M.__)("submitTextLineHeight","ultimate-addons-for-gutenberg")},lineHeightMobile:{value:J,label:Object(M.__)("submitTextLineHeightMobile","ultimate-addons-for-gutenberg")},lineHeightTablet:{value:K,label:Object(M.__)("submitTextLineHeightTablet","ultimate-addons-for-gutenberg")}})),Object(f.createElement)(Xz,{title:Object(M.__)("After Submit Actions"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)(rx,{label:"Email",checked:y,onChange:function(e){return c({sendAfterSubmitEmail:e})}}),!0===y&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)(ix,{className:"uagb-size-type-field-tabs components-base-control uagb-size-type-field__common-tabs uagb-inline-margin uagb-email-controls-tabs",activeClass:"active-tab",tabs:[{name:"to",title:"To",className:"uagb-desktop-tab uagb-responsive-tabs"},{name:"cc",title:"CC",className:"uagb-tablet-tab uagb-responsive-tabs"},{name:"bcc",title:"BCC",className:"uagb-mobile-tab uagb-responsive-tabs"}]},(function(e){var t;return t="to"===e.name?Object(f.createElement)(lx,{label:Object(M.__)("To","ultimate-addons-for-gutenberg"),placeholder:Object(M.__)("Email","ultimate-addons-for-gutenberg"),value:z,onChange:function(e){return c({afterSubmitToEmail:e})}}):"cc"===e.name?Object(f.createElement)(lx,{label:Object(M.__)("CC","ultimate-addons-for-gutenberg"),placeholder:Object(M.__)("Email","ultimate-addons-for-gutenberg"),value:x,onChange:function(e){return c({afterSubmitCcEmail:e})}}):Object(f.createElement)(lx,{label:Object(M.__)("BCC","ultimate-addons-for-gutenberg"),placeholder:Object(M.__)("Email","ultimate-addons-for-gutenberg"),value:O,onChange:function(e){return c({afterSubmitBccEmail:e})}}),Object(f.createElement)("div",{className:"uagb-form-emailto"},t)})),Object(f.createElement)(lx,{label:Object(M.__)("Subject","ultimate-addons-for-gutenberg"),placeholder:Object(M.__)("Subject","ultimate-addons-for-gutenberg"),value:C,onChange:function(e){return c({afterSubmitEmailSubject:e})}}))),Object(f.createElement)(Xz,{title:Object(M.__)("Design","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)(la,{label:Object(M.__)("Label Typography","ultimate-addons-for-gutenberg"),attributes:o,setAttributes:c,loadGoogleFonts:{value:$,label:Object(M.__)("labelloadGoogleFonts","ultimate-addons-for-gutenberg")},fontFamily:{value:Q,label:Object(M.__)("labelFontFamily","ultimate-addons-for-gutenberg")},fontWeight:{value:X,label:Object(M.__)("labelFontWeight","ultimate-addons-for-gutenberg")},fontSubset:{value:ee,label:Object(M.__)("labelFontSubset","ultimate-addons-for-gutenberg")},fontSizeType:{value:ae,label:Object(M.__)("labelFontSizeType","ultimate-addons-for-gutenberg")},fontSize:{value:te,label:Object(M.__)("labelFontSize","ultimate-addons-for-gutenberg")},fontSizeMobile:{value:ne,label:Object(M.__)("labelFontSizeMobile","ultimate-addons-for-gutenberg")},fontSizeTablet:{value:le,label:Object(M.__)("labelFontSizeTablet","ultimate-addons-for-gutenberg")},lineHeightType:{value:ie,label:Object(M.__)("labelLineHeightType","ultimate-addons-for-gutenberg")},lineHeight:{value:oe,label:Object(M.__)("labelLineHeight","ultimate-addons-for-gutenberg")},lineHeightMobile:{value:re,label:Object(M.__)("labelLineHeightMobile","ultimate-addons-for-gutenberg")},lineHeightTablet:{value:ce,label:Object(M.__)("labelLineHeightTablet","ultimate-addons-for-gutenberg")}}),Object(f.createElement)(la,{label:Object(M.__)("Input Typography","ultimate-addons-for-gutenberg"),attributes:o,setAttributes:c,loadGoogleFonts:{value:se,label:Object(M.__)("inputloadGoogleFonts","ultimate-addons-for-gutenberg")},fontFamily:{value:ue,label:Object(M.__)("inputFontFamily","ultimate-addons-for-gutenberg")},fontWeight:{value:he,label:Object(M.__)("inputFontWeight","ultimate-addons-for-gutenberg")},fontSubset:{value:de,label:Object(M.__)("inputFontSubset","ultimate-addons-for-gutenberg")},fontSizeType:{value:me,label:Object(M.__)("inputFontSizeType","ultimate-addons-for-gutenberg")},fontSize:{value:ge,label:Object(M.__)("inputFontSize","ultimate-addons-for-gutenberg")},fontSizeMobile:{value:ve,label:Object(M.__)("inputFontSizeMobile","ultimate-addons-for-gutenberg")},fontSizeTablet:{value:be,label:Object(M.__)("inputFontSizeTablet","ultimate-addons-for-gutenberg")},lineHeightType:{value:pe,label:Object(M.__)("inputLineHeightType","ultimate-addons-for-gutenberg")},lineHeight:{value:fe,label:Object(M.__)("inputLineHeight","ultimate-addons-for-gutenberg")},lineHeightMobile:{value:_e,label:Object(M.__)("inputLineHeightMobile","ultimate-addons-for-gutenberg")},lineHeightTablet:{value:we,label:Object(M.__)("inputLineHeightTablet","ultimate-addons-for-gutenberg")}}),Object(f.createElement)(tx,{label:Object(M.__)("Checkbox/Radio Size","ultimate-addons-for-gutenberg"),value:ye,onChange:function(e){return c({toggleSize:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(tx,{label:Object(M.__)("Toggle Width","ultimate-addons-for-gutenberg"),value:ze,onChange:function(e){return c({toggleWidthSize:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(tx,{label:Object(M.__)("Toggle Height","ultimate-addons-for-gutenberg"),value:xe,onChange:function(e){return c({toggleHeightSize:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Toggle Active Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Oe}}))),Object(f.createElement)(Jz,{value:Oe,onChange:function(e){return c({toggleActiveColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Label Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ce}}))),Object(f.createElement)(Jz,{value:Ce,onChange:function(e){return c({labelColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Input Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:je}}))),Object(f.createElement)(Jz,{value:je,onChange:function(e){return c({inputColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Field Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Me}}))),Object(f.createElement)(Jz,{value:Me,onChange:function(e){return c({bgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Field Placeholder Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ee}}))),Object(f.createElement)(Jz,{value:Ee,onChange:function(e){return c({inputplaceholderColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Field Active Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:He}}))),Object(f.createElement)(Jz,{value:He,onChange:function(e){return c({inputactiveColor:e})},allowReset:!0}),Object(f.createElement)(ex,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:ke,onChange:function(e){return c({inputborderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=ke&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)(tx,{label:Object(M.__)("Border Width","ultimate-addons-for-gutenberg"),value:Se,onChange:function(e){return c({inputborderWidth:e})},min:0,max:50,allowReset:!0}),"boxed"==Fe&&Object(f.createElement)(tx,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:Le,onChange:function(e){return c({inputborderRadius:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Be}}))),Object(f.createElement)(Jz,{value:Be,onChange:function(e){return c({inputborderColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ve}}))),Object(f.createElement)(Jz,{value:Ve,onChange:function(e){return c({inputborderHoverColor:e})},allowReset:!0})),Object(f.createElement)(tx,{label:Object(M.__)("Spacing between fields (px)","ultimate-addons-for-gutenberg"),className:"uagb-padding-control",value:Ae,onChange:function(e){return c({fieldGap:e})},min:0,max:100}),Object(f.createElement)("h2",null,Object(M.__)("Field Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(tx,{label:n.vertical_spacing,className:"uagb-padding-control",value:Te,onChange:function(e){return c({vPaddingField:e})},min:0,max:100}),Object(f.createElement)(tx,{label:n.horizontal_spacing,className:"uagb-padding-control",value:Ne,onChange:function(e){return c({hPaddingField:e})},min:0,max:100})),Object(f.createElement)(Xz,{title:Object(M.__)("Google reCAPTCHA","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("p",{className:"uagb-form-notice"},Object(M.__)("P.S. Note that If you are using two forms on the same page with the different reCAPTCHA versions (V2 checkbox and V3), it will create conflicts between the versions. Kindly avoid using different versions on same page. ","ultimate-addons-for-gutenberg")),Object(f.createElement)(nx,{label:Object(M.__)("Enable reCAPTCHA ","ultimate-addons-for-gutenberg"),checked:Re,onChange:function(e){return c({reCaptchaEnable:!Re})}}),Re&&Object(f.createElement)(ex,{label:Object(M.__)("Select Version","ultimate-addons-for-gutenberg"),value:Ie,onChange:function(e){return c({reCaptchaType:e})},options:[{value:"v2",label:Object(M.__)("V2","ultimate-addons-for-gutenberg")},{value:"v3",label:Object(M.__)("V3","ultimate-addons-for-gutenberg")}]}),Re&&"v2"===Ie&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)(lx,{label:Object(M.__)("Site Key","ultimate-addons-for-gutenberg"),value:qe,onChange:function(e){return c({reCaptchaSiteKeyV2:e})},placeholder:Object(M.__)("Enter v2 Keys","ultimate-addons-for-gutenberg")}),Object(f.createElement)(lx,{label:Object(M.__)("Secret Key","ultimate-addons-for-gutenberg"),value:De,onChange:function(e){return c({reCaptchaSecretKeyV2:e})},placeholder:Object(M.__)("Enter v2 Keys","ultimate-addons-for-gutenberg")})),Re&&"v3"===Ie&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)(lx,{label:Object(M.__)("Site Key","ultimate-addons-for-gutenberg"),value:Ge,onChange:function(e){return c({reCaptchaSiteKeyV3:e})},placeholder:Object(M.__)("Enter v3 Keys","ultimate-addons-for-gutenberg")}),Object(f.createElement)(lx,{label:Object(M.__)("Secret Key","ultimate-addons-for-gutenberg"),value:We,onChange:function(e){return c({reCaptchaSecretKeyV3:e})},placeholder:Object(M.__)("Enter v3 Keys","ultimate-addons-for-gutenberg")}),Object(f.createElement)(nx,{label:Object(M.__)("Hide reCAPTCHA Badge","ultimate-addons-for-gutenberg"),checked:Ze,onChange:function(e){return c({hidereCaptchaBatch:!Ze})}})),Object(f.createElement)("h2",null," ",Object(M.__)("Know More","ultimate-addons-for-gutenberg")),Object(f.createElement)(sx,{href:"https://www.google.com/recaptcha/admin/create"},Object(M.__)("Get Keys","ultimate-addons-for-gutenberg")),Object(f.createElement)(sx,{href:"https://developers.google.com/recaptcha/intro"},Object(M.__)(" | Documentation","ultimate-addons-for-gutenberg")))),Object(f.createElement)("div",{className:_()("uagb-forms__outer-wrap","uagb-block-".concat(u),"uagb-forms__".concat(m,"-btn"))},Object(f.createElement)("form",{className:"uagb-forms-main-form",name:"uagb-form-".concat(u)},Object(f.createElement)(Uz,{allowedBlocks:hx}),Object(f.createElement)("div",{className:"uagb-forms-form-hidden-data"},Re&&Object(f.createElement)("input",{type:"hidden",id:"g-recaptcha-response",className:"uagb-forms-recaptcha"}),Object(f.createElement)("input",{type:"hidden",name:"uagb_forms_form_label",value:d}),Object(f.createElement)("input",{type:"hidden",name:"uagb_forms_form_id",value:"uagb-form-".concat(u)})),Re&&"v2"===Ie&&qe&&De&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)("div",{className:"g-recaptcha uagb-forms-field-set","data-sitekey":qe}),Object(f.createElement)("div",{className:"uagb-form-reacaptcha-error-".concat(u)})),Object(f.createElement)("div",{className:"uagb-forms-main-submit-button-wrap"},Object(f.createElement)("button",{onClick:l.onSubmitClick,className:"uagb-forms-main-submit-button"},Object(f.createElement)(Yz,{tagName:"div",placeholder:Object(M.__)("Submit","ultimate-addons-for-gutenberg"),value:h,onChange:function(e){return c({submitButtonText:e})},className:"uagb-forms-main-submit-button-text",multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"]}))))),e,t,a):Object(f.createElement)(B.Fragment,null,Object(f.createElement)($z,{icon:n.columns,label:uagb_blocks_info.blocks["uagb/forms"].title,instructions:Object(M.__)("Select a variation to start with.","ultimate-addons-for-gutenberg"),variations:r,allowSkip:!0,onSelect:function(e){return l.blockVariationPickerOnSelect(e)},className:"uagb-forms-variations"}))}},{key:"componentDidMount",value:function(){var e=this.props;e.attributes,(0,e.setAttributes)({block_id:this.props.clientId.substr(0,8)});var t=document.createElement("style");t.setAttribute("id","uagb-style-forms-"+this.props.clientId.substr(0,8)),document.head.appendChild(t);var a=this.props.clientId;window.addEventListener("load",this.renderReadyClasses(a))}},{key:"componentDidUpdate",value:function(e,t){var a=document.getElementById("uagb-style-forms-"+this.props.clientId.substr(0,8));null!=a&&(a.innerHTML=function(e){var t,a,l=e.attributes,n=l.block_id,i=l.buttonAlign,o=l.submitColor,c=l.submitColorHover,r=l.submitBgColor,s=l.submitBgColorHover,u=l.toggleWidthSize,h=l.toggleHeightSize,d=l.submitborderStyle,g=l.submitborderWidth,m=l.submitborderRadius,b=l.submitborderColor,v=l.submitborderHoverColor,p=l.vPaddingSubmit,f=l.hPaddingSubmit,w=l.submitTextFontFamily,_=l.submitTextFontWeight,x=(l.submitTextFontSubset,l.submitTextFontSize),O=l.submitTextFontSizeType,C=l.submitTextFontSizeTablet,j=l.submitTextFontSizeMobile,M=l.submitTextLineHeightType,E=l.submitTextLineHeight,H=l.submitTextLineHeightTablet,k=l.submitTextLineHeightMobile,S=(l.labelloadGoogleFonts,l.labelFontFamily),L=l.labelFontWeight,B=(l.labelFontSubset,l.labelFontSize),V=l.labelFontSizeType,T=l.labelFontSizeTablet,N=l.labelFontSizeMobile,A=l.labelLineHeightType,F=l.labelLineHeight,P=l.labelLineHeightTablet,R=l.labelLineHeightMobile,I=(l.inputloadGoogleFonts,l.inputFontFamily),D=l.inputFontWeight,q=(l.inputFontSubset,l.inputFontSize),W=l.inputFontSizeType,G=l.inputFontSizeTablet,Z=l.inputFontSizeMobile,U=l.inputLineHeightType,Y=l.inputLineHeight,K=l.inputLineHeightTablet,J=l.inputLineHeightMobile,$=l.toggleActiveColor,Q=l.labelColor,X=l.inputColor,ee=l.bgColor,te=l.inputplaceholderColor,ae=l.inputactiveColor,le=l.inputborderStyle,ne=l.inputborderWidth,ie=l.inputborderRadius,oe=l.inputborderColor,ce=l.inputborderHoverColor,re=l.vPaddingField,se=l.hPaddingField,ue=l.fieldGap,he=l.formStyle,de=l.overallAlignment,ge=l.toggleSize,me={};me={" form.uagb-forms-main-form, form.uagb-forms-main-form .uagb-forms-input, form.uagb-forms-main-form textarea":{"text-align":de}," .uagb-forms-main-form .uagb-forms-field-set":{"margin-bottom":z(ue,"px")}," .uagb-forms-main-form .uagb-forms-input-label":{"font-size":z(B,V),"line-height":z(F,A),"font-family":S,"font-weight":L,color:Q}," .uagb-forms-main-form .uagb-forms-input::placeholder":{"font-size":z(q,W),"line-height":z(Y,U),"font-family":I,"font-weight":D,color:te}," .uagb-forms-main-form input":{"font-size":z(q,W),"line-height":z(Y,U),"font-family":I,"font-weight":D,color:te}," .uagb-forms-main-form select":{"font-size":z(q,W),"line-height":z(Y,U),"font-family":I,"font-weight":D,color:te}," .uagb-forms-main-form .uagb-forms-input:focus":{outline:" none !important",border:"2px solid "+ae}," .uagb-forms-main-form .uagb-forms-main-submit-button-wrap":{"text-align":i}," .uagb-forms-main-form .uagb-forms-main-submit-button":{color:o,"font-size":z(x,O),"line-height":z(E,M),"font-family":w,"font-weight":_,"background-color":r,border:z(g,"px")+" "+d+" "+b,"border-radius":z(m,"px"),padding:z(p,"px")+" "+z(f,"px")}," .uagb-forms-main-form .uagb-forms-main-submit-button:hover":{color:c,"background-color":s,"border-color":v}," .uagb-switch ":{height:z(25+h+ne,"px"),width:z(50+u+ne,"px")}," .uagb-switch input:checked + .uagb-slider":{"background-color":$}," .uagb-switch input:focus + .uagb-slider":{"box-shadow":"0 0 1px"+$}," .uagb-slider:before ":{height:z(20+h-ne,"px"),width:z(20+u-ne/2,"px")}," .uagb-switch input:checked + .uagb-slider:before ":{transform:"translateX("+z(26+u,"px")/2+")"}," .uagb-forms-radio-wrap input[type=radio]:checked + label:before":{"background-color":X,"font-size":"calc("+ge+"px / 1.2 )"}," .uagb-forms-radio-wrap input[type=radio] + label:before":{"background-color":ee,width:z(ge,"px"),height:z(ge,"px")}," .uagb-forms-radio-wrap > label":{color:X}," .uagb-forms-checkbox-wrap input[type=checkbox]:checked + label:before":{color:X,"font-size":"calc("+ge+"px / 1.2 )"}," .uagb-forms-checkbox-wrap input[type=checkbox] + label:before":{"background-color":ee,"border-radius":z(ie,"px"),width:z(ge,"px"),height:z(ge,"px")}," .uagb-forms-checkbox-wrap > label":{color:X}," .uagb-forms-accept-wrap input[type=checkbox]:checked + label:before":{color:X,"font-size":"calc("+ge+"px / 1.2 )"}," .uagb-forms-accept-wrap input[type=checkbox] + label:before":{"border-radius":z(ie,"px"),"background-color":ee,width:z(ge,"px"),height:z(ge,"px")}," .uagb-forms-accept-wrap > label":{color:X}},"boxed"==he?(me[" .uagb-forms-main-form .uagb-forms-input"]={border:z(ne,"px")+" "+le+" "+oe,"border-radius":z(ie,"px"),"background-color":ee,color:X,padding:z(re,"px")+" "+z(se,"px")},me[" .uagb-forms-main-form .uagb-forms-checkbox-wrap input[type=checkbox] + label:before"]={border:z(ne,"px")+" "+le+" "+oe,"border-radius":z(ie,"px")},me[" .uagb-forms-main-form .uagb-forms-accept-wrap input[type=checkbox] + label:before"]={border:z(ne,"px")+" "+le+" "+oe,"border-radius":z(ie,"px")},me[" .uagb-forms-main-form .uagb-forms-radio-wrap input[type=radio] + label:before"]={border:z(ne,"px")+" "+le+" "+oe},me[" .uagb-slider "]={border:z(ne,"px")+" "+le+" "+oe,"background-color":ee},me[" .uagb-forms-main-form .uagb-forms-input:hover"]={"border-color":ce}):"underlined"==he&&(me[" .uagb-forms-main-form .uagb-forms-input"]={border:0,outline:0,"border-radius":0,background:"transparent","border-bottom":z(ne,"px")+" "+le+" "+oe,color:X,padding:z(re,"px")+" "+z(se,"px")},me[" .uagb-forms-main-form .uagb-forms-checkbox-wrap input[type=checkbox] + label:before"]={"border-bottom":z(ne,"px")+" "+le+" "+oe},me[" .uagb-forms-main-form .uagb-forms-accept-wrap input[type=checkbox] + label:before"]={"border-bottom":z(ne,"px")+" "+le+" "+oe},me[" .uagb-forms-main-form .uagb-forms-radio-wrap input[type=radio] + label:before"]={"border-bottom":z(ne,"px")+" "+le+" "+oe},me[" .uagb-slider "]={"background-color":ee,"border-bottom":z(ne,"px")+" "+le+" "+oe},me[" .uagb-forms-main-form .uagb-forms-input:hover"]={"border-color":ce}),t={" .uagb-forms-main-form .uagb-forms-main-submit-button":{"font-size":z(C,O),"line-height":z(H,M)}," .uagb-forms-main-form .uagb-forms-input-label":{"font-size":z(T,V),"line-height":z(P,A)}," .uagb-forms-main-form .uagb-forms-input::placeholder":{"font-size":z(G,W),"line-height":z(K,U)}},a={" .uagb-forms-main-form .uagb-forms-main-submit-button":{"font-size":z(j,O),"line-height":z(k,M)}," .uagb-forms-main-form .uagb-forms-input-label":{"font-size":z(N,V),"line-height":z(R,A)}," .uagb-forms-main-form .uagb-forms-input::placeholder":{"font-size":z(Z,W),"line-height":z(J,U)}};var be="",ve=".uagb-block-".concat(n);return be=y(me,ve),(be+=y(t,ve))+y(a,ve)}(this.props))}},{key:"renderReadyClasses",value:function(e){var t=document.getElementById("block-"+e).getElementsByClassName("uagb-forms__outer-wrap");if(null!==t[0]&&void 0!==t[0])for(var a=t[0].children[0].children[0].getElementsByClassName("block-editor-block-list__layout")[0].children,l=0;l<a.length;l++)if(a[l].classList.contains("uag-col-2")&&a[l+1].classList.contains("uag-col-2")){var n=document.createElement("div");n.className="uag-col-2-wrap uag-col-wrap-"+l,a[l+1].after(n);var i=t[0].getElementsByClassName("uag-col-wrap-"+l);i[0].appendChild(a[l]),i[0].appendChild(a[l])}else if(a[l].classList.contains("uag-col-3")&&a[l+1].classList.contains("uag-col-3")&&a[l+2].classList.contains("uag-col-3")){var o=document.createElement("div");o.className="uag-col-3-wrap uag-col-wrap-"+l,a[l+2].after(o);var c=t[0].getElementsByClassName("uag-col-wrap-"+l);c[0].appendChild(a[l]),c[0].appendChild(a[l]),c[0].appendChild(a[l])}else if(a[l].classList.contains("uag-col-4")&&a[l+1].classList.contains("uag-col-4")&&a[l+2].classList.contains("uag-col-4")&&a[l+3].classList.contains("uag-col-4")){var r=document.createElement("div");r.className="uag-col-4-wrap uag-col-wrap-"+l,a[l+3].after(r);var s=t[0].getElementsByClassName("uag-col-wrap-"+l);s[0].appendChild(a[l]),s[0].appendChild(a[l]),s[0].appendChild(a[l]),s[0].appendChild(a[l])}}}]),i}(Wz),gx=Pz((function(e,t){var a=e("core/block-editor"),l=a.getBlocks,n=(a.getBlocksByClientId,e("core/blocks")),i=n.getBlockType,o=n.getBlockVariations,c=n.getDefaultBlockVariation,r=l(t.clientId),s=Rz("core/block-editor").replaceInnerBlocks;return{innerBlocks:r,hasInnerBlocks:e("core/block-editor").getBlocks(t.clientId).length>0,blockType:i(t.name),defaultVariation:void 0===c?null:c(t.name),variations:void 0===o?null:o(t.name),replaceInnerBlocks:s}})),mx=qz((function(e){return function(t){return Object(f.createElement)(e,O()({},t,{className:t.attributes.className}))}}),"addAdvancedClasses");wp.hooks.addFilter("editor.BlockListBlock","uagb/forms",mx);var bx=Dz(ux,gx,mx)(dx),vx=wp.blockEditor,px=vx.InnerBlocks,fx=vx.RichText;a(409),a(410);var wx=[{name:"simple-contact-form",label:Object(M.__)("Simple Contact Form","ultimate-addons-for-gutenberg"),icon:n.form1,title:Object(M.__)("Simple Contact Form","ultimate-addons-for-gutenberg"),attributes:{},isDefault:!0,innerBlocks:[["uagb/forms-name",{name:Object(M.__)("First Name","ultimate-addons-for-gutenberg"),placeholder:Object(M.__)("John","ultimate-addons-for-gutenberg"),nameRequired:!0}],["uagb/forms-name",{name:Object(M.__)("Last Name","ultimate-addons-for-gutenberg"),placeholder:Object(M.__)("Doe","ultimate-addons-for-gutenberg"),nameRequired:!0}],["uagb/forms-email",{emailRequired:!0}],["uagb/forms-textarea",{textareaRequired:!0}]],scope:["block"]},{name:"newsletter-form",label:Object(M.__)("Newsletter Form","ultimate-addons-for-gutenberg"),icon:n.form2,title:Object(M.__)("Newsletter Form","ultimate-addons-for-gutenberg"),attributes:{},innerBlocks:[["uagb/forms-name",{nameRequired:!0}],["uagb/forms-email",{emailRequired:!0}]],scope:["block"]},{name:"suggestion-form",label:Object(M.__)("Suggestion Form","ultimate-addons-for-gutenberg"),icon:n.form3,title:Object(M.__)("Suggestion Form","ultimate-addons-for-gutenberg"),attributes:{},innerBlocks:[["uagb/forms-name",{nameRequired:!0}],["uagb/forms-email",{emailRequired:!0}],["uagb/forms-radio",{radioRequired:!0,radioName:"Some question with below listed option?",options:[{optiontitle:Object(M.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(M.__)("Option Value 1","ultimate-addons-for-gutenberg")},{optiontitle:Object(M.__)("Option Name 2","ultimate-addons-for-gutenberg"),optionvalue:Object(M.__)("Option Value 2","ultimate-addons-for-gutenberg")},{optiontitle:Object(M.__)("Option Name 3","ultimate-addons-for-gutenberg"),optionvalue:Object(M.__)("Option Value 3","ultimate-addons-for-gutenberg")},{optiontitle:Object(M.__)("Option Name 4","ultimate-addons-for-gutenberg"),optionvalue:Object(M.__)("Option Value 4","ultimate-addons-for-gutenberg")}]}],["uagb/forms-name",{name:Object(M.__)("Subject","ultimate-addons-for-gutenberg"),placeholder:Object(M.__)("Enter your subject","ultimate-addons-for-gutenberg"),nameRequired:!0}],["uagb/forms-textarea",{textareaRequired:!0}]],scope:["block"]}];(0,wp.blocks.registerBlockType)("uagb/forms",{title:uagb_blocks_info.blocks["uagb/forms"].title,description:uagb_blocks_info.blocks["uagb/forms"].description,icon:n.forms,category:uagb_blocks_info.category,keywords:[Object(M.__)("forms","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],example:{},attributes:Az,variations:wx,edit:bx,supports:{anchor:!0},save:function(e){var t=e.attributes,a=t.block_id,l=t.formLabel,n=t.submitButtonText,i=t.confirmationType,o=t.confirmationMessage,c=t.failedMessage,r=t.reCaptchaEnable,s=t.reCaptchaType,u=t.reCaptchaSiteKeyV2,h=t.reCaptchaSecretKeyV2,d=(t.reCaptchaSiteKeyV3,t.reCaptchaSecretKeyV3,t.buttonSize);return Object(f.createElement)("div",{className:_()("uagb-forms__outer-wrap","uagb-block-".concat(a),"uagb-forms__".concat(d,"-btn"))},Object(f.createElement)("form",{className:"uagb-forms-main-form",method:"post",name:"uagb-form-".concat(a)},Object(f.createElement)(px.Content,null),Object(f.createElement)("div",{className:"uagb-forms-form-hidden-data"},r&&Object(f.createElement)("input",{type:"hidden",id:"g-recaptcha-response",className:"uagb-forms-recaptcha"}),Object(f.createElement)("input",{type:"hidden",className:"uagb_forms_form_label",value:l}),Object(f.createElement)("input",{type:"hidden",className:"uagb_forms_form_id",value:"uagb-form-".concat(a)})),r&&"v2"===s&&u&&h&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)("div",{className:"g-recaptcha uagb-forms-field-set","data-sitekey":u}),Object(f.createElement)("div",{className:"uagb-form-reacaptcha-error-".concat(a)})),Object(f.createElement)("div",{className:"uagb-forms-main-submit-button-wrap"},Object(f.createElement)("button",{className:"uagb-forms-main-submit-button"},Object(f.createElement)(fx.Content,{tagName:"div",value:n,className:"uagb-forms-main-submit-button-text"})))),"message"===i&&Object(f.createElement)(B.Fragment,null,Object(f.createElement)("div",{className:_()("uagb-forms-success-message-".concat(a),"uagb-forms-submit-message-hide")},Object(f.createElement)("span",null,o)),Object(f.createElement)("div",{className:_()("uagb-forms-failed-message-".concat(a),"uagb-forms-submit-message-hide")},Object(f.createElement)("span",null,c))))}});var _x={block_id:{type:"string"},nameRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(M.__)("Name","ultimate-addons-for-gutenberg")},placeholder:{type:"string",default:Object(M.__)("John Doe","ultimate-addons-for-gutenberg")}};var yx=wp.element,zx=yx.Component,xx=yx.Fragment,Ox=wp.components,Cx=Ox.PanelBody,jx=Ox.ToggleControl,Mx=Ox.TextControl,Ex=wp.blockEditor,Hx=Ex.InspectorControls,kx=Ex.RichText,Sx=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"componentDidMount",value:function(){(0,this.props.setAttributes)({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-style-forms-name-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.isSelected,n=t.block_id,i=t.nameRequired,o=t.name,c=t.placeholder,r=i?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)(xx,null,Object(f.createElement)(Hx,null,Object(f.createElement)(Cx,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(jx,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return a({nameRequired:!i})}}),Object(f.createElement)(Mx,{label:"Placeholder",value:c,onChange:function(e){return a({placeholder:e})},placeholder:Object(M.__)("Placeholder","ultimate-addons-for-gutenberg")}))),Object(f.createElement)("div",{className:_()("uagb-forms-name-wrap","uagb-forms-field-set","uagb-block-".concat(n))},l&&Object(f.createElement)("div",{className:"uagb-forms-required-wrap"},Object(f.createElement)(jx,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return a({nameRequired:!i})}})),Object(f.createElement)(kx,{tagName:"div",placeholder:Object(M.__)("Name","ultimate-addons-for-gutenberg"),value:o,onChange:function(e){return a({name:e})},className:"uagb-forms-name-label ".concat(r," uagb-forms-input-label"),multiline:!1,id:n}),Object(f.createElement)("input",{type:"text",placeholder:c,required:i,className:"uagb-forms-name-input uagb-forms-input",name:n})))}}]),n}(zx),Lx=wp.blockEditor.RichText;a(411),(0,wp.blocks.registerBlockType)("uagb/forms-name",{title:uagb_blocks_info.blocks["uagb/forms-name"].title,description:uagb_blocks_info.blocks["uagb/forms-name"].description,icon:n.name,category:uagb_blocks_info.category,parent:["uagb/forms"],attributes:_x,edit:Sx,supports:{anchor:!0},example:{},save:function(e){var t=e.attributes,a=t.block_id,l=t.nameRequired,n=t.name,i=t.placeholder,o=l?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)("div",{className:_()("uagb-forms-name-wrap","uagb-forms-field-set","uagb-block-".concat(a))},Object(f.createElement)(Lx.Content,{tagName:"div",value:n,className:"uagb-forms-name-label ".concat(o," uagb-forms-input-label"),id:a}),Object(f.createElement)("input",{type:"text",placeholder:i,required:l,className:"uagb-forms-name-input uagb-forms-input",name:a}))}});var Bx={block_id:{type:"string"},name:{type:"string",default:Object(M.__)("Email","ultimate-addons-for-gutenberg")},required:{type:"boolean",default:!1},placeholder:{type:"string",default:Object(M.__)("example@mail.com","ultimate-addons-for-gutenberg")}};var Vx=wp.element,Tx=Vx.Component,Nx=Vx.Fragment,Ax=wp.blockEditor,Fx=Ax.RichText,Px=Ax.InspectorControls,Rx=wp.components,Ix=Rx.ToggleControl,Dx=Rx.TextControl,qx=Rx.PanelBody,Wx=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"componentDidMount",value:function(){var e=this.props;e.attributes,(0,e.setAttributes)({block_id:this.props.clientId.substr(0,8)});var t=document.createElement("style");t.setAttribute("id","uagb-style-forms-email-"+this.props.clientId.substr(0,8)),document.head.appendChild(t)}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.isSelected,n=t.block_id,i=t.name,o=t.required,c=t.placeholder,r=o?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)(Nx,null,Object(f.createElement)(Px,null,Object(f.createElement)(qx,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(Ix,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:o,onChange:function(e){return a({required:!o})}}),Object(f.createElement)(Dx,{label:"Placeholder",value:c,onChange:function(e){return a({placeholder:e})},placeholder:Object(M.__)("Placeholder","ultimate-addons-for-gutenberg")}))),Object(f.createElement)("div",{className:_()("uagb-forms-email-wrap","uagb-forms-field-set","uagb-block-".concat(n))},l&&Object(f.createElement)("div",{className:"uagb-forms-required-wrap"},Object(f.createElement)(Ix,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:o,onChange:function(e){return a({required:!o})}})),Object(f.createElement)(Fx,{tagName:"div",placeholder:Object(M.__)("Email","ultimate-addons-for-gutenberg"),value:i,onChange:function(e){return a({name:e})},className:"uagb-forms-email-label ".concat(r," uagb-forms-input-label"),multiline:!1,id:n}),Object(f.createElement)("input",{type:"text",className:"uagb-forms-email-input uagb-forms-input",placeholder:c,required:o,name:n})))}}]),n}(Tx),Gx=wp.blockEditor.RichText;a(412),(0,wp.blocks.registerBlockType)("uagb/forms-email",{title:uagb_blocks_info.blocks["uagb/forms-email"].title,description:uagb_blocks_info.blocks["uagb/forms-email"].description,icon:n.email,category:uagb_blocks_info.category,parent:["uagb/forms"],attributes:Bx,edit:Wx,supports:{anchor:!0},example:{},save:function(e){var t=e.attributes,a=t.block_id,l=t.name,n=t.required,i=t.placeholder,o=n?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)("div",{className:_()("uagb-forms-email-wrap","uagb-forms-field-set","uagb-block-".concat(a))},Object(f.createElement)(Gx.Content,{tagName:"div",value:l,className:"uagb-forms-email-label ".concat(o," uagb-forms-input-label"),id:a}),Object(f.createElement)("input",{type:"email",className:"uagb-forms-email-input uagb-forms-input",placeholder:i,required:n,name:a}))}});var Zx={block_id:{type:"string"},hidden_field_name:{type:"string",default:Object(M.__)("Hidden Field Name","ultimate-addons-for-gutenberg")},hidden_field_value:{type:"string"}};var Ux=wp.element,Yx=Ux.Component,Kx=Ux.Fragment,Jx=wp.components,$x=Jx.PanelBody,Qx=Jx.TextControl,Xx=wp.blockEditor.InspectorControls,eO=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){var e;return c()(this,n),(e=l.apply(this,arguments)).changeHiddenName=e.changeHiddenName.bind(h()(e)),e}return s()(n,[{key:"componentDidMount",value:function(){var e=this.props;e.attributes,(0,e.setAttributes)({block_id:this.props.clientId.substr(0,8)});var t=document.createElement("style");t.setAttribute("id","uagb-style-forms-hidden-"+this.props.clientId.substr(0,8)),document.head.appendChild(t)}},{key:"changeHiddenName",value:function(e){(0,this.props.setAttributes)({hidden_field_name:e.target.value})}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=t.block_id,n=t.hidden_field_name,i=t.hidden_field_value,o=n.replace(/\s+/g,"-").toLowerCase();return Object(f.createElement)(Kx,null,Object(f.createElement)(Xx,null,Object(f.createElement)($x,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(Qx,{label:Object(M.__)("Value","ultimate-addons-for-gutenberg"),value:i,onChange:function(e){return a({hidden_field_value:e})}}))),Object(f.createElement)("div",{className:_()("uagb-forms-hidden-wrap","uagb-block-".concat(l))},this.props.isSelected&&Object(f.createElement)("input",{type:"text",className:"uagb-forms-hidden-input",onChange:this.changeHiddenName,value:n}),!this.props.isSelected&&Object(f.createElement)(Kx,null,Object(f.createElement)("label",{className:"uagb-forms-hidden-label uagb-form-hidden-".concat(o)}," ",Object(M.__)(n,"ultimate-addons-for-gutenberg")," "),Object(f.createElement)("input",{type:"hidden",className:"uagb-forms-hidden-input",value:i}))))}}]),n}(Yx);(0,wp.blocks.registerBlockType)("uagb/forms-hidden",{title:uagb_blocks_info.blocks["uagb/forms-hidden"].title,description:uagb_blocks_info.blocks["uagb/forms-hidden"].description,icon:n.hidden,category:uagb_blocks_info.category,parent:["uagb/forms"],attributes:Zx,edit:eO,supports:{anchor:!0},example:{},save:function(e){var t=e.attributes,a=t.block_id,l=t.hidden_field_value;return Object(f.createElement)("div",{className:_()("uagb-forms-hidden-wrap","uagb-block-".concat(a))},Object(f.createElement)("input",{type:"hidden",className:"uagb-forms-hidden-input",value:l}))}});var tO={block_id:{type:"string"},phoneName:{type:"string",default:Object(M.__)("Phone","ultimate-addons-for-gutenberg")},phoneRequired:{type:"boolean",default:!1},pattern:{type:"string",default:Object(M.__)("[0-9]{3}-[0-9]{3}-[0-9]{4}","ultimate-addons-for-gutenberg")}},aO=[Object(f.createElement)("option",{"data-countryCode":"GB",value:"+44"},"UK (+44)"),Object(f.createElement)("option",{"data-countryCode":"US",value:"+1"},"USA (+1)"),Object(f.createElement)("option",{"data-countryCode":"DZ",value:"+213"},"Algeria (+213)"),Object(f.createElement)("option",{"data-countryCode":"AD",value:"+376"},"Andorra (+376)"),Object(f.createElement)("option",{"data-countryCode":"AO",value:"+244"},"Angola (+244)"),Object(f.createElement)("option",{"data-countryCode":"AI",value:"+1264"},"Anguilla (+1264)"),Object(f.createElement)("option",{"data-countryCode":"AG",value:"+1268"},"Antigua & Barbuda (+1268)"),Object(f.createElement)("option",{"data-countryCode":"AR",value:"+54"},"Argentina (+54)"),Object(f.createElement)("option",{"data-countryCode":"AM",value:"+374"},"Armenia (+374)"),Object(f.createElement)("option",{"data-countryCode":"AW",value:"+297"},"Aruba (+297)"),Object(f.createElement)("option",{"data-countryCode":"AU",value:"+61"},"Australia (+61)"),Object(f.createElement)("option",{"data-countryCode":"AT",value:"+43"},"Austria (+43)"),Object(f.createElement)("option",{"data-countryCode":"AZ",value:"+994"},"Azerbaijan (+994)"),Object(f.createElement)("option",{"data-countryCode":"BS",value:"+1242"},"Bahamas (+1242)"),Object(f.createElement)("option",{"data-countryCode":"BH",value:"+973"},"Bahrain (+973)"),Object(f.createElement)("option",{"data-countryCode":"BD",value:"+880"},"Bangladesh (+880)"),Object(f.createElement)("option",{"data-countryCode":"BB",value:"+1246"},"Barbados (+1246)"),Object(f.createElement)("option",{"data-countryCode":"BY",value:"+375"},"Belarus (+375)"),Object(f.createElement)("option",{"data-countryCode":"BE",value:"+32"},"Belgium (+32)"),Object(f.createElement)("option",{"data-countryCode":"BZ",value:"+501"},"Belize (+501)"),Object(f.createElement)("option",{"data-countryCode":"BJ",value:"+229"},"Benin (+229)"),Object(f.createElement)("option",{"data-countryCode":"BM",value:"+1441"},"Bermuda (+1441)"),Object(f.createElement)("option",{"data-countryCode":"BT",value:"+975"},"Bhutan (+975)"),Object(f.createElement)("option",{"data-countryCode":"BO",value:"+591"},"Bolivia (+591)"),Object(f.createElement)("option",{"data-countryCode":"BA",value:"+387"},"Bosnia Herzegovina (+387)"),Object(f.createElement)("option",{"data-countryCode":"BW",value:"+267"},"Botswana (+267)"),Object(f.createElement)("option",{"data-countryCode":"BR",value:"+55"},"Brazil (+55)"),Object(f.createElement)("option",{"data-countryCode":"BN",value:"+673"},"Brunei (+673)"),Object(f.createElement)("option",{"data-countryCode":"BG",value:"+359"},"Bulgaria (+359)"),Object(f.createElement)("option",{"data-countryCode":"BF",value:"+226"},"Burkina Faso (+226)"),Object(f.createElement)("option",{"data-countryCode":"BI",value:"+257"},"Burundi (+257)"),Object(f.createElement)("option",{"data-countryCode":"KH",value:"+855"},"Cambodia (+855)"),Object(f.createElement)("option",{"data-countryCode":"CM",value:"+237"},"Cameroon (+237)"),Object(f.createElement)("option",{"data-countryCode":"CA",value:"+1"},"Canada (+1)"),Object(f.createElement)("option",{"data-countryCode":"CV",value:"+238"},"Cape Verde Islands (+238)"),Object(f.createElement)("option",{"data-countryCode":"KY",value:"+1345"},"Cayman Islands (+1345)"),Object(f.createElement)("option",{"data-countryCode":"CF",value:"+236"},"Central African Republic (+236)"),Object(f.createElement)("option",{"data-countryCode":"CL",value:"+56"},"Chile (+56)"),Object(f.createElement)("option",{"data-countryCode":"CN",value:"+86"},"China (+86)"),Object(f.createElement)("option",{"data-countryCode":"CO",value:"+57"},"Colombia (+57)"),Object(f.createElement)("option",{"data-countryCode":"KM",value:"+269"},"Comoros (+269)"),Object(f.createElement)("option",{"data-countryCode":"CG",value:"+242"},"Congo (+242)"),Object(f.createElement)("option",{"data-countryCode":"CK",value:"+682"},"Cook Islands (+682)"),Object(f.createElement)("option",{"data-countryCode":"CR",value:"+506"},"Costa Rica (+506)"),Object(f.createElement)("option",{"data-countryCode":"HR",value:"+385"},"Croatia (+385)"),Object(f.createElement)("option",{"data-countryCode":"CU",value:"+53"},"Cuba (+53)"),Object(f.createElement)("option",{"data-countryCode":"CY",value:"+90392"},"Cyprus North (+90392)"),Object(f.createElement)("option",{"data-countryCode":"CY",value:"+357"},"Cyprus South (+357)"),Object(f.createElement)("option",{"data-countryCode":"CZ",value:"+42"},"Czech Republic (+42)"),Object(f.createElement)("option",{"data-countryCode":"DK",value:"+45"},"Denmark (+45)"),Object(f.createElement)("option",{"data-countryCode":"DJ",value:"+253"},"Djibouti (+253)"),Object(f.createElement)("option",{"data-countryCode":"DM",value:"+1809"},"Dominica (+1809)"),Object(f.createElement)("option",{"data-countryCode":"DO",value:"+1809"},"Dominican Republic (+1809)"),Object(f.createElement)("option",{"data-countryCode":"EC",value:"+593"},"Ecuador (+593)"),Object(f.createElement)("option",{"data-countryCode":"EG",value:"+20"},"Egypt (+20)"),Object(f.createElement)("option",{"data-countryCode":"SV",value:"+503"},"El Salvador (+503)"),Object(f.createElement)("option",{"data-countryCode":"GQ",value:"+240"},"Equatorial Guinea (+240)"),Object(f.createElement)("option",{"data-countryCode":"ER",value:"+291"},"Eritrea (+291)"),Object(f.createElement)("option",{"data-countryCode":"EE",value:"+372"},"Estonia (+372)"),Object(f.createElement)("option",{"data-countryCode":"ET",value:"+251"},"Ethiopia (+251)"),Object(f.createElement)("option",{"data-countryCode":"FK",value:"+500"},"Falkland Islands (+500)"),Object(f.createElement)("option",{"data-countryCode":"FO",value:"+298"},"Faroe Islands (+298)"),Object(f.createElement)("option",{"data-countryCode":"FJ",value:"+679"},"Fiji (+679)"),Object(f.createElement)("option",{"data-countryCode":"FI",value:"+358"},"Finland (+358)"),Object(f.createElement)("option",{"data-countryCode":"FR",value:"+33"},"France (+33)"),Object(f.createElement)("option",{"data-countryCode":"GF",value:"+594"},"French Guiana (+594)"),Object(f.createElement)("option",{"data-countryCode":"PF",value:"+689"},"French Polynesia (+689)"),Object(f.createElement)("option",{"data-countryCode":"GA",value:"+241"},"Gabon (+241)"),Object(f.createElement)("option",{"data-countryCode":"GM",value:"+220"},"Gambia (+220)"),Object(f.createElement)("option",{"data-countryCode":"GE",value:"+7880"},"Georgia (+7880)"),Object(f.createElement)("option",{"data-countryCode":"DE",value:"+49"},"Germany (+49)"),Object(f.createElement)("option",{"data-countryCode":"GH",value:"+233"},"Ghana (+233)"),Object(f.createElement)("option",{"data-countryCode":"GI",value:"+350"},"Gibraltar (+350)"),Object(f.createElement)("option",{"data-countryCode":"GR",value:"+30"},"Greece (+30)"),Object(f.createElement)("option",{"data-countryCode":"GL",value:"+299"},"Greenland (+299)"),Object(f.createElement)("option",{"data-countryCode":"GD",value:"+1473"},"Grenada (+1473)"),Object(f.createElement)("option",{"data-countryCode":"GP",value:"+590"},"Guadeloupe (+590)"),Object(f.createElement)("option",{"data-countryCode":"GU",value:"+671"},"Guam (+671)"),Object(f.createElement)("option",{"data-countryCode":"GT",value:"+502"},"Guatemala (+502)"),Object(f.createElement)("option",{"data-countryCode":"GN",value:"+224"},"Guinea (+224)"),Object(f.createElement)("option",{"data-countryCode":"GW",value:"+245"},"Guinea - Bissau (+245)"),Object(f.createElement)("option",{"data-countryCode":"GY",value:"+592"},"Guyana (+592)"),Object(f.createElement)("option",{"data-countryCode":"HT",value:"+509"},"Haiti (+509)"),Object(f.createElement)("option",{"data-countryCode":"HN",value:"+504"},"Honduras (+504)"),Object(f.createElement)("option",{"data-countryCode":"HK",value:"+852"},"Hong Kong (+852)"),Object(f.createElement)("option",{"data-countryCode":"HU",value:"+36"},"Hungary (+36)"),Object(f.createElement)("option",{"data-countryCode":"IS",value:"+354"},"Iceland (+354)"),Object(f.createElement)("option",{"data-countryCode":"IN",value:"+91"},"India (+91)"),Object(f.createElement)("option",{"data-countryCode":"ID",value:"+62"},"Indonesia (+62)"),Object(f.createElement)("option",{"data-countryCode":"IR",value:"+98"},"Iran (+98)"),Object(f.createElement)("option",{"data-countryCode":"IQ",value:"+964"},"Iraq (+964)"),Object(f.createElement)("option",{"data-countryCode":"IE",value:"+353"},"Ireland (+353)"),Object(f.createElement)("option",{"data-countryCode":"IL",value:"+972"},"Israel (+972)"),Object(f.createElement)("option",{"data-countryCode":"IT",value:"+39"},"Italy (+39)"),Object(f.createElement)("option",{"data-countryCode":"JM",value:"+1876"},"Jamaica (+1876)"),Object(f.createElement)("option",{"data-countryCode":"JP",value:"+81"},"Japan (+81)"),Object(f.createElement)("option",{"data-countryCode":"JO",value:"+962"},"Jordan (+962)"),Object(f.createElement)("option",{"data-countryCode":"KZ",value:"+7"},"Kazakhstan (+7)"),Object(f.createElement)("option",{"data-countryCode":"KE",value:"+254"},"Kenya (+254)"),Object(f.createElement)("option",{"data-countryCode":"KI",value:"+686"},"Kiribati (+686)"),Object(f.createElement)("option",{"data-countryCode":"KP",value:"+850"},"Korea North (+850)"),Object(f.createElement)("option",{"data-countryCode":"KR",value:"+82"},"Korea South (+82)"),Object(f.createElement)("option",{"data-countryCode":"KW",value:"+965"},"Kuwait (+965)"),Object(f.createElement)("option",{"data-countryCode":"KG",value:"+996"},"Kyrgyzstan (+996)"),Object(f.createElement)("option",{"data-countryCode":"LA",value:"+856"},"Laos (+856)"),Object(f.createElement)("option",{"data-countryCode":"LV",value:"+371"},"Latvia (+371)"),Object(f.createElement)("option",{"data-countryCode":"LB",value:"+961"},"Lebanon (+961)"),Object(f.createElement)("option",{"data-countryCode":"LS",value:"+266"},"Lesotho (+266)"),Object(f.createElement)("option",{"data-countryCode":"LR",value:"+231"},"Liberia (+231)"),Object(f.createElement)("option",{"data-countryCode":"LY",value:"+218"},"Libya (+218)"),Object(f.createElement)("option",{"data-countryCode":"LI",value:"+417"},"Liechtenstein (+417)"),Object(f.createElement)("option",{"data-countryCode":"LT",value:"+370"},"Lithuania (+370)"),Object(f.createElement)("option",{"data-countryCode":"LU",value:"+352"},"Luxembourg (+352)"),Object(f.createElement)("option",{"data-countryCode":"MO",value:"+853"},"Macao (+853)"),Object(f.createElement)("option",{"data-countryCode":"MK",value:"+389"},"Macedonia (+389)"),Object(f.createElement)("option",{"data-countryCode":"MG",value:"+261"},"Madagascar (+261)"),Object(f.createElement)("option",{"data-countryCode":"MW",value:"+265"},"Malawi (+265)"),Object(f.createElement)("option",{"data-countryCode":"MY",value:"+60"},"Malaysia (+60)"),Object(f.createElement)("option",{"data-countryCode":"MV",value:"+960"},"Maldives (+960)"),Object(f.createElement)("option",{"data-countryCode":"ML",value:"+223"},"Mali (+223)"),Object(f.createElement)("option",{"data-countryCode":"MT",value:"+356"},"Malta (+356)"),Object(f.createElement)("option",{"data-countryCode":"MH",value:"+692"},"Marshall Islands (+692)"),Object(f.createElement)("option",{"data-countryCode":"MQ",value:"+596"},"Martinique (+596)"),Object(f.createElement)("option",{"data-countryCode":"MR",value:"+222"},"Mauritania (+222)"),Object(f.createElement)("option",{"data-countryCode":"YT",value:"+269"},"Mayotte (+269)"),Object(f.createElement)("option",{"data-countryCode":"MX",value:"+52"},"Mexico (+52)"),Object(f.createElement)("option",{"data-countryCode":"FM",value:"+691"},"Micronesia (+691)"),Object(f.createElement)("option",{"data-countryCode":"MD",value:"+373"},"Moldova (+373)"),Object(f.createElement)("option",{"data-countryCode":"MC",value:"+377"},"Monaco (+377)"),Object(f.createElement)("option",{"data-countryCode":"MN",value:"+976"},"Mongolia (+976)"),Object(f.createElement)("option",{"data-countryCode":"MS",value:"+1664"},"Montserrat (+1664)"),Object(f.createElement)("option",{"data-countryCode":"MA",value:"+212"},"Morocco (+212)"),Object(f.createElement)("option",{"data-countryCode":"MZ",value:"+258"},"Mozambique (+258)"),Object(f.createElement)("option",{"data-countryCode":"MN",value:"+95"},"Myanmar (+95)"),Object(f.createElement)("option",{"data-countryCode":"NA",value:"+264"},"Namibia (+264)"),Object(f.createElement)("option",{"data-countryCode":"NR",value:"+674"},"Nauru (+674)"),Object(f.createElement)("option",{"data-countryCode":"NP",value:"+977"},"Nepal (+977)"),Object(f.createElement)("option",{"data-countryCode":"NL",value:"+31"},"Netherlands (+31)"),Object(f.createElement)("option",{"data-countryCode":"NC",value:"+687"},"New Caledonia (+687)"),Object(f.createElement)("option",{"data-countryCode":"NZ",value:"+64"},"New Zealand (+64)"),Object(f.createElement)("option",{"data-countryCode":"NI",value:"+505"},"Nicaragua (+505)"),Object(f.createElement)("option",{"data-countryCode":"NE",value:"+227"},"Niger (+227)"),Object(f.createElement)("option",{"data-countryCode":"NG",value:"+234"},"Nigeria (+234)"),Object(f.createElement)("option",{"data-countryCode":"NU",value:"+683"},"Niue (+683)"),Object(f.createElement)("option",{"data-countryCode":"NF",value:"+672"},"Norfolk Islands (+672)"),Object(f.createElement)("option",{"data-countryCode":"NP",value:"+670"},"Northern Marianas (+670)"),Object(f.createElement)("option",{"data-countryCode":"NO",value:"+47"},"Norway (+47)"),Object(f.createElement)("option",{"data-countryCode":"OM",value:"+968"},"Oman (+968)"),Object(f.createElement)("option",{"data-countryCode":"PW",value:"+680"},"Palau (+680)"),Object(f.createElement)("option",{"data-countryCode":"PA",value:"+507"},"Panama (+507)"),Object(f.createElement)("option",{"data-countryCode":"PG",value:"+675"},"Papua New Guinea (+675)"),Object(f.createElement)("option",{"data-countryCode":"PY",value:"+595"},"Paraguay (+595)"),Object(f.createElement)("option",{"data-countryCode":"PE",value:"+51"},"Peru (+51)"),Object(f.createElement)("option",{"data-countryCode":"PH",value:"+63"},"Philippines (+63)"),Object(f.createElement)("option",{"data-countryCode":"PL",value:"+48"},"Poland (+48)"),Object(f.createElement)("option",{"data-countryCode":"PT",value:"+351"},"Portugal (+351)"),Object(f.createElement)("option",{"data-countryCode":"PR",value:"+1787"},"Puerto Rico (+1787)"),Object(f.createElement)("option",{"data-countryCode":"QA",value:"+974"},"Qatar (+974)"),Object(f.createElement)("option",{"data-countryCode":"RE",value:"+262"},"Reunion (+262)"),Object(f.createElement)("option",{"data-countryCode":"RO",value:"+40"},"Romania (+40)"),Object(f.createElement)("option",{"data-countryCode":"RU",value:"+7"},"Russia (+7)"),Object(f.createElement)("option",{"data-countryCode":"RW",value:"+250"},"Rwanda (+250)"),Object(f.createElement)("option",{"data-countryCode":"SM",value:"+378"},"San Marino (+378)"),Object(f.createElement)("option",{"data-countryCode":"ST",value:"+239"},"Sao Tome & Principe (+239)"),Object(f.createElement)("option",{"data-countryCode":"SA",value:"+966"},"Saudi Arabia (+966)"),Object(f.createElement)("option",{"data-countryCode":"SN",value:"+221"},"Senegal (+221)"),Object(f.createElement)("option",{"data-countryCode":"CS",value:"+381"},"Serbia (+381)"),Object(f.createElement)("option",{"data-countryCode":"SC",value:"+248"},"Seychelles (+248)"),Object(f.createElement)("option",{"data-countryCode":"SL",value:"+232"},"Sierra Leone (+232)"),Object(f.createElement)("option",{"data-countryCode":"SG",value:"+65"},"Singapore (+65)"),Object(f.createElement)("option",{"data-countryCode":"SK",value:"+421"},"Slovak Republic (+421)"),Object(f.createElement)("option",{"data-countryCode":"SI",value:"+386"},"Slovenia (+386)"),Object(f.createElement)("option",{"data-countryCode":"SB",value:"+677"},"Solomon Islands (+677)"),Object(f.createElement)("option",{"data-countryCode":"SO",value:"+252"},"Somalia (+252)"),Object(f.createElement)("option",{"data-countryCode":"ZA",value:"+27"},"South Africa (+27)"),Object(f.createElement)("option",{"data-countryCode":"ES",value:"+34"},"Spain (+34)"),Object(f.createElement)("option",{"data-countryCode":"LK",value:"+94"},"Sri Lanka (+94)"),Object(f.createElement)("option",{"data-countryCode":"SH",value:"+290"},"St. Helena (+290)"),Object(f.createElement)("option",{"data-countryCode":"KN",value:"+1869"},"St. Kitts (+1869)"),Object(f.createElement)("option",{"data-countryCode":"SC",value:"+1758"},"St. Lucia (+1758)"),Object(f.createElement)("option",{"data-countryCode":"SD",value:"+249"},"Sudan (+249)"),Object(f.createElement)("option",{"data-countryCode":"SR",value:"+597"},"Suriname (+597)"),Object(f.createElement)("option",{"data-countryCode":"SZ",value:"+268"},"Swaziland (+268)"),Object(f.createElement)("option",{"data-countryCode":"SE",value:"+46"},"Sweden (+46)"),Object(f.createElement)("option",{"data-countryCode":"CH",value:"+41"},"Switzerland (+41)"),Object(f.createElement)("option",{"data-countryCode":"SI",value:"+963"},"Syria (+963)"),Object(f.createElement)("option",{"data-countryCode":"TW",value:"+886"},"Taiwan (+886)"),Object(f.createElement)("option",{"data-countryCode":"TJ",value:"+7"},"Tajikstan (+7)"),Object(f.createElement)("option",{"data-countryCode":"TH",value:"+66"},"Thailand (+66)"),Object(f.createElement)("option",{"data-countryCode":"TG",value:"+228"},"Togo (+228)"),Object(f.createElement)("option",{"data-countryCode":"TO",value:"+676"},"Tonga (+676)"),Object(f.createElement)("option",{"data-countryCode":"TT",value:"+1868"},"Trinidad & Tobago (+1868)"),Object(f.createElement)("option",{"data-countryCode":"TN",value:"+216"},"Tunisia (+216)"),Object(f.createElement)("option",{"data-countryCode":"TR",value:"+90"},"Turkey (+90)"),Object(f.createElement)("option",{"data-countryCode":"TM",value:"+7"},"Turkmenistan (+7)"),Object(f.createElement)("option",{"data-countryCode":"TM",value:"+993"},"Turkmenistan (+993)"),Object(f.createElement)("option",{"data-countryCode":"TC",value:"+1649"},"Turks & Caicos Islands (+1649)"),Object(f.createElement)("option",{"data-countryCode":"TV",value:"+688"},"Tuvalu (+688)"),Object(f.createElement)("option",{"data-countryCode":"UG",value:"+256"},"Uganda (+256)"),Object(f.createElement)("option",{"data-countryCode":"UA",value:"+380"},"Ukraine (+380)"),Object(f.createElement)("option",{"data-countryCode":"AE",value:"+971"},"United Arab Emirates (+971)"),Object(f.createElement)("option",{"data-countryCode":"UY",value:"+598"},"Uruguay (+598)"),Object(f.createElement)("option",{"data-countryCode":"UZ",value:"+7"},"Uzbekistan (+7)"),Object(f.createElement)("option",{"data-countryCode":"VU",value:"+678"},"Vanuatu (+678)"),Object(f.createElement)("option",{"data-countryCode":"VA",value:"+379"},"Vatican City (+379)"),Object(f.createElement)("option",{"data-countryCode":"VE",value:"+58"},"Venezuela (+58)"),Object(f.createElement)("option",{"data-countryCode":"VN",value:"+84"},"Vietnam (+84)"),Object(f.createElement)("option",{"data-countryCode":"VG",value:"+84"},"Virgin Islands - British (+1284)"),Object(f.createElement)("option",{"data-countryCode":"VI",value:"+84"},"Virgin Islands - US (+1340)"),Object(f.createElement)("option",{"data-countryCode":"WF",value:"+681"},"Wallis & Futuna (+681)"),Object(f.createElement)("option",{"data-countryCode":"YE",value:"+969"},"Yemen (North)(+969)"),Object(f.createElement)("option",{"data-countryCode":"YE",value:"+967"},"Yemen (South)(+967)"),Object(f.createElement)("option",{"data-countryCode":"ZM",value:"+260"},"Zambia (+260)"),Object(f.createElement)("option",{"data-countryCode":"ZW",value:"+263"},"Zimbabwe (+263)")];var lO=wp.element,nO=lO.Component,iO=lO.Fragment,oO=wp.components,cO=oO.PanelBody,rO=oO.ToggleControl,sO=oO.SelectControl,uO=wp.blockEditor,hO=uO.InspectorControls,dO=uO.RichText,gO=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"componentDidMount",value:function(){(0,this.props.setAttributes)({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-style-forms-phone-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.isSelected,n=t.block_id,i=t.phoneRequired,o=t.phoneName,c=t.pattern,r="";"[0-9]{3}-[0-9]{2}-[0-9]{3}"==c?r=Object(M.__)("123-45-678","ultimate-addons-for-gutenberg"):"[0-9]{3}-[0-9]{3}-[0-9]{4}"==c&&(r=Object(M.__)("123-456-6789","ultimate-addons-for-gutenberg"));var s;s=""!=c?Object(f.createElement)("input",{type:"tel",placeholder:r,pattern:c,required:i,className:"uagb-forms-phone-input uagb-forms-input",name:n}):Object(f.createElement)("input",{type:"tel",required:i,className:"uagb-forms-phone-input uagb-forms-input",name:n});var u=i?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)(iO,null,Object(f.createElement)(hO,null,Object(f.createElement)(cO,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(rO,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return a({phoneRequired:!i})}}),Object(f.createElement)(sO,{label:Object(M.__)("Pattern"),value:c,options:[{label:"None",value:""},{label:"123-45-678",value:Object(M.__)("[0-9]{3}-[0-9]{2}-[0-9]{3}","ultimate-addons-for-gutenberg")},{label:"123-456-6789",value:Object(M.__)("[0-9]{3}-[0-9]{3}-[0-9]{4}","ultimate-addons-for-gutenberg")}],onChange:function(e){a({pattern:e})}}))),Object(f.createElement)("div",{className:_()("uagb-forms-phone-wrap","uagb-forms-field-set","uagb-block-".concat(n))},l&&Object(f.createElement)("div",{className:"uagb-forms-required-wrap"},Object(f.createElement)(rO,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return a({phoneRequired:!i})}})),Object(f.createElement)(dO,{tagName:"div",placeholder:Object(M.__)("Phone Name","ultimate-addons-for-gutenberg"),value:o,onChange:function(e){return a({phoneName:e})},className:"uagb-forms-phone-label ".concat(u," uagb-forms-input-label"),multiline:!1,id:n}),Object(f.createElement)("select",{className:"uagb-forms-input uagb-form-phone-country uagb-form-phone-country-editor",id:"uagb-form-country-".concat(n),name:"".concat(o,"[]")},aO.map((function(e,t){return Object(f.createElement)("option",{value:e.props.value,key:t},e.props.children)}))),s))}}]),n}(nO),mO=wp.blockEditor.RichText;a(413),(0,wp.blocks.registerBlockType)("uagb/forms-phone",{title:uagb_blocks_info.blocks["uagb/forms-phone"].title,description:uagb_blocks_info.blocks["uagb/forms-phone"].description,icon:n.phone,category:uagb_blocks_info.category,parent:["uagb/forms"],attributes:tO,edit:gO,supports:{anchor:!0},example:{},save:function(e){var t=e.attributes,a=t.block_id,l=t.phoneRequired,n=t.phoneName,i=t.pattern,o="";"[0-9]{3}-[0-9]{2}-[0-9]{3}"==i?o=Object(M.__)("123-45-678","ultimate-addons-for-gutenberg"):"[0-9]{3}-[0-9]{3}-[0-9]{4}"==i&&(o=Object(M.__)("123-456-6789","ultimate-addons-for-gutenberg"));var c;c=""!=i?Object(f.createElement)("input",{type:"tel",placeholder:o,pattern:i,required:l,className:"uagb-forms-phone-input uagb-forms-input",name:"".concat(n,"[]")}):Object(f.createElement)("input",{type:"tel",required:l,className:"uagb-forms-phone-input uagb-forms-input",name:"".concat(n,"[]")});var r=l?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)("div",{className:_()("uagb-forms-phone-wrap","uagb-forms-field-set","uagb-block-".concat(a))},Object(f.createElement)(mO.Content,{tagName:"div",value:n,className:"uagb-forms-phone-label ".concat(r," uagb-forms-input-label"),id:a}),Object(f.createElement)("select",{className:"uagb-forms-input uagb-form-phone-country",id:"uagb-form-country-".concat(a),name:"".concat(n,"[]")},aO.map((function(e,t){return Object(f.createElement)("option",{value:e.props.value,key:t},e.props.children)}))),c)}});var bO={block_id:{type:"string"},textareaName:{type:"string",default:Object(M.__)("Message","ultimate-addons-for-gutenberg")},textareaRequired:{type:"boolean",default:!1},rows:{type:"number",default:4},placeholder:{type:"string",default:Object(M.__)("Enter your message","ultimate-addons-for-gutenberg")}};var vO=wp.element,pO=vO.Component,fO=vO.Fragment,wO=wp.components,_O=wO.PanelBody,yO=wO.ToggleControl,zO=wO.RangeControl,xO=wO.TextControl,OO=wp.blockEditor,CO=OO.InspectorControls,jO=OO.RichText,MO=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"componentDidMount",value:function(){(0,this.props.setAttributes)({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-style-forms-textarea-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.isSelected,n=t.block_id,i=t.textareaRequired,o=t.textareaName,c=t.rows,r=t.placeholder,s=i?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)(fO,null,Object(f.createElement)(CO,null,Object(f.createElement)(_O,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(yO,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return a({textareaRequired:!i})}}),Object(f.createElement)(xO,{label:Object(M.__)("Placeholder","ultimate-addons-for-gutenberg"),value:r,onChange:function(e){return a({placeholder:e})}}),Object(f.createElement)(zO,{label:Object(M.__)("Number of lines","ultimate-addons-for-gutenberg"),value:c,onChange:function(e){return a({rows:e})},min:2,max:10,allowReset:!0}))),Object(f.createElement)("div",{className:_()("uagb-forms-textarea-wrap","uagb-forms-field-set","uagb-block-".concat(n))},l&&Object(f.createElement)("div",{className:"uagb-forms-required-wrap"},Object(f.createElement)(yO,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return a({textareaRequired:!i})}})),Object(f.createElement)(jO,{tagName:"div",placeholder:Object(M.__)("Textarea Name","ultimate-addons-for-gutenberg"),value:o,onChange:function(e){return a({textareaName:e})},className:"uagb-forms-textarea-label ".concat(s," uagb-forms-input-label"),multiline:!1,id:n}),Object(f.createElement)("textarea",{required:i,className:"uagb-forms-textarea-input uagb-forms-input",rows:c,placeholder:r,name:n})))}}]),n}(pO),EO=wp.blockEditor.RichText;(0,wp.blocks.registerBlockType)("uagb/forms-textarea",{title:uagb_blocks_info.blocks["uagb/forms-textarea"].title,description:uagb_blocks_info.blocks["uagb/forms-textarea"].description,icon:n.textarea,category:uagb_blocks_info.category,parent:["uagb/forms"],attributes:bO,edit:MO,supports:{anchor:!0},example:{},save:function(e){var t=e.attributes,a=t.block_id,l=t.textareaRequired,n=t.textareaName,i=t.rows,o=t.placeholder,c=l?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)("div",{className:_()("uagb-forms-textarea-wrap","uagb-forms-field-set","uagb-block-".concat(a))},Object(f.createElement)(EO.Content,{tagName:"div",value:n,className:"uagb-forms-textarea-label ".concat(c," uagb-forms-input-label"),id:a}),Object(f.createElement)("textarea",{required:l,className:"uagb-forms-textarea-input uagb-forms-input",rows:i,placeholder:o,name:a}))}});var HO={block_id:{type:"string"},checkboxName:{type:"string",default:Object(M.__)("Checkbox Title","ultimate-addons-for-gutenberg")},checkboxRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(M.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(M.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}};function kO(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function SO(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?kO(Object(a),!0).forEach((function(t){j()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):kO(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var LO=wp.element,BO=LO.Component,VO=LO.Fragment,TO=wp.components,NO=TO.PanelBody,AO=TO.Button,FO=TO.ToggleControl,PO=wp.blockEditor,RO=PO.InspectorControls,IO=PO.RichText,DO=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){var e;return c()(this,n),(e=l.apply(this,arguments)).state={optionsstate:[{optiontitle:Object(M.__)("Option Name 1","ultimate-addons-for-gutenberg")}]},e}return s()(n,[{key:"componentDidMount",value:function(){var e=this.props;e.attributes,(0,e.setAttributes)({block_id:this.props.clientId.substr(0,8)});var t=document.createElement("style");t.setAttribute("id","uagb-style-forms-checkbox-"+this.props.clientId.substr(0,8)),document.head.appendChild(t)}},{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,l=t.setAttributes,n=t.isSelected,i=a.block_id,o=a.checkboxRequired,c=a.options,r=a.checkboxName,s=function(t,a){var n=c.map((function(e,l){return a===l&&(e=SO(SO({},e),t)),e}));l({options:n}),e.setState({optionsstate:n})},u=c.map((function(t,a){return Object(f.createElement)("div",{className:"uagb-form-checkbox-option"},Object(f.createElement)("input",{type:"checkbox",name:"checkbox-".concat(i),value:t.optiontitle,id:t.optiontitle}),Object(f.createElement)("label",{for:t.optiontitle}),Object(f.createElement)("input",{className:"uagb-inner-input-view","aria-label":t.optiontitle,onChange:function(e){return s({optiontitle:e.target.value,optionvalue:e.target.value},a)},type:"text",value:t.optiontitle}),Object(f.createElement)("input",{className:"uagb-inner-input-view","aria-label":t.optionvalue,onChange:function(e){return s({optionvalue:e.target.value},a)},type:"text",value:t.optionvalue}),Object(f.createElement)(AO,{className:"uagb-form-checkbox-option-delete",icon:"trash",label:"Remove",onClick:function(){return function(t){var a=c.map((function(e,a){return t===a&&(c.splice(t,1),e={options:c}),e}));e.setState({optionsstate:a}),l({deleteOptions:a})}(a)}}))})),h=o?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)(VO,null,Object(f.createElement)(RO,null,Object(f.createElement)(NO,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(FO,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:o,onChange:function(e){return l({checkboxRequired:!o})}}))),Object(f.createElement)("div",{className:_()("uagb-forms-checkbox-wrap","uagb-forms-field-set","uagb-block-".concat(i))},n&&Object(f.createElement)("div",{className:"uagb-forms-required-wrap"},Object(f.createElement)(FO,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:o,onChange:function(e){return l({checkboxRequired:!o})}})),Object(f.createElement)(IO,{tagName:"div",placeholder:Object(M.__)("Checkbox Title","ultimate-addons-for-gutenberg"),value:r,onChange:function(e){return l({checkboxName:e})},className:"uagb-forms-checkbox-label ".concat(h," uagb-forms-input-label"),multiline:!1,id:i}),n&&Object(f.createElement)(VO,null,u,Object(f.createElement)("div",{className:"uagb-forms-checkbox-controls"},Object(f.createElement)("div",null,Object(f.createElement)(AO,{isSecondary:!0,onClick:function(){var t={optiontitle:Object(M.__)("Option Name ".concat(c.length+1),"ultimate-addons-for-gutenberg"),optionvalue:Object(M.__)("Option Value ".concat(c.length+1),"ultimate-addons-for-gutenberg")};c[c.length]=t;var a=c.map((function(e,t){return e}));l({options:a}),e.setState({optionsstate:a})}},Object(M.__)(" + Add Option ","ultimate-addons-for-gutenberg"))))),!n&&Object(f.createElement)((function(){return c.map((function(e,t){var a=e.optionvalue.replace(/\s+/g,"-").toLowerCase();return Object(f.createElement)(VO,null,Object(f.createElement)("input",{type:"checkbox",className:"uagb-forms-checkbox",id:"checkbox-".concat(a,"-").concat(i),name:"".concat(r,"[]"),value:a,required:o}),Object(f.createElement)("label",{htmlFor:"checkbox-".concat(a,"-").concat(i)},e.optiontitle),Object(f.createElement)("br",null))}))}),null)))}}]),n}(BO),qO=wp.blockEditor.RichText,WO=wp.element.Fragment;a(414),(0,wp.blocks.registerBlockType)("uagb/forms-checkbox",{title:uagb_blocks_info.blocks["uagb/forms-checkbox"].title,description:uagb_blocks_info.blocks["uagb/forms-checkbox"].description,icon:n.checkbox,category:uagb_blocks_info.category,parent:["uagb/forms"],attributes:HO,edit:DO,supports:{anchor:!0},example:{},save:function(e){var t=e.attributes,a=t.block_id,l=t.checkboxRequired,n=t.options,i=t.checkboxName,o=l?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)("div",{className:_()("uagb-forms-checkbox-wrap","uagb-forms-field-set","uagb-block-".concat(a))},Object(f.createElement)(qO.Content,{tagName:"div",value:i,className:"uagb-forms-checkbox-label ".concat(o," uagb-forms-input-label"),id:a}),n.map((function(e,t){var n=e.optionvalue,o=n.replace(/\s+/g,"-").toLowerCase();return Object(f.createElement)(WO,null,Object(f.createElement)("input",{type:"checkbox",class:"uagb-forms-checkbox",id:"checkbox-".concat(o,"-").concat(a),name:"".concat(i,"[]"),value:n,required:l,onInvalid:"this.setCustomValidity('Please check this box if you want to proceed.')"}),Object(f.createElement)("label",{htmlFor:"checkbox-".concat(o,"-").concat(a)},e.optiontitle),Object(f.createElement)("br",null))})))}});var GO={block_id:{type:"string"},radioName:{type:"string",default:Object(M.__)("RadioBox Title","ultimate-addons-for-gutenberg")},radioRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(M.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(M.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}};function ZO(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function UO(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ZO(Object(a),!0).forEach((function(t){j()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ZO(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var YO=wp.element,KO=YO.Component,JO=YO.Fragment,$O=wp.components,QO=$O.PanelBody,XO=$O.Button,eC=$O.ToggleControl,tC=wp.blockEditor,aC=tC.InspectorControls,lC=tC.RichText,nC=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){var e;return c()(this,n),(e=l.apply(this,arguments)).state={optionsstate:[{optiontitle:Object(M.__)("Option Name 1","ultimate-addons-for-gutenberg")}]},e}return s()(n,[{key:"componentDidMount",value:function(){var e=this.props;e.attributes,(0,e.setAttributes)({block_id:this.props.clientId.substr(0,8)});var t=document.createElement("style");t.setAttribute("id","uagb-style-forms-radio-"+this.props.clientId.substr(0,8)),document.head.appendChild(t)}},{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,l=t.setAttributes,n=t.isSelected,i=a.block_id,o=a.radioRequired,c=a.options,r=a.radioName,s=function(t,a){var n=c.map((function(e,l){return a===l&&(e=UO(UO({},e),t)),e}));l({options:n}),e.setState({optionsstate:n})},u=c.map((function(t,a){return Object(f.createElement)("div",{className:"uagb-form-radio-option"},Object(f.createElement)("input",{type:"radio",name:"radio-".concat(i),value:t.optiontitle,id:t.optiontitle}),Object(f.createElement)("label",{for:t.optiontitle}),Object(f.createElement)("input",{className:"uagb-inner-input-view","aria-label":t.optiontitle,onChange:function(e){return s({optiontitle:e.target.value,optionvalue:e.target.value},a)},type:"text",value:t.optiontitle}),Object(f.createElement)("input",{className:"uagb-inner-input-view","aria-label":t.optionvalue,onChange:function(e){return s({optionvalue:e.target.value},a)},type:"text",value:t.optionvalue}),Object(f.createElement)(XO,{className:"uagb-form-radio-option-delete",icon:"trash",label:"Remove",onClick:function(){return function(t){var a=c.map((function(e,a){return t===a&&(c.splice(t,1),e={options:c}),e}));e.setState({optionsstate:a}),l({deleteOptions:a})}(a)}}))})),h=o?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)(JO,null,Object(f.createElement)(aC,null,Object(f.createElement)(QO,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(eC,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:o,onChange:function(e){return l({radioRequired:!o})}}))),Object(f.createElement)("div",{className:_()("uagb-forms-radio-wrap","uagb-forms-field-set","uagb-block-".concat(i))},n&&Object(f.createElement)("div",{className:"uagb-forms-required-wrap"},Object(f.createElement)(eC,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:o,onChange:function(e){return l({radioRequired:!o})}})),Object(f.createElement)(lC,{tagName:"div",placeholder:Object(M.__)("Radio Title","ultimate-addons-for-gutenberg"),value:r,onChange:function(e){return l({radioName:e})},className:"uagb-forms-radio-label ".concat(h," uagb-forms-input-label"),multiline:!1,id:i}),n&&Object(f.createElement)(JO,null,Object(f.createElement)("div",{className:"uagb-forms-radio-controls"},u,Object(f.createElement)("div",null,Object(f.createElement)(XO,{isSecondary:!0,onClick:function(){var t={optiontitle:Object(M.__)("Option Name ".concat(c.length+1),"ultimate-addons-for-gutenberg"),optionvalue:Object(M.__)("Option Value ".concat(c.length+1),"ultimate-addons-for-gutenberg")};c[c.length]=t;var a=c.map((function(e,t){return e}));l({options:a}),e.setState({optionsstate:a})}},Object(M.__)(" + Add Option ","ultimate-addons-for-gutenberg"))))),!n&&Object(f.createElement)((function(){return c.map((function(e,t){var a=e.optionvalue,l=a.replace(/\s+/g,"-").toLowerCase();return Object(f.createElement)(JO,null,Object(f.createElement)("input",{type:"radio",id:l,name:i,value:a,required:o}),Object(f.createElement)("label",{htmlfor:l},e.optiontitle),Object(f.createElement)("br",null))}))}),null)))}}]),n}(KO),iC=wp.blockEditor.RichText,oC=wp.element.Fragment;a(415),(0,wp.blocks.registerBlockType)("uagb/forms-radio",{title:uagb_blocks_info.blocks["uagb/forms-radio"].title,description:uagb_blocks_info.blocks["uagb/forms-radio"].description,icon:n.radio,category:uagb_blocks_info.category,parent:["uagb/forms"],attributes:GO,edit:nC,supports:{anchor:!0},example:{},save:function(e){var t=e.attributes,a=t.block_id,l=t.radioRequired,n=t.options,i=t.radioName,o=l?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)("div",{className:_()("uagb-forms-radio-wrap","uagb-forms-field-set","uagb-block-".concat(a))},Object(f.createElement)(iC.Content,{tagName:"div",value:i,className:"uagb-forms-radio-label ".concat(o," uagb-forms-input-label"),id:a}),n.map((function(e,t){var n=e.optionvalue,i=n.replace(/\s+/g,"-").toLowerCase();return Object(f.createElement)(oC,null,Object(f.createElement)("input",{type:"radio",id:"radio-".concat(i,"-").concat(a),name:a,value:n,required:l}),Object(f.createElement)("label",{htmlFor:"radio-".concat(i,"-").concat(a)},e.optiontitle),Object(f.createElement)("br",null))})))}});var cC={block_id:{type:"string"},name:{type:"string",default:Object(M.__)("URL","ultimate-addons-for-gutenberg")},required:{type:"boolean",default:!1},placeholder:{type:"string",default:Object(M.__)("https://example.com","ultimate-addons-for-gutenberg")}};var rC=wp.element,sC=rC.Component,uC=rC.Fragment,hC=wp.components,dC=hC.PanelBody,gC=hC.ToggleControl,mC=hC.TextControl,bC=wp.blockEditor,vC=bC.InspectorControls,pC=bC.RichText,fC=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"componentDidMount",value:function(){var e=this.props;e.attributes,(0,e.setAttributes)({block_id:this.props.clientId.substr(0,8)});var t=document.createElement("style");t.setAttribute("id","uagb-style-forms-url-"+this.props.clientId.substr(0,8)),document.head.appendChild(t)}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.isSelected,n=t.block_id,i=t.required,o=t.name,c=t.placeholder,r=i?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)(uC,null,Object(f.createElement)(vC,null,Object(f.createElement)(dC,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(gC,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return a({required:!i})}}),Object(f.createElement)(mC,{label:Object(M.__)("Placeholder","ultimate-addons-for-gutenberg"),value:c,onChange:function(e){return a({placeholder:e})}}))),Object(f.createElement)("div",{className:_()("uagb-forms-url-wrap","uagb-forms-field-set","uagb-block-".concat(n))},l&&Object(f.createElement)("div",{className:"uagb-forms-required-wrap"},Object(f.createElement)(gC,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return a({required:!i})}})),Object(f.createElement)(pC,{tagName:"div",placeholder:Object(M.__)("URL Name","ultimate-addons-for-gutenberg"),value:o,onChange:function(e){return a({name:e})},className:"uagb-forms-url-label ".concat(r," uagb-forms-input-label"),multiline:!1,id:n}),Object(f.createElement)("input",{type:"url",name:n,placeholder:c,required:i,className:"uagb-forms-url-input uagb-forms-input"})))}}]),n}(sC),wC=wp.blockEditor.RichText;(0,wp.blocks.registerBlockType)("uagb/forms-url",{title:uagb_blocks_info.blocks["uagb/forms-url"].title,description:uagb_blocks_info.blocks["uagb/forms-url"].description,icon:n.url,category:uagb_blocks_info.category,parent:["uagb/forms"],attributes:cC,edit:fC,supports:{anchor:!0},example:{},save:function(e){var t=e.attributes,a=t.block_id,l=t.required,n=t.name,i=t.placeholder,o=l?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)("div",{className:_()("uagb-forms-url-wrap","uagb-forms-field-set","uagb-block-".concat(a))},Object(f.createElement)(wC.Content,{tagName:"div",value:n,className:"uagb-forms-url-label ".concat(o," uagb-forms-input-label"),id:a}),Object(f.createElement)("input",{type:"url",name:a,required:l,placeholder:i,className:"uagb-forms-url-input uagb-forms-input"}))}});var _C={block_id:{type:"string"},selectName:{type:"string",default:Object(M.__)("Select Title","ultimate-addons-for-gutenberg")},selectRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(M.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(M.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}};function yC(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function zC(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?yC(Object(a),!0).forEach((function(t){j()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):yC(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var xC=wp.element,OC=xC.Component,CC=xC.Fragment,jC=wp.components,MC=jC.PanelBody,EC=jC.Button,HC=jC.ToggleControl,kC=wp.blockEditor,SC=kC.InspectorControls,LC=kC.RichText,BC=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){var e;return c()(this,n),(e=l.apply(this,arguments)).state={optionsstate:[{optiontitle:Object(M.__)("Option Name 1","ultimate-addons-for-gutenberg")}]},e}return s()(n,[{key:"componentDidMount",value:function(){(0,this.props.setAttributes)({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-style-forms-select-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,l=t.setAttributes,n=t.isSelected,i=a.block_id,o=a.selectRequired,c=a.options,r=a.selectName,s=function(t,a){var n=c.map((function(e,l){return a===l&&(e=zC(zC({},e),t)),e}));l({options:n}),e.setState({optionsstate:n})},u=c.map((function(t,a){return Object(f.createElement)("div",{className:"uagb-form-select-option"},Object(f.createElement)("input",{className:"uagb-inner-input-view","aria-label":t.optiontitle,onChange:function(e){return s({optiontitle:e.target.value,optionvalue:e.target.value},a)},type:"text",value:t.optiontitle}),Object(f.createElement)("input",{className:"uagb-inner-input-view","aria-label":t.optionvalue,onChange:function(e){return s({optionvalue:e.target.value},a)},type:"text",value:t.optionvalue}),Object(f.createElement)(EC,{className:"uagb-form-select-option-delete",icon:"trash",label:"Remove",onClick:function(){return function(t){var a=c.map((function(e,a){return t===a&&(c.splice(t,1),e={options:c}),e}));e.setState({optionsstate:a}),l({deleteCurrentOptions:a})}(a)}}))})),h=o?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)(CC,null,Object(f.createElement)(SC,null,Object(f.createElement)(MC,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(HC,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:o,onChange:function(e){return l({selectRequired:!o})}}))),Object(f.createElement)("div",{className:_()("uagb-forms-select-wrap","uagb-forms-field-set","uagb-block-".concat(i))},n&&Object(f.createElement)("div",{className:"uagb-forms-required-wrap"},Object(f.createElement)(HC,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:o,onChange:function(e){return l({selectRequired:!o})}})),Object(f.createElement)(LC,{tagName:"div",placeholder:Object(M.__)("Select Title","ultimate-addons-for-gutenberg"),value:r,onChange:function(e){return l({selectName:e})},className:"uagb-forms-select-label ".concat(h," uagb-forms-input-label"),multiline:!1,id:i}),n&&Object(f.createElement)(CC,null,u,Object(f.createElement)("div",{className:"uagb-forms-select-controls"},Object(f.createElement)("div",null,Object(f.createElement)(EC,{isSecondary:!0,onClick:function(){var t={optiontitle:Object(M.__)("Option Name ".concat(c.length+1),"ultimate-addons-for-gutenberg"),optionvalue:Object(M.__)("Option Value ".concat(c.length+1),"ultimate-addons-for-gutenberg")};c[c.length]=t;var a=c.map((function(e,t){return e}));l({options:a}),e.setState({optionsstate:a})}},Object(M.__)(" + Add Option ","ultimate-addons-for-gutenberg"))))),!n&&Object(f.createElement)((function(){var e=c.map((function(e,t){var a=e.optionvalue;return a.replace(/\s+/g,"-").toLowerCase(),Object(f.createElement)("option",{value:a},e.optiontitle)}));return Object(f.createElement)("select",{className:"uagb-forms-select-box uagb-forms-input",required:o,name:i},Object(f.createElement)("option",{value:"",disabled:!0,selected:!0},"Select your option"),e)}),null)))}}]),n}(OC),VC=wp.blockEditor.RichText;a(416),(0,wp.blocks.registerBlockType)("uagb/forms-select",{title:uagb_blocks_info.blocks["uagb/forms-select"].title,description:uagb_blocks_info.blocks["uagb/forms-select"].description,icon:n.select,category:uagb_blocks_info.category,parent:["uagb/forms"],attributes:_C,edit:BC,example:{},save:function(e){var t=e.attributes,a=t.block_id,l=t.selectRequired,n=t.options,i=t.selectName,o=l?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)("div",{className:_()("uagb-forms-select-wrap","uagb-forms-field-set","uagb-block-".concat(a))},Object(f.createElement)(VC.Content,{tagName:"div",value:i,className:"uagb-forms-select-label ".concat(o," uagb-forms-input-label"),id:a}),Object(f.createElement)("select",{className:"uagb-forms-select-box uagb-forms-input",required:l,name:a},Object(f.createElement)("option",{value:"",disabled:!0,selected:!0},"Select your option"),n.map((function(e,t){var a=e.optionvalue;return a.replace(/\s+/g,"-").toLowerCase(),Object(f.createElement)("option",{value:a},e.optiontitle)}))))}});var TC={block_id:{type:"string"},toggleRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(M.__)("Name","ultimate-addons-for-gutenberg")},toggleStatus:{type:"boolean",default:!1},layout:{type:"string",default:"round"},trueValue:{type:"string",default:"on"},falseValue:{type:"string",default:"off"}};var NC=wp.element,AC=NC.Component,FC=NC.Fragment,PC=wp.components,RC=PC.PanelBody,IC=PC.ToggleControl,DC=PC.SelectControl,qC=PC.TextControl,WC=wp.blockEditor,GC=WC.InspectorControls,ZC=WC.RichText,UC=(WC.ColorPalette,function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"componentDidMount",value:function(){var e=this.props;e.attributes,(0,e.setAttributes)({block_id:this.props.clientId.substr(0,8)})}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.isSelected,n=t.block_id,i=t.toggleRequired,o=t.name,c=t.toggleStatus,r=t.layout,s=t.trueValue,u=t.falseValue,h=i?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)(FC,null,Object(f.createElement)(GC,null,Object(f.createElement)(RC,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)("p",{className:"uagb-settings-notice"},Object(M.__)("Leaving the toggle in On/Off state will set it as a default value on page load for the user.","ultimate-addons-for-gutenberg")),Object(f.createElement)(IC,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return a({toggleRequired:!i})}}),Object(f.createElement)(IC,{label:Object(M.__)("Default State","ultimate-addons-for-gutenberg"),checked:c,help:c?Object(M.__)("ON State","ultimate-addons-for-gutenberg"):Object(M.__)("OFF State","ultimate-addons-for-gutenberg"),onChange:function(e){return a({toggleStatus:!c})}}),Object(f.createElement)(qC,{label:Object(M.__)("True State","ultimate-addons-for-gutenberg"),value:s,onChange:function(e){return a({trueValue:e})}}),Object(f.createElement)(qC,{label:Object(M.__)("False State","ultimate-addons-for-gutenberg"),value:u,onChange:function(e){return a({falseValue:e})}}),Object(f.createElement)(DC,{label:Object(M.__)("Layout","ultimate-addons-for-gutenberg"),value:r,onChange:function(e){return a({layout:e})},options:[{value:"",label:Object(M.__)("Square","ultimate-addons-for-gutenberg")},{value:"round",label:Object(M.__)("Round","ultimate-addons-for-gutenberg")}]}))),Object(f.createElement)("div",{className:_()("uagb-forms-toggle-wrap","uagb-forms-field-set","uagb-block-".concat(n))},l&&Object(f.createElement)("div",{className:"uagb-forms-required-wrap"},Object(f.createElement)(IC,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return a({toggleRequired:!i})}})),Object(f.createElement)(ZC,{tagName:"div",placeholder:Object(M.__)("Name","ultimate-addons-for-gutenberg"),value:o,onChange:function(e){return a({name:e})},className:"uagb-forms-toggle-label ".concat(h," uagb-forms-input-label"),multiline:!1,id:n}),Object(f.createElement)("label",{className:"uagb-switch"},Object(f.createElement)("input",{type:"hidden",className:"uagb-forms-toggle-input",checked:c,"data-truestate":s,"data-falsestate":u,value:c?s:u,required:i,name:n}),Object(f.createElement)("input",{type:"checkbox",className:"uagb-forms-toggle-input",readOnly:!0,checked:c,"data-truestate":s,"data-falsestate":u,value:c?s:u,required:i,name:n}),Object(f.createElement)("span",{className:"uagb-slider ".concat(r)}))))}}]),n}(AC)),YC=wp.blockEditor.RichText;a(417),(0,wp.blocks.registerBlockType)("uagb/forms-toggle",{title:uagb_blocks_info.blocks["uagb/forms-toggle"].title,description:uagb_blocks_info.blocks["uagb/forms-toggle"].description,icon:n.toggle,category:uagb_blocks_info.category,parent:["uagb/forms"],attributes:TC,edit:UC,supports:{anchor:!0},example:{},save:function(e){var t=e.attributes,a=t.block_id,l=t.toggleRequired,n=t.name,i=t.toggleStatus,o=t.layout,c=t.trueValue,r=t.falseValue,s=l?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)("div",{className:_()("uagb-forms-toggle-wrap","uagb-forms-field-set","uagb-block-".concat(a))},Object(f.createElement)(YC.Content,{tagName:"div",value:n,className:"uagb-forms-toggle-label ".concat(s," uagb-forms-input-label"),id:a}),Object(f.createElement)("label",{class:"uagb-switch"},Object(f.createElement)("input",{type:"hidden",className:"uagb-forms-toggle-input",checked:i,"data-truestate":c,"data-falsestate":r,value:i?c:r,required:l,name:a}),Object(f.createElement)("input",{type:"checkbox",className:"uagb-forms-toggle-input",checked:i,"data-truestate":c,"data-falsestate":r,value:i?c:r,required:l,name:a}),Object(f.createElement)("span",{class:"uagb-slider ".concat(o)})))}});var KC={block_id:{type:"string"},dateRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(M.__)("Date","ultimate-addons-for-gutenberg")},additonalVal:{type:"boolean",default:!1},minYear:{type:"string",default:""},minMonth:{type:"string",default:""},minDay:{type:"string",default:""},maxYear:{type:"string",default:""},maxMonth:{type:"string",default:""},maxDay:{type:"string",default:""}};var JC=wp.element,$C=JC.Component,QC=JC.Fragment,XC=wp.components,ej=XC.PanelBody,tj=XC.SelectControl,aj=XC.ToggleControl,lj=wp.blockEditor,nj=lj.InspectorControls,ij=lj.RichText,oj=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"componentDidMount",value:function(){(0,this.props.setAttributes)({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-style-forms-date-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.isSelected,n=t.block_id,i=t.dateRequired,o=t.name,c=t.additonalVal,r=t.minYear,s=t.minMonth,u=t.minDay,h=t.maxYear,d=t.maxMonth,g=t.maxDay,m="",b="";r&&s&&u&&(m=r+"-"+s+"-"+u),h&&d&&g&&(b=h+"-"+d+"-"+g);var v="";Date.parse(m)>Date.parse(b)&&(v=Object(f.createElement)("p",{className:"uagb-forms-date-invalidate"},"Invalid date range selected"));for(var p=[{label:"YYYY",value:""}],w=1930;w<=2030;w++)p.push({label:"".concat(w),value:"".concat(w)});var y=[{label:"MM",value:""}];for(w=1;w<=12;w++){var z=w<10?"0".concat(w):"".concat(w);y.push({label:z,value:z})}var x=[{label:"DD",value:""}];for(w=1;w<=31;w++){var O=w<10?"0".concat(w):"".concat(w);x.push({label:O,value:O})}var C;C=c?Object(f.createElement)("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:i,min:m,max:b,name:n}):Object(f.createElement)("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:i,name:n});var j=i?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)(QC,null,Object(f.createElement)(nj,null,Object(f.createElement)(ej,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(aj,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return a({dateRequired:!i})}}),Object(f.createElement)(aj,{label:Object(M.__)("Additional Validation","ultimate-addons-for-gutenberg"),checked:c,onChange:function(e){return a({additonalVal:!c})},help:Object(M.__)("Helps to set range of calender","ultimate-addons-for-gutenberg")}),c&&Object(f.createElement)(QC,null,Object(f.createElement)("p",null,"From :"),Object(f.createElement)(tj,{className:"minDate",label:"Year",value:r,options:p,onChange:function(e){return a({minYear:e})}}),Object(f.createElement)("b",null," - "),Object(f.createElement)(tj,{className:"minDate",label:"Month",value:s,options:y,onChange:function(e){return a({minMonth:e})}}),Object(f.createElement)("b",null," - "),Object(f.createElement)(tj,{className:"minDate",label:"Date",value:u,options:x,onChange:function(e){return a({minDay:e})}}),Object(f.createElement)("p",null,"To :"),Object(f.createElement)(tj,{className:"maxDate",label:"Year",value:h,options:p,onChange:function(e){return a({maxYear:e})}}),Object(f.createElement)("b",null," - "),Object(f.createElement)(tj,{className:"maxDate",label:"Month",value:d,options:y,onChange:function(e){return a({maxMonth:e})}}),Object(f.createElement)("b",null," - "),Object(f.createElement)(tj,{className:"maxDate",label:"Date",value:g,options:x,onChange:function(e){return a({maxDay:e})}}),v))),Object(f.createElement)("div",{className:_()("uagb-forms-date-wrap","uagb-forms-field-set","uagb-block-".concat(n))},l&&Object(f.createElement)("div",{className:"uagb-forms-required-wrap"},Object(f.createElement)(aj,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:i,onChange:function(e){return a({dateRequired:!i})}})),Object(f.createElement)(ij,{tagName:"div",placeholder:Object(M.__)("Date","ultimate-addons-for-gutenberg"),value:o,onChange:function(e){return a({name:e})},className:"uagb-forms-date-label ".concat(j," uagb-forms-input-label"),multiline:!1,id:n}),C))}}]),n}($C),cj=wp.blockEditor.RichText;a(418),(0,wp.blocks.registerBlockType)("uagb/forms-date",{title:uagb_blocks_info.blocks["uagb/forms-date"].title,description:uagb_blocks_info.blocks["uagb/forms-date"].description,icon:n.datepicker,category:uagb_blocks_info.category,parent:["uagb/forms"],attributes:KC,edit:oj,supports:{anchor:!0},example:{},save:function(e){var t=e.attributes,a=t.block_id,l=t.dateRequired,n=t.name,i=t.additonalVal,o=t.minYear,c=t.minMonth,r=t.minDay,s=t.maxYear,u=t.maxMonth,h=t.maxDay,d="",g="";o&&c&&r&&(d=o+"-"+c+"-"+r),s&&u&&h&&(g=s+"-"+u+"-"+h);var m;m=i?Object(f.createElement)("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:l,min:d,max:g,name:a}):Object(f.createElement)("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:l,name:a});var b=l?Object(M.__)("required","ultimate-addons-for-gutenberg"):"";return Object(f.createElement)("div",{className:_()("uagb-forms-date-wrap","uagb-forms-field-set","uagb-block-".concat(a))},Object(f.createElement)(cj.Content,{tagName:"div",value:n,className:"uagb-forms-date-label ".concat(b," uagb-forms-input-label"),id:a}),m)}});var rj={block_id:{type:"string"},acceptRequired:{type:"boolean",default:!1},acceptText:{type:"string",default:Object(M.__)("I have read and agree to the Privacy Policy.","ultimate-addons-for-gutenberg")},showLink:{type:"boolean",default:!1},linkLabel:{type:"string",default:Object(M.__)("Privacy Policy","ultimate-addons-for-gutenberg")},link:{type:"string",default:"#"},linkInNewTab:{type:"boolean",default:!0}};var sj=wp.element,uj=sj.Component,hj=sj.Fragment,dj=wp.components,gj=dj.PanelBody,mj=dj.ToggleControl,bj=dj.TextControl,vj=dj.TextareaControl,pj=wp.blockEditor.InspectorControls,fj=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"componentDidMount",value:function(){(0,this.props.setAttributes)({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-style-forms-accept-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=t.block_id,n=t.acceptRequired,i=t.acceptText,o=t.showLink,c=t.linkLabel,r=t.link,s=t.linkInNewTab,u=n?Object(M.__)("required","ultimate-addons-for-gutenberg"):"",h=s?Object(M.__)("_blank","ultimate-addons-for-gutenberg"):Object(M.__)("_self","ultimate-addons-for-gutenberg");return Object(f.createElement)(hj,null,Object(f.createElement)(pj,null,Object(f.createElement)(gj,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(mj,{label:Object(M.__)("Required","ultimate-addons-for-gutenberg"),checked:n,onChange:function(e){return a({acceptRequired:!n})}}),Object(f.createElement)(vj,{label:Object(M.__)("Acceptance Text","ultimate-addons-for-gutenberg"),help:"Label to display as acceptance message.",value:i,onChange:function(e){return a({acceptText:e})}}),Object(f.createElement)(mj,{label:Object(M.__)("Enable Privacy Link","ultimate-addons-for-gutenberg"),checked:o,onChange:function(e){return a({showLink:!o})}}),o&&Object(f.createElement)(hj,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(bj,{label:Object(M.__)("Link Label","ultimate-addons-for-gutenberg"),value:c,onChange:function(e){return a({linkLabel:e})}}),Object(f.createElement)(bj,{className:"uagb-forms-editor-privacy-link",label:Object(M.__)("Link","ultimate-addons-for-gutenberg"),value:r,onChange:function(e){return a({link:e})},help:""===r?Object(M.__)("Enter a valid link.","ultimate-addons-for-gutenberg"):""}),Object(f.createElement)(mj,{label:Object(M.__)("Open in new tab","ultimate-addons-for-gutenberg"),checked:s,onChange:function(e){return a({linkInNewTab:!s})}})))),Object(f.createElement)("div",{className:_()("uagb-forms-accept-wrap","uagb-forms-field-set","uagb-block-".concat(l))},o&&Object(f.createElement)("div",{className:"uagb-forms-accept-privacy-link"},Object(f.createElement)("a",{href:r,target:h,rel:"noopener noreferrer"}," ",c," ")),Object(f.createElement)("input",{type:"checkbox",id:"uagb-forms-accept-".concat(l),className:"uagb-forms-checkbox",name:l,required:n,value:"Agree"}),Object(f.createElement)("label",{name:l,htmlFor:"uagb-forms-accept-".concat(l),className:"uagb-forms-accept-label ".concat(u)},i),Object(f.createElement)("br",null)))}}]),n}(uj);a(419),(0,wp.blocks.registerBlockType)("uagb/forms-accept",{title:uagb_blocks_info.blocks["uagb/forms-accept"].title,description:uagb_blocks_info.blocks["uagb/forms-accept"].description,icon:n.accept,category:uagb_blocks_info.category,parent:["uagb/forms"],attributes:rj,edit:fj,supports:{anchor:!0},example:{},save:function(e){var t=e.attributes,a=t.block_id,l=t.acceptRequired,n=t.acceptText,i=t.showLink,o=t.linkLabel,c=t.link,r=t.linkInNewTab,s=l?Object(M.__)("required","ultimate-addons-for-gutenberg"):"",u=r?Object(M.__)("_blank","ultimate-addons-for-gutenberg"):Object(M.__)("_self","ultimate-addons-for-gutenberg");return Object(f.createElement)("div",{className:_()("uagb-forms-accept-wrap","uagb-forms-field-set","uagb-block-".concat(a))},i&&Object(f.createElement)("div",{className:"uagb-forms-accept-privacy-link"},Object(f.createElement)("a",{href:c,target:u,rel:"noopener noreferrer"}," ",o," ")),Object(f.createElement)("input",{type:"checkbox",name:a,required:l,value:"Agree",className:"uagb-forms-checkbox",id:"uagb-forms-accept-".concat(a)}),Object(f.createElement)("label",{name:a,htmlFor:"uagb-forms-accept-".concat(a),className:"uagb-forms-accept-label ".concat(s),id:a},n),Object(f.createElement)("br",null))}});var wj=wp.components,_j=wj.ToggleControl,yj=wj.SelectControl,zj=uagb_blocks_info.uagb_display_condition,xj=wp.compose.createHigherOrderComponent((function(e){return function(t){var a=wp.element.Fragment,l=wp.blockEditor.InspectorAdvancedControls,n=t.isSelected,i=t.name;return Object(f.createElement)(a,null,Object(f.createElement)(e,t),n&&!["uagb/buttons-child","uagb/faq-child","uagb/icon-list-child","uagb/social-share-child","uagb/restaurant-menu-child","wpforms/form-selector","formidable/simple-form","formidable/calculator","llms/lesson-navigation","llms/pricing-table","llms/course-syllabus","llms/instructors","core/archives","core/calendar","core/latest-comments","core/tag-cloud","core/rss","real-media-library/gallery"].includes(i)&&Object(f.createElement)(l,null,Object(f.createElement)("p",{className:"components-base-control__help"},Object(M.__)("Below setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")),function(e){var t=e.attributes,a=e.setAttributes,l=wp.element.Fragment,n=t.UAGLoggedIn,i=t.UAGLoggedOut,o=t.UAGDisplayConditions,c=t.UAGHideDesktop,r=t.UAGHideMob,s=t.UAGHideTab,u=t.UAGSystem,h=t.UAGBrowser,d=t.UAGUserRole;return uagb_blocks_info.user_role,Object(f.createElement)(l,null,Object(f.createElement)(yj,{label:Object(M.__)("Display Conditions"),value:o,onChange:function(e){return a({UAGDisplayConditions:e})},options:[{value:"none",label:Object(M.__)("None")},{value:"userstate",label:Object(M.__)("User State")},{value:"responsiveVisibility",label:Object(M.__)("Responsive Visibility")},{value:"userRole",label:Object(M.__)("User Role")},{value:"browser",label:Object(M.__)("Browser")},{value:"os",label:Object(M.__)("Operating System")}]}),"userstate"==o&&Object(f.createElement)(l,null,Object(f.createElement)(_j,{label:Object(M.__)("Hide From Logged In Users"),checked:n,onChange:function(e){return a({UAGLoggedIn:!t.UAGLoggedIn})}}),Object(f.createElement)(_j,{label:Object(M.__)("Hide From Logged Out Users"),checked:i,onChange:function(e){return a({UAGLoggedOut:!t.UAGLoggedOut})}})),"responsiveVisibility"==o&&Object(f.createElement)(l,null,Object(f.createElement)(_j,{label:Object(M.__)("Hide on Desktop"),checked:c,onChange:function(e){return a({UAGHideDesktop:!t.UAGHideDesktop})}}),Object(f.createElement)(_j,{label:Object(M.__)("Hide on Tablet"),checked:s,onChange:function(e){return a({UAGHideTab:!t.UAGHideTab})}}),Object(f.createElement)(_j,{label:Object(M.__)("Hide on Mobile"),checked:r,onChange:function(e){return a({UAGHideMob:!t.UAGHideMob})}})),"os"==o&&Object(f.createElement)(l,null,Object(f.createElement)(yj,{label:Object(M.__)("Hide on Operating System"),value:u,onChange:function(e){return a({UAGSystem:e})},options:[{value:"",label:Object(M.__)("None")},{value:"iphone",label:Object(M.__)("IOS")},{value:"android",label:Object(M.__)("Android")},{value:"windows",label:Object(M.__)("Windows")},{value:"open_bsd",label:Object(M.__)("OpenBSD")},{value:"sun_os",label:Object(M.__)("SunOS")},{value:"linux",label:Object(M.__)("Linux")},{value:"mac_os",label:Object(M.__)("Mac OS")}]})),"browser"==o&&Object(f.createElement)(l,null,Object(f.createElement)(yj,{label:Object(M.__)("Hide on Browser"),value:h,onChange:function(e){return a({UAGBrowser:e})},options:[{value:"",label:Object(M.__)("None")},{value:"ie",label:Object(M.__)("Internet Explorer")},{value:"firefox",label:Object(M.__)("Mozilla Firefox")},{value:"chrome",label:Object(M.__)("Google Chrome")},{value:"opera_mini",label:Object(M.__)("Opera Mini")},{value:"opera",label:Object(M.__)("Opera")},{value:"safari",label:Object(M.__)("Safari")},{value:"edge",label:Object(M.__)("Microsoft Edge")}]})),"userRole"==o&&Object(f.createElement)(l,null,Object(f.createElement)(yj,{label:Object(M.__)("Hide for User Role"),value:d,onChange:function(e){return a({UAGUserRole:e})},options:uagb_blocks_info.user_role})))}(t)))}}),"AdvancedControlsBlock");wp.hooks.addFilter("blocks.getSaveContent.extraProps","uagb/apply-extra-class",(function(e,t,a){var l=a.UAGHideDesktop,n=a.UAGHideTab,i=a.UAGHideMob;return"responsiveVisibility"===a.UAGDisplayConditions&&(l&&(e.className=e.className+" uag-hide-desktop"),n&&(e.className=e.className+" uag-hide-tab"),i&&(e.className=e.className+" uag-hide-mob")),e})),zj&&wp.hooks.addFilter("editor.BlockEdit","uagb/advanced-control-block",xj),a(420),a(421);var Oj={block_id:{type:"string"},tabHeaders:{type:"array",default:[Object(M.__)("Tab 1","ultimate-addons-for-gutenberg"),Object(M.__)("Tab 2","ultimate-addons-for-gutenberg"),Object(M.__)("Tab 3","ultimate-addons-for-gutenberg")]},tabActive:{type:"number",default:0},tabActiveFrontend:{type:"number",default:0},tabsStyleD:{type:"string",default:"hstyle1"},tabsStyleT:{type:"string",default:"vstyle6"},tabsStyleM:{type:"string",default:"vstyle6"},headerBgColor:{type:"string"},headerTextColor:{type:"string",default:"#007cba"},bodyBgColor:{type:"string"},bodyTextColor:{type:"string"},borderWidth:{type:"number",default:1},borderColor:{type:"string",default:"#e0e0e0"},activeTabBgColor:{type:"string",default:"#007cba"},activeTabTextColor:{type:"string",default:"#fff"},tabTitleLeftMargin:{type:"number"},tabTitleRightMargin:{type:"number"},tabTitleTopMargin:{type:"number"},tabTitleBottomMargin:{type:"number"},tabBodyLeftMargin:{type:"number"},tabBodyRightMargin:{type:"number"},tabBodyTopMargin:{type:"number"},tabBodyBottomMargin:{type:"number"},tabBodyVertPadding:{type:"number"},tabBodyHrPadding:{type:"number"},tabTitleVertPadding:{type:"number"},tabTitleHrPadding:{type:"number"},titleFontSize:{type:"number"},titleFontSizeType:{type:"string",default:"px"},titleFontSizeTablet:{type:"number"},titleFontSizeMobile:{type:"number"},titleFontFamily:{type:"string",default:"Default"},titleFontWeight:{type:"string"},titleFontSubset:{type:"string"},titleLineHeightType:{type:"string",default:"em"},titleLineHeight:{type:"number"},titleLineHeightTablet:{type:"number"},titleLineHeightMobile:{type:"number"},titleLoadGoogleFonts:{type:"boolean",default:!1},tabAlign:{type:"string",default:"left"},titleAlign:{type:"string",default:"center"},showIcon:{type:"boolean",default:!1},icon:{type:"string"},iconPosition:{type:"string",default:"left"},iconSpacing:{type:"string",default:10},iconColor:{type:"string"},iconSize:{type:"number",default:12},activeiconColor:{type:"string"}};var Cj=wp.element,jj=Cj.Component,Mj=Cj.Fragment,Ej=Object.keys(Ho),Hj=wp.blockEditor,kj=Hj.BlockAlignmentToolbar,Sj=Hj.InspectorControls,Lj=Hj.InnerBlocks,Bj=(Hj.PanelColorSettings,Hj.RichText),Vj=Hj.ColorPalette,Tj=wp.components,Nj=Tj.PanelBody,Aj=(Tj.TabPanel,Tj.SelectControl),Fj=Tj.RangeControl,Pj=Tj.ToggleControl,Rj=(Tj.BaseControl,Tj.Tooltip),Ij=(Tj.Button,Tj.Dashicon),Dj=wp.blocks.createBlock,qj=wp.compose.compose,Wj=wp.data,Gj=Wj.withDispatch,Zj=Wj.select,Uj=Wj.dispatch,Yj=Wj.withSelect,Kj=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onMoveForward=e.onMoveForward.bind(h()(e)),e.onMoveBack=e.onMoveBack.bind(h()(e)),e}return s()(i,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-style-tab-"+this.props.clientId.substr(0,8)),document.head.appendChild(e),this.updateTabTitle(),this.props.resetTabOrder()}},{key:"componentDidUpdate",value:function(){var e=document.getElementById("uagb-style-tab-"+this.props.clientId.substr(0,8));null!=e&&(e.innerHTML=function(e){var t=e.attributes,a=t.headerBgColor,l=t.titleAlign,n=t.headerTextColor,i=t.activeTabBgColor,o=t.activeTabTextColor,c=t.bodyBgColor,r=t.bodyTextColor,s=t.tabTitleTopMargin,u=t.tabTitleLeftMargin,h=t.tabTitleRightMargin,d=t.tabTitleBottomMargin,g=t.tabTitleVertPadding,m=t.tabTitleHrPadding,b=t.titleFontFamily,v=t.titleFontWeight,p=t.titleFontSize,f=t.titleFontSizeType,w=t.titleFontSizeMobile,_=t.titleFontSizeTablet,x=t.titleLineHeight,O=t.titleLineHeightType,C=t.titleLineHeightMobile,M=t.titleLineHeightTablet,E=t.borderWidth,H=t.borderColor,k=t.iconColor,S=t.iconSize,L=t.tabBodyLeftMargin,B=t.tabBodyRightMargin,V=t.tabBodyTopMargin,T=t.tabBodyBottomMargin,N=t.tabBodyVertPadding,A=t.tabBodyHrPadding,F=t.iconSpacing,P=t.tabsStyleD,R=t.tabsStyleM,I=t.tabsStyleT,D=t.activeiconColor,q={},W={},G={};q={" > .uagb-tabs__panel .uagb-tab":{background:a,"text-align":l,"padding-top":z(g,"px"),"padding-bottom":z(g,"px"),"padding-left":z(m,"px"),"padding-right":z(m,"px"),"margin-top":z(s,"px"),"margin-left":z(u,"px"),"margin-right":z(h,"px"),"margin-bottom":z(d,"px")}," > .uagb-tabs__panel .uagb-tab a > p":{color:n,"font-family":b,"font-weight":v,"font-size":z(p,f),"line-height":z(x,O)}," > .uagb-tabs__panel .uagb-tab.uagb-tabs__active ":{background:i}," > .uagb-tabs__panel .uagb-tab.uagb-tabs__active p":{color:o}," > .uagb-tabs__panel .uagb-tab.uagb-tabs__active .uagb-tabs__icon svg":{fill:D}," > .uagb-tabs__body-wrap ":{background:c,"padding-top":z(N,"px"),"padding-bottom":z(N,"px"),"padding-left":z(A,"px"),"padding-right":z(A,"px"),"margin-top":z(V,"px"),"margin-left":z(L,"px"),"margin-right":z(B,"px"),"margin-bottom":z(T,"px")}," > .uagb-tabs__body-wrap > .block-editor-inner-blocks p":{color:r}," .uagb-tabs__icon svg":{height:z(S,"px"),width:z(S,"px"),fill:k},".uagb-tabs__wrap > .uagb-tabs__panel .uagb-tab":j()({"border-width":z(E,"px"),"border-color":H},"border-width",z(E,"px")),".uagb-tabs__wrap > .uagb-tabs__body-wrap":{"border-width":z(E,"px"),"border-color":H}," .uagb-tabs__icon-position-left .uagb-tabs__icon ":{"margin-right":z(F,"px")}," .uagb-tabs__icon-position-right .uagb-tabs__icon ":{"margin-left":z(F,"px")}," .uagb-tabs__icon-position-top .uagb-tabs__icon ":{"margin-bottom":z(F,"px")}," .uagb-tabs__icon-position-bottom .uagb-tabs__icon ":{"margin-top":z(F,"px")}},W[" > .uagb-tabs__panel .uagb-tab p"]={"font-size":z(_,f),"line-height":z(M,O)},G[" > .uagb-tabs__panel .uagb-tab p"]={"font-size":z(w,f),"line-height":z(C,O)},"hstyle5"===P&&(q[".uagb-tabs__wrap.uagb-tabs__hstyle5-desktop "]={background:c,"border-color":H,"border-width":z(E,"px")}),"vstyle10"===P&&(q[".uagb-tabs__wrap.uagb-tabs__vstyle10-desktop "]={background:c,"border-color":H,"border-width":z(E,"px")}),"hstyle5"===I&&(W[".uagb-tabs__wrap.uagb-tabs__hstyle5-tablet"]={background:c,"border-color":H,"border-width":z(E,"px")}),"vstyle10"===I&&(W[".uagb-tabs__wrap.uagb-tabs__vstyle10-tablet"]={background:c,"border-color":H,"border-width":z(E,"px")}),"hstyle5"===R&&(G[".uagb-tabs__wrap.uagb-tabs__hstyle5-mobile "]={background:c,"border-color":H,"border-width":z(E,"px")}),"vstyle10"===R&&(G[".uagb-tabs__wrap.uagb-tabs__vstyle10-mobile "]={background:c,"border-color":H,"border-width":z(E,"px")}),"stack4"===R&&(G[".uagb-tabs__wrap.uagb-tabs__stack4-mobile"]={background:c,"border-color":H,"border-width":z(E,"px")});var Z=".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8)),U=y(q,Z);return(U+=y(W,"".concat(Z,".uagb-editor-preview-mode-tablet")))+y(G,"".concat(Z,".uagb-editor-preview-mode-mobile"))}(this.props))}},{key:"onMove",value:function(e,t){var a=this.props,l=a.attributes,n=a.setAttributes,i=a.clientId,o=l.tabHeaders,c=l.tabActiveFrontend,r=(0,(wp.blockEditor?Zj("core/block-editor"):Zj("core/editor")).getBlock)(i),s=ic()(o);s.splice(t,1,o[e]),s.splice(e,1,o[t]),n({tabHeaders:s}),c===e+1?n({tabActiveFrontend:t+1}):c===t+1&&n({tabActiveFrontend:e+1}),this.props.moveTab(r.innerBlocks[e].clientId,t),this.props.resetTabOrder()}},{key:"onMoveForward",value:function(e,t){var a=this;return function(){e!==t-1&&a.onMove(e,e+1)}}},{key:"onMoveBack",value:function(e){var t=this;return function(){e<0||t.onMove(e,e-1)}}},{key:"updateTabsTitle",value:function(e,t){var a=this.props,l=a.attributes,n=a.setAttributes,i=a.clientId,o=l.tabHeaders,c=(wp.blockEditor?Uj("core/block-editor"):Uj("core/editor")).updateBlockAttributes,r=(0,(wp.blockEditor?Zj("core/block-editor"):Zj("core/editor")).getBlockOrder)(i);n({tabHeaders:o.map((function(a,l){return t===l&&(a=e),a}))}),c(r[t],{header:e}),this.updateTabTitle()}},{key:"updateTabTitle",value:function(){var e=this.props,t=e.attributes,a=e.clientId,l=t.tabHeaders,n=(wp.blockEditor?Uj("core/block-editor"):Uj("core/editor")).updateBlockAttributes;(0,(wp.blockEditor?Zj("core/block-editor"):Zj("core/editor")).getBlockOrder)(a).forEach((function(e){return n(e,{tabHeaders:l})}))}},{key:"addTab",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId;(0,(wp.blockEditor?Uj("core/block-editor"):Uj("core/editor")).insertBlock)(Dj("uagb/tabs-child"),t.tabHeaders.length,l),a({tabHeaders:[].concat(ic()(t.tabHeaders),["New Tab"])}),this.props.resetTabOrder()}},{key:"removeTab",value:function(e){var t=this.props,a=t.attributes,l=t.setAttributes,n=t.clientId;(0,(wp.blockEditor?Uj("core/block-editor"):Uj("core/editor")).removeBlock)((0,(wp.blockEditor?Zj("core/block-editor"):Zj("core/editor")).getBlockOrder)(n)[e],!1),l({tabHeaders:a.tabHeaders.filter((function(t,a){return a!==e}))}),this.updateTabsAttr({tabActive:0}),this.props.resetTabOrder()}},{key:"updateTabsAttr",value:function(e){var t=this.props,a=t.setAttributes,l=t.clientId,n=(wp.blockEditor?Uj("core/block-editor"):Uj("core/editor")).updateBlockAttributes,i=(0,(wp.blockEditor?Zj("core/block-editor"):Zj("core/editor")).getBlockOrder)(l);a(e),i.forEach((function(t){return n(t,e)})),this.props.resetTabOrder()}},{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,l=t.setAttributes,i=t.className,o=t.deviceType,c=a.tabsStyleD,r=a.tabsStyleM,s=a.tabsStyleT,u=a.tabActiveFrontend,h=a.tabHeaders,d=a.headerBgColor,g=a.borderWidth,m=a.borderColor,b=a.headerTextColor,v=a.activeTabBgColor,p=a.activeTabTextColor,w=a.bodyBgColor,y=a.bodyTextColor,z=a.tabActive,x=a.tabTitleLeftMargin,O=a.tabTitleRightMargin,C=a.tabTitleTopMargin,j=a.tabTitleBottomMargin,E=a.tabBodyLeftMargin,H=a.tabBodyRightMargin,k=a.tabBodyTopMargin,S=a.tabBodyBottomMargin,L=a.tabBodyVertPadding,B=a.tabBodyHrPadding,V=a.tabTitleVertPadding,T=a.tabTitleHrPadding,N=a.titleLoadGoogleFonts,A=a.titleFontFamily,F=a.titleFontWeight,P=a.titleFontSubset,R=a.titleFontSizeType,I=a.titleFontSize,D=a.titleFontSizeMobile,q=a.titleFontSizeTablet,W=a.titleLineHeightType,G=a.titleLineHeight,Z=a.titleLineHeightMobile,U=a.titleLineHeightTablet,Y=a.titleAlign,K=a.tabAlign,J=a.showIcon,$=a.icon,Q=a.iconColor,X=a.iconPosition,ee=a.iconSpacing,te=a.iconSize,ae=a.activeiconColor;return Object(f.createElement)(Mj,null,Object(f.createElement)(Sj,null,Object(f.createElement)(Nj,{title:Object(M.__)("Tabs Style","ultimate-addons-for-gutenberg"),initialOpen:!0},Object(f.createElement)(Ga,null),"Desktop"===o&&Object(f.createElement)(Mj,null,Object(f.createElement)(Aj,{label:Object(M.__)("Desktop Style","ultimate-addons-for-gutenberg"),value:c,onChange:function(e){return l({tabsStyleD:e})},beforeIcon:"editor-textcolor",options:[{value:"hstyle1",label:Object(M.__)("Horizontal Style 1","ultimate-addons-for-gutenberg")},{value:"hstyle2",label:Object(M.__)("Horizontal Style 2","ultimate-addons-for-gutenberg")},{value:"hstyle3",label:Object(M.__)("Horizontal Style 3","ultimate-addons-for-gutenberg")},{value:"hstyle4",label:Object(M.__)("Horizontal Style 4","ultimate-addons-for-gutenberg")},{value:"hstyle5",label:Object(M.__)("Horizontal Style 5","ultimate-addons-for-gutenberg")},{value:"vstyle6",label:Object(M.__)("Vertical Style 6","ultimate-addons-for-gutenberg")},{value:"vstyle7",label:Object(M.__)("Vertical Style 7","ultimate-addons-for-gutenberg")},{value:"vstyle8",label:Object(M.__)("Vertical Style 8","ultimate-addons-for-gutenberg")},{value:"vstyle9",label:Object(M.__)("Vertical Style 9","ultimate-addons-for-gutenberg")},{value:"vstyle10",label:Object(M.__)("Vertical Style 10","ultimate-addons-for-gutenberg")}]})),"Tablet"===o&&Object(f.createElement)(Mj,null,Object(f.createElement)(Aj,{label:Object(M.__)("Tablet Style","ultimate-addons-for-gutenberg"),value:s,onChange:function(e){return l({tabsStyleT:e})},beforeIcon:"editor-textcolor",options:[{value:"hstyle1",label:Object(M.__)("Horizontal Style 1","ultimate-addons-for-gutenberg")},{value:"hstyle2",label:Object(M.__)("Horizontal Style 2","ultimate-addons-for-gutenberg")},{value:"hstyle3",label:Object(M.__)("Horizontal Style 3","ultimate-addons-for-gutenberg")},{value:"hstyle4",label:Object(M.__)("Horizontal Style 4","ultimate-addons-for-gutenberg")},{value:"hstyle5",label:Object(M.__)("Horizontal Style 5","ultimate-addons-for-gutenberg")},{value:"vstyle6",label:Object(M.__)("Vertical Style 6","ultimate-addons-for-gutenberg")},{value:"vstyle7",label:Object(M.__)("Vertical Style 7","ultimate-addons-for-gutenberg")},{value:"vstyle8",label:Object(M.__)("Vertical Style 8","ultimate-addons-for-gutenberg")},{value:"vstyle9",label:Object(M.__)("Vertical Style 9","ultimate-addons-for-gutenberg")},{value:"vstyle10",label:Object(M.__)("Vertical Style 10","ultimate-addons-for-gutenberg")}]})),"Mobile"===o&&Object(f.createElement)(Mj,null,Object(f.createElement)(Aj,{label:Object(M.__)("Mobile Style","ultimate-addons-for-gutenberg"),value:r,onChange:function(e){return l({tabsStyleM:e})},beforeIcon:"editor-textcolor",options:[{value:"hstyle1",label:Object(M.__)("Horizontal Style 1","ultimate-addons-for-gutenberg")},{value:"hstyle2",label:Object(M.__)("Horizontal Style 2","ultimate-addons-for-gutenberg")},{value:"hstyle3",label:Object(M.__)("Horizontal Style 3","ultimate-addons-for-gutenberg")},{value:"hstyle4",label:Object(M.__)("Horizontal Style 4","ultimate-addons-for-gutenberg")},{value:"hstyle5",label:Object(M.__)("Horizontal Style 5","ultimate-addons-for-gutenberg")},{value:"vstyle6",label:Object(M.__)("Vertical Style 6","ultimate-addons-for-gutenberg")},{value:"vstyle7",label:Object(M.__)("Vertical Style 7","ultimate-addons-for-gutenberg")},{value:"vstyle8",label:Object(M.__)("Vertical Style 8","ultimate-addons-for-gutenberg")},{value:"vstyle9",label:Object(M.__)("Vertical Style 9","ultimate-addons-for-gutenberg")},{value:"vstyle10",label:Object(M.__)("Vertical Style 10","ultimate-addons-for-gutenberg")},{value:"stack1",label:Object(M.__)("Stack Style 11","ultimate-addons-for-gutenberg")},{value:"stack2",label:Object(M.__)("Stack Style 12","ultimate-addons-for-gutenberg")},{value:"stack3",label:Object(M.__)("Stack Style 13","ultimate-addons-for-gutenberg")},{value:"stack4",label:Object(M.__)("Stack Style 14","ultimate-addons-for-gutenberg")}]}))),Object(f.createElement)(Nj,{title:Object(M.__)("Tabs Title Settings","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(Aj,{label:Object(M.__)("Initial Open Tab","ultimate-addons-for-gutenberg"),value:u,options:h.map((function(e,t){return{value:t,label:e}})),onChange:function(e){return l({tabActiveFrontend:parseInt(e)})}}),Object(f.createElement)("h2",null,Object(M.__)("Tab Alignment","ultimate-addons-for-gutenberg")),Object(f.createElement)(kj,{value:K,onChange:function(e){return l({tabAlign:e})},controls:["left","center","right"],isCollapsed:!1}),Object(f.createElement)("h2",null,Object(M.__)("Tab Text Alignment","ultimate-addons-for-gutenberg")),Object(f.createElement)(kj,{value:Y,onChange:function(e){return l({titleAlign:e})},controls:["left","center","right"],isCollapsed:!1}),Object(f.createElement)(Pj,{label:Object(M.__)("Enable Icon","ultimate-addons-for-gutenberg"),checked:J,onChange:function(e){return l({showIcon:!J})}}),J&&Object(f.createElement)(Mj,null,Object(f.createElement)("h2",{className:"components-base-control__label"},Object(M.__)("Icon","ultimate-addons-for-gutenberg")),Object(f.createElement)(So.a,{icons:Ej,renderFunc:Lo,theme:"default",value:$,onChange:function(e){return l({icon:e})},isMulti:!1,noSelectedPlaceholder:Object(M.__)("Select Icon","ultimate-addons-for-gutenberg")}),Object(f.createElement)(Aj,{label:Object(M.__)("Icon Position","ultimate-addons-for-gutenberg"),value:X,options:[{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")},{value:"top",label:Object(M.__)("Top","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(M.__)("Bottom","ultimate-addons-for-gutenberg")}],onChange:function(e){return l({iconPosition:e})}}),Object(f.createElement)("h2",null,Object(M.__)("Icon Spacing","ultimate-addons-for-gutenberg")),Object(f.createElement)(Fj,{className:"uagb-tabs__icon",value:ee,onChange:function(e){return l({iconSpacing:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Icon Color","ultimate-addons-for-gutenberg")),Object(f.createElement)(Vj,{value:Q,onChange:function(e){return l({iconColor:e})},allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Active Icon Color","ultimate-addons-for-gutenberg")),Object(f.createElement)(Vj,{value:ae,onChange:function(e){return l({activeiconColor:e})},allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Icon Size","ultimate-addons-for-gutenberg")),Object(f.createElement)(Fj,{className:"uagb-tabs__icon",value:te,onChange:function(e){return l({iconSize:e})},min:0,max:500,allowReset:!0})),Object(f.createElement)("h2",null,Object(M.__)("Tab Title Margin (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(Fj,{label:n.left_margin,className:"uagb-margin-control",value:x,onChange:function(e){return l({tabTitleLeftMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Fj,{label:n.right_margin,className:"uagb-margin-control",value:O,onChange:function(e){return l({tabTitleRightMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Fj,{label:n.top_margin,value:C,onChange:function(e){return l({tabTitleTopMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Fj,{label:n.bottom_margin,className:"uagb-margin-control",value:j,onChange:function(e){return l({tabTitleBottomMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Title Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(Fj,{label:n.vertical_spacing,value:V,onChange:function(e){return l({tabTitleVertPadding:e})},min:0,max:500,className:"uagb-margin-control",allowReset:!0}),Object(f.createElement)(Fj,{label:n.horizontal_spacing,value:T,onChange:function(e){return l({tabTitleHrPadding:e})},min:0,max:500,className:"uagb-margin-control",allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Title Background Color","ultimate-addons-for-gutenberg")),Object(f.createElement)(Vj,{value:d,onChange:function(e){return l({headerBgColor:e})},allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Title Text Color","ultimate-addons-for-gutenberg")),Object(f.createElement)(Vj,{value:b,onChange:function(e){return l({headerTextColor:e})},allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Active Tab Background Color","ultimate-addons-for-gutenberg")),Object(f.createElement)(Vj,{value:v,onChange:function(e){return l({activeTabBgColor:e})},allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Active Tab Text Color","ultimate-addons-for-gutenberg")),Object(f.createElement)(Vj,{value:p,onChange:function(e){return l({activeTabTextColor:e})},allowReset:!0}),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:l,loadGoogleFonts:{value:N,label:"titleLoadGoogleFonts"},fontFamily:{value:A,label:"titleFontFamily"},fontWeight:{value:F,label:"titleFontWeight"},fontSubset:{value:P,label:"titleFontSubset"},fontSizeType:{value:R,label:"titleFontSizeType"},fontSize:{value:I,label:"titleFontSize"},fontSizeMobile:{value:D,label:"titleFontSizeMobile"},fontSizeTablet:{value:q,label:"titleFontSizeTablet"},lineHeightType:{value:W,label:"titleLineHeightType"},lineHeight:{value:G,label:"titleLineHeight"},lineHeightMobile:{value:Z,label:"titleLineHeightMobile"},lineHeightTablet:{value:U,label:"titleLineHeightTablet"}})),Object(f.createElement)(Nj,{title:Object(M.__)("Tabs Body Settings","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("h2",null,Object(M.__)("Body Background Color","ultimate-addons-for-gutenberg")),Object(f.createElement)(Vj,{value:w,onChange:function(e){return l({bodyBgColor:e})},allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Body Text Color","ultimate-addons-for-gutenberg")),Object(f.createElement)(Vj,{value:y,onChange:function(e){return l({bodyTextColor:e})},allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Tab Body Margin (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(Fj,{label:n.left_margin,className:"uagb-margin-control",value:E,onChange:function(e){return l({tabBodyLeftMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Fj,{label:n.right_margin,className:"uagb-margin-control",value:H,onChange:function(e){return l({tabBodyRightMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Fj,{label:n.top_margin,className:"uagb-margin-control",value:k,onChange:function(e){return l({tabBodyTopMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Fj,{label:n.bottom_margin,className:"uagb-margin-control",value:S,onChange:function(e){return l({tabBodyBottomMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Body Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(Fj,{label:n.vertical_spacing,value:L,onChange:function(e){return l({tabBodyVertPadding:e})},min:0,max:500,className:"uagb-margin-control",allowReset:!0}),Object(f.createElement)(Fj,{label:n.horizontal_spacing,value:B,onChange:function(e){return l({tabBodyHrPadding:e})},min:0,max:500,className:"uagb-margin-control",allowReset:!0})),Object(f.createElement)(Nj,{title:Object(M.__)("Border Settings","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg")),Object(f.createElement)(Vj,{value:m,onChange:function(e){return l({borderColor:e})},allowReset:!0}),Object(f.createElement)(Fj,{label:Object(M.__)("Border width","ultimate-addons-for-gutenberg"),value:g,min:1,max:500,onChange:function(e){return l({borderWidth:e})}}))),Object(f.createElement)("div",{className:_()(i,"uagb-editor-preview-mode-".concat(o.toLowerCase()),"uagb-block-".concat(this.props.clientId.substr(0,8)),"uagb-tabs__wrap","uagb-tabs__".concat(c,"-desktop"),"uagb-tabs__".concat(s,"-tablet"),"uagb-tabs__".concat(r,"-mobile"))},Object(f.createElement)("ul",{className:"uagb-tabs__panel uagb-tabs__align-".concat(K)},h.map((function(t,a){return Object(f.createElement)("li",{key:a,className:"uagb-tab ".concat(z===a?"uagb-tabs__active":""," "),id:"uagb-tabs__tab".concat(a)},h.length>0&&Object(f.createElement)("div",{className:"uagb-tabs-editor-controls"},0!==a&&Object(f.createElement)(Rj,{text:Object(M.__)("Move Item Back","ultimate-addons-for-gutenberg")},Object(f.createElement)("span",{className:"uagb-tab-item__move-back",onClick:0===a?" ":e.onMoveBack(a,h.length),"aria-disabled":a===h.length,disabled:a===h.length},Object(f.createElement)(Ij,{icon:"arrow-left"}))),a+1!==h.length&&Object(f.createElement)(Rj,{text:Object(M.__)("Move Item Forward","ultimate-addons-for-gutenberg")},Object(f.createElement)("span",{className:"uagb-tab-item__move-forward",onClick:a===h.length?" ":e.onMoveForward(a,h.length),"aria-disabled":a===h.length,disabled:a===h.length},Object(f.createElement)(Ij,{icon:"arrow-right"}))),Object(f.createElement)(Rj,{text:Object(M.__)("Remove tab","ultimate-addons-for-gutenberg")},Object(f.createElement)("span",{className:"uagb-tabs__remove",onClick:function(){return e.removeTab(a)}},Object(f.createElement)(Ij,{icon:"no"})))),Object(f.createElement)("a",{className:"uagb-tabs__icon-position-".concat(X," uagb-tabs-list"),onClick:function(){e.props.updateActiveTab(a)},"data-tab":a},J&&$&&("left"===X||"top"===X)&&Object(f.createElement)("span",{className:"uagb-tabs__icon"},Lo($)),Object(f.createElement)(Bj,{tagName:"p",value:t,onChange:function(t){return e.updateTabsTitle(t,a)},onSplit:function(){return null},placeholder:Object(M.__)("Title…","ultimate-addons-for-gutenberg")}),J&&$&&("right"===X||"bottom"===X)&&Object(f.createElement)("span",{className:"uagb-tabs__icon"},Lo($))))})),Object(f.createElement)("li",{className:"uagb-tab uagb-tabs__add-tab"},Object(f.createElement)(Rj,{text:Object(M.__)("Add tab","ultimate-addons-for-gutenberg")},Object(f.createElement)("span",{onClick:function(){return e.addTab()}},Object(f.createElement)(Ij,{icon:"plus"}))))),Object(f.createElement)("div",{className:"uagb-tabs__body-wrap"},Object(f.createElement)(Lj,{template:[["uagb/tabs-child"],["uagb/tabs-child"],["uagb/tabs-child"]],templateLock:!1,allowedBlocks:["uagb/tabs-child"]}))))}}]),i}(jj),Jj=qj(Yj((function(e,t){var a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=void 0===a?null:a;return{deviceType:l?l():null}})),Gj((function(e,t,a){var l=t.clientId,n=(0,a.select)("core/block-editor").getBlock,i=e("core/block-editor"),o=i.updateBlockAttributes,c=i.moveBlockToPosition,r=n(l);return{resetTabOrder:function(){ao()(r.innerBlocks.length,(function(e){o(r.innerBlocks[e].clientId,{id:e})}))},updateActiveTab:function(e){o(r.clientId,{tabActive:e}),ao()(r.innerBlocks.length,(function(t){o(r.innerBlocks[t].clientId,{tabActive:e})})),this.resetTabOrder()},moveTab:function(e,t){c(e,l,l,parseInt(t))}}})))(Kj),$j=wp.blockEditor,Qj=$j.RichText,Xj=$j.InnerBlocks,eM=[{attributes:Oj,save:function(e){var t=e.className,a=e.attributes,l=a.block_id,n=a.tabHeaders,i=a.tabActiveFrontend,o=a.tabsStyleD,c=a.tabsStyleT,r=a.tabsStyleM,s=a.icon,u=a.showIcon,h=a.iconPosition;return Object(f.createElement)("div",{className:_()(t,"uagb-block-".concat(l),"uagb-tabs__wrap","uagb-tabs__".concat(o,"-desktop"),"uagb-tabs__".concat(c,"-tablet"),"uagb-tabs__".concat(r,"-mobile")),"data-tab-active":i},Object(f.createElement)("ul",{className:"uagb-tabs__panel"},n.map((function(e,t){return Object(f.createElement)("li",{key:t,className:"uagb-tab"},Object(f.createElement)("a",{href:"#uagb-tabs__tab".concat(t),className:"uagb-tabs__icon-position-".concat(h)},u&&("left"===h||"top"===h)&&Object(f.createElement)("span",{className:"uagb-tabs__icon"},Lo(s)),Object(f.createElement)(Qj.Content,{tagName:"span",value:e}),u&&("right"===h||"bottom"===h)&&Object(f.createElement)("span",{className:"uagb-tabs__icon"},Lo(s))))}))),Object(f.createElement)("div",{className:"uagb-tabs__body-wrap"},Object(f.createElement)(Xj.Content,null)))}}],tM=wp.blockEditor,aM=tM.InnerBlocks,lM=tM.RichText;(0,wp.blocks.registerBlockType)("uagb/tabs",{title:uagb_blocks_info.blocks["uagb/tabs"].title,description:uagb_blocks_info.blocks["uagb/tabs"].description,icon:n.tabs,category:uagb_blocks_info.category,keywords:[Object(M.__)("tabs","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Oj,edit:Jj,save:function(e){var t=e.attributes,a=e.className,l=t.block_id,n=t.tabHeaders,i=t.tabActiveFrontend,o=t.tabsStyleD,c=t.tabsStyleT,r=t.tabsStyleM,s=t.icon,u=t.showIcon,h=t.iconPosition,d=t.tabAlign;return Object(f.createElement)("div",{className:_()(a,"uagb-block-".concat(l),"uagb-tabs__wrap","uagb-tabs__".concat(o,"-desktop"),"uagb-tabs__".concat(c,"-tablet"),"uagb-tabs__".concat(r,"-mobile")),"data-tab-active":i},Object(f.createElement)("ul",{className:"uagb-tabs__panel uagb-tabs__align-".concat(d)},n.map((function(e,t){return Object(f.createElement)("li",{key:t,className:"uagb-tab ".concat(i==t?"uagb-tabs__active":"")},Object(f.createElement)("a",{href:"#uagb-tabs__tab".concat(t),className:"uagb-tabs-list uagb-tabs__icon-position-".concat(h),"data-tab":t},u&&("left"===h||"top"===h)&&Object(f.createElement)("span",{className:"uagb-tabs__icon"},Lo(s)),Object(f.createElement)(lM.Content,{tagName:"span",value:e}),u&&("right"===h||"bottom"===h)&&Object(f.createElement)("span",{className:"uagb-tabs__icon"},Lo(s))))}))),Object(f.createElement)("div",{className:"uagb-tabs__body-wrap"},Object(f.createElement)(aM.Content,null)))},deprecated:eM}),a(422);var nM={block_id:{type:"string"},id:{type:"number",default:0},header:{type:"html"},tabActive:{type:"number"},tabHeaders:{type:"array",default:[Object(M.__)("Tab 1","ultimate-addons-for-gutenberg"),Object(M.__)("Tab 2","ultimate-addons-for-gutenberg"),Object(M.__)("Tab 3","ultimate-addons-for-gutenberg")]}};var iM=wp.element.Component,oM=wp.blockEditor.InnerBlocks,cM=wp.data.select,rM=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId,n=wp.blockEditor?cM("core/block-editor"):cM("core/editor"),i=n.getBlockRootClientId,o=(0,n.getBlockAttributes)(i(l));a({block_id:this.props.clientId.substr(0,8)}),a({tabActive:o.tabActiveFrontend}),null!==o&&!1!==o.needUpdate&&Object.keys(o).map((function(e){t[e]=o[e]}))}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.className,l=t.tabActive,n=t.id,i=t.block_id;return Object(f.createElement)("div",{className:"uagb-tabs__body-container uagb-tabs__inner-tab uagb-inner-tab-".concat(n),style:{display:n===l?"block":"none"}},Object(f.createElement)("div",{className:_()(a,"uagb-tabs__".concat(i),"uagb-tabs__body"),"aria-labelledby":"uagb-tabs__tab".concat(n)},Object(f.createElement)(oM,{template:[["core/paragraph"]],templateLock:!1})))}}]),n}(iM),sM=wp.blockEditor.InnerBlocks,uM=[{attributes:nM,save:function(e){var t=e.attributes,a=e.className,l=t.id,n=t.block_id;return Object(f.createElement)("div",{className:"uagb-tabs__body-container"},Object(f.createElement)("div",{className:_()(a,"uagb-blocks__".concat(n),"uagb-tabs__body"),"aria-labelledby":"uagb-tabs__tab".concat(l)},Object(f.createElement)(sM.Content,null)))}}],hM=wp.blockEditor.InnerBlocks;(0,wp.blocks.registerBlockType)("uagb/tabs-child",{title:uagb_blocks_info.blocks["uagb/tabs-child"].title,description:uagb_blocks_info.blocks["uagb/tabs-child"].description,parent:["uagb/tabs"],icon:n.tabs,category:uagb_blocks_info.category,keywords:[Object(M.__)("tabs","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:nM,edit:rM,save:function(e){var t=e.attributes,a=e.className,l=t.id,n=t.block_id;return Object(f.createElement)("div",{className:"uagb-tabs__body-container uagb-tabs__inner-tab uagb-inner-tab-".concat(l)},Object(f.createElement)("div",{className:_()(a,"uagb-blocks__".concat(n),"uagb-tabs__body"),"aria-labelledby":"uagb-tabs__tab".concat(l)},Object(f.createElement)(hM.Content,null)))},deprecated:uM}),a(423);var dM=a(162),gM=a.n(dM);var mM=wp.blockEditor,bM=mM.BlockAlignmentToolbar,vM=mM.InspectorControls,pM=mM.ColorPalette,fM=mM.MediaPlaceholder,wM=mM.BlockControls,_M=mM.MediaReplaceFlow,yM=wp.components,zM=yM.PanelBody,xM=yM.RangeControl,OM=yM.ToggleControl,CM=yM.TabPanel,jM=yM.Dashicon,MM=yM.SelectControl,EM=yM.ToolbarGroup,HM=wp.element,kM=HM.Component,SM=HM.Fragment,LM=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){var e;return c()(this,n),(e=l.apply(this,arguments)).lottieplayer=React.createRef(),e.state={direction:1,loopState:!0},e.onSelectLottieJSON=e.onSelectLottieJSON.bind(h()(e)),e.reverseDirection=e.reverseDirection.bind(h()(e)),e.loopLottie=e.loopLottie.bind(h()(e)),e}return s()(n,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)}),this.props.setAttributes({classMigrate:!0});var e=document.createElement("style");e.setAttribute("id","uagb-lottie-style-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e,t){var a=document.getElementById("uagb-lottie-style-"+this.props.clientId.substr(0,8));null!=a&&(a.innerHTML=function(e){var t=e.attributes,a=t.width,l=t.widthTablet,n=t.widthMob,i=t.height,o=t.heightTablet,c=t.heightMob,r=t.backgroundColor,s=t.backgroundHColor,u={},h={},d={".uagb-lottie__outer-wrap":{width:z(a,"px"),height:z(i,"px"),background:r},".uagb-lottie__outer-wrap:hover":{background:s}};u[".uagb-lottie__outer-wrap"]={width:z(l,"px"),height:z(o,"px")},h[".uagb-lottie__outer-wrap"]={width:z(n,"px"),height:z(c,"px")};var g=".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8)),m=y(d,g);return(m+=y(u,g))+y(h,g)}(this.props))}},{key:"onSelectLottieJSON",value:function(e){var t=this.props.setAttributes;e&&e.url?(t({jsonLottie:e}),t({lottieURl:e.url})):t({jsonLottie:null})}},{key:"loopLottie",value:function(){var e=this.props.setAttributes,t=this.props.attributes.loop,a=this.state.loopState;e({loop:!t}),this.setState({loopState:!a})}},{key:"reverseDirection",value:function(){var e=this.props.setAttributes,t=this.props.attributes.reverse,a=this.state.direction;e({reverse:!t}),this.setState({direction:-1*a})}},{key:"render",value:function(){var e=this,t=this.props,a=t.className,l=t.setAttributes,n=t.attributes,i=n.align,o=n.height,c=n.heightTablet,r=n.heightMob,s=n.width,u=n.widthTablet,h=n.widthMob,d=n.backgroundColor,g=n.loop,m=n.speed,b=n.reverse,v=n.jsonLottie,p=n.lottieURl,w=n.playOn,y=n.backgroundHColor,z=Object(f.createElement)(zM,{title:Object(M.__)("Controls","ultimate-addons-for-gutenberg"),initialOpen:!0},Object(f.createElement)(MM,{label:Object(M.__)("Play On","ultimate-addons-for-gutenberg"),value:w,onChange:function(e){return l({playOn:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"hover",label:Object(M.__)("On Hover","ultimate-addons-for-gutenberg")},{value:"click",label:Object(M.__)("On Click","ultimate-addons-for-gutenberg")},{value:"scroll",label:Object(M.__)("Viewport","ultimate-addons-for-gutenberg")}],help:"scroll"===w?Object(M.__)("This setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg"):""}),Object(f.createElement)(OM,{label:Object(M.__)("Loop","ultimate-addons-for-gutenberg"),checked:g,onChange:this.loopLottie,help:Object(M.__)("Enabling this will show the animation in the loop. This setting will only take effect once you are on the live page, and not while you're editing.")}),Object(f.createElement)(xM,{label:Object(M.__)("Speed","ultimate-addons-for-gutenberg"),value:m,onChange:function(e){return l({speed:e})},min:1,max:50,allowReset:!0}),g&&Object(f.createElement)(OM,{label:Object(M.__)("Reverse","ultimate-addons-for-gutenberg"),checked:b,onChange:this.reverseDirection,help:Object(M.__)("Direction of animation.","ultimate-addons-for-gutenberg")})),x=Object(f.createElement)(zM,{title:Object(M.__)("Style","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(CM,{className:"uagb-size-type-field-tabs uagb-without-size-type",activeClass:"active-tab",tabs:[{name:"desktop",title:Object(f.createElement)(jM,{icon:"desktop"}),className:"uagb-desktop-tab uagb-responsive-tabs"},{name:"tablet",title:Object(f.createElement)(jM,{icon:"tablet"}),className:"uagb-tablet-tab uagb-responsive-tabs"},{name:"mobile",title:Object(f.createElement)(jM,{icon:"smartphone"}),className:"uagb-mobile-tab uagb-responsive-tabs"}]},(function(e){var t;return t="mobile"===e.name?Object(f.createElement)(xM,{label:Object(M.__)("Width","ultimate-addons-for-gutenberg"),value:h,onChange:function(e){return l({widthMob:e})},min:0,max:1e3,allowReset:!0}):"tablet"===e.name?Object(f.createElement)(xM,{label:Object(M.__)("Width","ultimate-addons-for-gutenberg"),value:u,onChange:function(e){return l({widthTablet:e})},min:0,max:1e3,allowReset:!0}):Object(f.createElement)(xM,{label:Object(M.__)("Width","ultimate-addons-for-gutenberg"),value:s,onChange:function(e){return l({width:e})},min:0,max:1e3,allowReset:!0}),Object(f.createElement)("div",null,t)})),Object(f.createElement)(CM,{className:"uagb-size-type-field-tabs uagb-without-size-type",activeClass:"active-tab",tabs:[{name:"desktop",title:Object(f.createElement)(jM,{icon:"desktop"}),className:"uagb-desktop-tab uagb-responsive-tabs"},{name:"tablet",title:Object(f.createElement)(jM,{icon:"tablet"}),className:"uagb-tablet-tab uagb-responsive-tabs"},{name:"mobile",title:Object(f.createElement)(jM,{icon:"smartphone"}),className:"uagb-mobile-tab uagb-responsive-tabs"}]},(function(e){var t;return t="mobile"===e.name?Object(f.createElement)(xM,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:r,onChange:function(e){return l({heightMob:e})},min:0,max:1e3,allowReset:!0}):"tablet"===e.name?Object(f.createElement)(xM,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:c,onChange:function(e){return l({heightTablet:e})},min:0,max:1e3,allowReset:!0}):Object(f.createElement)(xM,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:o,onChange:function(e){return l({height:e})},min:0,max:1e3,allowReset:!0}),Object(f.createElement)("div",null,t)})),Object(f.createElement)("br",null),Object(f.createElement)("h2",null,Object(M.__)("Alignment","ultimate-addons-for-gutenberg")),Object(f.createElement)(bM,{value:i,onChange:function(e){return l({align:e})},controls:["left","center","right"],isCollapsed:!1}),Object(f.createElement)("br",null),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:d}}))),Object(f.createElement)(pM,{value:d,onChange:function(e){return l({backgroundColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:y}}))),Object(f.createElement)(pM,{value:y,onChange:function(e){return l({backgroundHColor:e})},allowReset:!0})),O="invalid";if(p&&p.endsWith(".json")&&(O="valid"),!uagb_blocks_info.uagb_mime_type)return Object(f.createElement)("div",{className:"uagb-show-notice"},Object(f.createElement)("span",null,Object(M.__)("Lottie block requires the file type JSON to be uploaded to media files. Seems like your website has disabled this file type. Please refer","ultimate-addons-for-gutenberg"),Object(f.createElement)("a",{href:"".concat(uagb_blocks_info.uagb_site_url,"/docs/lottie/?utm_source=uagb-dashboard&utm_medium=uagb-editor-page&utm_campaign=uagb-plugin"),target:"__blank"}," ",Object(M.__)("this document")," "),Object(M.__)("to know more about it.")));if("invalid"===O){var C=Object(f.createElement)("span",null," ",Object(M.__)("Allows you to add fancy animation i.e Lottie to your website. You can see sample Lottie animations","ultimate-addons-for-gutenberg"),Object(f.createElement)("a",{href:"https://lottiefiles.com/",target:"__blank"}," ",Object(M.__)("here on this")," "),Object(M.__)("website."));return Object(f.createElement)("div",{className:"uagb-lottie_upload_wrap"},Object(f.createElement)(fM,{labels:{title:Object(M.__)("Lottie","ultimate-addons-for-gutenberg"),instructions:C},allowedTypes:["application/json"],accept:["application/json"],value:v,onSelectURL:function(e){return l({lottieURl:e})},onSelect:this.onSelectLottieJSON}))}var j=function(){e.lottieplayer.current.anim.play()},E=b&&g?-1:1,H=!0;return"none"!==w&&"scroll"!==w&&void 0!==w||(H=!1),Object(f.createElement)(SM,null,"valid"===O&&Object(f.createElement)(wM,null,Object(f.createElement)(EM,null,Object(f.createElement)(_M,{mediaURL:p,allowedTypes:["application/json"],accept:["application/json"],onSelectURL:function(e){return l({lottieURl:e})},onSelect:this.onSelectLottieJSON}))),Object(f.createElement)(vM,null,z,x),Object(f.createElement)("div",{className:_()(a,"uagb-block-".concat(this.props.clientId.substr(0,8)),"uagb-lottie__outer-wrap","uagb-lottie__".concat(i)),onMouseEnter:"hover"===w?j:function(){return H=!0},onMouseLeave:"hover"===w?function(){e.lottieplayer.current.anim.stop()}:function(){return H=!0},onClick:"click"===w?j:function(){return H=!0}},Object(f.createElement)(gM.a,{key:p,ref:this.lottieplayer,options:{loop:g,path:p,rendererSettings:{preserveAspectRatio:"xMidYMid",className:"uagb-lottie-inner-wrap"}},isStopped:H,speed:m,isClickToPauseDisabled:!0,direction:E})))}}]),n}(kM);(0,wp.blocks.registerBlockType)("uagb/lottie",{title:uagb_blocks_info.blocks["uagb/lottie"].title,description:uagb_blocks_info.blocks["uagb/lottie"].description,icon:n.lottie,keywords:[Object(M.__)("lottie","ultimate-addons-for-gutenberg"),Object(M.__)("animation","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],example:{},category:uagb_blocks_info.category,edit:LM,save:function(){return null}}),(0,wp.blocks.updateCategory)("uagb",{icon:n.logo})}]);
6
  /* translators: abbreviation for large size */
7
  label:Object(M.__)("L","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Large","ultimate-addons-for-gutenberg")},{value:"30",
8
  /* translators: abbreviation for extra large size */
9
+ label:Object(M.__)("XL","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Extra Large","ultimate-addons-for-gutenberg")}],Ab={value:"0",label:Object(M.__)("None","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("None","ultimate-addons-for-gutenberg")},Fb=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.advancedMaxValue,a=e.advancedMinValue,l=e.currentOption,n=e.label,i=e.onChange,o=e.options,c=e.showAdvancedControls,r=e.showIcons,s=e.showNoneOption,u=o||Nb;return s&&(u=[Ab].concat(ic()(u))),c&&!1!==a&&!1!==t?Object(f.createElement)(Vb,{label:n,value:l,onChange:function(e){return i(e)},min:a,max:t}):Object(f.createElement)(kb,{id:"uagb-option-selector-".concat(n),label:n},Object(f.createElement)(Bb,null,Object(f.createElement)(Lb,{"aria-label":n},u.map((function(e){return Object(f.createElement)(Tb,{key:"option-".concat(e.value),text:e.tooltip},Object(f.createElement)(Sb,{isLarge:!0,isSecondary:l!==e.value,isPrimary:l===e.value,"aria-pressed":l===e.value,onClick:function(){return i(e.value)},"aria-label":e.tooltip},r?e.icon:e.label))})))))}}]),n}(Eb),Pb=function(e,t){var a=e.attributes,l=a.leftPadding,n=a.rightPadding,i=a.topPadding,o=a.bottomPadding,c=a.topMargin,r=a.bottomMargin,s=a.backgroundPosition,u=a.backgroundSize,h=a.backgroundAttachment,d=a.backgroundImage,g=a.backgroundRepeat,m=a.backgroundType,b=a.borderStyle,v=a.borderWidth,p=a.borderRadius,f=a.borderColor,w=a.desktopMarginType,_=a.desktopPaddingType,y={"padding-top":z(i,_),"padding-bottom":z(o,_),"padding-left":z(l,_),"padding-right":z(n,_),"margin-top":z(c,w),"margin-bottom":z(r,w),"border-radius":z(p,w)};"none"!=b&&(y["border-style"]=b,y["border-width"]=z(v,"px"),y["border-color"]=f);var x=s.replace("-"," ");return"image"===m&&(y["background-image"]=d?"url(".concat(d.url,")"):null,y["background-position"]=x,y["background-attachment"]=h,y["background-repeat"]=g,y["background-size"]=u),y},Rb=(a(383),wp.element.createElement),Ib={triangle:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M500,98.9L0,6.1V0h1000v6.1L500,98.9z"})),wave_brush:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 27.8",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M283.5,9.7c0,0-7.3,4.3-14,4.6c-6.8,0.3-12.6,0-20.9-1.5c-11.3-2-33.1-10.1-44.7-5.7\ts-12.1,4.6-18,7.4c-6.6,3.2-20,9.6-36.6,9.3C131.6,23.5,99.5,7.2,86.3,8c-1.4,0.1-6.6,0.8-10.5,2c-3.8,1.2-9.4,3.8-17,4.7\tc-3.2,0.4-8.3,1.1-14.2,0.9c-1.5-0.1-6.3-0.4-12-1.6c-5.7-1.2-11-3.1-15.8-3.7C6.5,9.2,0,10.8,0,10.8V0h283.5V9.7z M260.8,11.3\tc-0.7-1-2-0.4-4.3-0.4c-2.3,0-6.1-1.2-5.8-1.1c0.3,0.1,3.1,1.5,6,1.9C259.7,12.2,261.4,12.3,260.8,11.3z M242.4,8.6\tc0,0-2.4-0.2-5.6-0.9c-3.2-0.8-10.3-2.8-15.1-3.5c-8.2-1.1-15.8,0-15.1,0.1c0.8,0.1,9.6-0.6,17.6,1.1c3.3,0.7,9.3,2.2,12.4,2.7\tC239.9,8.7,242.4,8.6,242.4,8.6z M185.2,8.5c1.7-0.7-13.3,4.7-18.5,6.1c-2.1,0.6-6.2,1.6-10,2c-3.9,0.4-8.9,0.4-8.8,0.5\tc0,0.2,5.8,0.8,11.2,0c5.4-0.8,5.2-1.1,7.6-1.6C170.5,14.7,183.5,9.2,185.2,8.5z M199.1,6.9c0.2,0-0.8-0.4-4.8,1.1\tc-4,1.5-6.7,3.5-6.9,3.7c-0.2,0.1,3.5-1.8,6.6-3C197,7.5,199,6.9,199.1,6.9z M283,6c-0.1,0.1-1.9,1.1-4.8,2.5s-6.9,2.8-6.7,2.7\tc0.2,0,3.5-0.6,7.4-2.5C282.8,6.8,283.1,5.9,283,6z M31.3,11.6c0.1-0.2-1.9-0.2-4.5-1.2s-5.4-1.6-7.8-2C15,7.6,7.3,8.5,7.7,8.6\tC8,8.7,15.9,8.3,20.2,9.3c2.2,0.5,2.4,0.5,5.7,1.6S31.2,11.9,31.3,11.6z M73,9.2c0.4-0.1,3.5-1.6,8.4-2.6c4.9-1.1,8.9-0.5,8.9-0.8\tc0-0.3-1-0.9-6.2-0.3S72.6,9.3,73,9.2z M71.6,6.7C71.8,6.8,75,5.4,77.3,5c2.3-0.3,1.9-0.5,1.9-0.6c0-0.1-1.1-0.2-2.7,0.2\tC74.8,5.1,71.4,6.6,71.6,6.7z M93.6,4.4c0.1,0.2,3.5,0.8,5.6,1.8c2.1,1,1.8,0.6,1.9,0.5c0.1-0.1-0.8-0.8-2.4-1.3\tC97.1,4.8,93.5,4.2,93.6,4.4z M65.4,11.1c-0.1,0.3,0.3,0.5,1.9-0.2s2.6-1.3,2.2-1.2s-0.9,0.4-2.5,0.8C65.3,10.9,65.5,10.8,65.4,11.1\tz M34.5,12.4c-0.2,0,2.1,0.8,3.3,0.9c1.2,0.1,2,0.1,2-0.2c0-0.3-0.1-0.5-1.6-0.4C36.6,12.8,34.7,12.4,34.5,12.4z M152.2,21.1\tc-0.1,0.1-2.4-0.3-7.5-0.3c-5,0-13.6-2.4-17.2-3.5c-3.6-1.1,10,3.9,16.5,4.1C150.5,21.6,152.3,21,152.2,21.1z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M269.6,18c-0.1-0.1-4.6,0.3-7.2,0c-7.3-0.7-17-3.2-16.6-2.9c0.4,0.3,13.7,3.1,17,3.3\tC267.7,18.8,269.7,18,269.6,18z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M227.4,9.8c-0.2-0.1-4.5-1-9.5-1.2c-5-0.2-12.7,0.6-12.3,0.5c0.3-0.1,5.9-1.8,13.3-1.2\tS227.6,9.9,227.4,9.8z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M204.5,13.4c-0.1-0.1,2-1,3.2-1.1c1.2-0.1,2,0,2,0.3c0,0.3-0.1,0.5-1.6,0.4\tC206.4,12.9,204.6,13.5,204.5,13.4z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M201,10.6c0-0.1-4.4,1.2-6.3,2.2c-1.9,0.9-6.2,3.1-6.1,3.1c0.1,0.1,4.2-1.6,6.3-2.6\tS201,10.7,201,10.6z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M154.5,26.7c-0.1-0.1-4.6,0.3-7.2,0c-7.3-0.7-17-3.2-16.6-2.9c0.4,0.3,13.7,3.1,17,3.3\tC152.6,27.5,154.6,26.8,154.5,26.7z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M41.9,19.3c0,0,1.2-0.3,2.9-0.1c1.7,0.2,5.8,0.9,8.2,0.7c4.2-0.4,7.4-2.7,7-2.6\tc-0.4,0-4.3,2.2-8.6,1.9c-1.8-0.1-5.1-0.5-6.7-0.4S41.9,19.3,41.9,19.3z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M75.5,12.6c0.2,0.1,2-0.8,4.3-1.1c2.3-0.2,2.1-0.3,2.1-0.5c0-0.1-1.8-0.4-3.4,0\tC76.9,11.5,75.3,12.5,75.5,12.6z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M15.6,13.2c0-0.1,4.3,0,6.7,0.5c2.4,0.5,5,1.9,5,2c0,0.1-2.7-0.8-5.1-1.4\tC19.9,13.7,15.7,13.3,15.6,13.2z"})),tilt:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M0,6V0h1000v100L0,6z"})),mountains:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.33",d:"M473,67.3c-203.9,88.3-263.1-34-320.3,0C66,119.1,0,59.7,0,59.7V0h1000v59.7 c0,0-62.1,26.1-94.9,29.3c-32.8,3.3-62.8-12.3-75.8-22.1C806,49.6,745.3,8.7,694.9,4.7S492.4,59,473,67.3z"}),Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.66",d:"M734,67.3c-45.5,0-77.2-23.2-129.1-39.1c-28.6-8.7-150.3-10.1-254,39.1 s-91.7-34.4-149.2,0C115.7,118.3,0,39.8,0,39.8V0h1000v36.5c0,0-28.2-18.5-92.1-18.5C810.2,18.1,775.7,67.3,734,67.3z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M766.1,28.9c-200-57.5-266,65.5-395.1,19.5C242,1.8,242,5.4,184.8,20.6C128,35.8,132.3,44.9,89.9,52.5C28.6,63.7,0,0,0,0 h1000c0,0-9.9,40.9-83.6,48.1S829.6,47,766.1,28.9z"})),waves:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M421.9,6.5c22.6-2.5,51.5,0.4,75.5,5.3c23.6,4.9,70.9,23.5,100.5,35.7c75.8,32.2,133.7,44.5,192.6,49.7 c23.6,2.1,48.7,3.5,103.4-2.5c54.7-6,106.2-25.6,106.2-25.6V0H0v30.3c0,0,72,32.6,158.4,30.5c39.2-0.7,92.8-6.7,134-22.4 c21.2-8.1,52.2-18.2,79.7-24.2C399.3,7.9,411.6,7.5,421.9,6.5z"})),wave_pattern:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1047.1 3.7",preserveAspectRatio:"xMidYMin slice"},Rb("path",{className:"uagb-columns__shape-fill",d:"M1047.1,0C557,0,8.9,0,0,0v1.6c0,0,0.6-1.5,2.7-0.3C3.9,2,6.1,4.1,8.3,3.5c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3C13.8,2,16,4.1,18.2,3.5c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3C23.6,2,25.9,4.1,28,3.5c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3C63,2,65.3,4.1,67.4,3.5\tC68.3,3.3,69,1.6,69,1.6s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tC82.7,2,85,4.1,87.1,3.5c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3C92.6,2,94.8,4.1,97,3.5c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\ts0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9\tc0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2\tc0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3\tc1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.6-0.4V0z M2.5,1.2C2.5,1.2,2.5,1.2,2.5,1.2C2.5,1.2,2.5,1.2,2.5,1.2z M2.7,1.4c0.1,0,0.1,0.1,0.1,0.1C2.8,1.4,2.8,1.4,2.7,1.4z"})),drops:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 27.8",preserveAspectRatio:"xMidYMax slice"},Rb("path",{className:"uagb-columns__shape-fill",d:"M0 0v1.4c.6.7 1.1 1.4 1.4 2 2 3.8 2.2 6.6 1.8 10.8-.3 3.3-2.4 9.4 0 12.3 1.7 2 3.7 1.4 4.6-.9 1.4-3.8-.7-8.2-.6-12 .1-3.7 3.2-5.5 6.9-4.9 4 .6 4.8 4 4.9 7.4.1 1.8-1.1 7 0 8.5.6.8 1.6 1.2 2.4.5 1.4-1.1.1-5.4.1-6.9.1-3.7.3-8.6 4.1-10.5 5-2.5 6.2 1.6 5.4 5.6-.4 1.7-1 9.2 2.9 6.3 1.5-1.1.7-3.5.5-4.9-.4-2.4-.4-4.3 1-6.5.9-1.4 2.4-3.1 4.2-3 2.4.1 2.7 2.2 4 3.7 1.5 1.8 1.8 2.2 3 .1 1.1-1.9 1.2-2.8 3.6-3.3 1.3-.3 4.8-1.4 5.9-.5 1.5 1.1.6 2.8.4 4.3-.2 1.1-.6 4 1.8 3.4 1.7-.4-.3-4.1.6-5.6 1.3-2.2 5.8-1.4 7 .5 1.3 2.1.5 5.8.1 8.1s-1.2 5-.6 7.4c1.3 5.1 4.4.9 4.3-2.4-.1-4.4-2-8.8-.5-13 .9-2.4 4.6-6.6 7.7-4.5 2.7 1.8.5 7.8.2 10.3-.2 1.7-.8 4.6.2 6.2.9 1.4 2 1.5 2.6-.3.5-1.5-.9-4.5-1-6.1-.2-1.7-.4-3.7.2-5.4 1.8-5.6 3.5 2.4 6.3.6 1.4-.9 4.3-9.4 6.1-3.1.6 2.2-1.3 7.8.7 8.9 4.2 2.3 1.5-7.1 2.2-8 3.1-4 4.7 3.8 6.1 4.1 3.1.7 2.8-7.9 8.1-4.5 1.7 1.1 2.9 3.3 3.2 5.2.4 2.2-1 4.5-.6 6.6 1 4.3 4.4 1.5 4.4-1.7 0-2.7-3-8.3 1.4-9.1 4.4-.9 7.3 3.5 7.8 6.9.3 2-1.5 10.9 1.3 11.3 4.1.6-3.2-15.7 4.8-15.8 4.7-.1 2.8 4.1 3.9 6.6 1 2.4 2.1 1 2.3-.8.3-1.9-.9-3.2 1.3-4.3 5.9-2.9 5.9 5.4 5.5 8.5-.3 2-1.7 8.4 2 8.1 6.9-.5-2.8-16.9 4.8-18.7 4.7-1.2 6.1 3.6 6.3 7.1.1 1.7-1.2 8.1.6 9.1 3.5 2 1.9-7 2-8.4.2-4 1.2-9.6 6.4-9.8 4.7-.2 3.2 4.6 2.7 7.5-.4 2.2 1.3 8.6 3.8 4.4 1.1-1.9-.3-4.1-.3-6 0-1.7.4-3.2 1.3-4.6 1-1.6 2.9-3.5 5.1-2.9 2.5.6 2.3 4.1 4.1 4.9 1.9.8 1.6-.9 2.3-2.1 1.2-2.1 2.1-2.1 4.4-2.4 1.4-.2 3.6-1.5 4.9-.5 2.3 1.7-.7 4.4.1 6.5.6 1.5 2.1 1.7 2.8.3.7-1.4-1.1-3.4-.3-4.8 1.4-2.5 6.2-1.2 7.2 1 2.3 4.8-3.3 12-.2 16.3 3 4.1 3.9-2.8 3.8-4.8-.4-4.3-2.1-8.9 0-13.1 1.3-2.5 5.9-5.7 7.9-2.4 2 3.2-1.3 9.8-.8 13.4.5 4.4 3.5 3.3 2.7-.8-.4-1.9-2.4-10 .6-11.1 3.7-1.4 2.8 7.2 6.5.4 2.2-4.1 4.9-3.1 5.2 1.2.1 1.5-.6 3.1-.4 4.6.2 1.9 1.8 3.7 3.3 1.3 1-1.6-2.6-10.4 2.9-7.3 2.6 1.5 1.6 6.5 4.8 2.7 1.3-1.5 1.7-3.6 4-3.7 2.2-.1 4 2.3 4.8 4.1 1.3 2.9-1.5 8.4.9 10.3 4.2 3.3 3-5.5 2.7-6.9-.6-3.9 1-7.2 5.5-5 4.1 2.1 4.3 7.7 4.1 11.6 0 .8-.6 9.5 2.5 5.2 1.2-1.7-.1-7.7.1-9.6.3-2.9 1.2-5.5 4.3-6.2 4.5-1 7.7 1.5 7.4 5.8-.2 3.5-1.8 7.7-.5 11.1 1 2.7 3.6 2.8 5 .2 1.6-3.1 0-8.3-.4-11.6-.4-4.2-.2-7 1.8-10.8 0 0-.1.1-.1.2-.2.4-.3.7-.4.8v.1c-.1.2-.1.2 0 0v-.1l.4-.8c0-.1.1-.1.1-.2.2-.4.5-.8.8-1.2V0H0zM282.7 3.4z"})),clouds:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 27.8",preserveAspectRatio:"xMidYMax slice"},Rb("path",{className:"uagb-columns__shape-fill",d:"M0 0v6.7c1.9-.8 4.7-1.4 8.5-1 9.5 1.1 11.1 6 11.1 6s2.1-.7 4.3-.2c2.1.5 2.8 2.6 2.8 2.6s.2-.5 1.4-.7c1.2-.2 1.7.2 1.7.2s0-2.1 1.9-2.8c1.9-.7 3.6.7 3.6.7s.7-2.9 3.1-4.1 4.7 0 4.7 0 1.2-.5 2.4 0 1.7 1.4 1.7 1.4h1.4c.7 0 1.2.7 1.2.7s.8-1.8 4-2.2c3.5-.4 5.3 2.4 6.2 4.4.4-.4 1-.7 1.8-.9 2.8-.7 4 .7 4 .7s1.7-5 11.1-6c9.5-1.1 12.3 3.9 12.3 3.9s1.2-4.8 5.7-5.7c4.5-.9 6.8 1.8 6.8 1.8s.6-.6 1.5-.9c.9-.2 1.9-.2 1.9-.2s5.2-6.4 12.6-3.3c7.3 3.1 4.7 9 4.7 9s1.9-.9 4 0 2.8 2.4 2.8 2.4 1.9-1.2 4.5-1.2 4.3 1.2 4.3 1.2.2-1 1.4-1.7 2.1-.7 2.1-.7-.5-3.1 2.1-5.5 5.7-1.4 5.7-1.4 1.5-2.3 4.2-1.1c2.7 1.2 1.7 5.2 1.7 5.2s.3-.1 1.3.5c.5.4.8.8.9 1.1.5-1.4 2.4-5.8 8.4-4 7.1 2.1 3.5 8.9 3.5 8.9s.8-.4 2 0 1.1 1.1 1.1 1.1 1.1-1.1 2.3-1.1 2.1.5 2.1.5 1.9-3.6 6.2-1.2 1.9 6.4 1.9 6.4 2.6-2.4 7.4 0c3.4 1.7 3.9 4.9 3.9 4.9s3.3-6.9 10.4-7.9 11.5 2.6 11.5 2.6.8 0 1.2.2c.4.2.9.9.9.9s4.4-3.1 8.3.2c1.9 1.7 1.5 5 1.5 5s.3-1.1 1.6-1.4c1.3-.3 2.3.2 2.3.2s-.1-1.2.5-1.9 1.9-.9 1.9-.9-4.7-9.3 4.4-13.4c5.6-2.5 9.2.9 9.2.9s5-6.2 15.9-6.2 16.1 8.1 16.1 8.1.7-.2 1.6-.4V0H0z"})),zigzag:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1800 5.8",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M5.4.4l5.4 5.3L16.5.4l5.4 5.3L27.5.4 33 5.7 38.6.4l5.5 5.4h.1L49.9.4l5.4 5.3L60.9.4l5.5 5.3L72 .4l5.5 5.3L83.1.4l5.4 5.3L94.1.4l5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3L161 .4l5.4 5.3L172 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3L261 .4l5.4 5.3L272 .4l5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3L361 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.6-5.4 5.5 5.3L461 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1L550 .4l5.4 5.3L561 .4l5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2L650 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2L750 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2L850 .4l5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.4V0H-.2v5.8z"})),pyramids:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M761.9,44.1L643.1,27.2L333.8,98L0,3.8V0l1000,0v3.9"})),triangle_asymmetrical:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M738,99l262-93V0H0v5.6L738,99z"})),tilt_opacity:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2600 131.1",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M0 0L2600 0 2600 69.1 0 0z"}),Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.5",d:"M0 0L2600 0 2600 69.1 0 69.1z"}),Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.25",d:"M2600 0L0 0 0 130.1 2600 69.1z"})),fan_opacity:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 283.5 19.6",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.33",d:"M0 0L0 18.8 141.8 4.1 283.5 18.8 283.5 0z"}),Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.33",d:"M0 0L0 12.6 141.8 4 283.5 12.6 283.5 0z"}),Rb("path",{className:"uagb-columns__shape-fill",opacity:"0.33",d:"M0 0L0 6.4 141.8 4 283.5 6.4 283.5 0z"}),Rb("path",{className:"uagb-columns__shape-fill",d:"M0 0L0 1.2 141.8 4 283.5 1.2 283.5 0z"})),curve:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M1000,4.3V0H0v4.3C0.9,23.1,126.7,99.2,500,100S1000,22.7,1000,4.3z"})),curve_asymmetrical:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M0,0c0,0,0,6,0,6.7c0,18,240.2,93.6,615.2,92.6C989.8,98.5,1000,25,1000,6.7c0-0.7,0-6.7,0-6.7H0z"})),arrow:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 700 10",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M350,10L340,0h20L350,10z"})),arrow_split:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 20",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M0,0v3c0,0,393.8,0,483.4,0c9.2,0,16.6,7.4,16.6,16.6c0-9.1,7.4-16.6,16.6-16.6C606.2,3,1000,3,1000,3V0H0z"})),book:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M194,99c186.7,0.7,305-78.3,306-97.2c1,18.9,119.3,97.9,306,97.2c114.3-0.3,194,0.3,194,0.3s0-91.7,0-100c0,0,0,0,0-0 L0,0v99.3C0,99.3,79.7,98.7,194,99z"})),curve_reverse:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 937.5 120",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M937,129.8V-0.1H0v129.9C0,62.6,209.6,8.2,468.4,8.2S936.9,62.6,937,129.8z"})),curve_asym_reverse:Rb("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 937.5 120",preserveAspectRatio:"none"},Rb("path",{className:"uagb-columns__shape-fill",d:"M937.5,124.3V0H0v124.3C0,100.8,227.4,2.9,578.9,4.1C926.9,0.3,937.5,100.4,937.5,124.3z"}))},Db=wp.components,qb=Db.Path,Wb=Db.SVG,Gb=Db.G,Zb={};Zb.colOne=Object(f.createElement)(Wb,{className:"dashicon",height:"26",viewBox:"0 0 50 26",width:"50",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(qb,{d:"m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z"})),Zb.layout5050=Object(f.createElement)(Wb,{className:"dashicon",height:"26",viewBox:"0 0 50 26",width:"50",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(Gb,{fillRule:"evenodd"},Object(f.createElement)(qb,{d:"m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z",fillRule:"nonzero"}),Object(f.createElement)(qb,{d:"m24 2h2v22h-2z"}))),Zb.layout502525=Object(f.createElement)(Wb,{className:"dashicon",height:"26",viewBox:"0 0 50 26",width:"50",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(Gb,{fillRule:"evenodd"},Object(f.createElement)(qb,{d:"m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z",fillRule:"nonzero"}),Object(f.createElement)(qb,{d:"m36 2h2v22h-2z"}),Object(f.createElement)(qb,{d:"m24 2h2v22h-2z"}))),Zb.layout25252525=Object(f.createElement)(Wb,{className:"dashicon",height:"26",viewBox:"0 0 50 26",width:"50",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(Gb,{fillRule:"evenodd"},Object(f.createElement)(qb,{d:"m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z",fillRule:"nonzero"}),Object(f.createElement)(qb,{d:"m12 2h2v22h-2z"}),Object(f.createElement)(qb,{d:"m24 2h2v22h-2z"}),Object(f.createElement)(qb,{d:"m36 2h2v22h-2z"}))),Zb.layout3366=Object(f.createElement)(Wb,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(qb,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),Zb.layout6633=Object(f.createElement)(Wb,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(qb,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),Zb.layout333333=Object(f.createElement)(Wb,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(qb,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),Zb.layout255025=Object(f.createElement)(Wb,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(f.createElement)(qb,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"}));var Ub=Zb;var Yb=["uagb/column"],Kb=wp.data,Jb=Kb.withSelect,$b=Kb.useDispatch,Qb=(Kb.withDispatch,wp.compose.compose),Xb=wp.element,ev=Xb.Component,tv=Xb.Fragment,av=wp.blockEditor,lv=(av.AlignmentToolbar,av.BlockControls),nv=av.BlockAlignmentToolbar,iv=av.BlockVerticalAlignmentToolbar,ov=av.ColorPalette,cv=av.InspectorControls,rv=av.InnerBlocks,sv=av.MediaUpload,uv=(av.PanelColorSettings,av.__experimentalBlockVariationPicker),hv=(av.dispatch,wp.components),dv=hv.PanelBody,gv=hv.SelectControl,mv=hv.RangeControl,bv=hv.Button,vv=hv.ButtonGroup,pv=hv.BaseControl,fv=hv.withNotices,wv=hv.ToggleControl,_v=(hv.Toolbar,hv.Tooltip,hv.TabPanel),yv=(hv.Dashicon,wp.blocks.createBlock),zv=no()((function(e){return ao()(e,(function(e){return["uagb/column",{id:e+1}]}))})),xv=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onRemoveVideo=e.onRemoveVideo.bind(h()(e)),e.onRemoveImage=e.onRemoveImage.bind(h()(e)),e.onSelectImage=e.onSelectImage.bind(h()(e)),e.onSelectVideo=e.onSelectVideo.bind(h()(e)),e.blockVariationPickerOnSelect=e.blockVariationPickerOnSelect.bind(h()(e)),e}return s()(i,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)}),this.props.setAttributes({classMigrate:!0}),"middle"===this.props.attributes.vAlign&&this.props.setAttributes({vAlign:"center"});var e=document.createElement("style");e.setAttribute("id","uagb-columns-style-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e){var t=document.getElementById("uagb-columns-style-"+this.props.clientId.substr(0,8));null!=t&&(t.innerHTML=function(e){var t=e.attributes,a=(t.classMigrate,t.backgroundType),l=t.backgroundVideoColor,n=t.backgroundImageColor,i=t.backgroundOpacity,o=t.backgroundColor,c=t.backgroundVideoOpacity,r=t.borderRadius,s=t.contentWidth,u=t.width,h=t.widthType,d=t.columnGap,g=t.topColor,m=t.topHeight,b=t.topHeightTablet,v=t.topHeightMobile,p=t.topWidth,f=t.bottomColor,w=t.bottomHeight,_=t.bottomHeightTablet,x=t.bottomHeightMobile,O=t.bottomWidth,C=t.gradientColor1,j=t.gradientColor2,M=t.gradientLocation1,E=t.gradientLocation2,H=t.gradientType,k=t.gradientAngle,S=t.gradientPosition,L=t.topPaddingTablet,B=t.bottomPaddingTablet,V=t.leftPaddingTablet,T=t.rightPaddingTablet,N=t.topPaddingMobile,A=t.bottomPaddingMobile,F=t.leftPaddingMobile,P=t.rightPaddingMobile,R=t.topMarginMobile,I=t.bottomMarginMobile,D=t.topMarginTablet,q=t.bottomMarginTablet,W=t.topDividerOpacity,G=t.bottomDividerOpacity,Z=t.mobileMarginType,U=t.tabletMarginType,Y=t.mobilePaddingType,K=t.tabletPaddingType,J=t.boxShadowColor,$=t.boxShadowHOffset,Q=t.boxShadowVOffset,X=t.boxShadowBlur,ee=t.boxShadowSpread,te=t.boxShadowPosition,ae=t.gradientValue,le="100%";"custom"==s&&""!=u&&(le=z(u,h));var ne=te;"outset"===te&&(ne="");var ie,oe,ce={".uagb-columns__wrap":Pb(e)," .uagb-columns__video-wrap":{opacity:void 0!==c?(100-c)/100:.5}," > .uagb-columns__inner-wrap":{"max-width":le}," .uagb-column__inner-wrap":{padding:z(d,"px")}," .uagb-columns__shape-top svg":{width:"calc( "+p+"% + 1.3px )",height:z(m,"px")}," .uagb-columns__shape-top .uagb-columns__shape-fill":{fill:Ci(g,void 0!==W?W:100)}," .uagb-columns__shape-bottom svg":{width:"calc( "+O+"% + 1.3px )",height:z(w,"px")}," .uagb-columns__shape-bottom .uagb-columns__shape-fill":{fill:Ci(f,void 0!==G?G:100)},".wp-block-uagb-columns":{"box-shadow":z($,"px")+" "+z(Q,"px")+" "+z(X,"px")+" "+z(ee,"px")+" "+J+" "+ne}," > .uagb-columns__overlay":{}};"video"==a?ce[" > .uagb-columns__overlay"]={opacity:1,"background-color":l}:"image"==a?ce[" > .uagb-columns__overlay"]={opacity:void 0!==i?i/100:"","background-color":n}:"color"==a?ce[" > .uagb-columns__overlay"]={opacity:void 0!==i?i/100:"","background-color":o}:"gradient"===a&&(ce[" > .uagb-columns__overlay"]["background-color"]="transparent",ce[" > .uagb-columns__overlay"].opacity=void 0!==i?i/100:"",ce[" > .uagb-columns__overlay"]["background-image"]=ae||("linear"===H?"linear-gradient(".concat(k,"deg, ").concat(C," ").concat(M,"%, ").concat(j," ").concat(E,"%)"):"radial-gradient( at ".concat(S,", ").concat(C," ").concat(M,"%, ").concat(j," ").concat(E,"%)"))),ce[" > .uagb-columns__overlay"]["border-radius"]=z(r,"px"),ie={".uagb-columns__wrap":{"padding-top":z(L,K),"padding-bottom":z(B,K),"padding-left":z(V,K),"padding-right":z(T,K),"margin-top":z(D,U),"margin-bottom":z(q,U)}," .uagb-columns__shape-top svg":{height:z(b,"px")}," .uagb-columns__shape-bottom svg":{height:z(_,"px")}},oe={".uagb-columns__wrap":{"padding-top":z(N,Y),"padding-bottom":z(A,Y),"padding-left":z(F,Y),"padding-right":z(P,Y),"margin-top":z(R,Z),"margin-bottom":z(I,Z)}," .uagb-columns__shape-top svg":{height:z(v,"px")}," .uagb-columns__shape-bottom svg":{height:z(x,"px")}};var re="",se=".uagb-block-".concat(e.clientId.substr(0,8));return re=y(ce,se),(re+=y(ie,"".concat(se,".uagb-editor-preview-mode-tablet")))+y(oe,"".concat(se,".uagb-editor-preview-mode-mobile"))}(this.props))}},{key:"onRemoveImage",value:function(){(0,this.props.setAttributes)({backgroundImage:null})}},{key:"onSelectImage",value:function(e){var t=this.props.setAttributes;e&&e.url?e.type&&"image"==e.type&&t({backgroundImage:e}):t({backgroundImage:null})}},{key:"onRemoveVideo",value:function(){(0,this.props.setAttributes)({backgroundVideo:null})}},{key:"onSelectVideo",value:function(e){var t=this.props.setAttributes;e&&e.url?e.type&&"video"==e.type&&t({backgroundVideo:e}):t({backgroundVideo:null})}},{key:"blockVariationPickerOnSelect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.defaultVariation;e.attributes&&this.props.setAttributes(e.attributes),e.innerBlocks&&this.props.replaceInnerBlocks(this.props.clientId,this.createBlocksFromInnerBlocksTemplate(e.innerBlocks))}},{key:"createBlocksFromInnerBlocksTemplate",value:function(e){var t=this;return S()(e,(function(e){var a=Na()(e,3),l=a[0],n=a[1],i=a[2],o=void 0===i?[]:i;return yv(l,n,t.createBlocksFromInnerBlocksTemplate(o))}))}},{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,l=t.setAttributes,i=t.isSelected,o=t.className,c=t.variations,r=t.hasInnerBlocks,s=t.deviceType,u=a.stack,h=a.align,d=a.vAlign,g=a.contentWidth,m=a.width,b=a.widthType,v=a.tag,p=a.columnGap,w=a.topMargin,y=a.bottomMargin,z=a.topMarginMobile,x=a.bottomMarginMobile,O=a.topMarginTablet,C=a.bottomMarginTablet,j=a.topPadding,E=a.bottomPadding,H=a.leftPadding,k=a.rightPadding,S=a.topPaddingTablet,L=a.bottomPaddingTablet,B=a.leftPaddingTablet,V=a.rightPaddingTablet,T=a.topPaddingMobile,N=a.bottomPaddingMobile,A=a.leftPaddingMobile,F=a.rightPaddingMobile,P=a.backgroundType,R=a.backgroundImage,I=a.backgroundVideo,D=a.backgroundColor,q=a.backgroundPosition,W=a.backgroundAttachment,G=a.backgroundRepeat,Z=a.backgroundSize,U=(a.gradientColor1,a.gradientColor2,a.gradientLocation1,a.gradientLocation2,a.gradientType,a.gradientAngle,a.gradientPosition,a.backgroundOpacity),Y=a.backgroundVideoColor,K=a.backgroundVideoOpacity,J=a.backgroundImageColor,$=a.borderStyle,Q=a.borderWidth,X=a.borderRadius,ee=a.borderColor,te=a.columns,ae=a.bottomType,le=a.bottomColor,ne=a.bottomHeight,ie=a.bottomHeightTablet,oe=a.bottomHeightMobile,ce=a.bottomWidth,re=a.topType,se=a.topColor,ue=a.topHeight,he=a.topHeightTablet,de=a.topHeightMobile,ge=a.topWidth,me=a.bottomFlip,be=a.topFlip,ve=a.reverseTablet,pe=a.reverseMobile,fe=a.topDividerOpacity,we=a.bottomDividerOpacity,_e=a.topContentAboveShape,ye=a.bottomContentAboveShape,ze=a.mobileMarginType,xe=a.tabletMarginType,Oe=a.desktopMarginType,Ce=a.mobilePaddingType,je=a.tabletPaddingType,Me=a.desktopPaddingType,Ee=a.boxShadowColor,He=a.boxShadowHOffset,ke=a.boxShadowVOffset,Se=a.boxShadowBlur,Le=a.boxShadowSpread,Be=a.boxShadowPosition,Ve=(a.gradientValue,"".concat(v)),Te=i?"active":"not-active",Ne=[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"tilt",label:Object(M.__)("Tilt","ultimate-addons-for-gutenberg")},{value:"mountains",label:Object(M.__)("Mountains","ultimate-addons-for-gutenberg")},{value:"wave_brush",label:Object(M.__)("Wave Brush","ultimate-addons-for-gutenberg")},{value:"waves",label:Object(M.__)("Waves","ultimate-addons-for-gutenberg")},{value:"wave_pattern",label:Object(M.__)("Waves Pattern","ultimate-addons-for-gutenberg")},{value:"triangle",label:Object(M.__)("Triangle","ultimate-addons-for-gutenberg")},{value:"drops",label:Object(M.__)("Drops","ultimate-addons-for-gutenberg")},{value:"clouds",label:Object(M.__)("Clouds","ultimate-addons-for-gutenberg")},{value:"zigzag",label:Object(M.__)("ZigZag","ultimate-addons-for-gutenberg")},{value:"pyramids",label:Object(M.__)("Pyramids","ultimate-addons-for-gutenberg")},{value:"triangle_asymmetrical",label:Object(M.__)("Triangle Asymmetrical","ultimate-addons-for-gutenberg")},{value:"tilt_opacity",label:Object(M.__)("Tilt Opacity","ultimate-addons-for-gutenberg")},{value:"fan_opacity",label:Object(M.__)("Fan Opacity","ultimate-addons-for-gutenberg")},{value:"curve",label:Object(M.__)("Curve","ultimate-addons-for-gutenberg")},{value:"curve_asymmetrical",label:Object(M.__)("Curve Asymmetrical","ultimate-addons-for-gutenberg")},{value:"curve_reverse",label:Object(M.__)("Curve Reverse","ultimate-addons-for-gutenberg")},{value:"curve_asym_reverse",label:Object(M.__)("Curve Asymmetrical Reverse","ultimate-addons-for-gutenberg")},{value:"arrow",label:Object(M.__)("Arrow","ultimate-addons-for-gutenberg")},{value:"arrow_split",label:Object(M.__)("Arrow Split","ultimate-addons-for-gutenberg")},{value:"book",label:Object(M.__)("Book","ultimate-addons-for-gutenberg")}],Ae=Object(f.createElement)(tv,null,Object(f.createElement)(gv,{label:Object(M.__)("Type","ultimate-addons-for-gutenberg"),value:ae,onChange:function(e){return l({bottomType:e})},options:Ne}),"none"!=ae&&Object(f.createElement)(tv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{bottomColor:le}}))),Object(f.createElement)(ov,{value:le,onChange:function(e){return l({bottomColor:e})},allowReset:!0}),Object(f.createElement)(mv,{label:Object(M.__)("Opacity","ultimate-addons-for-gutenberg"),value:we,onChange:function(e){return l({bottomDividerOpacity:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(mv,{label:Object(M.__)("Width","ultimate-addons-for-gutenberg"),value:ce,onChange:function(e){return l({bottomWidth:e})},min:100,max:2e3,allowReset:!0}),Object(f.createElement)(Ga,null),"Desktop"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(mv,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:ne,onChange:function(e){return l({bottomHeight:e})},min:0,max:500,allowReset:!0})),"Tablet"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(mv,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:ie,onChange:function(e){return l({bottomHeightTablet:e})},min:0,max:500,allowReset:!0})),"Mobile"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(mv,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:oe,onChange:function(e){return l({bottomHeightMobile:e})},min:0,max:500,allowReset:!0})),Object(f.createElement)(wv,{label:Object(M.__)("Flip","ultimate-addons-for-gutenberg"),checked:me,onChange:function(e){return l({bottomFlip:!me})}}),Object(f.createElement)(wv,{label:Object(M.__)("Bring To Front","ultimate-addons-for-gutenberg"),checked:ye,onChange:function(e){return l({bottomContentAboveShape:!ye})}}))),Fe=Object(f.createElement)(tv,null,Object(f.createElement)(gv,{label:Object(M.__)("Type","ultimate-addons-for-gutenberg"),value:re,onChange:function(e){return l({topType:e})},options:Ne}),"none"!=re&&Object(f.createElement)(tv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{topColor:se}}))),Object(f.createElement)(ov,{value:se,onChange:function(e){return l({topColor:e})},allowReset:!0}),Object(f.createElement)(mv,{label:Object(M.__)("Opacity","ultimate-addons-for-gutenberg"),value:fe,onChange:function(e){return l({topDividerOpacity:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(mv,{label:Object(M.__)("Width","ultimate-addons-for-gutenberg"),value:ge,onChange:function(e){return l({topWidth:e})},min:100,max:2e3,allowReset:!0}),Object(f.createElement)(Ga,null),"Desktop"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(mv,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:ue,onChange:function(e){return l({topHeight:e})},min:0,max:500,allowReset:!0})),"Tablet"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(mv,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:he,onChange:function(e){return l({topHeightTablet:e})},min:0,max:500,allowReset:!0})),"Mobile"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(mv,{label:Object(M.__)("Height","ultimate-addons-for-gutenberg"),value:de,onChange:function(e){return l({topHeightMobile:e})},min:0,max:500,allowReset:!0})),Object(f.createElement)(wv,{label:Object(M.__)("Flip","ultimate-addons-for-gutenberg"),checked:be,onChange:function(e){return l({topFlip:!be})}}),Object(f.createElement)(wv,{label:Object(M.__)("Bring To Front","ultimate-addons-for-gutenberg"),checked:_e,onChange:function(e){return l({topContentAboveShape:!_e})}}))),Pe="none"!=re&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-top",{"uagb-columns__shape-flip":!0===be},{"uagb-columns__shape-above-content":!0===_e})},Ib[re]),Re="none"!=ae&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-bottom",{"uagb-columns__shape-flip":!0===me},{"uagb-columns__shape-above-content":!0===ye}),"data-negative":"false"},Ib[ae]),Ie=ve?"uagb-columns__reverse-tablet":"",De=pe?"uagb-columns__reverse-mobile":"";return r?Object(f.createElement)(tv,null,Object(f.createElement)(lv,null,Object(f.createElement)(nv,{value:h,onChange:function(e){l({align:e})},controls:["wide","full"]}),Object(f.createElement)(iv,{value:d,onChange:function(e){l({vAlign:e})}})),Object(f.createElement)(cv,null,Object(f.createElement)(dv,{title:Object(M.__)("Layout","ultimate-addons-for-gutenberg")},Object(f.createElement)(mv,{label:Object(M.__)("Columns","ultimate-addons-for-gutenberg"),value:te,min:0,max:6,onChange:function(e){return l({columns:e})}}),Object(f.createElement)(gv,{label:Object(M.__)("Stack on","ultimate-addons-for-gutenberg"),value:u,options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(M.__)("Tablet & Mobile","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(M.__)("Mobile","ultimate-addons-for-gutenberg")}],onChange:function(e){return l({stack:e})},help:Object(M.__)("Note: Choose on what breakpoint the columns will stack.","ultimate-addons-for-gutenberg")}),Object(f.createElement)(gv,{label:Object(M.__)("Container Width","ultimate-addons-for-gutenberg"),value:g,onChange:function(e){return l({contentWidth:e})},options:[{value:"theme",label:Object(M.__)("Theme Container Width","ultimate-addons-for-gutenberg")},{value:"custom",label:Object(M.__)("Custom","ultimate-addons-for-gutenberg")}]}),"custom"==g&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===b,"aria-pressed":"px"===b,min:0,max:2e3,onClick:function(){return l({widthType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===b,"aria-pressed":"%"===b,min:0,max:100,onClick:function(){return l({widthType:"%"})}},"%")),Object(f.createElement)(mv,{label:Object(M.__)("Inner Width","ultimate-addons-for-gutenberg"),value:m,min:0,max:"%"==b?100:2e3,onChange:function(e){return l({width:e})}})),Object(f.createElement)(Fb,{label:Object(M.__)("Column Gap","ultimate-addons-for-gutenberg"),currentOption:p,options:[{value:"10",label:Object(M.__)("Default","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Default (10px)","ultimate-addons-for-gutenberg")},{value:"0",label:Object(M.__)("None","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("No Gap (0px)","ultimate-addons-for-gutenberg")},{value:"5",label:Object(M.__)("S","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Narrow (5px)","ultimate-addons-for-gutenberg")},{value:"15",label:Object(M.__)("M","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Extended (15px)","ultimate-addons-for-gutenberg")},{value:"20",label:Object(M.__)("L","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Wide (20px)","ultimate-addons-for-gutenberg")},{value:"30",label:Object(M.__)("XL","ultimate-addons-for-gutenberg"),tooltip:Object(M.__)("Wider (30px)","ultimate-addons-for-gutenberg")}],onChange:function(e){return l({columnGap:e})},help:Object(M.__)("Note: The individual Column Gap can be managed from Column Settings.","ultimate-addons-for-gutenberg")}),Object(f.createElement)(gv,{label:Object(M.__)("HTML Tag","ultimate-addons-for-gutenberg"),value:v,onChange:function(e){return l({tag:e})},options:[{value:"div",label:Object(M.__)("div","ultimate-addons-for-gutenberg")},{value:"header",label:Object(M.__)("header","ultimate-addons-for-gutenberg")},{value:"footer",label:Object(M.__)("footer","ultimate-addons-for-gutenberg")},{value:"main",label:Object(M.__)("main","ultimate-addons-for-gutenberg")},{value:"article",label:Object(M.__)("article","ultimate-addons-for-gutenberg")},{value:"section",label:Object(M.__)("section","ultimate-addons-for-gutenberg")},{value:"aside",label:Object(M.__)("aside","ultimate-addons-for-gutenberg")},{value:"nav",label:Object(M.__)("nav","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(wv,{label:Object(M.__)("Reverse Columns (Tablet & Mobile)","ultimate-addons-for-gutenberg"),checked:ve,onChange:function(e){return l({reverseTablet:!ve})}}),Object(f.createElement)(wv,{label:Object(M.__)("Reverse Columns (Mobile)","ultimate-addons-for-gutenberg"),checked:pe,onChange:function(e){return l({reverseMobile:!pe})}})),Object(f.createElement)(dv,{title:Object(M.__)("Spacing"),initialOpen:!1},Object(f.createElement)(Ga,null),"Desktop"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Me,"aria-pressed":"px"===Me,onClick:function(){return l({desktopPaddingType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Me,"aria-pressed":"%"===Me,onClick:function(){return l({desktopPaddingType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding")),Object(f.createElement)(mv,{label:n.top_margin,className:"uagb-margin-control",value:j,onChange:function(e){return l({topPadding:e})},min:0,max:"%"==Me?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.bottom_margin,className:"uagb-margin-control",value:E,onChange:function(e){return l({bottomPadding:e})},min:0,max:"%"==Me?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.left_margin,className:"uagb-margin-control",value:H,onChange:function(e){return l({leftPadding:e})},min:0,max:"%"==Me?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.right_margin,className:"uagb-margin-control",value:k,onChange:function(e){return l({rightPadding:e})},min:0,max:"%"==Me?100:2e3,allowReset:!0})),"Tablet"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===je,"aria-pressed":"px"===je,onClick:function(){return l({tabletPaddingType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===je,"aria-pressed":"%"===je,onClick:function(){return l({tabletPaddingType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(mv,{label:n.top_margin,className:"uagb-margin-control",value:S,onChange:function(e){return l({topPaddingTablet:e})},min:0,max:"%"==je?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.bottom_margin,className:"uagb-margin-control",value:L,onChange:function(e){return l({bottomPaddingTablet:e})},min:0,max:"%"==je?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.left_margin,className:"uagb-margin-control",value:B,onChange:function(e){return l({leftPaddingTablet:e})},min:0,max:"%"==je?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.right_margin,className:"uagb-margin-control",value:V,onChange:function(e){return l({rightPaddingTablet:e})},min:0,max:"%"==je?100:2e3,allowReset:!0})),"Mobile"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Ce,"aria-pressed":"px"===Ce,onClick:function(){return l({mobilePaddingType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Ce,"aria-pressed":"%"===Ce,onClick:function(){return l({mobilePaddingType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(mv,{label:n.top_margin,className:"uagb-margin-control",value:T,onChange:function(e){return l({topPaddingMobile:e})},min:0,max:"%"==Ce?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.bottom_margin,className:"uagb-margin-control",value:N,onChange:function(e){return l({bottomPaddingMobile:e})},min:0,max:"%"==Ce?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.left_margin,className:"uagb-margin-control",value:A,onChange:function(e){return l({leftPaddingMobile:e})},min:0,max:"%"==Ce?100:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.right_margin,className:"uagb-margin-control",value:F,onChange:function(e){return l({rightPaddingMobile:e})},min:0,max:"%"==Ce?100:2e3,allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Ga,null),"Desktop"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Oe,"aria-pressed":"px"===Oe,onClick:function(){return l({desktopMarginType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Oe,"aria-pressed":"%"===Oe,onClick:function(){return l({desktopMarginType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Margin","ultimate-addons-for-gutenberg")),Object(f.createElement)(mv,{label:n.top_margin,className:"uagb-margin-control",value:w,onChange:function(e){return l({topMargin:e})},min:-2e3,max:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.bottom_margin,className:"uagb-margin-control",value:y,onChange:function(e){return l({bottomMargin:e})},min:-2e3,max:2e3,allowReset:!0})),"Tablet"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===xe,"aria-pressed":"px"===xe,onClick:function(){return l({tabletMarginType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===xe,"aria-pressed":"%"===xe,onClick:function(){return l({tabletMarginType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Margin Tablet","ultimate-addons-for-gutenberg")),Object(f.createElement)(mv,{label:n.top_margin,className:"uagb-margin-control",value:O,onChange:function(e){return l({topMarginTablet:e})},min:-2e3,max:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.bottom_margin,className:"uagb-margin-control",value:C,onChange:function(e){return l({bottomMarginTablet:e})},min:-2e3,max:2e3,allowReset:!0})),"Mobile"===s&&Object(f.createElement)(tv,null,Object(f.createElement)(vv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(bv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===ze,"aria-pressed":"px"===ze,onClick:function(){return l({mobileMarginType:"px"})}},"px"),Object(f.createElement)(bv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===ze,"aria-pressed":"%"===ze,onClick:function(){return l({mobileMarginType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Margin Mobile","ultimate-addons-for-gutenberg")),Object(f.createElement)(mv,{label:n.top_margin,className:"uagb-margin-control",value:z,onChange:function(e){return l({topMarginMobile:e})},min:-2e3,max:2e3,allowReset:!0}),Object(f.createElement)(mv,{label:n.bottom_margin,className:"uagb-margin-control",value:x,onChange:function(e){return l({bottomMarginMobile:e})},min:-2e3,max:2e3,allowReset:!0}))),Object(f.createElement)(dv,{title:Object(M.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(gv,{label:Object(M.__)("Background Type","ultimate-addons-for-gutenberg"),value:P,onChange:function(e){return l({backgroundType:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"color",label:Object(M.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(M.__)("Gradient","ultimate-addons-for-gutenberg")},{value:"image",label:Object(M.__)("Image","ultimate-addons-for-gutenberg")},{value:"video",label:Object(M.__)("Video","ultimate-addons-for-gutenberg")}]}),"color"==P&&Object(f.createElement)(tv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:D}}))),Object(f.createElement)(ov,{value:D,onChange:function(e){return l({backgroundColor:e})},allowReset:!0})),"image"==P&&Object(f.createElement)(tv,null,Object(f.createElement)(pv,{className:"editor-bg-image-control",label:Object(M.__)("Background Image","ultimate-addons-for-gutenberg")},Object(f.createElement)(sv,{title:Object(M.__)("Select Background Image","ultimate-addons-for-gutenberg"),onSelect:this.onSelectImage,allowedTypes:["image"],value:R,render:function(e){var t=e.open;return Object(f.createElement)(bv,{isSecondary:!0,onClick:t},R?Object(M.__)("Replace image","ultimate-addons-for-gutenberg"):Object(M.__)("Select Background Image","ultimate-addons-for-gutenberg"))}}),R&&Object(f.createElement)(bv,{className:"uagb-rm-btn",onClick:this.onRemoveImage,isLink:!0,isDestructive:!0},Object(M.__)("Remove Image","ultimate-addons-for-gutenberg"))),R&&Object(f.createElement)(tv,null,Object(f.createElement)(gv,{label:Object(M.__)("Image Position","ultimate-addons-for-gutenberg"),value:q,onChange:function(e){return l({backgroundPosition:e})},options:[{value:"top-left",label:Object(M.__)("Top Left","ultimate-addons-for-gutenberg")},{value:"top-center",label:Object(M.__)("Top Center","ultimate-addons-for-gutenberg")},{value:"top-right",label:Object(M.__)("Top Right","ultimate-addons-for-gutenberg")},{value:"center-left",label:Object(M.__)("Center Left","ultimate-addons-for-gutenberg")},{value:"center-center",label:Object(M.__)("Center Center","ultimate-addons-for-gutenberg")},{value:"center-right",label:Object(M.__)("Center Right","ultimate-addons-for-gutenberg")},{value:"bottom-left",label:Object(M.__)("Bottom Left","ultimate-addons-for-gutenberg")},{value:"bottom-center",label:Object(M.__)("Bottom Center","ultimate-addons-for-gutenberg")},{value:"bottom-right",label:Object(M.__)("Bottom Right","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(gv,{label:Object(M.__)("Attachment","ultimate-addons-for-gutenberg"),value:W,onChange:function(e){return l({backgroundAttachment:e})},options:[{value:"fixed",label:Object(M.__)("Fixed","ultimate-addons-for-gutenberg")},{value:"scroll",label:Object(M.__)("Scroll","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(gv,{label:Object(M.__)("Repeat","ultimate-addons-for-gutenberg"),value:G,onChange:function(e){return l({backgroundRepeat:e})},options:[{value:"no-repeat",label:Object(M.__)("No Repeat","ultimate-addons-for-gutenberg")},{value:"repeat",label:Object(M.__)("Repeat","ultimate-addons-for-gutenberg")},{value:"repeat-x",label:Object(M.__)("Repeat-x","ultimate-addons-for-gutenberg")},{value:"repeat-y",label:Object(M.__)("Repeat-y","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(gv,{label:Object(M.__)("Size","ultimate-addons-for-gutenberg"),value:Z,onChange:function(e){return l({backgroundSize:e})},options:[{value:"auto",label:Object(M.__)("Auto","ultimate-addons-for-gutenberg")},{value:"cover",label:Object(M.__)("Cover","ultimate-addons-for-gutenberg")},{value:"contain",label:Object(M.__)("Contain","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(tv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Image Overlay Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:J}}))),Object(f.createElement)(ov,{value:J,onChange:function(e){return l({backgroundImageColor:e})},allowReset:!0})))),"gradient"==P&&Object(f.createElement)(tv,null,Object(f.createElement)(Mi,{attributes:a,setAttributes:l})),"video"==P&&Object(f.createElement)(pv,{className:"editor-bg-video-control",label:Object(M.__)("Background Video","ultimate-addons-for-gutenberg")},Object(f.createElement)(sv,{title:Object(M.__)("Select Background Video","ultimate-addons-for-gutenberg"),onSelect:this.onSelectVideo,allowedTypes:["video"],value:I,render:function(e){var t=e.open;return Object(f.createElement)(bv,{isSecondary:!0,onClick:t},I?Object(M.__)("Replace Video","ultimate-addons-for-gutenberg"):Object(M.__)("Select Background Video","ultimate-addons-for-gutenberg"))}}),I&&Object(f.createElement)(bv,{onClick:this.onRemoveVideo,isLink:!0,isDestructive:!0},Object(M.__)("Remove Video","ultimate-addons-for-gutenberg"))),("color"==P||"image"==P&&R||"gradient"==P)&&Object(f.createElement)(mv,{label:Object(M.__)("Opacity","ultimate-addons-for-gutenberg"),value:U,onChange:function(e){return l({backgroundOpacity:e})},min:0,max:100,allowReset:!0,initialPosition:100}),"video"==P&&I&&Object(f.createElement)(tv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Video Overlay Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Y}}))),Object(f.createElement)(ov,{value:Y,onChange:function(e){return l({backgroundVideoColor:e})},allowReset:!0})),"video"==P&&I&&Object(f.createElement)(mv,{label:Object(M.__)("Opacity","ultimate-addons-for-gutenberg"),value:K,onChange:function(e){return l({backgroundVideoOpacity:e})},min:0,max:100,allowReset:!0,initialPosition:50})),Object(f.createElement)(dv,{title:Object(M.__)("Shape Dividers","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(_v,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"top",title:Object(M.__)("Top","ultimate-addons-for-gutenberg"),className:"uagb-top-tab"},{name:"bottom",title:Object(M.__)("Bottom","ultimate-addons-for-gutenberg"),className:"uagb-bottom-tab"}]},(function(e){var t;return t="bottom"===e.name?Ae:Fe,Object(f.createElement)("div",null,t)}))),Object(f.createElement)(dv,{title:Object(M.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(gv,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:$,onChange:function(e){return l({borderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=$&&Object(f.createElement)(mv,{label:Object(M.__)("Border Width","ultimate-addons-for-gutenberg"),value:Q,onChange:function(e){return l({borderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(mv,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:X,onChange:function(e){return l({borderRadius:e})},min:0,max:1e3,allowReset:!0}),"none"!=$&&Object(f.createElement)(tv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ee}}))),Object(f.createElement)(ov,{value:ee,onChange:function(e){return l({borderColor:e})},allowReset:!0})),Object(f.createElement)(Oi,{setAttributes:l,label:Object(M.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Ee,label:Object(M.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:He,label:Object(M.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:ke,label:Object(M.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Se,label:Object(M.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:Le,label:Object(M.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:Be,label:Object(M.__)("Position","ultimate-addons-for-gutenberg")}}))),Object(f.createElement)(Ve,{className:_()(o,"uagb-columns__wrap","uagb-columns__background-".concat(P),"uagb-columns__edit-".concat(Te),"uagb-editor-preview-mode-".concat(s.toLowerCase()),"uagb-columns__stack-".concat(u),"uagb-columns__valign-".concat(d),"uagb-columns__gap-".concat(p),"align".concat(h),Ie,De,"uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:"uagb-columns__overlay"}),Pe,"video"==P&&Object(f.createElement)("div",{className:"uagb-columns__video-wrap"},I&&Object(f.createElement)("video",{autoplay:!0,loop:!0,muted:!0,playsinline:!0},Object(f.createElement)("source",{src:I.url,type:"video/mp4"}))),Object(f.createElement)("div",{className:_()("uagb-columns__inner-wrap","uagb-columns__columns-".concat(te))},Object(f.createElement)(rv,{template:zv(te),templateLock:"all",allowedBlocks:Yb})),Re)):Object(f.createElement)(tv,null,Object(f.createElement)(uv,{icon:n.columns,label:uagb_blocks_info.blocks["uagb/columns"].title,instructions:Object(M.__)("Select a variation to start with.","ultimate-addons-for-gutenberg"),variations:c,allowSkip:!0,onSelect:function(t){return e.blockVariationPickerOnSelect(t)}}))}}]),i}(ev),Ov=Qb(fv,Jb((function(e,t){var a=e("core/block-editor"),l=a.getBlocks,n=(a.getBlocksByClientId,e("core/blocks")),i=n.getBlockType,o=n.getBlockVariations,c=n.getDefaultBlockVariation,r=l(t.clientId),s=$b("core/block-editor").replaceInnerBlocks,u=e("core/edit-post").__experimentalGetPreviewDeviceType,h=void 0===u?null:u,d=h?h():null;return{innerBlocks:r,hasInnerBlocks:e("core/block-editor").getBlocks(t.clientId).length>0,blockType:i(t.name),defaultVariation:void 0===c?null:c(t.name),variations:void 0===o?null:o(t.name),replaceInnerBlocks:s,deviceType:d}})))(xv),Cv=wp.blockEditor.InnerBlocks,jv=[{attributes:jb,save:function(e){e.attributes;var t=e.className,a=e.attributes,l=a.block_id,n=a.tag,i=a.backgroundType,o=a.backgroundVideo,c=(a.contentWidth,a.align),r=a.columns,s=a.stack,u=a.vAlign,h=a.columnGap,d=a.topType,g=a.bottomType,m=a.bottomFlip,b=a.topFlip,v=a.reverseTablet,p=a.reverseMobile,w=a.topContentAboveShape,y=a.bottomContentAboveShape,z="".concat(n),x="none"!=d&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-top",{"uagb-columns__shape-flip":!0===b},{"uagb-columns__shape-above-content":!0===w})},Ib[d]),O="none"!=g&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-bottom",{"uagb-columns__shape-flip":!0===m},{"uagb-columns__shape-above-content":!0===y}),"data-negative":"false"},Ib[g]),C=v?"uagb-columns__reverse-tablet":"",j=p?"uagb-columns__reverse-mobile":"";return Object(f.createElement)(z,{className:_()(t,"uagb-columns__wrap","uagb-columns__background-".concat(i),"uagb-columns__stack-".concat(s),"uagb-columns__valign-".concat(u),"uagb-columns__gap-".concat(h),"align".concat(c),C,j),id:"uagb-columns-".concat(l)},Object(f.createElement)("div",{className:"uagb-columns__overlay"}),x,"video"==i&&Object(f.createElement)("div",{className:"uagb-columns__video-wrap"},o&&Object(f.createElement)("video",{src:o.url,autoPlay:!0,loop:!0,muted:!0})),Object(f.createElement)("div",{className:_()("uagb-columns__inner-wrap","uagb-columns__columns-".concat(r))},Object(f.createElement)(Cv.Content,null)),O)}},{attributes:jb,save:function(e){e.attributes;var t=e.className,a=e.attributes,l=a.block_id,n=a.tag,i=a.backgroundType,o=a.backgroundVideo,c=(a.contentWidth,a.align),r=a.columns,s=a.stack,u=a.vAlign,h=a.columnGap,d=a.topType,g=a.bottomType,m=a.bottomFlip,b=a.topFlip,v=a.reverseTablet,p=a.reverseMobile,w=a.topContentAboveShape,y=a.bottomContentAboveShape,z="".concat(n),x="none"!=d&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-top",{"uagb-columns__shape-flip":!0===b},{"uagb-columns__shape-above-content":!0===w})},Ib[d]),O="none"!=g&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-bottom",{"uagb-columns__shape-flip":!0===m},{"uagb-columns__shape-above-content":!0===y}),"data-negative":"false"},Ib[g]),C=v?"uagb-columns__reverse-tablet":"",j=p?"uagb-columns__reverse-mobile":"";return Object(f.createElement)(z,{className:_()(t,"uagb-columns__wrap","uagb-columns__background-".concat(i),"uagb-columns__stack-".concat(s),"uagb-columns__valign-".concat(u),"uagb-columns__gap-".concat(h),"align".concat(c),C,j),id:"uagb-columns-".concat(l)},Object(f.createElement)("div",{className:"uagb-columns__overlay"}),x,"video"==i&&Object(f.createElement)("div",{className:"uagb-columns__video-wrap"},o&&Object(f.createElement)("video",{autoplay:!0,loop:!0,muted:!0,playsinline:!0},Object(f.createElement)("source",{src:o.url,type:"video/mp4"}))),Object(f.createElement)("div",{className:_()("uagb-columns__inner-wrap","uagb-columns__columns-".concat(r))},Object(f.createElement)(Cv.Content,null)),O)}}],Mv=[{name:"one-column",label:Object(M.__)("One column","ultimate-addons-for-gutenberg"),icon:Ub.colOne,attributes:{columns:1,layout:"100"},innerBlocks:[["uagb/column",{colWidth:100}]],scope:["block"]},{name:"two-column-split",label:Object(M.__)("Two columns; equal split","ultimate-addons-for-gutenberg"),icon:Ub.layout5050,attributes:{columns:2,layout:"50-50"},isDefault:!0,innerBlocks:[["uagb/column",{colWidth:50}],["uagb/column",{colWidth:50}]],scope:["block"]},{name:"two-columns-one-third-two-thirds",label:Object(M.__)("Two columns; one-third, two-thirds split","ultimate-addons-for-gutenberg"),icon:Ub.layout3366,attributes:{columns:2},innerBlocks:[["uagb/column",{colWidth:33.33}],["uagb/column",{colWidth:66.66}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",label:Object(M.__)("Two columns; two-thirds, one-third split","ultimate-addons-for-gutenberg"),icon:Ub.layout6633,attributes:{columns:2},innerBlocks:[["uagb/column",{colWidth:66.66}],["uagb/column",{colWidth:33.33}]],scope:["block"]},{name:"three-column",label:Object(M.__)("Three columns; equal split","ultimate-addons-for-gutenberg"),icon:Ub.layout502525,attributes:{columns:3,layout:"50-25-25"},innerBlocks:[["uagb/column",{colWidth:50}],["uagb/column",{colWidth:25}],["uagb/column",{colWidth:25}]],scope:["block"]},{name:"three-columns-equal",label:Object(M.__)("Three columns; equal split","ultimate-addons-for-gutenberg"),icon:Ub.layout333333,attributes:{columns:3},innerBlocks:[["uagb/column",{colWidth:33.33}],["uagb/column",{colWidth:33.33}],["uagb/column",{colWidth:33.33}]],scope:["block"]},{name:"three-columns-wider-center",label:Object(M.__)("Three columns; wide center column","ultimate-addons-for-gutenberg"),icon:Ub.layout255025,attributes:{columns:3},innerBlocks:[["uagb/column",{colWidth:25}],["uagb/column",{colWidth:50}],["uagb/column",{colWidth:25}]],scope:["block"]},{name:"four-column",label:Object(M.__)("Four columns; equal split","ultimate-addons-for-gutenberg"),icon:Ub.layout25252525,attributes:{columns:4,layout:"25-25-25-25"},innerBlocks:[["uagb/column",{colWidth:25}],["uagb/column",{colWidth:25}],["uagb/column",{colWidth:25}],["uagb/column",{colWidth:25}]],scope:["block"]}],Ev=(a(384),a(385),wp.blocks.registerBlockType),Hv=wp.blockEditor.InnerBlocks;Ev("uagb/columns",{title:uagb_blocks_info.blocks["uagb/columns"].title,description:uagb_blocks_info.blocks["uagb/columns"].description,icon:n.columns,category:uagb_blocks_info.category,keywords:[Object(M.__)("columns","ultimate-addons-for-gutenberg"),Object(M.__)("rows","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],attributes:jb,variations:Mv,edit:Ov,getEditWrapperProps:function(e){return{"data-align":e.align}},supports:{editorsKitBlockNavigator:!0,anchor:!0},example:{},save:function(e){var t=e.attributes,a=e.className,l=t.block_id,n=t.tag,i=t.backgroundType,o=t.backgroundVideo,c=t.align,r=t.columns,s=t.stack,u=t.vAlign,h=t.columnGap,d=t.topType,g=t.bottomType,m=t.bottomFlip,b=t.topFlip,v=t.reverseTablet,p=t.reverseMobile,w=t.topContentAboveShape,y=t.bottomContentAboveShape,z="".concat(n),x="none"!=d&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-top",{"uagb-columns__shape-flip":!0===b},{"uagb-columns__shape-above-content":!0===w})},Ib[d]),O="none"!=g&&Object(f.createElement)("div",{className:_()("uagb-columns__shape","uagb-columns__shape-bottom",{"uagb-columns__shape-flip":!0===m},{"uagb-columns__shape-above-content":!0===y}),"data-negative":"false"},Ib[g]),C=v?"uagb-columns__reverse-tablet":"",j=p?"uagb-columns__reverse-mobile":"";return Object(f.createElement)(z,{className:_()(a,"uagb-columns__wrap","uagb-columns__background-".concat(i),"uagb-columns__stack-".concat(s),"uagb-columns__valign-".concat(u),"uagb-columns__gap-".concat(h),"align".concat(c),C,j,"uagb-block-".concat(l))},Object(f.createElement)("div",{className:"uagb-columns__overlay"}),x,"video"==i&&Object(f.createElement)("div",{className:"uagb-columns__video-wrap"},o&&Object(f.createElement)("video",{autoplay:!0,loop:!0,muted:!0,playsinline:!0},Object(f.createElement)("source",{src:o.url,type:"video/mp4"}))),Object(f.createElement)("div",{className:_()("uagb-columns__inner-wrap","uagb-columns__columns-".concat(r))},Object(f.createElement)(Hv.Content,null)),O)},deprecated:jv});var kv=wp.blockEditor,Sv=kv.AlignmentToolbar,Lv=kv.BlockControls,Bv=kv.ColorPalette,Vv=kv.InspectorControls,Tv=wp.data.withSelect,Nv=wp.components,Av=Nv.PanelBody,Fv=Nv.SelectControl,Pv=Nv.RangeControl,Rv=Nv.Button,Iv=Nv.ToggleControl,Dv=Nv.Placeholder,qv=Nv.Spinner,Wv=Nv.ButtonGroup,Gv=Nv.TabPanel,Zv=wp.element,Uv=Zv.Component,Yv=Zv.Fragment,Kv=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onSelectForm=e.onSelectForm.bind(h()(e)),e}return s()(i,[{key:"onSelectForm",value:function(e){this.props.attributes.formId;var t=this.props,a=t.setAttributes;if(t.setState,!e)return a({isHtml:!1}),void a({formId:null});a({isHtml:!1}),a({formId:e})}},{key:"render",value:function(){var e,t,a,l,i,o,c=this.props,r=c.className,s=c.setAttributes,u=c.attributes,h=u.formId,d=u.align,g=u.isHtml,m=u.formJson,b=u.fieldStyle,v=u.fieldVrPadding,p=u.fieldHrPadding,w=u.fieldBgColor,y=u.fieldLabelColor,z=u.fieldInputColor,x=u.fieldBorderStyle,O=u.fieldBorderWidth,C=u.fieldBorderRadius,j=u.fieldBorderColor,E=u.fieldBorderFocusColor,H=u.buttonAlignment,k=u.buttonVrPadding,S=u.buttonHrPadding,L=u.buttonTextColor,B=u.buttonBgColor,V=u.buttonTextHoverColor,T=u.buttonBgHoverColor,N=u.buttonBorderStyle,A=u.buttonBorderWidth,F=u.buttonBorderRadius,P=u.buttonBorderColor,R=u.buttonBorderHoverColor,I=u.fieldSpacing,D=u.fieldLabelSpacing,q=u.labelFontSize,W=u.labelFontSizeType,G=u.labelFontSizeTablet,Z=u.labelFontSizeMobile,U=u.labelFontFamily,Y=u.labelFontWeight,K=u.labelFontSubset,J=u.labelLineHeightType,$=u.labelLineHeight,Q=u.labelLineHeightTablet,X=u.labelLineHeightMobile,ee=u.labelLoadGoogleFonts,te=u.inputFontSize,ae=u.inputFontSizeType,le=u.inputFontSizeTablet,ne=u.inputFontSizeMobile,ie=u.inputFontFamily,oe=u.inputFontWeight,ce=u.inputFontSubset,re=u.inputLineHeightType,se=u.inputLineHeight,ue=u.inputLineHeightTablet,he=u.inputLineHeightMobile,de=u.inputLoadGoogleFonts,ge=u.buttonFontSize,me=u.buttonFontSizeType,be=u.buttonFontSizeTablet,ve=u.buttonFontSizeMobile,pe=u.buttonFontFamily,fe=u.buttonFontWeight,we=u.buttonFontSubset,_e=u.buttonLineHeightType,ye=u.buttonLineHeight,ze=u.buttonLineHeightTablet,xe=u.buttonLineHeightMobile,Oe=u.buttonLoadGoogleFonts,Ce=u.enableOveride,je=u.radioCheckSize,Me=u.radioCheckBgColor,Ee=u.radioCheckSelectColor,He=u.radioCheckLableColor,ke=u.radioCheckBorderColor,Se=u.radioCheckBorderWidth,Le=u.radioCheckBorderRadius,Be=u.radioCheckFontSize,Ve=u.radioCheckFontSizeType,Te=u.radioCheckFontSizeTablet,Ne=u.radioCheckFontSizeMobile,Ae=u.radioCheckFontFamily,Fe=u.radioCheckFontWeight,Pe=u.radioCheckFontSubset,Re=u.radioCheckLineHeightType,Ie=u.radioCheckLineHeight,De=u.radioCheckLineHeightTablet,qe=u.radioCheckLineHeightMobile,We=u.radioCheckLoadGoogleFonts,Ge=u.validationMsgPosition,Ze=u.validationMsgColor,Ue=u.validationMsgBgColor,Ye=u.enableHighlightBorder,Ke=u.highlightBorderColor,Je=u.validationMsgFontSize,$e=u.validationMsgFontSizeType,Qe=u.validationMsgFontSizeTablet,Xe=u.validationMsgFontSizeMobile,et=u.validationMsgFontFamily,tt=u.validationMsgFontWeight,at=u.validationMsgFontSubset,lt=u.validationMsgLineHeightType,nt=u.validationMsgLineHeight,it=u.validationMsgLineHeightTablet,ot=u.validationMsgLineHeightMobile,ct=u.validationMsgLoadGoogleFonts,rt=u.successMsgColor,st=u.successMsgBgColor,ut=u.successMsgBorderColor,ht=u.errorMsgColor,dt=u.errorMsgBgColor,gt=u.errorMsgBorderColor,mt=u.msgBorderSize,bt=u.msgBorderRadius,vt=u.msgVrPadding,pt=u.msgHrPadding,ft=u.msgFontSize,wt=u.msgFontSizeType,_t=u.msgFontSizeTablet,yt=u.msgFontSizeMobile,zt=u.msgFontFamily,xt=u.msgFontWeight,Ot=u.msgFontSubset,Ct=u.msgLineHeightType,jt=u.msgLineHeight,Mt=u.msgLineHeightTablet,Et=u.msgLineHeightMobile,Ht=u.msgLoadGoogleFonts,kt=u.radioCheckBorderRadiusType,St=u.msgBorderRadiusType,Lt=u.fieldBorderRadiusType,Bt=u.buttonBorderRadiusType,Vt="";if(m&&m.data.html&&(Vt=m.data.html),1==ee){var Tt={google:{families:[U+(Y?":"+Y:"")]}};a=Object(f.createElement)(ha,{config:Tt})}if(1==de){var Nt={google:{families:[ie+(oe?":"+oe:"")]}};e=Object(f.createElement)(ha,{config:Nt})}if(1==Oe){var At={google:{families:[pe+(fe?":"+fe:"")]}};t=Object(f.createElement)(ha,{config:At})}if(1==We){var Ft={google:{families:[Ae+(Fe?":"+Fe:"")]}};l=Object(f.createElement)(ha,{config:Ft})}if(1==ct){var Pt={google:{families:[et+(tt?":"+tt:"")]}};i=Object(f.createElement)(ha,{config:Pt})}if(1==Ht){var Rt={google:{families:[zt+(xt?":"+xt:"")]}};o=Object(f.createElement)(ha,{config:Rt})}var It=Object(f.createElement)(Av,{title:Object(M.__)("Field Style & Border","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(Fv,{label:Object(M.__)("Field Style","ultimate-addons-for-gutenberg"),value:b,onChange:function(e){return s({fieldStyle:e})},options:[{value:"box",label:Object(M.__)("Box","ultimate-addons-for-gutenberg")},{value:"underline",label:Object(M.__)("Underline","ultimate-addons-for-gutenberg")}]}),"box"==b&&Object(f.createElement)(Fv,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:x,onChange:function(e){return s({fieldBorderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),("none"!=x||"underline"==b)&&Object(f.createElement)(Pv,{label:Object(M.__)("Border Width (px)","ultimate-addons-for-gutenberg"),value:O,onChange:function(e){return s({fieldBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(Wv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(Rv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Lt,"aria-pressed":"px"===Lt,onClick:function(){return s({fieldBorderRadiusType:"px"})}},"px"),Object(f.createElement)(Rv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Lt,"aria-pressed":"%"===Lt,onClick:function(){return s({fieldBorderRadiusType:"%"})}},"%")),Object(f.createElement)(Pv,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:C,onChange:function(e){return s({fieldBorderRadius:e})},min:0,max:100,allowReset:!0}),("none"!=x||"underline"==b)&&Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:j}}))),Object(f.createElement)(Bv,{value:j,onChange:function(e){return s({fieldBorderColor:e})},allowReset:!0})),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Active Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:E}}))),Object(f.createElement)(Bv,{value:E,onChange:function(e){return s({fieldBorderFocusColor:e})},allowReset:!0})),Dt=Object(f.createElement)(Av,{title:Object(M.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("h2",null,Object(M.__)("Label","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:ee,label:"labelLoadGoogleFonts"},fontFamily:{value:U,label:"labelFontFamily"},fontWeight:{value:Y,label:"labelFontWeight"},fontSubset:{value:K,label:"labelFontSubset"},fontSizeType:{value:W,label:"labelFontSizeType"},fontSize:{value:q,label:"labelFontSize"},fontSizeMobile:{value:Z,label:"labelFontSizeMobile"},fontSizeTablet:{value:G,label:"labelFontSizeTablet"},lineHeightType:{value:J,label:"labelLineHeightType"},lineHeight:{value:$,label:"labelLineHeight"},lineHeightMobile:{value:X,label:"labelLineHeightMobile"},lineHeightTablet:{value:Q,label:"labelLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:y}}))),Object(f.createElement)(Bv,{value:y,onChange:function(e){return s({fieldLabelColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Input","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:de,label:"inputLoadGoogleFonts"},fontFamily:{value:ie,label:"inputFontFamily"},fontWeight:{value:oe,label:"inputFontWeight"},fontSubset:{value:ce,label:"inputFontSubset"},fontSizeType:{value:ae,label:"inputFontSizeType"},fontSize:{value:te,label:"inputFontSize"},fontSizeMobile:{value:ne,label:"inputFontSizeMobile"},fontSizeTablet:{value:le,label:"inputFontSizeTablet"},lineHeightType:{value:re,label:"inputLineHeightType"},lineHeight:{value:se,label:"inputLineHeight"},lineHeightMobile:{value:he,label:"inputLineHeightMobile"},lineHeightTablet:{value:ue,label:"inputLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:z}}))),Object(f.createElement)(Bv,{value:z,onChange:function(e){return s({fieldInputColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Field Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:w}}))),Object(f.createElement)(Bv,{value:w,onChange:function(e){return s({fieldBgColor:e})},allowReset:!0})),qt=Object(f.createElement)(Av,{title:Object(M.__)("General","ultimate-addons-for-gutenberg")},Object(f.createElement)(Fv,{label:Object(M.__)("Select Form","ultimate-addons-for-gutenberg"),value:h,onChange:this.onSelectForm,options:uagb_blocks_info.cf7_forms}));if(0==h)return Object(f.createElement)(Yv,null,Object(f.createElement)(Dv,{icon:"admin-post",label:Object(M.__)("Select a Contact Form 7","ultimate-addons-for-gutenberg")},Object(f.createElement)(Fv,{value:h,onChange:this.onSelectForm,options:uagb_blocks_info.cf7_forms})));var Wt=Object(f.createElement)(Yv,null,Object(f.createElement)(Fv,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:N,onChange:function(e){return s({buttonBorderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=N&&Object(f.createElement)(Pv,{label:Object(M.__)("Border Width (px)","ultimate-addons-for-gutenberg"),value:A,onChange:function(e){return s({buttonBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(Wv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(Rv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Bt,"aria-pressed":"px"===Bt,onClick:function(){return s({buttonBorderRadiusType:"px"})}},"px"),Object(f.createElement)(Rv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Bt,"aria-pressed":"%"===Bt,onClick:function(){return s({buttonBorderRadiusType:"%"})}},"%")),Object(f.createElement)(Pv,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:F,onChange:function(e){return s({buttonBorderRadius:e})},min:0,max:100,allowReset:!0})),Gt=Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:L}}))),Object(f.createElement)(Bv,{value:L,onChange:function(e){return s({buttonTextColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:B}}))),Object(f.createElement)(Bv,{value:B,onChange:function(e){return s({buttonBgColor:e})},allowReset:!0}),"none"!=N&&Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:P}}))),Object(f.createElement)(Bv,{value:P,onChange:function(e){return s({buttonBorderColor:e})},allowReset:!0}))),Zt=Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:V}}))),Object(f.createElement)(Bv,{value:V,onChange:function(e){return s({buttonTextHoverColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:T}}))),Object(f.createElement)(Bv,{value:T,onChange:function(e){return s({buttonBgHoverColor:e})},allowReset:!0}),"none"!=N&&Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:R}}))),Object(f.createElement)(Bv,{value:R,onChange:function(e){return s({buttonBorderHoverColor:e})},allowReset:!0}))),Ut=Object(f.createElement)(Av,{title:Object(M.__)("Submit Button","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(Fv,{label:Object(M.__)("Button Alignment","ultimate-addons-for-gutenberg"),value:H,onChange:function(e){return s({buttonAlignment:e})},options:[{value:"center",label:Object(M.__)("Center","ultimate-addons-for-gutenberg")},{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")},{value:"justify",label:Object(M.__)("Justified","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("h2",null,Object(M.__)("Button Font","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:Oe,label:"buttonLoadGoogleFonts"},fontFamily:{value:pe,label:"buttonFontFamily"},fontWeight:{value:fe,label:"buttonFontWeight"},fontSubset:{value:we,label:"buttonFontSubset"},fontSizeType:{value:me,label:"buttonFontSizeType"},fontSize:{value:ge,label:"buttonFontSize"},fontSizeMobile:{value:ve,label:"buttonFontSizeMobile"},fontSizeTablet:{value:be,label:"buttonFontSizeTablet"},lineHeightType:{value:_e,label:"buttonLineHeightType"},lineHeight:{value:ye,label:"buttonLineHeight"},lineHeightMobile:{value:xe,label:"buttonLineHeightMobile"},lineHeightTablet:{value:ze,label:"buttonLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Wt,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Gv,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:Object(M.__)("Normal","ultimate-addons-for-gutenberg"),className:"uagb-normal-tab"},{name:"hover",title:Object(M.__)("Hover","ultimate-addons-for-gutenberg"),className:"uagb-focus-tab"}]},(function(e){var t;return t="normal"===e.name?Gt:Zt,Object(f.createElement)("div",null,t)})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Button Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(Pv,{label:n.vertical_spacing,className:"uagb-margin-control",value:k,onChange:function(e){return s({buttonVrPadding:e})},min:0,max:200,initialPosition:10}),Object(f.createElement)(Pv,{label:n.horizontal_spacing,className:"uagb-margin-control",value:S,onChange:function(e){return s({buttonHrPadding:e})},min:0,max:200,initialPosition:10})),Yt=Object(f.createElement)(Av,{title:Object(M.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(Pv,{label:Object(M.__)("Label & Input Space","ultimate-addons-for-gutenberg"),value:D,onChange:function(e){return s({fieldLabelSpacing:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(Pv,{label:Object(M.__)("Fields Space","ultimate-addons-for-gutenberg"),value:I,onChange:function(e){return s({fieldSpacing:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Field Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(Pv,{label:n.vertical_spacing,className:"uagb-margin-control",value:v,onChange:function(e){return s({fieldVrPadding:e})},min:0,max:200,initialPosition:10}),Object(f.createElement)(Pv,{label:n.horizontal_spacing,className:"uagb-margin-control",value:p,onChange:function(e){return s({fieldHrPadding:e})},min:0,max:200,initialPosition:10})),Kt=Object(f.createElement)(Av,{title:Object(M.__)("Radio & Checkbox","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(Iv,{label:Object(M.__)("Override Current Style","ultimate-addons-for-gutenberg"),checked:Ce,onChange:function(e){return s({enableOveride:!Ce})}}),Ce&&Object(f.createElement)(Yv,null,Object(f.createElement)(Pv,{label:Object(M.__)("Size","ultimate-addons-for-gutenberg"),value:je,onChange:function(e){return s({radioCheckSize:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Radio & Checkbox Label","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:We,label:"radioCheckLoadGoogleFonts"},fontFamily:{value:Ae,label:"radioCheckFontFamily"},fontWeight:{value:Fe,label:"radioCheckFontWeight"},fontSubset:{value:Pe,label:"radioCheckFontSubset"},fontSizeType:{value:Ve,label:"radioCheckFontSizeType"},fontSize:{value:Be,label:"radioCheckFontSize"},fontSizeMobile:{value:Ne,label:"radioCheckFontSizeMobile"},fontSizeTablet:{value:Te,label:"radioCheckFontSizeTablet"},lineHeightType:{value:Re,label:"radioCheckLineHeightType"},lineHeight:{value:Ie,label:"radioCheckLineHeight"},lineHeightMobile:{value:qe,label:"radioCheckLineHeightMobile"},lineHeightTablet:{value:De,label:"radioCheckLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Label Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:He}}))),Object(f.createElement)(Bv,{value:He,onChange:function(e){return s({radioCheckLableColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Me}}))),Object(f.createElement)(Bv,{value:Me,onChange:function(e){return s({radioCheckBgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Selected Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ee}}))),Object(f.createElement)(Bv,{value:Ee,onChange:function(e){return s({radioCheckSelectColor:e})},allowReset:!0}),"none"!==x&&Object(f.createElement)(Yv,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Radio & Checkbox Border")),Object(f.createElement)(Pv,{label:Object(M.__)("Border Width (px)","ultimate-addons-for-gutenberg"),value:Se,onChange:function(e){return s({radioCheckBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(Wv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(Rv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===kt,"aria-pressed":"px"===kt,onClick:function(){return s({radioCheckBorderRadiusType:"px"})}},"px"),Object(f.createElement)(Rv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===kt,"aria-pressed":"%"===kt,onClick:function(){return s({radioCheckBorderRadiusType:"%"})}},"%")),Object(f.createElement)(Pv,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:Le,onChange:function(e){return s({radioCheckBorderRadius:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ke}}))),Object(f.createElement)(Bv,{value:ke,onChange:function(e){return s({radioCheckBorderColor:e})},allowReset:!0})))),Jt=Object(f.createElement)(Av,{title:Object(M.__)("Success / Error Message","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("p",{className:"uagb-settings-notice"},Object(M.__)("Note: This styling can be only seen at frontend","ultimate-addons-for-gutenberg")),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Field Validation","ultimate-addons-for-gutenberg")),Object(f.createElement)(Fv,{label:Object(M.__)("Validation Message Position","ultimate-addons-for-gutenberg"),value:Ge,onChange:function(e){return s({validationMsgPosition:e})},options:[{value:"default",label:Object(M.__)("Default","ultimate-addons-for-gutenberg")},{value:"bottom_right",label:Object(M.__)("Bottom Right Side of Field","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("h2",null,Object(M.__)("Validation Font","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:ct,label:"validationMsgLoadGoogleFonts"},fontFamily:{value:et,label:"validationMsgFontFamily"},fontWeight:{value:tt,label:"validationMsgFontWeight"},fontSubset:{value:at,label:"validationMsgFontSubset"},fontSizeType:{value:$e,label:"validationMsgFontSizeType"},fontSize:{value:Je,label:"validationMsgFontSize"},fontSizeMobile:{value:Xe,label:"validationMsgFontSizeMobile"},fontSizeTablet:{value:Qe,label:"validationMsgFontSizeTablet"},lineHeightType:{value:lt,label:"validationMsgLineHeightType"},lineHeight:{value:nt,label:"validationMsgLineHeight"},lineHeightMobile:{value:ot,label:"validationMsgLineHeightMobile"},lineHeightTablet:{value:it,label:"validationMsgLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Validation Message Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ze}}))),Object(f.createElement)(Bv,{value:Ze,onChange:function(e){return s({validationMsgColor:e})},allowReset:!0}),"bottom_right"===Ge&&Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ue}}))),Object(f.createElement)(Bv,{value:Ue,onChange:function(e){return s({validationMsgBgColor:e})},allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Iv,{label:Object(M.__)("Highlight Borders","ultimate-addons-for-gutenberg"),checked:Ye,onChange:function(e){return s({enableHighlightBorder:!Ye})}}),Ye&&Object(f.createElement)(Yv,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Highlight Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ke}}))),Object(f.createElement)(Bv,{value:Ke,onChange:function(e){return s({highlightBorderColor:e})},allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Form Success / Error Validation","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:Ht,label:"msgLoadGoogleFonts"},fontFamily:{value:zt,label:"msgFontFamily"},fontWeight:{value:xt,label:"msgFontWeight"},fontSubset:{value:Ot,label:"msgFontSubset"},fontSizeType:{value:wt,label:"msgFontSizeType"},fontSize:{value:ft,label:"msgFontSize"},fontSizeMobile:{value:yt,label:"msgFontSizeMobile"},fontSizeTablet:{value:_t,label:"msgFontSizeTablet"},lineHeightType:{value:Ct,label:"msgLineHeightType"},lineHeight:{value:jt,label:"msgLineHeight"},lineHeightMobile:{value:Et,label:"msgLineHeightMobile"},lineHeightTablet:{value:Mt,label:"msgLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Success Message","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:rt}}))),Object(f.createElement)(Bv,{value:rt,onChange:function(e){return s({successMsgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:st}}))),Object(f.createElement)(Bv,{value:st,onChange:function(e){return s({successMsgBgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ut}}))),Object(f.createElement)(Bv,{value:ut,onChange:function(e){return s({successMsgBorderColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Error Message","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ht}}))),Object(f.createElement)(Bv,{value:ht,onChange:function(e){return s({errorMsgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:dt}}))),Object(f.createElement)(Bv,{value:dt,onChange:function(e){return s({errorMsgBgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:gt}}))),Object(f.createElement)(Bv,{value:gt,onChange:function(e){return s({errorMsgBorderColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Pv,{label:Object(M.__)("Message Border Width (px)","ultimate-addons-for-gutenberg"),value:mt,onChange:function(e){return s({msgBorderSize:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(Wv,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(Rv,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===St,"aria-pressed":"px"===St,onClick:function(){return s({msgBorderRadiusType:"px"})}},"px"),Object(f.createElement)(Rv,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===St,"aria-pressed":"%"===St,onClick:function(){return s({msgBorderRadiusType:"%"})}},"%")),Object(f.createElement)(Pv,{label:Object(M.__)("Message Border Radius","ultimate-addons-for-gutenberg"),value:bt,onChange:function(e){return s({msgBorderRadius:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Message Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(Pv,{label:n.vertical_spacing,className:"uagb-margin-control",value:vt,onChange:function(e){return s({msgVrPadding:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(Pv,{label:n.horizontal_spacing,className:"uagb-margin-control",value:pt,onChange:function(e){return s({msgHrPadding:e})},min:0,max:100,allowReset:!0}));return Object(f.createElement)(Yv,null,Object(f.createElement)(Lv,{key:"controls"},Object(f.createElement)(Sv,{value:d,onChange:function(e){return s({align:e})}})),Object(f.createElement)(Vv,null,qt,It,Dt,Kt,Ut,Jt,Yt),Object(f.createElement)("div",{className:_()(r,"uagb-cf7-styler__outer-wrap","uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:_()("uagb-cf7-styler__align-".concat(d),"uagb-cf7-styler__field-style-".concat(b),"uagb-cf7-styler__btn-align-".concat(H),"uagb-cf7-styler__highlight-style-".concat(Ge),Ce?"uagb-cf7-styler__check-style-enabled":"",Ye?"uagb-cf7-styler__highlight-border":"")},g&&Object(f.createElement)("div",{dangerouslySetInnerHTML:{__html:Vt}}),0==g&&Object(f.createElement)(Dv,{icon:"admin-post",label:Object(M.__)("Loading","ultimate-addons-for-gutenberg")},Object(f.createElement)(qv,null)))),e,t,a,l,i,o)}},{key:"componentDidMount",value:function(){this.props.setAttributes({isHtml:!1}),this.props.setAttributes({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-cf7-styler-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(){$(".wpcf7-submit").click((function(e){e.preventDefault()}));var e=document.getElementById("uagb-cf7-styler-"+this.props.clientId.substr(0,8));null!=e&&(e.innerHTML=function(e){var t,a,l,n,i=e.attributes,o=i.align,c=i.fieldHrPadding,r=i.fieldVrPadding,s=i.fieldBgColor,u=i.fieldLabelColor,h=i.fieldInputColor,d=i.fieldBorderStyle,g=i.fieldBorderWidth,m=i.fieldBorderRadius,b=i.fieldBorderColor,v=i.fieldBorderFocusColor,p=i.buttonVrPadding,f=i.buttonHrPadding,w=i.buttonTextColor,_=i.buttonBgColor,x=i.buttonTextHoverColor,O=i.buttonBgHoverColor,C=i.buttonBorderStyle,M=i.buttonBorderWidth,E=i.buttonBorderRadius,H=i.buttonBorderColor,k=i.buttonBorderHoverColor,S=i.fieldSpacing,L=i.fieldLabelSpacing,B=i.labelFontSize,V=i.labelFontSizeType,T=i.labelFontSizeTablet,N=i.labelFontSizeMobile,A=i.labelFontFamily,F=i.labelFontWeight,P=i.labelLineHeightType,R=i.labelLineHeight,I=i.labelLineHeightTablet,D=i.labelLineHeightMobile,q=i.inputFontSize,W=i.inputFontSizeType,G=i.inputFontSizeTablet,Z=i.inputFontSizeMobile,U=i.inputFontFamily,Y=i.inputFontWeight,K=i.inputLineHeightType,J=i.inputLineHeight,$=i.inputLineHeightTablet,Q=i.inputLineHeightMobile,X=i.buttonFontSize,ee=i.buttonFontSizeType,te=i.buttonFontSizeTablet,ae=i.buttonFontSizeMobile,le=i.buttonFontFamily,ne=i.buttonFontWeight,ie=i.buttonLineHeightType,oe=i.buttonLineHeight,ce=i.buttonLineHeightTablet,re=i.buttonLineHeightMobile,se=i.radioCheckSize,ue=i.radioCheckBgColor,he=i.radioCheckSelectColor,de=i.radioCheckLableColor,ge=i.radioCheckBorderColor,me=i.radioCheckBorderWidth,be=i.radioCheckBorderRadius,ve=i.radioCheckFontSize,pe=i.radioCheckFontSizeType,fe=i.radioCheckFontSizeTablet,we=i.radioCheckFontSizeMobile,_e=i.radioCheckFontFamily,ye=i.radioCheckFontWeight,ze=i.radioCheckLineHeightType,xe=i.radioCheckLineHeight,Oe=i.radioCheckLineHeightTablet,Ce=i.radioCheckLineHeightMobile,je=i.validationMsgFontSizeType,Me=i.validationMsgFontSizeTablet,Ee=i.validationMsgFontSizeMobile,He=i.validationMsgLineHeightType,ke=i.validationMsgLineHeightTablet,Se=i.validationMsgLineHeightMobile,Le=i.radioCheckBorderRadiusType,Be=i.fieldBorderRadiusType,Ve=i.buttonBorderRadiusType,Te=(n={" .wpcf7 .wpcf7-form":{"text-align":o}," .wpcf7 form.wpcf7-form:not(input)":{color:u}," .wpcf7 input:not([type=submit])":{"background-color":s,color:h,"border-style":d,"border-color":b,"border-width":z(g,"px"),"border-radius":z(m,Be),"padding-left":z(c,"px"),"padding-right":z(c,"px"),"padding-top":z(r,"px"),"padding-bottom":z(r,"px"),"margin-top":z(L,"px"),"margin-bottom":z(S,"px"),"font-size":z(q,W),"font-family":U,"font-weight":Y,"line-height":z(J,K),"text-align":o}," .wpcf7 select":{"background-color":s,color:u,"border-style":d,"border-color":b,"border-width":z(g,"px"),"border-radius":z(m,Be),"margin-top":z(L,"px"),"margin-bottom":z(S,"px"),"font-size":z(q,W),"font-family":U,"font-weight":Y,"line-height":z(J,K),"text-align":o}," .wpcf7 select.wpcf7-form-control.wpcf7-select:not([multiple='multiple'])":{"padding-left":z(c,"px"),"padding-right":z(c,"px"),"padding-top":z(r,"px"),"padding-bottom":z(r,"px")}," .wpcf7 select.wpcf7-select[multiple='multiple'] option":{"padding-left":z(c,"px"),"padding-right":z(c,"px"),"padding-top":z(r,"px"),"padding-bottom":z(r,"px")}," .wpcf7 textarea":{"background-color":s,color:h,"border-color":b,"border-width":z(g,"px"),"border-radius":z(m,Be),"border-style":d,"padding-left":z(c,"px"),"padding-right":z(c,"px"),"padding-top":z(r,"px"),"padding-bottom":z(r,"px"),"margin-top":z(L,"px"),"margin-bottom":z(S,"px"),"font-size":z(q,W),"font-family":U,"font-weight":Y,"line-height":z(J,K),"text-align":o}," .wpcf7 input::placeholder":{color:h,"text-align":o}," .wpcf7 textarea::placeholder":{color:h,"text-align":o}},j()(n," .wpcf7 textarea::placeholder",{color:h,"text-align":o}),j()(n," .wpcf7 form label",(t={"font-size":z(B,V)},j()(t,"font-size",z(B,V)),j()(t,"font-family",A),j()(t,"font-weight",F),j()(t,"line-height",z(R,P)),t)),j()(n," .wpcf7 form .wpcf7-list-item-label",(a={"font-size":z(B,V)},j()(a,"font-size",z(B,V)),j()(a,"font-family",A),j()(a,"font-weight",F),j()(a,"line-height",z(R,P)),a)),j()(n," .wpcf7 form input:not([type=submit]):focus",{"border-color":v}),j()(n," .wpcf7 form select:focus",{"border-color":v}),j()(n," .wpcf7 textarea:focus",{"border-color":v}),j()(n," .wpcf7 input.wpcf7-form-control.wpcf7-submit",{color:w,"background-color":_,"font-size":z(X,ee),"font-family":le,"font-weight":ne,"line-height":z(oe,ie),"border-color":H,"border-style":C,"border-width":z(M,"px"),"border-radius":z(E,Ve),"padding-left":z(f,"px"),"padding-right":z(f,"px"),"padding-top":z(p,"px"),"padding-bottom":z(p,"px")}),j()(n," .wpcf7 input.wpcf7-form-control.wpcf7-submit:hover",{color:x,"background-color":O,"border-color":k}),j()(n," .wpcf7 .wpcf7-checkbox input[type='checkbox']:checked + span:before",{"background-color":s,color:h,"font-size":"calc( "+r+"px / 1.2 )","border-color":v}),j()(n," .wpcf7 .wpcf7-checkbox input[type='checkbox'] + span:before",{"background-color":s,color:h,height:z(r,"px"),width:z(r,"px"),"font-size":"calc( "+r+"px / 1.2 )","border-style":d,"border-color":b,"border-width":z(g,"px"),"border-radius":z(m,Be)}),j()(n," .wpcf7 .wpcf7-acceptance input[type='checkbox']:checked + span:before",{"background-color":s,color:h,"border-color":v}),j()(n," .wpcf7 .wpcf7-acceptance input[type='checkbox'] + span:before",{"background-color":s,color:h,height:z(r,"px"),width:z(r,"px"),"font-size":"calc( "+r+"px / 1.2 )","border-style":d,"border-color":b,"border-width":z(g,"px"),"border-radius":z(m,Be)}),j()(n," .wpcf7 .wpcf7-radio input[type='radio'] + span:before",(l={"background-color":s,color:h,height:z(r,"px"),width:z(r,"px"),"border-style":d,"border-color":b,"border-width":z(g,"px")},j()(l,"height","calc( "+r+"px / 1.2 )"),j()(l,"width","calc( "+r+"px / 1.2 )"),l)),j()(n," .uagb-cf7-styler__field-style-underline .wpcf7 input:not([type=submit])",{"border-style":"none","border-bottom-color":b,"border-bottom-style":"solid","border-bottom-width":z(g,"px"),"border-radius":z(m,Be)}),j()(n," .uagb-cf7-styler__field-style-underline textarea",{"border-style":"none","border-bottom-color":b,"border-bottom-style":"solid","border-bottom-width":z(g,"px"),"border-radius":z(m,Be)}),j()(n," .uagb-cf7-styler__field-style-underline select",{"border-style":"none","border-bottom-color":b,"border-bottom-style":"solid","border-bottom-width":z(g,"px"),"border-radius":z(m,Be)}),j()(n," .uagb-cf7-styler__field-style-underline textarea",{"border-style":"none","border-bottom-color":b,"border-bottom-style":"solid","border-bottom-width":z(g,"px"),"border-radius":z(m,Be)}),j()(n," .uagb-cf7-styler__field-style-underline .wpcf7-checkbox input[type='checkbox'] + span:before",{"border-style":"solid"}),j()(n," .uagb-cf7-styler__field-style-underline .wpcf7 input[type='radio'] + span:before",{"border-style":"solid"}),j()(n," .uagb-cf7-styler__field-style-underline .wpcf7-acceptance input[type='checkbox'] + span:before",{"border-style":"solid"}),j()(n," .wpcf7-radio input[type='radio']:checked + span:before",{"background-color":h,"border-color":v}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type='checkbox'] + span:before",{"background-color":ue,color:he,height:z(se,"px"),width:z(se,"px"),"font-size":"calc( "+se+"px / 1.2 )","border-color":ge,"border-width":z(me,"px"),"border-radius":z(be,Le)}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type='checkbox']:checked + span:before",{"border-color":v}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type='checkbox'] + span:before",{"background-color":ue,color:he,height:z(se,"px"),width:z(se,"px"),"font-size":"calc( "+se+"px / 1.2 )","border-color":ge,"border-width":z(me,"px"),"border-radius":z(be,Le)}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type='checkbox']:checked + span:before",{"border-color":v}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7 input[type='radio'] + span:before",{"background-color":ue,color:he,height:z(se,"px"),width:z(se,"px"),"font-size":"calc( "+se+"px / 1.2 )","border-color":ge,"border-width":z(me,"px")}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7-radio input[type='radio']:checked + span:before",{"background-color":he,"border-color":v}),j()(n," .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label",{"font-size":z(ve,pe),"font-family":_e,"font-weight":ye,"line-height":z(xe,ze),color:de}),n),Ne={" .wpcf7 input:not([type=submit])":{"font-size":z(G,W),"line-height":z($,K)}," .wpcf7 select":{"font-size":z(T,V),"line-height":z(I,P)}," .wpcf7 textarea":{"font-size":z(G,W),"line-height":z($,K)}," .wpcf7 form label":{"font-size":z(T,V),"line-height":z(I,P)}," .wpcf7 form .wpcf7-list-item-label":{"font-size":z(T,V),"line-height":z(I,P)}," .wpcf7 input.wpcf7-form-control.wpcf7-submit":{"font-size":z(te,ee),"line-height":z(ce,ie)}," .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label":{"font-size":z(fe,pe),"line-height":z(Oe,ze)}," span.wpcf7-not-valid-tip":{"font-size":z(Me,je),"line-height":z(ke,He)}},Ae={" .wpcf7 input:not([type=submit])":{"font-size":z(Z,W),"line-height":z(Q,K)}," .wpcf7 select":{"font-size":z(N,V),"line-height":z(D,P)}," .wpcf7 textarea":{"font-size":z(G,W),"line-height":z($,K)}," .wpcf7 form label":{"font-size":z(Z,W),"line-height":z(Q,K)}," .wpcf7 form .wpcf7-list-item-label":{"font-size":z(N,V),"line-height":z(D,P)}," .wpcf7 input.wpcf7-form-control.wpcf7-submit":{"font-size":z(ae,ee),"line-height":z(re,ie)}," .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label":{"font-size":z(we,pe),"line-height":z(Ce,ze)}," span.wpcf7-not-valid-tip":{"font-size":z(Ee,je),"line-height":z(Se,He)}},Fe=y(Te,".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8)));return(Fe+=y(Ne,".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8))))+y(Ae,".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8)))}(this.props))}}]),i}(Uv),Jv=Tv((function(e,t){var a=t.setAttributes,l=t.attributes,n=l.formId,i=l.isHtml,o="";return n&&-1!=n&&0!=n&&!i&&$.ajax({url:uagb_blocks_info.ajax_url,data:{action:"uagb_cf7_shortcode",formId:n,nonce:uagb_blocks_info.uagb_ajax_nonce},dataType:"json",type:"POST",success:function(e){a({isHtml:!0}),a({formJson:e}),o=e}}),{formHTML:o}}))(Kv),$v=(a(386),a(387),wp.blocks.registerBlockType);uagb_blocks_info.blocks["uagb/cf7-styler"].is_active&&$v("uagb/cf7-styler",{title:uagb_blocks_info.blocks["uagb/cf7-styler"].title,description:uagb_blocks_info.blocks["uagb/cf7-styler"].description,icon:n.cf7_styler,keywords:[Object(M.__)("CF7 styler","ultimate-addons-for-gutenberg"),Object(M.__)("contact form styler","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},category:uagb_blocks_info.category,edit:Jv,example:{},save:function(){return null}});var Qv=wp.blockEditor,Xv=Qv.AlignmentToolbar,ep=Qv.BlockControls,tp=Qv.ColorPalette,ap=Qv.InspectorControls,lp=wp.data.withSelect,np=wp.components,ip=np.PanelBody,op=np.SelectControl,cp=(np.TextControl,np.TextareaControl,np.RangeControl),rp=np.Button,sp=np.ToggleControl,up=np.Placeholder,hp=np.Spinner,dp=np.ButtonGroup,gp=np.TabPanel,mp=wp.element,bp=mp.Component,vp=mp.Fragment,pp=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onSelectForm=e.onSelectForm.bind(h()(e)),e}return s()(i,[{key:"onSelectForm",value:function(e){var t=this.props.setAttributes;if(!e)return t({isHtml:!1}),void t({formId:null});t({isHtml:!1}),t({formId:e})}},{key:"render",value:function(){var e,t,a,l,i,o,c=this.props,r=c.className,s=c.setAttributes,u=c.attributes,h=u.formId,d=u.align,g=u.isHtml,m=u.formJson,b=u.enableAjax,v=u.enableTabSupport,p=u.formTabIndex,w=u.titleDescStyle,y=u.titleDescAlignment,z=u.fieldStyle,x=u.fieldVrPadding,O=u.fieldHrPadding,C=u.fieldBgColor,j=u.fieldLabelColor,E=u.fieldInputColor,H=u.fieldBorderStyle,k=u.fieldBorderWidth,S=u.fieldBorderRadius,L=u.fieldBorderColor,B=u.fieldBorderFocusColor,V=u.textAreaHeight,T=u.buttonAlignment,N=u.buttonVrPadding,A=u.buttonHrPadding,F=u.buttonTextColor,P=u.buttonBgColor,R=u.buttonTextHoverColor,I=u.buttonBgHoverColor,D=u.buttonBorderStyle,q=u.buttonBorderWidth,W=u.buttonBorderRadius,G=u.buttonBorderColor,Z=u.buttonBorderHoverColor,U=u.fieldSpacing,Y=u.fieldLabelSpacing,K=u.enableLabel,J=u.labelFontSize,$=u.labelFontSizeType,Q=u.labelFontSizeTablet,X=u.labelFontSizeMobile,ee=u.labelFontFamily,te=u.labelFontWeight,ae=u.labelFontSubset,le=u.labelLineHeightType,ne=u.labelLineHeight,ie=u.labelLineHeightTablet,oe=u.labelLineHeightMobile,ce=u.labelLoadGoogleFonts,re=u.inputFontSize,se=u.inputFontSizeType,ue=u.inputFontSizeTablet,he=u.inputFontSizeMobile,de=u.inputFontFamily,ge=u.inputFontWeight,me=u.inputFontSubset,be=u.inputLineHeightType,ve=u.inputLineHeight,pe=u.inputLineHeightTablet,fe=u.inputLineHeightMobile,we=u.inputLoadGoogleFonts,_e=u.buttonFontSize,ye=u.buttonFontSizeType,ze=u.buttonFontSizeTablet,xe=u.buttonFontSizeMobile,Oe=u.buttonFontFamily,Ce=u.buttonFontWeight,je=u.buttonFontSubset,Me=u.buttonLineHeightType,Ee=u.buttonLineHeight,He=u.buttonLineHeightTablet,ke=u.buttonLineHeightMobile,Se=u.buttonLoadGoogleFonts,Le=u.enableOveride,Be=u.radioCheckSize,Ve=u.radioCheckBgColor,Te=u.radioCheckSelectColor,Ne=u.radioCheckLableColor,Ae=u.radioCheckBorderColor,Fe=u.radioCheckBorderWidth,Pe=u.radioCheckBorderRadius,Re=u.radioCheckFontSize,Ie=u.radioCheckFontSizeType,De=u.radioCheckFontSizeTablet,qe=u.radioCheckFontSizeMobile,We=u.radioCheckFontFamily,Ge=u.radioCheckFontWeight,Ze=u.radioCheckFontSubset,Ue=u.radioCheckLineHeightType,Ye=u.radioCheckLineHeight,Ke=u.radioCheckLineHeightTablet,Je=u.radioCheckLineHeightMobile,$e=u.radioCheckLoadGoogleFonts,Qe=u.validationMsgColor,Xe=u.validationMsgBgColor,et=u.advancedValidationSettings,tt=u.highlightBorderColor,at=u.validationMsgFontSize,lt=u.validationMsgFontSizeType,nt=u.validationMsgFontSizeTablet,it=u.validationMsgFontSizeMobile,ot=u.validationMsgFontFamily,ct=u.validationMsgFontWeight,rt=u.validationMsgFontSubset,st=u.validationMsgLineHeightType,ut=u.validationMsgLineHeight,ht=u.validationMsgLineHeightTablet,dt=u.validationMsgLineHeightMobile,gt=u.validationMsgLoadGoogleFonts,mt=u.successMsgColor,bt=u.errorMsgColor,vt=u.errorMsgBgColor,pt=u.errorMsgBorderColor,ft=u.msgBorderSize,wt=u.msgBorderRadius,_t=u.msgVrPadding,yt=u.msgHrPadding,zt=u.msgFontSize,xt=u.msgFontSizeType,Ot=u.msgFontSizeTablet,Ct=u.msgFontSizeMobile,jt=u.msgFontFamily,Mt=u.msgFontWeight,Et=u.msgFontSubset,Ht=u.msgLineHeightType,kt=u.msgLineHeight,St=u.msgLineHeightTablet,Lt=u.msgLineHeightMobile,Bt=u.msgLoadGoogleFonts,Vt=u.radioCheckBorderRadiusType,Tt=u.msgBorderRadiusType,Nt=u.fieldBorderRadiusType,At=u.buttonBorderRadiusType,Ft=u.successMsgLoadGoogleFonts,Pt=u.successMsgFontFamily,Rt=u.successMsgFontWeight,It=u.successMsgFontSubset,Dt=u.successMsgFontSizeType,qt=u.successMsgFontSize,Wt=u.successMsgFontSizeMobile,Gt=u.successMsgFontSizeTablet,Zt=u.successMsgLineHeightType,Ut=u.successMsgLineHeight,Yt=u.successMsgLineHeightMobile,Kt=u.successMsgLineHeightTablet,Jt="";if(m&&m.data.html&&(Jt=m.data.html),1==ce){var $t={google:{families:[ee+(te?":"+te:"")]}};a=Object(f.createElement)(ha,{config:$t})}if(1==we){var Qt={google:{families:[de+(ge?":"+ge:"")]}};e=Object(f.createElement)(ha,{config:Qt})}if(1==Se){var Xt={google:{families:[Oe+(Ce?":"+Ce:"")]}};t=Object(f.createElement)(ha,{config:Xt})}if(1==$e){var ea={google:{families:[We+(Ge?":"+Ge:"")]}};l=Object(f.createElement)(ha,{config:ea})}if(1==gt){var ta={google:{families:[ot+(ct?":"+ct:"")]}};i=Object(f.createElement)(ha,{config:ta})}if(1==Bt){var aa={google:{families:[jt+(Mt?":"+Mt:"")]}};o=Object(f.createElement)(ha,{config:aa})}var na=Object(f.createElement)(ip,{title:Object(M.__)("Field Style & Border","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(op,{label:Object(M.__)("Field Style","ultimate-addons-for-gutenberg"),value:z,onChange:function(e){return s({fieldStyle:e})},options:[{value:"box",label:Object(M.__)("Box","ultimate-addons-for-gutenberg")},{value:"underline",label:Object(M.__)("Underline","ultimate-addons-for-gutenberg")}]}),"box"==z&&Object(f.createElement)(op,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:H,onChange:function(e){return s({fieldBorderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),("none"!=H||"underline"==z)&&Object(f.createElement)(cp,{label:Object(M.__)("Border Width (px)","ultimate-addons-for-gutenberg"),value:k,onChange:function(e){return s({fieldBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(dp,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(rp,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Nt,"aria-pressed":"px"===Nt,onClick:function(){return s({fieldBorderRadiusType:"px"})}},"px"),Object(f.createElement)(rp,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Nt,"aria-pressed":"%"===Nt,onClick:function(){return s({fieldBorderRadiusType:"%"})}},"%")),Object(f.createElement)(cp,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:S,onChange:function(e){return s({fieldBorderRadius:e})},min:0,max:100,allowReset:!0}),("none"!=H||"underline"==z)&&Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:L}}))),Object(f.createElement)(tp,{value:L,onChange:function(e){return s({fieldBorderColor:e})},allowReset:!0})),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Active Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:B}}))),Object(f.createElement)(tp,{value:B,onChange:function(e){return s({fieldBorderFocusColor:e})},allowReset:!0})),ia=Object(f.createElement)(ip,{title:Object(M.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(sp,{label:"Hide Label?",checked:K,onChange:function(e){return s({enableLabel:!K})}}),!K&&Object(f.createElement)(vp,null,Object(f.createElement)("h2",null,Object(M.__)("Label","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:ce,label:"labelLoadGoogleFonts"},fontFamily:{value:ee,label:"labelFontFamily"},fontWeight:{value:te,label:"labelFontWeight"},fontSubset:{value:ae,label:"labelFontSubset"},fontSizeType:{value:$,label:"labelFontSizeType"},fontSize:{value:J,label:"labelFontSize"},fontSizeMobile:{value:X,label:"labelFontSizeMobile"},fontSizeTablet:{value:Q,label:"labelFontSizeTablet"},lineHeightType:{value:le,label:"labelLineHeightType"},lineHeight:{value:ne,label:"labelLineHeight"},lineHeightMobile:{value:oe,label:"labelLineHeightMobile"},lineHeightTablet:{value:ie,label:"labelLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:j}}))),Object(f.createElement)(tp,{value:j,onChange:function(e){return s({fieldLabelColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"})),Object(f.createElement)("h2",null,Object(M.__)("Input","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography"),attributes:u,setAttributes:s,loadGoogleFonts:{value:we,label:"inputLoadGoogleFonts"},fontFamily:{value:de,label:"inputFontFamily"},fontWeight:{value:ge,label:"inputFontWeight"},fontSubset:{value:me,label:"inputFontSubset"},fontSizeType:{value:se,label:"inputFontSizeType"},fontSize:{value:re,label:"inputFontSize"},fontSizeMobile:{value:he,label:"inputFontSizeMobile"},fontSizeTablet:{value:ue,label:"inputFontSizeTablet"},lineHeightType:{value:be,label:"inputLineHeightType"},lineHeight:{value:ve,label:"inputLineHeight"},lineHeightMobile:{value:fe,label:"inputLineHeightMobile"},lineHeightTablet:{value:pe,label:"inputLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:E}}))),Object(f.createElement)(tp,{value:E,onChange:function(e){return s({fieldInputColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:C}}))),Object(f.createElement)(tp,{value:C,onChange:function(e){return s({fieldBgColor:e})},allowReset:!0}),Object(f.createElement)(cp,{label:Object(M.__)("TextArea Height","ultimate-addons-for-gutenberg"),value:V,onChange:function(e){return s({textAreaHeight:e})},min:0,max:1e3,allowReset:!0})),oa=Object(f.createElement)(ip,{title:Object(M.__)("General","ultimate-addons-for-gutenberg")},Object(f.createElement)(op,{label:Object(M.__)("Select Form","ultimate-addons-for-gutenberg"),value:h,onChange:this.onSelectForm,options:uagb_blocks_info.gf_forms}),Object(f.createElement)(sp,{label:"Enable AJAX Form Submission",checked:b,onChange:function(e){return s({enableAjax:!b})}}),Object(f.createElement)(sp,{label:"Using Multiple Gravity Forms",checked:v,onChange:function(e){return s({enableTabSupport:!v})}}),v&&Object(f.createElement)(cp,{label:Object(M.__)("Tab Index","ultimate-addons-for-gutenberg"),value:p,onChange:function(e){s({formTabIndex:e})},min:0,max:500}),Object(f.createElement)(op,{label:Object(M.__)("Form Title & Description","ultimate-addons-for-gutenberg"),value:w,onChange:function(e){return s({titleDescStyle:e})},options:[{value:"yes",label:Object(M.__)("Show","ultimate-addons-for-gutenberg")},{value:"none",label:Object(M.__)("Hide","ultimate-addons-for-gutenberg")}]}),"none"!==w&&Object(f.createElement)(op,{label:Object(M.__)("Form Title & Description Alignment","ultimate-addons-for-gutenberg"),value:y,onChange:function(e){return s({titleDescAlignment:e})},options:[{value:"center",label:Object(M.__)("Center","ultimate-addons-for-gutenberg")},{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")}]}));if(0==h)return Object(f.createElement)(vp,null,Object(f.createElement)(up,{icon:"admin-post",label:Object(M.__)("Select a Gravity Form","ultimate-addons-for-gutenberg")},Object(f.createElement)(op,{value:h,onChange:this.onSelectForm,options:uagb_blocks_info.gf_forms})));var ca=Object(f.createElement)(vp,null,Object(f.createElement)(op,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:D,onChange:function(e){return s({buttonBorderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=D&&Object(f.createElement)(cp,{label:Object(M.__)("Border Width (px)","ultimate-addons-for-gutenberg"),value:q,onChange:function(e){return s({buttonBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(dp,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(rp,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===At,"aria-pressed":"px"===At,onClick:function(){return s({buttonBorderRadiusType:"px"})}},"px"),Object(f.createElement)(rp,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===At,"aria-pressed":"%"===At,onClick:function(){return s({buttonBorderRadiusType:"%"})}},"%")),Object(f.createElement)(cp,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:W,onChange:function(e){return s({buttonBorderRadius:e})},min:0,max:100,allowReset:!0})),ra=Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:F}}))),Object(f.createElement)(tp,{value:F,onChange:function(e){return s({buttonTextColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:P}}))),Object(f.createElement)(tp,{value:P,onChange:function(e){return s({buttonBgColor:e})},allowReset:!0}),"none"!=D&&Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:G}}))),Object(f.createElement)(tp,{value:G,onChange:function(e){return s({buttonBorderColor:e})},allowReset:!0}))),sa=Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:R}}))),Object(f.createElement)(tp,{value:R,onChange:function(e){return s({buttonTextHoverColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:I}}))),Object(f.createElement)(tp,{value:I,onChange:function(e){return s({buttonBgHoverColor:e})},allowReset:!0}),"none"!=D&&Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Z}}))),Object(f.createElement)(tp,{value:Z,onChange:function(e){return s({buttonBorderHoverColor:e})},allowReset:!0}))),ua=Object(f.createElement)(ip,{title:Object(M.__)("Submit Button","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(op,{label:Object(M.__)("Button Alignment","ultimate-addons-for-gutenberg"),value:T,onChange:function(e){return s({buttonAlignment:e})},options:[{value:"center",label:Object(M.__)("Center","ultimate-addons-for-gutenberg")},{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")},{value:"justify",label:Object(M.__)("Justified","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("h2",null,Object(M.__)("Button Font","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:Se,label:"buttonLoadGoogleFonts"},fontFamily:{value:Oe,label:"buttonFontFamily"},fontWeight:{value:Ce,label:"buttonFontWeight"},fontSubset:{value:je,label:"buttonFontSubset"},fontSizeType:{value:ye,label:"buttonFontSizeType"},fontSize:{value:_e,label:"buttonFontSize"},fontSizeMobile:{value:xe,label:"buttonFontSizeMobile"},fontSizeTablet:{value:ze,label:"buttonFontSizeTablet"},lineHeightType:{value:Me,label:"buttonLineHeightType"},lineHeight:{value:Ee,label:"buttonLineHeight"},lineHeightMobile:{value:ke,label:"buttonLineHeightMobile"},lineHeightTablet:{value:He,label:"buttonLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),ca,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(gp,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:Object(M.__)("Normal","ultimate-addons-for-gutenberg"),className:"uagb-normal-tab"},{name:"hover",title:Object(M.__)("Hover","ultimate-addons-for-gutenberg"),className:"uagb-focus-tab"}]},(function(e){var t;return t="normal"===e.name?ra:sa,Object(f.createElement)("div",null,t)})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Button Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(cp,{label:n.vertical_spacing,className:"uagb-margin-control",value:N,onChange:function(e){return s({buttonVrPadding:e})},min:0,max:200,initialPosition:10}),Object(f.createElement)(cp,{label:n.horizontal_spacing,className:"uagb-margin-control",value:A,onChange:function(e){return s({buttonHrPadding:e})},min:0,max:200,initialPosition:10})),da=Object(f.createElement)(ip,{title:Object(M.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(cp,{label:Object(M.__)("Label & Input Space","ultimate-addons-for-gutenberg"),value:Y,onChange:function(e){return s({fieldLabelSpacing:e})},min:0,max:200,allowReset:!0}),Object(f.createElement)(cp,{label:Object(M.__)("Fields Space","ultimate-addons-for-gutenberg"),value:U,onChange:function(e){return s({fieldSpacing:e})},min:0,max:200,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Field Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(cp,{label:n.vertical_spacing,className:"uagb-margin-control",value:x,onChange:function(e){return s({fieldVrPadding:e})},min:0,max:200,initialPosition:10}),Object(f.createElement)(cp,{label:n.horizontal_spacing,className:"uagb-margin-control",value:O,onChange:function(e){return s({fieldHrPadding:e})},min:0,max:200,initialPosition:10})),ga=Object(f.createElement)(ip,{title:Object(M.__)("Radio & Checkbox","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(sp,{label:Object(M.__)("Override Current Style","ultimate-addons-for-gutenberg"),checked:Le,onChange:function(e){return s({enableOveride:!Le})}}),Le&&Object(f.createElement)(vp,null,Object(f.createElement)(cp,{label:Object(M.__)("Size","ultimate-addons-for-gutenberg"),value:Be,onChange:function(e){return s({radioCheckSize:e})},min:0,max:200,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Radio & Checkbox Label","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:$e,label:"radioCheckLoadGoogleFonts"},fontFamily:{value:We,label:"radioCheckFontFamily"},fontWeight:{value:Ge,label:"radioCheckFontWeight"},fontSubset:{value:Ze,label:"radioCheckFontSubset"},fontSizeType:{value:Ie,label:"radioCheckFontSizeType"},fontSize:{value:Re,label:"radioCheckFontSize"},fontSizeMobile:{value:qe,label:"radioCheckFontSizeMobile"},fontSizeTablet:{value:De,label:"radioCheckFontSizeTablet"},lineHeightType:{value:Ue,label:"radioCheckLineHeightType"},lineHeight:{value:Ye,label:"radioCheckLineHeight"},lineHeightMobile:{value:Je,label:"radioCheckLineHeightMobile"},lineHeightTablet:{value:Ke,label:"radioCheckLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Label Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ne}}))),Object(f.createElement)(tp,{value:Ne,onChange:function(e){return s({radioCheckLableColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ve}}))),Object(f.createElement)(tp,{value:Ve,onChange:function(e){return s({radioCheckBgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Selected Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Te}}))),Object(f.createElement)(tp,{value:Te,onChange:function(e){return s({radioCheckSelectColor:e})},allowReset:!0}),"none"!==H&&Object(f.createElement)(vp,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Radio & Checkbox Border")),Object(f.createElement)(cp,{label:Object(M.__)("Border Width (px)","ultimate-addons-for-gutenberg"),value:Fe,onChange:function(e){return s({radioCheckBorderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(dp,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(rp,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Vt,"aria-pressed":"px"===Vt,onClick:function(){return s({radioCheckBorderRadiusType:"px"})}},"px"),Object(f.createElement)(rp,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Vt,"aria-pressed":"%"===Vt,onClick:function(){return s({radioCheckBorderRadiusType:"%"})}},"%")),Object(f.createElement)(cp,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:Pe,onChange:function(e){return s({radioCheckBorderRadius:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Ae}}))),Object(f.createElement)(tp,{value:Ae,onChange:function(e){return s({radioCheckBorderColor:e})},allowReset:!0})))),ma=Object(f.createElement)(ip,{title:Object(M.__)("Success / Error Message","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("p",{className:"uagb-settings-notice"},Object(M.__)("Note: This styling can be only seen on frontend","ultimate-addons-for-gutenberg")),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Field Validation","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Message Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Qe}}))),Object(f.createElement)(tp,{value:Qe,onChange:function(e){return s({validationMsgColor:e})},allowReset:!0}),Object(f.createElement)(la,{label:Object(M.__)("Typography"),attributes:u,setAttributes:s,loadGoogleFonts:{value:gt,label:"validationMsgLoadGoogleFonts"},fontFamily:{value:ot,label:"validationMsgFontFamily"},fontWeight:{value:ct,label:"validationMsgFontWeight"},fontSubset:{value:rt,label:"validationMsgFontSubset"},fontSizeType:{value:lt,label:"validationMsgFontSizeType"},fontSize:{value:at,label:"validationMsgFontSize"},fontSizeMobile:{value:it,label:"validationMsgFontSizeMobile"},fontSizeTablet:{value:nt,label:"validationMsgFontSizeTablet"},lineHeightType:{value:st,label:"validationMsgLineHeightType"},lineHeight:{value:ut,label:"validationMsgLineHeight"},lineHeightMobile:{value:dt,label:"validationMsgLineHeightMobile"},lineHeightTablet:{value:ht,label:"validationMsgLineHeightTablet"}}),Object(f.createElement)(sp,{label:Object(M.__)("Advanced Settings","ultimate-addons-for-gutenberg"),checked:et,onChange:function(e){return s({advancedValidationSettings:!et})}}),et&&Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Field Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Xe}}))),Object(f.createElement)(tp,{value:Xe,onChange:function(e){return s({validationMsgBgColor:e})},allowReset:!0})),et&&Object(f.createElement)(vp,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Highlight Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:tt}}))),Object(f.createElement)(tp,{value:tt,onChange:function(e){return s({highlightBorderColor:e})},allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Form Error Validation","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Error Message Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:bt}}))),Object(f.createElement)(tp,{value:bt,onChange:function(e){return s({errorMsgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Error Message Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:vt}}))),Object(f.createElement)(tp,{value:vt,onChange:function(e){return s({errorMsgBgColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Error Message Border Color"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:pt}}))),Object(f.createElement)(tp,{value:pt,onChange:function(e){return s({errorMsgBorderColor:e})},allowReset:!0}),Object(f.createElement)(cp,{label:Object(M.__)("Message Border Width (px)","ultimate-addons-for-gutenberg"),value:ft,onChange:function(e){return s({msgBorderSize:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(dp,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(rp,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Tt,"aria-pressed":"px"===Tt,onClick:function(){return s({msgBorderRadiusType:"px"})}},"px"),Object(f.createElement)(rp,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Tt,"aria-pressed":"%"===Tt,onClick:function(){return s({msgBorderRadiusType:"%"})}},"%")),Object(f.createElement)(cp,{label:Object(M.__)("Message Border Radius","ultimate-addons-for-gutenberg"),value:wt,onChange:function(e){return s({msgBorderRadius:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Message Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(cp,{label:n.vertical_spacing,className:"uagb-margin-control",value:_t,onChange:function(e){return s({msgVrPadding:e})},min:0,max:200,allowReset:!0}),Object(f.createElement)(cp,{label:n.horizontal_spacing,className:"uagb-margin-control",value:yt,onChange:function(e){return s({msgHrPadding:e})},min:0,max:200,allowReset:!0}),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:Bt,label:"msgLoadGoogleFonts"},fontFamily:{value:jt,label:"msgFontFamily"},fontWeight:{value:Mt,label:"msgFontWeight"},fontSubset:{value:Et,label:"msgFontSubset"},fontSizeType:{value:xt,label:"msgFontSizeType"},fontSize:{value:zt,label:"msgFontSize"},fontSizeMobile:{value:Ct,label:"msgFontSizeMobile"},fontSizeTablet:{value:Ot,label:"msgFontSizeTablet"},lineHeightType:{value:Ht,label:"msgLineHeightType"},lineHeight:{value:kt,label:"msgLineHeight"},lineHeightMobile:{value:Lt,label:"msgLineHeightMobile"},lineHeightTablet:{value:St,label:"msgLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Form Success Validation","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Success Message Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:mt}}))),Object(f.createElement)(tp,{value:mt,onChange:function(e){return s({successMsgColor:e})},allowReset:!0}),Object(f.createElement)(la,{label:Object(M.__)("Success Message Typography","ultimate-addons-for-gutenberg"),attributes:u,setAttributes:s,loadGoogleFonts:{value:Ft,label:"successMsgLoadGoogleFonts"},fontFamily:{value:Pt,label:"successMsgFontFamily"},fontWeight:{value:Rt,label:"successMsgFontWeight"},fontSubset:{value:It,label:"successMsgFontSubset"},fontSizeType:{value:Dt,label:"successMsgFontSizeType"},fontSize:{value:qt,label:"successMsgFontSize"},fontSizeMobile:{value:Wt,label:"successMsgFontSizeMobile"},fontSizeTablet:{value:Gt,label:"successMsgFontSizeTablet"},lineHeightType:{value:Zt,label:"successMsgLineHeightType"},lineHeight:{value:Ut,label:"successMsgLineHeight"},lineHeightMobile:{value:Yt,label:"successMsgLineHeightMobile"},lineHeightTablet:{value:Kt,label:"successMsgLineHeightTablet"}}));return Object(f.createElement)(vp,null,Object(f.createElement)(ep,{key:"controls"},Object(f.createElement)(Xv,{value:d,onChange:function(e){return s({align:e})}})),Object(f.createElement)(ap,null,oa,na,ia,ga,ua,ma,da),Object(f.createElement)("div",{className:_()(r,"uagb-gf-styler__outer-wrap","uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:_()("uagb-gf-styler__align-".concat(d),"uagb-gf-styler__field-style-".concat(z),"uagb-gf-styler__btn-align-".concat(T),"uagb-gf-styler__gform-heading-".concat(w),Le?"uagb-gf-styler__check-style-enabled":"",K?"uagb-gf-styler__hide-label":"",et?"uagb-gf-styler__error-yes":"")},g&&Object(f.createElement)("div",{dangerouslySetInnerHTML:{__html:Jt}}),0==g&&Object(f.createElement)(up,{icon:"admin-post",label:Object(M.__)("Loading","ultimate-addons-for-gutenberg")},Object(f.createElement)(hp,null)))),e,t,a,l,i,o)}},{key:"componentDidMount",value:function(){this.props.setAttributes({isHtml:!1}),this.props.setAttributes({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-gf-styler-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(){$(".wpgf-submit").click((function(e){e.preventDefault()}));var e=document.getElementById("uagb-gf-styler-"+this.props.clientId.substr(0,8));null!=e&&(e.innerHTML=function(e){var t,a=e.attributes,l=a.align,n=a.titleDescAlignment,i=a.fieldHrPadding,o=a.fieldVrPadding,c=a.fieldBgColor,r=a.fieldLabelColor,s=a.fieldInputColor,u=a.fieldBorderStyle,h=a.fieldBorderWidth,d=a.fieldBorderRadius,g=a.fieldBorderColor,m=a.fieldBorderFocusColor,b=a.buttonVrPadding,v=a.buttonHrPadding,p=a.buttonTextColor,f=a.buttonBgColor,w=a.buttonTextHoverColor,_=a.buttonBgHoverColor,x=a.buttonBorderStyle,O=a.buttonBorderWidth,C=a.buttonBorderRadius,M=a.buttonBorderColor,E=a.buttonBorderHoverColor,H=a.fieldSpacing,k=a.fieldLabelSpacing,S=a.labelFontSize,L=a.labelFontSizeType,B=a.labelFontSizeTablet,V=a.labelFontSizeMobile,T=a.labelFontFamily,N=a.labelFontWeight,A=a.labelLineHeightType,F=a.labelLineHeight,P=a.labelLineHeightTablet,R=a.labelLineHeightMobile,I=a.textAreaHeight,D=a.inputFontSize,q=a.inputFontSizeType,W=a.inputFontSizeTablet,G=a.inputFontSizeMobile,Z=a.inputFontFamily,U=a.inputFontWeight,Y=a.inputLineHeightType,K=a.inputLineHeight,J=a.inputLineHeightTablet,$=a.inputLineHeightMobile,Q=a.buttonFontSize,X=a.buttonFontSizeType,ee=a.buttonFontSizeTablet,te=a.buttonFontSizeMobile,ae=a.buttonFontFamily,le=a.buttonFontWeight,ne=a.buttonLineHeightType,ie=a.buttonLineHeight,oe=a.buttonLineHeightTablet,ce=a.buttonLineHeightMobile,re=a.highlightBorderColor,se=a.radioCheckSize,ue=a.radioCheckBgColor,he=a.radioCheckSelectColor,de=a.radioCheckLableColor,ge=a.radioCheckBorderColor,me=a.radioCheckBorderWidth,be=a.radioCheckBorderRadius,ve=a.radioCheckFontSize,pe=a.radioCheckFontSizeType,fe=a.radioCheckFontSizeTablet,we=a.radioCheckFontSizeMobile,_e=a.radioCheckFontFamily,ye=a.radioCheckFontWeight,ze=a.radioCheckLineHeightType,xe=a.radioCheckLineHeight,Oe=a.radioCheckLineHeightTablet,Ce=a.radioCheckLineHeightMobile,je=a.validationMsgColor,Me=a.validationMsgBgColor,Ee=a.validationMsgFontFamily,He=a.validationMsgFontWeight,ke=a.validationMsgFontSize,Se=a.validationMsgFontSizeType,Le=a.validationMsgFontSizeTablet,Be=a.validationMsgFontSizeMobile,Ve=a.validationMsgLineHeightType,Te=a.validationMsgLineHeight,Ne=a.validationMsgLineHeightTablet,Ae=a.validationMsgLineHeightMobile,Fe=a.msgFontFamily,Pe=a.msgFontWeight,Re=a.msgFontSize,Ie=a.msgFontSizeType,De=a.msgFontSizeTablet,qe=a.msgFontSizeMobile,We=a.msgLineHeightType,Ge=a.msgLineHeight,Ze=a.msgLineHeightTablet,Ue=a.msgLineHeightMobile,Ye=a.successMsgFontFamily,Ke=a.successMsgFontWeight,Je=a.successMsgFontSize,$e=a.successMsgFontSizeType,Qe=a.successMsgFontSizeTablet,Xe=a.successMsgFontSizeMobile,et=a.successMsgLineHeightType,tt=a.successMsgLineHeight,at=a.successMsgLineHeightTablet,lt=a.successMsgLineHeightMobile,nt=a.radioCheckBorderRadiusType,it=a.fieldBorderRadiusType,ot=a.buttonBorderRadiusType,ct=a.errorMsgColor,rt=a.errorMsgBgColor,st=a.errorMsgBorderColor,ut=a.msgBorderSize,ht=a.msgBorderRadius,dt=a.msgBorderRadiusType,gt=a.msgVrPadding,mt=a.msgHrPadding,bt=a.successMsgColor,vt=(t={" .gform_wrapper form":{"text-align":l}," .wp-block-uagb-gf-styler form:not(input)":{color:r}," .gform_heading":{"text-align":n}," input:not([type=submit])":{"background-color":c,color:s,"border-style":u,"border-color":g,"border-width":z(h,"px"),"border-radius":z(d,it),"padding-left":z(i,"px"),"padding-right":z(i,"px"),"padding-top":z(o,"px"),"padding-bottom":z(o,"px"),"margin-top":z(k,"px"),"margin-bottom":z(H,"px"),"font-size":z(D,q),"font-family":Z,"font-weight":U,"line-height":z(K,Y),"text-align":l}," input[type=button]":{color:p,"background-color":f,"font-size":z(Q,X),"font-family":ae,"font-weight":le,"line-height":z(ie,ne),"border-color":M,"border-style":x,"border-width":z(O,"px"),"border-radius":z(C,ot),"padding-left":z(v,"px"),"padding-right":z(v,"px"),"padding-top":z(b,"px"),"padding-bottom":z(b,"px")}," select":{"background-color":c,"border-style":u,"border-color":g,"border-width":z(h,"px"),"border-radius":z(d,it),"margin-top":z(k,"px"),"margin-bottom":z(H,"px"),color:s,"font-size":z(D,q),"font-family":Z,"font-weight":U,"line-height":z(K,Y),"text-align":l,"padding-left":z(i,"px"),"padding-right":z(i,"px"),"padding-top":z(o,"px"),"padding-bottom":z(o,"px")}," .chosen-container-single span":{"background-color":c,"border-style":u,"border-color":g,"border-width":z(h,"px"),"border-radius":z(d,it),"margin-top":z(k,"px"),"margin-bottom":z(H,"px"),color:s,"font-size":z(D,q),"font-family":Z,"font-weight":U,"line-height":z(K,Y),"text-align":l,"padding-left":z(i,"px"),"padding-right":z(i,"px"),"padding-top":z(o,"px"),"padding-bottom":z(o,"px")}," .chosen-container-single.chosen-container-active .chosen-single span":{"margin-bottom":0}," select.wpgf-form-control.wpgf-select:not([multiple='multiple'])":{"padding-left":z(i,"px"),"padding-right":z(i,"px"),"padding-top":z(o,"px"),"padding-bottom":z(o,"px")}," select.wpgf-select[multiple='multiple'] option":{"padding-left":z(i,"px"),"padding-right":z(i,"px"),"padding-top":z(o,"px"),"padding-bottom":z(o,"px")}," textarea":{"background-color":c,color:s,"border-color":g,"border-width":z(h,"px"),"border-radius":z(d,it),"border-style":u,"padding-left":z(i,"px"),"padding-right":z(i,"px"),"padding-top":z(o,"px"),"padding-bottom":z(o,"px"),"margin-top":z(k,"px"),"margin-bottom":z(H,"px"),"font-size":z(D,q),"font-family":Z,"font-weight":U,"line-height":z(K,Y),"text-align":l,height:"auto"===I?I:I+"px"}," textarea::placeholder":{color:s,"text-align":l}," input::placeholder":{color:s,"text-align":l}," form label.gfield_label":{color:r,"font-size":z(S,L),"font-family":T,"font-weight":N,"line-height":z(F,A)}," form .gfield_radio label.gfield_label":{color:r,"font-size":z(S,L),"font-family":T,"font-weight":N,"line-height":z(F,A)}," form .gfield_checkbox label.gfield_label":{color:r,"font-size":z(S,L),"font-family":T,"font-weight":N,"line-height":z(F,A)}," .wpgf .gfield_checkbox input[type='checkbox'] + label, .wpgf .gfield_checkbox input[type='checkbox'] + label":{"margin-top":z(k,"px")}," form input:not([type=submit]):focus":{"border-color":m}," form select:focus":{"border-color":m}," textarea:focus":{"border-color":m}," input.gform_button":{color:p,"background-color":f,"font-size":z(Q,X),"font-family":ae,"font-weight":le,"line-height":z(ie,ne),"border-color":M,"border-style":x,"border-width":z(O,"px"),"border-radius":z(C,ot),"padding-left":z(v,"px"),"padding-right":z(v,"px"),"padding-top":z(b,"px"),"padding-bottom":z(b,"px")}," input.gform_button:hover":{color:w,"background-color":_,"border-color":E}," input.gform_next_button:hover":{color:w,"background-color":_,"border-color":E}," .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type='checkbox']:checked + label:before":{"background-color":c,color:s,"font-size":"calc( "+se+"px / 1.2 )","border-color":m}," .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type='checkbox'] + label:before":{"background-color":c,color:s,height:z(o,"px"),width:z(o,"px"),"border-style":u,"border-color":g,"border-width":z(h,"px"),"border-radius":z(d,it),"font-size":"calc( "+o+"px / 1.2 )"}," .uagb-gf-styler__check-style-enabled input[type='checkbox']:checked + label:before":{"background-color":c,color:s,"font-size":"calc( "+se+"px / 1.2 )","border-color":m}," .uagb-gf-styler__check-style-enabled input[type='checkbox'] + label:before":{"background-color":c,color:s,height:z(o,"px"),width:z(o,"px"),"font-size":"calc( "+o+"px / 1.2 )","border-color":g,"border-style":u,"border-width":z(h,"px"),"border-radius":z(d,it)}," .uagb-gf-styler__check-style-enabled .gfield_radio input[type='radio'] + label:before":{"background-color":c,color:s,height:z(o,"px"),width:z(o,"px"),"border-style":u,"border-color":g,"border-width":z(h,"px")}," .uagb-gf-styler__check-style-enabled .gfield_radio input[type='radio']:checked + label:before":{"border-color":m}," .uagb-gf-styler__field-style-underline input:not([type=submit])":{"border-style":"none","border-bottom-color":g,"border-bottom-style":"solid","border-bottom-width":z(h,"px"),"border-radius":z(d,it)}," .uagb-gf-styler__field-style-underline textarea":{"border-style":"none","border-bottom-color":g,"border-bottom-style":"solid","border-bottom-width":z(h,"px"),"border-radius":z(d,it)}," .uagb-gf-styler__field-style-underline select":{"border-style":"none","border-bottom-color":g,"border-bottom-style":"solid","border-bottom-width":z(h,"px"),"border-radius":z(d,it)}},j()(t," .uagb-gf-styler__check-style-enabled input[type='checkbox'] + label:before",{"border-style":"solid"}),j()(t," .uagb-gf-styler__check-style-enabled input[type='radio'] + label:before",{"border-style":"solid"}),j()(t," .uagb-gf-styler__field-style-box .gfield_checkbox input[type='checkbox']:checked + label:before",{"border-style":"solid","border-width":z(h,"px"),"border-radius":z(d,it),"font-size":"calc( "+se+"px / 1.2 )"}),j()(t," .uagb-gf-styler__field-style-box input[type='checkbox']:checked + label:before",{"border-style":"solid","border-width":z(h,"px"),"border-radius":z(d,it),"font-size":"calc( "+se+"px / 1.2)"}),j()(t," .gfield_radio input[type='radio']:checked + label:before",{"background-color":s}),j()(t," .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type='checkbox'] + label:before",{"background-color":ue,color:he,height:z(se,"px"),width:z(se,"px"),"font-size":"calc( "+se+"px / 1.2 )","border-color":ge,"border-style":"solid","border-width":z(me,"px"),"border-radius":z(be,nt)}),j()(t," .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type='checkbox']:checked + label:before",{"border-color":m}),j()(t," .uagb-gf-styler__check-style-enabled input[type='checkbox'] + label:before",{"background-color":ue,color:he,height:z(se,"px"),width:z(se,"px"),"font-size":"calc( "+se+"px / 1.2 )","border-color":ge,"border-width":z(me,"px"),"border-radius":z(be,nt)}),j()(t," .uagb-gf-styler__check-style-enabled input[type='checkbox']:checked + label:before",{"border-color":m}),j()(t," .uagb-gf-styler__check-style-enabled .gfield_radio input[type='radio'] + label:before",{"background-color":ue,color:he,height:z(se,"px"),width:z(se,"px"),"font-size":"calc( "+se+"px / 1.2 )","border-color":ge,"border-width":z(me,"px")}),j()(t," .uagb-gf-styler__check-style-enabled .gfield_radio input[type='radio']:checked + label:before",{"background-color":he}),j()(t," .uagb-gf-styler__check-style-enabled form .gfield_radio label",{"font-size":z(ve,pe),"font-family":_e,"font-weight":ye,"line-height":z(xe,ze),color:de}),j()(t," .uagb-gf-styler__check-style-enabled form .gfield_checkbox label",{"font-size":z(ve,pe),"font-family":_e,"font-weight":ye,"line-height":z(xe,ze),color:de}),j()(t," .gform_wrapper .gfield_description.validation_message",{color:je}),j()(t," .gform_wrapper .validation_message",{"font-size":z(ke,Se),"font-family":Ee,"font-weight":He,"line-height":z(Te,Ve)}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper .gfield.gfield_error",{"background-color":Me}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input:not([type='submit']):not([type='button']):not([type='image'])",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container select",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container .chosen-single",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container textarea",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes li.gfield_error .gfield_checkbox input[type='checkbox'] + label:before",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes li.gfield_error .ginput_container_consent input[type='checkbox'] + label:before",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes li.gfield_error .gfield_radio input[type='radio'] + label:before",{"border-color":re}),j()(t," .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type='text']",{"border-color":h+"px ".fieldBorderStyle+" "+g+"!important"}),j()(t," .uael-gf-style-underline.uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type='text']",{"border-width":h+"px!important","border-style":"solid!important","border-color":g+"!important"}),j()(t," .gform_wrapper div.validation_error",{color:ct,"background-color":rt,"border-color":st,"border-style":"solid","border-width":z(ut,"px"),"border-radius":z(ht,dt),padding:gt+"px "+mt+"px","font-size":Re.msgFontSizeType,"font-family":Fe,"font-weight":Pe,"line-height":z(Ge,We)}),j()(t," .gform_confirmation_message",{color:bt,"font-size":z(Je,$e),"font-family":Ye,"font-weight":Ke,"line-height":z(tt,et)}),t),pt={" input:not([type=submit])":{"font-size":z(W,q),"line-height":z(J,Y)}," select":{"font-size":z(B,L),"line-height":z(P,A)}," textarea":{"font-size":z(W,q),"line-height":z(J,Y)}," form label":{"font-size":z(B,L),"line-height":z(P,A)}," form .gfield_radio label":{"font-size":z(B,L),"line-height":z(P,A)}," form .gfield_checkbox label":{"font-size":z(B,L),"line-height":z(P,A)}," input.gform_button":{"font-size":z(ee,X),"line-height":z(oe,ne)}," .uagb-gf-styler__check-style-enabled form .gfield_radio label":{"font-size":z(fe,pe),"line-height":z(Oe,ze)}," .uagb-gf-styler__check-style-enabled form .gfield_checkbox label":{"font-size":z(fe,pe),"line-height":z(Oe,ze)}," span.wpgf-not-valid-tip":{"font-size":z(Le,Se),"line-height":z(Ne,Ve)}," .gform_wrapper .validation_message":{"font-size":z(Le,Se),"line-height":z(Ne,Ve)}," .gform_wrapper div.validation_error":{"font-size":z(De,Ie),"line-height":z(Ze,We)}," .gform_confirmation_message":{"font-size":z(Qe,$e),"line-height":z(at,et)}},ft={" input:not([type=submit])":{"font-size":z(G,q),"line-height":z($,Y)}," select":{"font-size":z(V,L),"line-height":z(R,A)}," textarea":{"font-size":z(W,q),"line-height":z(J,Y)}," form label":{"font-size":z(G,q),"line-height":z($,Y)}," form .gfield_radio label":{"font-size":z(V,L),"line-height":z(R,A)}," form .gfield_checkbox label":{"font-size":z(V,L),"line-height":z(R,A)}," input.gform_button":{"font-size":z(te,X),"line-height":z(ce,ne)}," .uagb-gf-styler__check-style-enabled form .gfield_radio label":{"font-size":z(we,pe),"line-height":z(Ce,ze)}," .uagb-gf-styler__check-style-enabled form .gfield_checkbox label":{"font-size":z(we,pe),"line-height":z(Ce,ze)}," span.wpgf-not-valid-tip":{"font-size":z(Be,Se),"line-height":z(Ae,Ve)}," .gform_wrapper .validation_message":{"font-size":z(Be,Se),"line-height":z(Ae,Ve)}," .gform_wrapper div.validation_error":{"font-size":z(qe,Ie),"line-height":z(Ue,We)}," .gform_confirmation_message":{"font-size":z(Xe,$e),"line-height":z(lt,et)}},wt=y(vt,".block-editor-page #wpwrap .edit-post-visual-editor .wp-block-uagb-gf-styler.uagb-block-".concat(e.clientId.substr(0,8)));return(wt+=y(pt,".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8))))+y(ft,".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8)))}(this.props))}}]),i}(bp),fp=lp((function(e,t){var a=t.setAttributes,l=t.attributes,n=l.formId,i=l.isHtml,o="";return n&&-1!=n&&0!=n&&!i&&$.ajax({url:uagb_blocks_info.ajax_url,data:{action:"uagb_gf_shortcode",formId:n,nonce:uagb_blocks_info.uagb_ajax_nonce},dataType:"json",type:"POST",success:function(e){a({isHtml:!0}),a({formJson:e}),o=e}}),{formHTML:o}}))(pp),_p=(a(388),a(389),wp.blocks.registerBlockType);uagb_blocks_info.blocks["uagb/gf-styler"].is_active&&_p("uagb/gf-styler",{title:uagb_blocks_info.blocks["uagb/gf-styler"].title,description:uagb_blocks_info.blocks["uagb/gf-styler"].description,icon:n.gf_styler,keywords:[Object(M.__)("GF styler","ultimate-addons-for-gutenberg"),Object(M.__)("gravity form styler","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},category:uagb_blocks_info.category,edit:fp,example:{},save:function(){return null}});var yp=wp.element.Fragment,zp=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){return c()(this,i),l.apply(this,arguments)}return s()(i,[{key:"onSubmitClick",value:function(e){e.preventDefault()}},{key:"render",value:function(){var e=this.props.attributes;return Object(f.createElement)("a",{onClick:this.onSubmitClick,href:"/",className:"uagb-blockquote__tweet-button",target:"_blank",rel:"noopener noreferrer"},"icon_text"===e.iconView&&Object(f.createElement)(yp,null,n.quote_tweet_icon,Object(f.createElement)("span",{className:"uagb-blockquote__tweet-label"},e.iconLabel)),"icon"===e.iconView&&Object(f.createElement)(yp,null,n.quote_tweet_icon),"text"===e.iconView&&Object(f.createElement)(yp,null,Object(f.createElement)("span",{className:"uagb-blockquote__tweet-label"},e.iconLabel)))}}]),i}(React.Component);var xp=wp.blockEditor.RichText,Op=wp.blocks.createBlock,Cp=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.props;return"not_set"!==a?Object(f.createElement)(xp,{tagName:"div",value:t.descriptionText,placeholder:Object(M.__)("Write a Quote","ultimate-addons-for-gutenberg"),className:"uagb-blockquote__content",onChange:function(e){return a({descriptionText:e})},onMerge:l.mergeBlocks,onSplit:l.insertBlocksAfter?function(e,t){a({content:e});for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];l.insertBlocksAfter([].concat(i,[Op("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return l.onReplace([])}}):Object(f.createElement)(xp.Content,{tagName:"div",value:t.descriptionText,className:"uagb-blockquote__content"})}}]),n}(React.Component);var jp=wp.blockEditor.RichText,Mp=wp.blocks.createBlock,Ep=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.props;return"not_set"!==a?Object(f.createElement)(jp,{tagName:"div",value:t.author,placeholder:Object(M.__)("Author","ultimate-addons-for-gutenberg"),className:"uagb-blockquote__author",onChange:function(e){return a({author:e})},onMerge:l.mergeBlocks,onSplit:l.insertBlocksAfter?function(e,t){a({content:e});for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];l.insertBlocksAfter([].concat(i,[Mp("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return l.onReplace([])}}):Object(f.createElement)(jp.Content,{tagName:"cite",value:t.author,className:"uagb-blockquote__author"})}}]),n}(React.Component);var Hp=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props.attributes,t="";void 0!==e.authorImage&&null!==e.authorImage&&""!==e.authorImage&&(t=e.authorImage.url);var a="";if(""!==t){var l=e.authorImage.sizes,n=e.authorImageSize;return a=void 0!==l&&void 0!==l[n]?l[n].url:t,Object(f.createElement)("div",{className:"uagb-blockquote__author-image"},Object(f.createElement)("img",{className:"",src:a,alt:e.authorImage.alt}))}return null}}]),n}(React.Component);var kp=wp.blockEditor,Sp=kp.AlignmentToolbar,Lp=kp.BlockControls,Bp=kp.InspectorControls,Vp=kp.ColorPalette,Tp=kp.MediaUpload,Np=wp.components,Ap=Np.PanelBody,Fp=Np.SelectControl,Pp=Np.RangeControl,Rp=Np.Button,Ip=Np.TextControl,Dp=Np.BaseControl,qp=Np.ToggleControl,Wp=Np.Toolbar,Gp=Np.Tooltip,Zp=Np.TabPanel,Up=Np.ButtonGroup,Yp=Np.Dashicon,Kp=wp.element,Jp=Kp.Component,$p=Kp.Fragment,Qp=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(h()(e)),e.onRemoveImage=e.onRemoveImage.bind(h()(e)),e}return s()(i,[{key:"onRemoveImage",value:function(){(0,this.props.setAttributes)({authorImage:null})}},{key:"onSelectImage",value:function(e){var t=this.props.setAttributes;e&&e.url?e.type&&"image"==e.type&&t({authorImage:e}):t({authorImage:null})}},{key:"render",value:function(){var e,t,a,l=this.props,i=l.className,o=l.setAttributes,c=l.attributes,r=c.skinStyle,s=c.align,u=c.authorColor,h=c.descColor,d=c.descFontSize,g=c.descFontSizeType,m=c.descFontSizeTablet,b=c.descFontSizeMobile,v=c.descFontFamily,p=c.descFontWeight,w=c.descFontSubset,y=c.descLineHeightType,z=c.descLineHeight,x=c.descLineHeightTablet,O=c.descLineHeightMobile,C=c.descLoadGoogleFonts,j=c.authorFontSize,E=c.authorFontSizeType,H=c.authorFontSizeTablet,k=c.authorFontSizeMobile,L=c.authorFontFamily,B=c.authorFontWeight,V=c.authorFontSubset,T=c.authorLineHeightType,N=c.authorLineHeight,A=c.authorLineHeightTablet,F=c.authorLineHeightMobile,P=c.authorLoadGoogleFonts,R=c.descSpace,I=c.authorSpace,D=c.stack,q=c.borderColor,W=c.borderStyle,G=c.borderWidth,Z=c.borderGap,U=c.verticalPadding,Y=c.quoteColor,K=c.quoteBgColor,J=c.quoteSize,$=c.quoteSizeType,Q=c.quoteSizeTablet,X=c.quoteSizeMobile,ee=c.quotePadding,te=c.quotePaddingType,ae=c.quotePaddingTablet,le=c.quotePaddingMobile,ne=c.quoteBorderRadius,ie=c.quoteStyle,oe=c.enableTweet,ce=c.tweetLinkColor,re=c.tweetBtnColor,se=c.tweetBtnHoverColor,ue=c.tweetBtnBgColor,he=c.tweetBtnBgHoverColor,de=c.tweetBtnFontSize,ge=c.tweetBtnFontSizeType,me=c.tweetBtnFontSizeTablet,be=c.tweetBtnFontSizeMobile,ve=c.tweetBtnFontFamily,pe=c.tweetBtnFontWeight,fe=c.tweetBtnFontSubset,we=c.tweetBtnLineHeightType,_e=c.tweetBtnLineHeight,ye=c.tweetBtnLineHeightTablet,ze=c.tweetBtnLineHeightMobile,xe=c.tweetBtnLoadGoogleFonts,Oe=c.tweetBtnHrPadding,Ce=c.tweetBtnVrPadding,je=c.tweetIconSpacing,Me=c.iconView,Ee=c.iconSkin,He=c.iconLabel,ke=c.iconShareVia,Se=c.iconTargetUrl,Le=c.customUrl,Be=c.authorImage,Ve=c.authorImageWidth,Te=c.authorImageSize,Ne=c.authorImgBorderRadius,Ae=c.authorImgPosition,Fe=c.quoteTopMargin,Pe=c.quoteBottomMargin,Re=c.quoteLeftMargin,Ie=c.quoteRightMargin,De=c.quoteHoverColor,qe=c.quoteBgHoverColor,We=c.borderHoverColor,Ge=[{key:"px",name:Object(M.__)("px","ultimate-addons-for-gutenberg")},{key:"em",name:Object(M.__)("em","ultimate-addons-for-gutenberg")}];if(1==C){var Ze={google:{families:[v+(p?":"+p:"")]}};e=Object(f.createElement)(ha,{config:Ze})}if(1==P){var Ue={google:{families:[L+(B?":"+B:"")]}};t=Object(f.createElement)(ha,{config:Ue})}if(1==xe){var Ye={google:{families:[ve+(pe?":"+pe:"")]}};a=Object(f.createElement)(ha,{config:Ye})}var Ke=Object(f.createElement)(Up,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},S()(Ge,(function(e){var t=e.name,a=e.key;return Object(f.createElement)(Rp,{key:a,className:"uagb-size-btn",isSmall:!0,isPrimary:$===a,"aria-pressed":$===a,onClick:function(){return o({quoteSizeType:a})}},t)}))),Je=Object(f.createElement)(Up,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},S()(Ge,(function(e){var t=e.name,a=e.key;return Object(f.createElement)(Rp,{key:a,className:"uagb-size-btn",isSmall:!0,isPrimary:te===a,"aria-pressed":te===a,onClick:function(){return o({quotePaddingType:a})}},t)}))),$e=Object(M.__)("Select Image","ultimate-addons-for-gutenberg");Be&&($e=null==Be.url||""==Be.url?Object(M.__)("Select Image","ultimate-addons-for-gutenberg"):Object(M.__)("Replace Image","ultimate-addons-for-gutenberg"));var Qe=[{value:"thumbnail",label:Object(M.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(M.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(M.__)("Large","ultimate-addons-for-gutenberg")}],Xe=Object(f.createElement)($p,null,Object(f.createElement)("h2",null,Object(M.__)("Modern Layout - Styling","ultimate-addons-for-gutenberg")),Object(f.createElement)(Fp,{label:Object(M.__)("Quote Border Style","ultimate-addons-for-gutenberg"),value:W,onChange:function(e){return o({borderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=W&&Object(f.createElement)(Pp,{label:Object(M.__)("Thickness (px)","ultimate-addons-for-gutenberg"),value:G,onChange:function(e){return o({borderWidth:e})},min:0,max:50,allowReset:!0})),et=Object(f.createElement)($p,null,Object(f.createElement)("h2",null,Object(M.__)("Quotation Layout - Styling","ultimate-addons-for-gutenberg")),Object(f.createElement)(Zp,{className:"uagb-size-type-field-tabs",activeClass:"active-tab",tabs:[{name:"desktop",title:Object(f.createElement)(Yp,{icon:"desktop"}),className:"uagb-desktop-tab uagb-responsive-tabs"},{name:"tablet",title:Object(f.createElement)(Yp,{icon:"tablet"}),className:"uagb-tablet-tab uagb-responsive-tabs"},{name:"mobile",title:Object(f.createElement)(Yp,{icon:"smartphone"}),className:"uagb-mobile-tab uagb-responsive-tabs"}]},(function(e){var t;return t="mobile"===e.name?Object(f.createElement)($p,null,Ke,Object(f.createElement)(Pp,{label:Object(M.__)("Quote Icon Size","ultimate-addons-for-gutenberg"),value:X,onChange:function(e){return o({quoteSizeMobile:e})},min:0,max:500,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30})):"tablet"===e.name?Object(f.createElement)($p,null,Ke,Object(f.createElement)(Pp,{label:Object(M.__)("Quote Icon Size","ultimate-addons-for-gutenberg"),value:Q,onChange:function(e){return o({quoteSizeTablet:e})},min:0,max:500,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30})):Object(f.createElement)($p,null,Ke,Object(f.createElement)(Pp,{label:Object(M.__)("Quote Icon Size","ultimate-addons-for-gutenberg"),value:J,onChange:function(e){return o({quoteSize:e})},min:0,max:500,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30})),Object(f.createElement)("div",null,t)})),Object(f.createElement)(Zp,{className:"uagb-size-type-field-tabs",activeClass:"active-tab",tabs:[{name:"desktop",title:Object(f.createElement)(Yp,{icon:"desktop"}),className:"uagb-desktop-tab uagb-responsive-tabs"},{name:"tablet",title:Object(f.createElement)(Yp,{icon:"tablet"}),className:"uagb-tablet-tab uagb-responsive-tabs"},{name:"mobile",title:Object(f.createElement)(Yp,{icon:"smartphone"}),className:"uagb-mobile-tab uagb-responsive-tabs"}]},(function(e){var t;return t="mobile"===e.name?Object(f.createElement)($p,null,Je,Object(f.createElement)(Pp,{label:Object(M.__)("Background Size","ultimate-addons-for-gutenberg"),value:le,onChange:function(e){return o({quotePaddingMobile:e})},min:0,max:500,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30})):"tablet"===e.name?Object(f.createElement)($p,null,Je,Object(f.createElement)(Pp,{label:Object(M.__)("Background Size","ultimate-addons-for-gutenberg"),value:ae,onChange:function(e){return o({quotePaddingTablet:e})},min:0,max:500,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30})):Object(f.createElement)($p,null,Je,Object(f.createElement)(Pp,{label:Object(M.__)("Background Size","ultimate-addons-for-gutenberg"),value:ee,onChange:function(e){return o({quotePadding:e})},min:0,max:500,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30})),Object(f.createElement)("div",null,t)})),K&&Object(f.createElement)(Pp,{label:Object(M.__)("Quote Icon Border Radius (%)","ultimate-addons-for-gutenberg"),value:ne,onChange:function(e){return o({quoteBorderRadius:e})},min:0,max:100,allowReset:!0})),tt=Object(f.createElement)(Ap,{title:Object(M.__)("Layout","ultimate-addons-for-gutenberg")},Object(f.createElement)(Fp,{label:Object(M.__)("Layout","ultimate-addons-for-gutenberg"),options:[{value:"border",label:Object(M.__)("Modern","ultimate-addons-for-gutenberg")},{value:"quotation",label:Object(M.__)("Quotation","ultimate-addons-for-gutenberg")}],value:r,onChange:function(e){return o({skinStyle:e})}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),"border"===r&&Xe,"quotation"===r&&et,"quotation"===r&&Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Quote Icon Colors","ultimate-addons-for-gutenberg"))),"none"!=W&&Object(f.createElement)(Zp,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:Object(M.__)("Normal","ultimate-addons-for-gutenberg"),className:"uagb-normal-tab"},{name:"hover",title:Object(M.__)("Hover","ultimate-addons-for-gutenberg"),className:"uagb-hover-tab"}]},(function(e){var t;return t="hover"===e.name?nt:lt,Object(f.createElement)("div",null,t)})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Fp,{label:Object(M.__)("Stack on","ultimate-addons-for-gutenberg"),value:D,options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(M.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(M.__)("Mobile","ultimate-addons-for-gutenberg")}],help:Object(M.__)("Note: Choose on what breakpoint the elements will stack.","ultimate-addons-for-gutenberg"),onChange:function(e){return o({stack:e})}})),at=Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Dp,{className:"editor-bg-image-control",label:Object(M.__)("Author Image","ultimate-addons-for-gutenberg")},Object(f.createElement)(Tp,{title:Object(M.__)("Select Image","ultimate-addons-for-gutenberg"),onSelect:this.onSelectImage,allowedTypes:["image"],value:Be,render:function(e){var t=e.open;return Object(f.createElement)(Rp,{isSecondary:!0,onClick:t},$e)}}),Be&&"null"!==Be.url&&""!==Be.url&&Object(f.createElement)(Rp,{className:"uagb-rm-btn",onClick:this.onRemoveImage,isLink:!0,isDestructive:!0},Object(M.__)("Remove Image","ultimate-addons-for-gutenberg"))),Be&&"null"!==Be.url&&""!==Be.url&&Object(f.createElement)($p,null,Object(f.createElement)(Fp,{label:Object(M.__)("Author Image Position","ultimate-addons-for-gutenberg"),value:Ae,onChange:function(e){return o({authorImgPosition:e})},options:[{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")},{value:"top",label:Object(M.__)("Top","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(Fp,{label:Object(M.__)("Author Image Size","ultimate-addons-for-gutenberg"),options:Qe,value:Te,onChange:function(e){return o({authorImageSize:e})}}),Object(f.createElement)(Pp,{label:Object(M.__)("Author Image Width","ultimate-addons-for-gutenberg"),value:Ve,onChange:function(e){return o({authorImageWidth:e})},min:0,max:500,beforeIcon:"",allowReset:!0}),Object(f.createElement)(Pp,{label:Object(M.__)("Author Image Rounded Corners","ultimate-addons-for-gutenberg"),value:Ne,onChange:function(e){return o({authorImgBorderRadius:e})},min:0,max:100,beforeIcon:"",allowReset:!0}))),lt=Object(f.createElement)($p,null,"none"!=W&&"border"==r&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:q}}))),Object(f.createElement)(Vp,{value:q,onChange:function(e){return o({borderColor:e})},allowReset:!0})),"quotation"==r&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Icon Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:Y}}))),Object(f.createElement)(Vp,{value:Y,onChange:function(e){return o({quoteColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Icon Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:K}}))),Object(f.createElement)(Vp,{value:K,onChange:function(e){return o({quoteBgColor:e})},allowReset:!0}))),nt=Object(f.createElement)($p,null,"border"==r&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:We}}))),Object(f.createElement)(Vp,{value:We,onChange:function(e){return o({borderHoverColor:e})},allowReset:!0})),"quotation"==r&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:De}}))),Object(f.createElement)(Vp,{value:De,onChange:function(e){return o({quoteHoverColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:qe}}))),Object(f.createElement)(Vp,{value:qe,onChange:function(e){return o({quoteBgHoverColor:e})},allowReset:!0}))),it=Object(f.createElement)($p,null,Object(f.createElement)(Ap,{title:Object(M.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("h2",null,Object(M.__)("Quote","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:c,setAttributes:o,loadGoogleFonts:{value:C,label:"descLoadGoogleFonts"},fontFamily:{value:v,label:"descFontFamily"},fontWeight:{value:p,label:"descFontWeight"},fontSubset:{value:w,label:"descFontSubset"},fontSizeType:{value:g,label:"descFontSizeType"},fontSize:{value:d,label:"descFontSize"},fontSizeMobile:{value:b,label:"descFontSizeMobile"},fontSizeTablet:{value:m,label:"descFontSizeTablet"},lineHeightType:{value:y,label:"descLineHeightType"},lineHeight:{value:z,label:"descLineHeight"},lineHeightMobile:{value:O,label:"descLineHeightMobile"},lineHeightTablet:{value:x,label:"descLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Quote Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:h}}))),Object(f.createElement)(Vp,{value:h,onChange:function(e){return o({descColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Author","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:c,setAttributes:o,loadGoogleFonts:{value:P,label:"authorLoadGoogleFonts"},fontFamily:{value:L,label:"authorFontFamily"},fontWeight:{value:B,label:"authorFontWeight"},fontSubset:{value:V,label:"authorFontSubset"},fontSizeType:{value:E,label:"authorFontSizeType"},fontSize:{value:j,label:"authorFontSize"},fontSizeMobile:{value:k,label:"authorFontSizeMobile"},fontSizeTablet:{value:H,label:"authorFontSizeTablet"},lineHeightType:{value:T,label:"authorLineHeightType"},lineHeight:{value:N,label:"authorLineHeight"},lineHeightMobile:{value:F,label:"authorLineHeightMobile"},lineHeightTablet:{value:A,label:"authorLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Author Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:u}}))),Object(f.createElement)(Vp,{value:u,onChange:function(e){return o({authorColor:e})},allowReset:!0}),at)),ot=Object(f.createElement)($p,null,"link"==Ee&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Tweet Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ce}}))),Object(f.createElement)(Vp,{value:ce,onChange:function(e){return o({tweetLinkColor:e})},allowReset:!0})),"link"!==Ee&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Tweet Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:re}}))),Object(f.createElement)(Vp,{value:re,onChange:function(e){return o({tweetBtnColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Tweet Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:ue}}))),Object(f.createElement)(Vp,{value:ue,onChange:function(e){return o({tweetBtnBgColor:e})},allowReset:!0}))),ct=Object(f.createElement)($p,null,"link"==Ee&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Tweet Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:se}}))),Object(f.createElement)(Vp,{value:se,onChange:function(e){return o({tweetBtnHoverColor:e})},allowReset:!0})),"link"!==Ee&&Object(f.createElement)($p,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Tweet Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:se}}))),Object(f.createElement)(Vp,{value:se,onChange:function(e){return o({tweetBtnHoverColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Tweet Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:he}}))),Object(f.createElement)(Vp,{value:he,onChange:function(e){return o({tweetBtnBgHoverColor:e})},allowReset:!0}))),rt=Object(f.createElement)(Ap,{title:Object(M.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},"quotation"===r&&Object(f.createElement)($p,null,Object(f.createElement)("h2",null,Object(M.__)("Quote Icon Margin (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(Pp,{label:n.top_margin,className:"uagb-margin-control",value:Fe,onChange:function(e){return o({quoteTopMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Pp,{label:n.bottom_margin,className:"uagb-margin-control",value:Pe,onChange:function(e){return o({quoteBottomMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Pp,{label:n.left_margin,className:"uagb-margin-control",value:Re,onChange:function(e){return o({quoteLeftMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Pp,{label:n.right_margin,className:"uagb-margin-control",value:Ie,onChange:function(e){return o({quoteRightMargin:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"})),"border"===r&&Object(f.createElement)(Pp,{label:Object(M.__)("Gap Between Border and Quote","ultimate-addons-for-gutenberg"),value:Z,onChange:function(e){return o({borderGap:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Pp,{label:Object(M.__)("Quote Bottom Spacing","ultimate-addons-for-gutenberg"),value:R,onChange:function(e){return o({descSpace:e})},min:0,max:200,allowReset:!0,initialPosition:0}),"center"==s&&"border"!==r&&Object(f.createElement)(Pp,{label:Object(M.__)("Author Bottom Spacing","ultimate-addons-for-gutenberg"),value:I,onChange:function(e){return o({authorSpace:e})},min:0,max:200,allowReset:!0,initialPosition:0}),"border"===r&&Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Vertical Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(Pp,{label:n.vertical_spacing,className:"uagb-margin-control",value:U,onChange:function(e){return o({verticalPadding:e})},min:0,max:500,allowReset:!0}))),st=Object(f.createElement)(Ap,{title:Object(M.__)("Twitter Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(qp,{label:Object(M.__)("Enable Twitter Icon","ultimate-addons-for-gutenberg"),checked:oe,onChange:function(e){return o({enableTweet:!oe})}}),oe&&Object(f.createElement)($p,null,Object(f.createElement)(Fp,{label:Object(M.__)("Icon View","ultimate-addons-for-gutenberg"),value:Me,onChange:function(e){return o({iconView:e})},options:[{value:"icon_text",label:Object(M.__)("Icon & Text","ultimate-addons-for-gutenberg")},{value:"icon",label:Object(M.__)("Icon","ultimate-addons-for-gutenberg")},{value:"text",label:Object(M.__)("Text","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(Fp,{label:Object(M.__)("Icon Style","ultimate-addons-for-gutenberg"),value:Ee,onChange:function(e){return o({iconSkin:e})},options:[{value:"classic",label:Object(M.__)("Classic","ultimate-addons-for-gutenberg")},{value:"bubble",label:Object(M.__)("Bubble","ultimate-addons-for-gutenberg")},{value:"link",label:Object(M.__)("Link","ultimate-addons-for-gutenberg")}]})),oe&&"icon"!==Me&&Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Ip,{label:Object(M.__)("Label","ultimate-addons-for-gutenberg"),value:He,onChange:function(e){return o({iconLabel:e})}})),oe&&Object(f.createElement)($p,null,Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:c,setAttributes:o,loadGoogleFonts:{value:xe,label:"tweetBtnLoadGoogleFonts"},fontFamily:{value:ve,label:"tweetBtnFontFamily"},fontWeight:{value:pe,label:"tweetBtnFontWeight"},fontSubset:{value:fe,label:"tweetBtnFontSubset"},fontSizeType:{value:ge,label:"tweetBtnFontSizeType"},fontSize:{value:de,label:"tweetBtnFontSize"},fontSizeMobile:{value:be,label:"tweetBtnFontSizeMobile"},fontSizeTablet:{value:me,label:"tweetBtnFontSizeTablet"},lineHeightType:{value:we,label:"tweetBtnLineHeightType"},lineHeight:{value:_e,label:"tweetBtnLineHeight"},lineHeightMobile:{value:ze,label:"tweetBtnLineHeightMobile"},lineHeightTablet:{value:ye,label:"tweetBtnLineHeightTablet"}}),Object(f.createElement)(Fp,{label:Object(M.__)("Target URL","ultimate-addons-for-gutenberg"),value:Se,onChange:function(e){return o({iconTargetUrl:e})},options:[{value:"current",label:Object(M.__)("Current Page","ultimate-addons-for-gutenberg")},{value:"custom",label:Object(M.__)("Custom URL","ultimate-addons-for-gutenberg")}]}),"custom"==Se&&Object(f.createElement)(Ip,{label:Object(M.__)("URL","ultimate-addons-for-gutenberg"),value:Le,onChange:function(e){return o({customUrl:e})}})),oe&&"link"!==Ee&&Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Button Padding (px)","ultimate-addons-for-gutenberg")),Object(f.createElement)(Pp,{label:n.vertical_spacing,className:"uagb-margin-control",value:Ce,onChange:function(e){return o({tweetBtnVrPadding:e})},min:0,max:500,allowReset:!0,initialPosition:5}),Object(f.createElement)(Pp,{label:n.horizontal_spacing,className:"uagb-margin-control",value:Oe,onChange:function(e){return o({tweetBtnHrPadding:e})},min:0,max:500,allowReset:!0,initialPosition:5})),oe&&"icon_text"==Me&&Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Pp,{label:Object(M.__)("Space between Tweet Icon and Text","ultimate-addons-for-gutenberg"),value:je,onChange:function(e){return o({tweetIconSpacing:e})},min:0,max:20,allowReset:!0,initialPosition:5})),oe&&Object(f.createElement)($p,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Zp,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:Object(M.__)("Normal","ultimate-addons-for-gutenberg"),className:"uagb-normal-tab"},{name:"hover",title:Object(M.__)("Hover","ultimate-addons-for-gutenberg"),className:"uagb-hover-tab"}]},(function(e){var t;return t="hover"===e.name?ct:ot,Object(f.createElement)("div",null,t)}))));return Object(f.createElement)($p,null,Object(f.createElement)(Lp,{key:"controls"},"border"!==r&&Object(f.createElement)(Sp,{value:s,onChange:function(e){return o({align:e})}}),"quotation"===r&&Object(f.createElement)($p,null,Object(f.createElement)(Wp,{label:"Options"},Object(f.createElement)(Gp,{text:Object(M.__)("Normal Quote","ultimate-addons-for-gutenberg")},Object(f.createElement)(Rp,{className:_()("components-icon-button","components-toolbar__control",{"is-active":"style_1"===ie}),onClick:function(){return o({quoteStyle:"style_1"})}},n.quote_1))),Object(f.createElement)(Wp,{label:"Options"},Object(f.createElement)(Gp,{text:Object(M.__)("Inline Quote","ultimate-addons-for-gutenberg")},Object(f.createElement)(Rp,{className:_()("components-icon-button","components-toolbar__control",{"is-active":"style_2"===ie}),onClick:function(){return o({quoteStyle:"style_2"})}},n.quote_2)))),oe&&Object(f.createElement)($p,null,Object(f.createElement)(Wp,{label:"Options"},Object(f.createElement)("label",{"aria-label":Object(M.__)("Twitter Username","ultimate-addons-for-gutenberg"),className:"".concat(i,"__via-label"),htmlFor:"".concat(i,"__via")}," ",n.at_the_rate),Object(f.createElement)("input",{"aria-label":Object(M.__)("Twitter Username","ultimate-addons-for-gutenberg"),className:"".concat(i,"__via"),id:"".concat(i,"__via"),onChange:function(e){return o({iconShareVia:e.target.value})},placeholder:Object(M.__)("Username","ultimate-addons-for-gutenberg"),type:"text",value:ke})))),Object(f.createElement)(Bp,null,tt,it,st,rt),Object(f.createElement)("div",{className:_()(i,"uagb-blockquote__outer-wrap","uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:_()("uagb-blockquote__wrap","uagb-blockquote__skin-".concat(r),"border"!==r?"uagb-blockquote__align-".concat(s):"","quotation"===r?"uagb-blockquote__style-".concat(ie):"",oe?"uagb-blockquote__with-tweet uagb-blockquote__tweet-style-".concat(Ee," uagb-blockquote__tweet-").concat(Me):"","uagb-blockquote__stack-img-".concat(D))},Object(f.createElement)("blockquote",{className:"uagb-blockquote"},"quotation"===r&&Object(f.createElement)("div",{className:"uagb-blockquote__icon-wrap"},Object(f.createElement)("span",{className:"uagb-blockquote__icon"},n.quote_inline_icon)," "),Object(f.createElement)("div",{className:"uagb-blockquote__content-wrap"},Object(f.createElement)(Cp,{attributes:c,setAttributes:o,props:this.props}),Object(f.createElement)("footer",null,Object(f.createElement)("div",{className:_()("uagb-blockquote__author-wrap",""!==Be?"uagb-blockquote__author-at-".concat(Ae):"")},Object(f.createElement)(Hp,{attributes:c}),Object(f.createElement)(Ep,{attributes:c,setAttributes:o,props:this.props})),oe&&Object(f.createElement)(zp,{attributes:c})))))),e,t,a)}},{key:"componentDidUpdate",value:function(e,t){var a=document.getElementById("uagb-blockquote-style-"+this.props.clientId.substr(0,8));null!=a&&(a.innerHTML=function(e){var t=e.attributes,a=(t.classMigrate,t.skinStyle),l=t.align,n=t.authorColor,i=t.descColor,o=t.descFontSize,c=t.descFontSizeType,r=t.descFontSizeTablet,s=t.descFontSizeMobile,u=t.descFontFamily,h=t.descFontWeight,d=t.descLineHeightType,g=t.descLineHeight,m=t.descLineHeightTablet,b=t.descLineHeightMobile,v=t.authorFontSize,p=t.authorFontSizeType,f=t.authorFontSizeTablet,w=t.authorFontSizeMobile,_=t.authorFontFamily,x=t.authorFontWeight,O=t.authorLineHeightType,C=t.authorLineHeight,j=t.authorLineHeightTablet,M=t.authorLineHeightMobile,E=t.descSpace,H=t.authorSpace,k=t.borderColor,S=t.borderStyle,L=t.borderWidth,B=t.borderGap,V=t.verticalPadding,T=t.quoteColor,N=t.quoteSize,A=t.quoteSizeType,F=t.quoteSizeTablet,P=t.quoteSizeMobile,R=t.quoteBgColor,I=t.enableTweet,D=t.tweetBtnFontSize,q=t.tweetBtnFontSizeType,W=t.tweetBtnFontSizeTablet,G=t.tweetBtnFontSizeMobile,Z=t.tweetBtnFontFamily,U=t.tweetBtnFontWeight,Y=t.tweetBtnLineHeightType,K=t.tweetBtnLineHeight,J=t.tweetBtnLineHeightTablet,$=t.tweetBtnLineHeightMobile,Q=t.tweetLinkColor,X=t.tweetBtnColor,ee=t.tweetBtnBgColor,te=t.tweetBtnHoverColor,ae=t.tweetBtnBgHoverColor,le=t.tweetBtnHrPadding,ne=t.tweetBtnVrPadding,ie=t.tweetIconSpacing,oe=t.authorImageWidth,ce=t.authorImgBorderRadius,re=t.quoteBorderRadius,se=t.quoteTopMargin,ue=t.quoteBottomMargin,he=t.quoteLeftMargin,de=t.quoteRightMargin,ge=t.quoteHoverColor,me=t.quoteBgHoverColor,be=t.borderHoverColor,ve=t.quotePadding,pe=t.quotePaddingType,fe=t.quotePaddingTablet,we=t.quotePaddingMobile,_e=H;"center"===l&&"border"!=a||(_e=0);var ye=l;"border"==a&&(ye="left");var ze={" .uagb-blockquote__content.block-editor-rich-text__editable":{"font-size":z(o,c),"font-family":u,"font-weight":h,"line-height":z(g,d),color:i,"margin-bottom":z(E,"px"),"text-align":ye}," .uagb-blockquote__author.block-editor-rich-text__editable":{"font-size":z(v,p),"font-family":_,"font-weight":x,"line-height":z(C,O),color:n,"text-align":ye}," .uagb-blockquote__skin-border blockquote.uagb-blockquote":{"border-color":k,"border-left-style":S,"border-left-width":z(L,"px"),"padding-left":z(B,"px"),"padding-top":z(V,"px"),"padding-bottom":z(V,"px")}," .uagb-blockquote__skin-border blockquote.uagb-blockquote:hover":{"border-left-color":be}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap":{background:R,"border-radius":z(re,"%"),"margin-top":z(se,"px"),"margin-bottom":z(ue,"px"),"margin-left":z(he,"px"),"margin-right":z(de,"px"),padding:z(ve,pe)}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon":{width:z(N,A),height:z(N,A)}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg":{fill:T}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap:hover":{background:me}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap:hover .uagb-blockquote__icon svg":{fill:ge}," .uagb-blockquote__style-style_1 .uagb-blockquote":{"text-align":l}," .uagb-blockquote__author-wrap":{"margin-bottom":z(_e,"px")}," .uagb-blockquote__author-image img":{width:z(oe,"px"),height:z(oe,"px"),"border-radius":z(ce,"%")}};I&&(ze[" a.uagb-blockquote__tweet-button"]={"font-size":z(D,q),"font-family":Z,"font-weight":U,"line-height":z(K,Y)},ze[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button"]={color:Q},ze[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button svg"]={fill:Q},ze[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button"]={color:X,"background-color":ee,"padding-left":z(le,"px"),"padding-right":z(le,"px"),"padding-top":z(ne,"px"),"padding-bottom":z(ne,"px")},ze[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button svg"]={fill:X},ze[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button"]={color:X,"background-color":ee,"padding-left":z(le,"px"),"padding-right":z(le,"px"),"padding-top":z(ne,"px"),"padding-bottom":z(ne,"px")},ze[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button svg"]={fill:X},ze[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before"]={"border-right-color":ee},ze[" a.uagb-blockquote__tweet-button svg"]={width:z(D,q),height:z(D,q)},ze[" .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button svg"]={"margin-right":z(ie,"px")},ze[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover"]={color:te},ze[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover svg"]={fill:te},ze[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover"]={color:te,"background-color":ae},ze[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover svg"]={fill:te,"background-color":ae},ze[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover "]={color:te,"background-color":ae},ze[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover svg"]={fill:te,"background-color":ae},ze[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover:before"]={"border-right-color":ae});var xe={" .uagb-blockquote__content.block-editor-rich-text__editable":{"font-size":z(r,c),"line-height":z(m,d)}," .uagb-blockquote__author.block-editor-rich-text__editable":{"font-size":z(f,p),"line-height":z(j,O)}," a.uagb-blockquote__tweet-button":{"font-size":z(W,q),"line-height":z(J,Y)}," a.uagb-blockquote__tweet-button svg":{width:z(W,q),height:z(W,q)}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap":{padding:z(fe,pe)}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon":{width:z(F,A),height:z(F,A)}},Oe={" .uagb-blockquote__content.block-editor-rich-text__editable":{"font-size":z(s,c),"line-height":z(b,d)}," .uagb-blockquote__author.block-editor-rich-text__editable":{"font-size":z(w,p),"line-height":z(M,O)}," a.uagb-blockquote__tweet-button":{"font-size":z(G,q),"line-height":z($,Y)}," a.uagb-blockquote__tweet-button svg":{width:z(G,q),height:z(G,q)}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap":{padding:z(we,pe)}," .uagb-blockquote__skin-quotation .uagb-blockquote__icon":{width:z(P,A),height:z(P,A)}},Ce=".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8)),je=y(ze,Ce);return(je+=y(xe,Ce))+y(Oe,Ce)}(this.props))}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)}),this.props.setAttributes({classMigrate:!0});var e=document.createElement("style");e.setAttribute("id","uagb-blockquote-style-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}}]),i}(Jp),Xp={block_id:{type:"string"},classMigrate:{type:"boolean",default:!1},skinStyle:{type:"string",default:"border"},align:{type:"string",default:"left"},descriptionText:{selector:"div.uagb-blockquote__content",default:"Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."},descColor:{type:"string"},descFontSize:{type:"number"},descFontSizeType:{type:"string",default:"px"},descFontSizeTablet:{type:"number"},descFontSizeMobile:{type:"number"},descFontFamily:{type:"string",default:"Default"},descFontWeight:{type:"string"},descFontSubset:{type:"string"},descLineHeightType:{type:"string",default:"em"},descLineHeight:{type:"number"},descLineHeightTablet:{type:"number"},descLineHeightMobile:{type:"number"},descLoadGoogleFonts:{type:"boolean",default:!1},descSpace:{type:"number",default:20},author:{selector:".uagb-blockquote__author",default:"Author"},authorColor:{type:"string",default:"#888888"},authorFontSize:{type:"number"},authorFontSizeType:{type:"string",default:"px"},authorFontSizeTablet:{type:"number"},authorFontSizeMobile:{type:"number"},authorFontFamily:{type:"string",default:"Default"},authorFontWeight:{type:"string"},authorFontSubset:{type:"string"},authorLineHeightType:{type:"string",default:"em"},authorLineHeight:{type:"number"},authorLineHeightTablet:{type:"number"},authorLineHeightMobile:{type:"number"},authorLoadGoogleFonts:{type:"boolean",default:!1},authorSpace:{type:"number",default:10},authorImage:{type:"object",default:{url:"",alt:"Author Image"}},authorImageSize:{type:"string",default:"thumbnail"},authorImageWidth:{type:"number",default:40},authorImgBorderRadius:{type:"number",default:100},authorImgPosition:{type:"string",default:"left"},stack:{type:"string",default:"none"},enableTweet:{type:"boolean",default:!0},iconView:{type:"string",default:"icon_text"},iconSkin:{type:"string",default:"classic"},iconLabel:{type:"string",default:"Tweet"},iconShareVia:{type:"string",default:""},iconTargetUrl:{type:"string",default:"current"},customUrl:{type:"string"},tweetLinkColor:{type:"string",default:"#1DA1F2"},tweetBtnColor:{type:"string",default:"#fff"},tweetBtnBgColor:{type:"string",default:"#1DA1F2"},tweetBtnHoverColor:{type:"string"},tweetBtnBgHoverColor:{type:"string",default:"#1DA1F2"},tweetBtnFontSize:{type:"number",default:15},tweetBtnFontSizeType:{type:"string",default:"px"},tweetBtnFontSizeTablet:{type:"number"},tweetBtnFontSizeMobile:{type:"number"},tweetBtnFontFamily:{type:"string",default:"Default"},tweetBtnFontWeight:{type:"string"},tweetBtnFontSubset:{type:"string"},tweetBtnLineHeightType:{type:"string",default:"em"},tweetBtnLineHeight:{type:"number"},tweetBtnLineHeightTablet:{type:"number"},tweetBtnLineHeightMobile:{type:"number"},tweetBtnLoadGoogleFonts:{type:"boolean",default:!1},tweetBtnHrPadding:{type:"number",default:10},tweetBtnVrPadding:{type:"number",default:10},tweetIconSpacing:{type:"number",default:10},borderColor:{type:"string",default:"#abb8c3"},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:4},borderGap:{type:"number",default:15},verticalPadding:{type:"number"},quoteStyle:{type:"string",default:"style_2"},quoteColor:{type:"string",default:"#abb8c3"},quoteSize:{type:"number",default:25},quoteSizeType:{type:"string",default:"px"},quoteSizeTablet:{type:"number"},quoteSizeMobile:{type:"number"},quotePadding:{type:"number",default:10},quotePaddingType:{type:"string",default:"px"},quotePaddingTablet:{type:"number"},quotePaddingMobile:{type:"number"},quoteBorderRadius:{type:"number",default:100},quoteBgColor:{type:"string",default:"#333"},quoteTopMargin:{type:"number"},quoteBottomMargin:{type:"number"},quoteLeftMargin:{type:"number"},quoteRightMargin:{type:"number",default:20},quoteHoverColor:{type:"string"},quoteBgHoverColor:{type:"string"},borderHoverColor:{type:"string"}};var ef=wp.element.Fragment,tf=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){return c()(this,i),l.apply(this,arguments)}return s()(i,[{key:"render",value:function(){var e=this.props.attributes;return Object(f.createElement)("a",{href:"javascript:void(0)",className:"uagb-blockquote__tweet-button",target:"_blank",rel:"noopener noreferrer"},"icon_text"===e.iconView&&Object(f.createElement)(ef,null,n.quote_tweet_icon,Object(f.createElement)("span",{className:"uagb-blockquote__tweet-label"},e.iconLabel)),"icon"===e.iconView&&Object(f.createElement)(ef,null,n.quote_tweet_icon),"text"===e.iconView&&Object(f.createElement)(ef,null,Object(f.createElement)("span",{className:"uagb-blockquote__tweet-label"},e.iconLabel)))}}]),i}(React.Component),af=(wp.blockEditor.RichText,[{attributes:Xp,save:function(e){var t=e.attributes,a=t.block_id,l=t.skinStyle,i=t.align,o=t.quoteStyle,c=t.iconSkin,r=t.authorImage,s=t.enableTweet,u=t.iconView,h=t.author,d=t.descriptionText,g=t.authorImgPosition,m=t.stack;return Object(f.createElement)("div",{className:_()(e.className,"uagb-blockquote__outer-wrap"),id:"uagb-blockquote-".concat(a)},Object(f.createElement)("div",{className:_()("uagb-blockquote__wrap","uagb-blockquote__skin-".concat(l),"border"!==l?"uagb-blockquote__align-".concat(i):"","quotation"===l?"uagb-blockquote__style-".concat(o):"",s?"uagb-blockquote__with-tweet uagb-blockquote__tweet-style-".concat(c," uagb-blockquote__tweet-").concat(u):"","uagb-blockquote__stack-img-".concat(m))},Object(f.createElement)("blockquote",{className:"uagb-blockquote"},"quotation"===l&&Object(f.createElement)("div",{className:"uagb-blockquote__icon-wrap"},Object(f.createElement)("span",{className:"uagb-blockquote__icon"},n.quote_inline_icon)),Object(f.createElement)("div",{className:"uagb-blockquote__content-wrap"},""!==d&&Object(f.createElement)(Cp,{attributes:e.attributes,setAttributes:"not_set",props:e}),Object(f.createElement)("footer",null,Object(f.createElement)("div",{className:_()("uagb-blockquote__author-wrap",""!==r?"uagb-blockquote__author-at-".concat(g):"")},Object(f.createElement)(Hp,{attributes:e.attributes}),""!==h&&Object(f.createElement)(Ep,{attributes:e.attributes,setAttributes:"not_set",props:e})),s&&Object(f.createElement)(tf,{attributes:e.attributes}))))))}},{attributes:Xp,save:function(e){var t=e.attributes,a=t.block_id,l=t.skinStyle,i=t.align,o=t.quoteStyle,c=t.iconSkin,r=t.authorImage,s=t.enableTweet,u=t.iconView,h=t.author,d=t.descriptionText,g=t.authorImgPosition,m=t.stack;return Object(f.createElement)("div",{className:_()(e.className,"uagb-blockquote__outer-wrap"),id:"uagb-blockquote-".concat(a)},Object(f.createElement)("div",{className:_()("uagb-blockquote__wrap","uagb-blockquote__skin-".concat(l),"border"!==l?"uagb-blockquote__align-".concat(i):"","quotation"===l?"uagb-blockquote__style-".concat(o):"",s?"uagb-blockquote__with-tweet uagb-blockquote__tweet-style-".concat(c," uagb-blockquote__tweet-").concat(u):"","uagb-blockquote__stack-img-".concat(m))},Object(f.createElement)("blockquote",{className:"uagb-blockquote"},"quotation"===l&&Object(f.createElement)("div",{className:"uagb-blockquote__icon-wrap"},Object(f.createElement)("span",{className:"uagb-blockquote__icon"},n.quote_inline_icon)),Object(f.createElement)("div",{className:"uagb-blockquote__content-wrap"},""!==d&&Object(f.createElement)(Cp,{attributes:e.attributes,setAttributes:"not_set",props:e}),Object(f.createElement)("footer",null,Object(f.createElement)("div",{className:_()("uagb-blockquote__author-wrap",""!==r?"uagb-blockquote__author-at-".concat(g):"")},Object(f.createElement)(Hp,{attributes:e.attributes}),""!==h&&Object(f.createElement)(Ep,{attributes:e.attributes,setAttributes:"not_set",props:e})),s&&Object(f.createElement)(zp,{attributes:e.attributes}))))))}}]);wp.blockEditor.RichText,wp.element.Fragment,a(390),a(391);var lf=wp.blocks,nf=lf.registerBlockType,of=lf.createBlock;nf("uagb/blockquote",{title:Object(M.__)("Blockquote","ultimate-addons-for-gutenberg"),description:Object(M.__)("This block allows you to display your Blockquote.","ultimate-addons-for-gutenberg"),icon:n.blockquote,keywords:[Object(M.__)("blockquote","ultimate-addons-for-gutenberg"),Object(M.__)("quote","ultimate-addons-for-gutenberg"),Object(M.__)("uagb","ultimate-addons-for-gutenberg")],supports:{anchor:!0},category:uagb_blocks_info.category,attributes:Xp,edit:Qp,save:function(e){var t=e.attributes,a=t.block_id,l=t.skinStyle,i=t.align,o=t.quoteStyle,c=t.iconSkin,r=t.authorImage,s=t.enableTweet,u=t.iconView,h=t.author,d=t.descriptionText,g=t.authorImgPosition,m=t.stack;return Object(f.createElement)("div",{className:_()(e.className,"uagb-blockquote__outer-wrap","uagb-block-".concat(a))},Object(f.createElement)("div",{className:_()("uagb-blockquote__wrap","uagb-blockquote__skin-".concat(l),"border"!==l?"uagb-blockquote__align-".concat(i):"","quotation"===l?"uagb-blockquote__style-".concat(o):"",s?"uagb-blockquote__with-tweet uagb-blockquote__tweet-style-".concat(c," uagb-blockquote__tweet-").concat(u):"","uagb-blockquote__stack-img-".concat(m))},Object(f.createElement)("blockquote",{className:"uagb-blockquote"},"quotation"===l&&Object(f.createElement)("div",{className:"uagb-blockquote__icon-wrap"},Object(f.createElement)("span",{className:"uagb-blockquote__icon"},n.quote_inline_icon)),Object(f.createElement)("div",{className:"uagb-blockquote__content-wrap"},""!==d&&Object(f.createElement)(Cp,{attributes:e.attributes,setAttributes:"not_set",props:e}),Object(f.createElement)("footer",null,Object(f.createElement)("div",{className:_()("uagb-blockquote__author-wrap",""!==r?"uagb-blockquote__author-at-".concat(g):"")},Object(f.createElement)(Hp,{attributes:e.attributes}),""!==h&&Object(f.createElement)(Ep,{attributes:e.attributes,setAttributes:"not_set",props:e})),s&&Object(f.createElement)(zp,{attributes:e.attributes}))))))},example:{},deprecated:af,transforms:{from:[{type:"block",blocks:["core/quote"],transform:function(e){return of("uagb/blockquote",{descriptionText:e.value,author:e.citation,align:e.align})}},{type:"block",blocks:["core/heading"],transform:function(e){return of("uagb/blockquote",{descriptionText:e.content,align:e.align})}}],to:[{type:"block",blocks:["core/quote"],transform:function(e){return of("core/quote",{value:"<p>".concat(e.descriptionText,"</p>"),citation:e.author,align:e.align})}},{type:"block",blocks:["core/heading"],transform:function(e){return of("core/heading",{content:e.descriptionText,align:e.align})}}]}});var cf={block_id:{type:"string"},classMigrate:{type:"boolean",default:!1},align:{type:"string",default:"center"},textAlign:{type:"string",default:"center"},link:{type:"string",default:"#"},linkTarget:{type:"boolean",default:!1},titleSpace:{type:"number",default:0},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string",default:"#333"},borderHoverColor:{type:"string"},vPadding:{type:"number",default:8},hPadding:{type:"number",default:20},vPaddingTablet:{type:"number"},hPaddingTablet:{type:"number"},vPaddingMobile:{type:"number"},hPaddingMobile:{type:"number"},paddingType:{type:"string",default:"px"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string",default:"#eeeeee"},backgroundHoverColor:{type:"string"},gradientColor1:{type:"string"},gradientColor2:{type:"string"},gradientType:{type:"string",default:"linear"},gradientLocation1:{type:"number",default:0},gradientLocation2:{type:"number",default:100},gradientAngle:{type:"number",default:0},backgroundOpacity:{type:"number"},backgroundHoverOpacity:{type:"number"},titleColor:{type:"string",default:"#333"},titleHoverColor:{type:"string"},iconColor:{type:"string",default:"#333"},iconHoverColor:{type:"string"},prefixColor:{type:"string",default:"#333"},prefixHoverColor:{type:"string"},heading:{source:"html",selector:"h1,h2,h3,h4,h5,h6,p,span",default:"Subscribe Now"},prefix:{source:"html",selector:"p",default:"Get access to Premium Features for FREE for a year!"},icon:{type:"string",default:"external-link-alt"},iconPosition:{type:"string",default:"before"},iconSpace:{type:"number",default:10},titleLoadGoogleFonts:{type:"boolean",default:!1},titleFontFamily:{type:"string",default:"Default"},titleFontWeight:{type:"string"},titleFontSubset:{type:"string"},titleFontSize:{type:"number",default:20},titleFontSizeType:{type:"string",default:"px"},titleFontSizeTablet:{type:"number",default:20},titleFontSizeMobile:{type:"number",default:20},titleLineHeightType:{type:"string",default:"em"},titleLineHeight:{type:"number"},titleLineHeightTablet:{type:"number"},titleLineHeightMobile:{type:"number"},titleTag:{type:"string",default:"h6"},prefixLoadGoogleFonts:{type:"boolean",default:!1},prefixFontFamily:{type:"string",default:"Default"},prefixFontWeight:{type:"string"},prefixFontSubset:{type:"string"},prefixFontSize:{type:"number",default:14},prefixFontSizeType:{type:"string",default:"px"},prefixFontSizeTablet:{type:"number",default:14},prefixFontSizeMobile:{type:"number",default:14},prefixLineHeightType:{type:"string",default:"em"},prefixLineHeight:{type:"number"},prefixLineHeightTablet:{type:"number"},prefixLineHeightMobile:{type:"number"},iconFontSize:{type:"number",default:20},iconFontSizeType:{type:"string",default:"px"},iconFontSizeTablet:{type:"number",default:20},iconFontSizeMobile:{type:"number",default:20}};var rf=Object.keys(Ho),sf=wp.element,uf=sf.Component,hf=sf.Fragment,df=wp.blockEditor,gf=df.BlockControls,mf=df.BlockAlignmentToolbar,bf=df.InspectorControls,vf=df.RichText,pf=df.PanelColorSettings,ff=df.ColorPalette,wf=df.__experimentalLinkControl,_f=wp.components,yf=_f.PanelBody,zf=_f.SelectControl,xf=_f.RangeControl,Of=_f.TabPanel,Cf=_f.ButtonGroup,jf=_f.Button,Mf=(_f.Dashicon,_f.ToggleControl,_f.TextControl,_f.Popover),Ef=_f.ToolbarButton,Hf=_f.ToolbarGroup,kf=wp.data.withSelect,Sf=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onClickLinkSettings=e.onClickLinkSettings.bind(h()(e)),e.onChangeOpensInNewTab=e.onChangeOpensInNewTab.bind(h()(e)),e.state={isURLPickerOpen:!1},e}return s()(i,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)}),this.props.setAttributes({classMigrate:!0});var e=document.createElement("style");e.setAttribute("id","uagb-style-marketing-btn-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e){var t=document.getElementById("uagb-style-marketing-btn-"+this.props.clientId.substr(0,8));null!=t&&(t.innerHTML=function(e){var t,a,l=e.attributes,n=l.titleSpace,i=l.iconPosition,o=l.iconSpace,c=l.iconFontSize,r=l.iconFontSizeType,s=l.iconFontSizeMobile,u=l.iconFontSizeTablet,h=l.titleColor,d=l.titleHoverColor,g=l.prefixColor,m=l.prefixHoverColor,b=l.iconColor,v=l.iconHoverColor,p=l.borderStyle,f=l.borderWidth,w=l.borderRadius,_=l.borderColor,x=l.borderHoverColor,O=l.vPadding,C=l.hPadding,j=l.hPaddingMobile,M=l.vPaddingMobile,E=l.hPaddingTablet,H=l.vPaddingTablet,k=l.paddingType,S=l.backgroundType,L=l.backgroundColor,B=l.backgroundHoverColor,V=l.gradientColor1,T=l.gradientColor2,N=l.gradientLocation1,A=l.gradientLocation2,F=l.gradientType,P=l.gradientAngle,R=l.backgroundOpacity,I=l.backgroundHoverOpacity,D=l.titleFontFamily,q=l.titleFontWeight,W=l.titleFontSize,G=l.titleFontSizeType,Z=l.titleFontSizeTablet,U=l.titleFontSizeMobile,Y=l.titleLineHeightType,K=l.titleLineHeight,J=l.titleLineHeightTablet,$=l.titleLineHeightMobile,Q=l.prefixFontFamily,X=l.prefixFontWeight,ee=l.prefixFontSize,te=l.prefixFontSizeType,ae=l.prefixFontSizeTablet,le=l.prefixFontSizeMobile,ne=l.prefixLineHeightType,ie=l.prefixLineHeight,oe=l.prefixLineHeightTablet,ce=l.prefixLineHeightMobile,re={},se=""==b?h:b,ue=""==v?d:v;re={" .uagb-marketing-btn__title-wrap":{"margin-bottom":z(n,"px")}," .block-editor-rich-text__editable.uagb-marketing-btn__title":{"font-size":z(W,G),"line-height":z(K,Y),"font-family":D,"font-weight":q,color:h}," .uagb-marketing-btn__icon-wrap svg":{fill:se}," .uagb-marketing-btn__icon-wrap":{width:z(c,r),height:z(c,r)}," .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{"font-size":z(ee,te),"line-height":z(ie,ne),"font-family":Q,"font-weight":X,color:g}," .uagb-marketing-btn__link:hover .block-editor-rich-text__editable.uagb-marketing-btn__title":{color:d}," .uagb-marketing-btn__link:hover .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{color:m}," .uagb-marketing-btn__link:hover .uagb-marketing-btn__icon-wrap svg":{fill:ue}," .uagb-marketing-btn__link":{"padding-left":z(C,k),"padding-right":z(C,k),"padding-top":z(O,k),"padding-bottom":z(O,k),"border-style":p,"border-width":z(f,"px"),"border-color":_,"border-radius":z(w,"px")}," .uagb-marketing-btn__link:hover":{"border-color":x}},"transparent"==S?re[" .uagb-marketing-btn__link"].background="transparent":"color"==S?(re[" .uagb-marketing-btn__link"].background=Ci(L,R),re[" .uagb-marketing-btn__link:hover"].background=Ci(B,I)):"gradient"==S&&(re[" .uagb-marketing-btn__link"]["background-color"]="transparent",re[" .uagb-marketing-btn__link"]["background-image"]="linear"===F?"linear-gradient(".concat(P,"deg, ").concat(Ci(V,R)," ").concat(N,"%, ").concat(Ci(T,R)," ").concat(A,"%)"):"radial-gradient( at center center, ".concat(Ci(V,R)," ").concat(N,"%, ").concat(Ci(T,R)," ").concat(A,"%)"));var he="after"==i?"margin-left":"margin-right";re[" .uagb-marketing-btn__icon-wrap"][he]=z(o,"px"),t={" .block-editor-rich-text__editable.uagb-marketing-btn__title":{"font-size":z(Z,G),"line-height":z(J,Y)}," .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{"font-size":z(ae,te),"line-height":z(oe,ne)}," .uagb-marketing-btn__icon-wrap":{width:z(u,r),height:z(u,r)}," .uagb-marketing-btn__link":{"padding-left":z(E,k),"padding-right":z(E,k),"padding-top":z(H,k),"padding-bottom":z(H,k)}},a={" .block-editor-rich-text__editable.uagb-marketing-btn__title":{"font-size":z(U,G),"line-height":z($,Y)}," .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{"font-size":z(le,te),"line-height":z(ce,ne)}," .uagb-marketing-btn__icon-wrap":{width:z(s,r),height:z(s,r)}," .uagb-marketing-btn__link":{"padding-left":z(j,k),"padding-right":z(j,k),"padding-top":z(M,k),"padding-bottom":z(M,k)}};var de=".uagb-block-".concat(e.clientId.substr(0,8)),ge=y(re,de);return(ge+=y(t,"".concat(de,".uagb-editor-preview-mode-tablet")))+y(a,"".concat(de,".uagb-editor-preview-mode-mobile"))}(this.props))}},{key:"onClickLinkSettings",value:function(){this.setState({isURLPickerOpen:!0})}},{key:"onChangeOpensInNewTab",value:function(e){this.props.setAttributes({linkTarget:e})}},{key:"render",value:function(){var e,t,a=this,l=this.props,i=l.attributes,o=l.setAttributes,c=(l.isSelected,l.className),r=l.deviceType,s=i.align,u=i.textAlign,h=i.heading,d=i.prefix,g=i.link,m=i.linkTarget,b=i.titleSpace,v=i.icon,p=i.iconPosition,w=i.iconSpace,y=i.iconFontSize,z=(i.iconFontSizeType,i.iconFontSizeMobile),x=i.iconFontSizeTablet,O=i.titleColor,C=i.titleHoverColor,j=i.prefixColor,E=i.prefixHoverColor,H=i.iconColor,k=i.iconHoverColor,S=i.borderStyle,L=i.borderWidth,B=i.borderRadius,V=i.borderColor,T=i.borderHoverColor,N=i.vPadding,A=i.hPadding,F=i.hPaddingMobile,P=i.vPaddingMobile,R=i.hPaddingTablet,I=i.vPaddingTablet,D=i.paddingType,q=i.backgroundType,W=i.backgroundColor,G=i.backgroundHoverColor,Z=i.gradientColor1,U=i.gradientColor2,Y=i.gradientLocation1,K=i.gradientLocation2,J=i.gradientType,$=i.gradientAngle,Q=i.backgroundOpacity,X=i.backgroundHoverOpacity,ee=i.titleFontFamily,te=i.titleFontWeight,ae=i.titleFontSubset,le=i.titleFontSize,ne=i.titleFontSizeType,ie=i.titleFontSizeTablet,oe=i.titleFontSizeMobile,ce=i.titleLineHeightType,re=i.titleLineHeight,se=i.titleLineHeightTablet,ue=i.titleLineHeightMobile,he=i.titleTag,de=(i.prefixLoadGoogleFonts,i.prefixFontFamily),ge=i.prefixFontWeight,me=i.prefixFontSubset,be=i.prefixFontSize,ve=i.prefixFontSizeType,pe=i.prefixFontSizeTablet,fe=i.prefixFontSizeMobile,we=i.prefixLineHeightType,_e=i.prefixLineHeight,ye=i.prefixLineHeightTablet,ze=i.prefixLineHeightMobile;if(1==e){var xe={google:{families:[ee+(te?":"+te:"")]}};e=Object(f.createElement)(ha,{config:xe})}if(1==t){var Oe={google:{families:[de+(ge?":"+ge:"")]}};t=Object(f.createElement)(ha,{config:Oe})}var Ce=this.state.isURLPickerOpen&&Object(f.createElement)(Mf,{position:"bottom center",onClose:function(){return a.setState({isURLPickerOpen:!1})}},Object(f.createElement)(wf,{value:{url:g,opensInNewTab:m},onChange:function(e){var t=e.url,l=void 0===t?"":t,n=e.opensInNewTab;o({link:l}),o({linkTarget:n}),a.onChangeOpensInNewTab(n)}}));return Object(f.createElement)(hf,null,Object(f.createElement)(gf,null,Object(f.createElement)(mf,{value:s,onChange:function(e){o({align:e})},controls:["left","center","right","full"]})),Object(f.createElement)(gf,null,Object(f.createElement)(Hf,null,Object(f.createElement)(Ef,{icon:"admin-links",name:"link",title:Object(M.__)("Link","ultimate-addons-for-gutenberg"),onClick:this.onClickLinkSettings}))),Ce,Object(f.createElement)(bf,null,Object(f.createElement)(yf,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},Object(f.createElement)(zf,{label:Object(M.__)("Text Alignment","ultimate-addons-for-gutenberg"),value:u,onChange:function(e){return o({textAlign:e})},options:[{value:"center",label:Object(M.__)("Center","ultimate-addons-for-gutenberg")},{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Button Icon")),Object(f.createElement)(So.a,{icons:rf,renderFunc:Lo,value:v,onChange:function(e){return o({icon:e})},isMulti:!1,noSelectedPlaceholder:Object(M.__)("Select Icon","ultimate-addons-for-gutenberg")}),""!=v&&Object(f.createElement)(hf,null,Object(f.createElement)(zf,{label:Object(M.__)("Icon Position","ultimate-addons-for-gutenberg"),value:p,onChange:function(e){return o({iconPosition:e})},options:[{value:"before",label:Object(M.__)("Before Text","ultimate-addons-for-gutenberg")},{value:"after",label:Object(M.__)("After Text","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(xf,{label:Object(M.__)("Icon Spacing","ultimate-addons-for-gutenberg"),value:w,onChange:function(e){return o({iconSpace:e})},min:0,max:50,beforeIcon:"",allowReset:!0}),Object(f.createElement)(Ga,null),"Desktop"===r&&Object(f.createElement)(hf,null,Object(f.createElement)(xf,{label:Object(M.__)("Icon Size","ultimate-addons-for-gutenberg"),value:y,onChange:function(e){return o({iconFontSize:e})},min:0,max:500,allowReset:!0})),"Tablet"===r&&Object(f.createElement)(hf,null,Object(f.createElement)(xf,{label:Object(M.__)("Icon Size","ultimate-addons-for-gutenberg"),value:x,onChange:function(e){return o({iconFontSizeTablet:e})},min:0,max:500,allowReset:!0})),"Mobile"===r&&Object(f.createElement)(hf,null,Object(f.createElement)(xf,{label:Object(M.__)("Icon Size","ultimate-addons-for-gutenberg"),value:z,onChange:function(e){return o({iconFontSizeMobile:e})},min:0,max:500,allowReset:!0}))),Object(f.createElement)(xf,{label:Object(M.__)("Title Bottom Spacing","ultimate-addons-for-gutenberg"),value:b,onChange:function(e){return o({titleSpace:e})},min:0,max:20,beforeIcon:"",allowReset:!0})),Object(f.createElement)(yf,{title:Object(M.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(zf,{label:Object(M.__)("Title Tag","ultimate-addons-for-gutenberg"),value:he,onChange:function(e){return o({titleTag:e})},options:[{value:"h1",label:Object(M.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(M.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(M.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(M.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(M.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(M.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(M.__)("span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(M.__)("p","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Title","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:e,label:"loadTitleGoogleFonts"},fontFamily:{value:ee,label:"titleFontFamily"},fontWeight:{value:te,label:"titleFontWeight"},fontSubset:{value:ae,label:"titleFontSubset"},fontSizeType:{value:ne,label:"titleFontSizeType"},fontSize:{value:le,label:"titleFontSize"},fontSizeMobile:{value:oe,label:"titleFontSizeMobile"},fontSizeTablet:{value:ie,label:"titleFontSizeTablet"},lineHeightType:{value:ce,label:"titleLineHeightType"},lineHeight:{value:re,label:"titleLineHeight"},lineHeightMobile:{value:ue,label:"titleLineHeightMobile"},lineHeightTablet:{value:se,label:"titleLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Description","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:t,label:"loadPrefixGoogleFonts"},fontFamily:{value:de,label:"prefixFontFamily"},fontWeight:{value:ge,label:"prefixFontWeight"},fontSubset:{value:me,label:"prefixFontSubset"},fontSizeType:{value:ve,label:"prefixFontSizeType"},fontSize:{value:be,label:"prefixFontSize"},fontSizeMobile:{value:fe,label:"prefixFontSizeMobile"},fontSizeTablet:{value:pe,label:"prefixFontSizeTablet"},lineHeightType:{value:we,label:"prefixLineHeightType"},lineHeight:{value:_e,label:"prefixLineHeight"},lineHeightMobile:{value:ze,label:"prefixLineHeightMobile"},lineHeightTablet:{value:ye,label:"prefixLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Colors")),Object(f.createElement)(Of,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:Object(M.__)("Normal","ultimate-addons-for-gutenberg"),className:"uagb-normal-tab"},{name:"hover",title:Object(M.__)("Hover","ultimate-addons-for-gutenberg"),className:"uagb-focus-tab"}]},(function(e){var t;return t="normal"===e.name?Object(f.createElement)(hf,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Title Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:O}}))),Object(f.createElement)(ff,{value:O,onChange:function(e){return o({titleColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Icon Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:H}}))),Object(f.createElement)(ff,{value:H,onChange:function(e){return o({iconColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Description Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:j}}))),Object(f.createElement)(ff,{value:j,onChange:function(e){return o({prefixColor:e})},allowReset:!0})):Object(f.createElement)(hf,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Title Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:C}}))),Object(f.createElement)(ff,{value:C,onChange:function(e){return o({titleHoverColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Icon Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:k}}))),Object(f.createElement)(ff,{value:k,onChange:function(e){return o({iconHoverColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Description Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:E}}))),Object(f.createElement)(ff,{value:E,onChange:function(e){return o({prefixHoverColor:e})},allowReset:!0})),Object(f.createElement)("div",null,t)}))),Object(f.createElement)(yf,{title:Object(M.__)("Background"),initialOpen:!1},Object(f.createElement)(Ga,null),"Desktop"===r&&Object(f.createElement)(hf,null,Object(f.createElement)(Cf,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===D,"aria-pressed":"px"===D,onClick:function(){return o({paddingType:"px"})}},"px"),Object(f.createElement)(jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===D,"aria-pressed":"%"===D,onClick:function(){return o({paddingType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Button Padding")),Object(f.createElement)(xf,{label:n.vertical_spacing,className:"uagb-margin-control",value:N,onChange:function(e){return o({vPadding:e})},min:0,max:"%"==D?100:2e3}),Object(f.createElement)(xf,{label:n.horizontal_spacing,className:"uagb-margin-control",value:A,onChange:function(e){return o({hPadding:e})},min:0,max:"%"==D?100:2e3})),"Tablet"===r&&Object(f.createElement)(hf,null,Object(f.createElement)(Cf,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===D,"aria-pressed":"px"===D,onClick:function(){return o({paddingType:"px"})}},"px"),Object(f.createElement)(jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===D,"aria-pressed":"%"===D,onClick:function(){return o({paddingType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Button Padding")),Object(f.createElement)(xf,{label:n.vertical_spacing,className:"uagb-margin-control",value:I,onChange:function(e){return o({vPaddingTablet:e})},min:0,max:"%"==D?100:2e3}),Object(f.createElement)(xf,{label:n.horizontal_spacing,className:"uagb-margin-control",value:R,onChange:function(e){return o({hPaddingTablet:e})},min:0,max:"%"==D?100:2e3})),"Mobile"===r&&Object(f.createElement)(hf,null,Object(f.createElement)(Cf,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===D,"aria-pressed":"px"===D,onClick:function(){return o({paddingType:"px"})}},"px"),Object(f.createElement)(jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===D,"aria-pressed":"%"===D,onClick:function(){return o({paddingType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Button Padding")),Object(f.createElement)(xf,{label:n.vertical_spacing,className:"uagb-margin-control",value:P,onChange:function(e){return o({vPaddingMobile:e})},min:0,max:"%"==D?100:2e3}),Object(f.createElement)(xf,{label:n.horizontal_spacing,className:"uagb-margin-control",value:F,onChange:function(e){return o({hPaddingMobile:e})},min:0,max:"%"==D?100:2e3})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Button Background","ultimate-addons-for-gutenberg")),Object(f.createElement)(zf,{label:Object(M.__)("Background Type","ultimate-addons-for-gutenberg"),value:q,onChange:function(e){return o({backgroundType:e})},options:[{value:"transparent",label:Object(M.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(M.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(M.__)("Gradient","ultimate-addons-for-gutenberg")}]}),"color"==q&&Object(f.createElement)(hf,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:W}}))),Object(f.createElement)(ff,{value:W,onChange:function(e){return o({backgroundColor:e})},allowReset:!0})),"gradient"==q&&Object(f.createElement)(hf,null,Object(f.createElement)(pf,{title:Object(M.__)("Color Settings","ultimate-addons-for-gutenberg"),colorSettings:[{value:U,onChange:function(e){return o({gradientColor2:e})},label:Object(M.__)("Color 1","ultimate-addons-for-gutenberg")},{value:Z,onChange:function(e){return o({gradientColor1:e})},label:Object(M.__)("Color 2","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(zf,{label:Object(M.__)("Type","ultimate-addons-for-gutenberg"),value:J,onChange:function(e){return o({gradientType:e})},options:[{value:"linear",label:Object(M.__)("Linear","ultimate-addons-for-gutenberg")},{value:"radial",label:Object(M.__)("Radial","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(xf,{label:Object(M.__)("Location 1","ultimate-addons-for-gutenberg"),value:Y,onChange:function(e){return o({gradientLocation1:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(xf,{label:Object(M.__)("Location 2","ultimate-addons-for-gutenberg"),value:K,onChange:function(e){return o({gradientLocation2:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(xf,{label:Object(M.__)("Angle","ultimate-addons-for-gutenberg"),value:$,onChange:function(e){return o({gradientAngle:e})},min:0,max:360,allowReset:!0})),"transparent"!=q&&Object(f.createElement)(xf,{label:Object(M.__)("Opacity","ultimate-addons-for-gutenberg"),value:Q,onChange:function(e){return o({backgroundOpacity:e})},min:0,max:100,allowReset:!0,initialPosition:0}),"color"==q&&Object(f.createElement)(hf,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:G}}))),Object(f.createElement)(ff,{value:G,onChange:function(e){return o({backgroundHoverColor:e})},allowReset:!0}),Object(f.createElement)(xf,{label:Object(M.__)("Opacity","ultimate-addons-for-gutenberg"),value:X,onChange:function(e){return o({backgroundHoverOpacity:e})},min:0,max:100,allowReset:!0,initialPosition:0}))),Object(f.createElement)(yf,{title:Object(M.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(zf,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:S,onChange:function(e){return o({borderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=S&&Object(f.createElement)(xf,{label:Object(M.__)("Border Width","ultimate-addons-for-gutenberg"),value:L,onChange:function(e){return o({borderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(xf,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:B,onChange:function(e){return o({borderRadius:e})},min:0,max:1e3,allowReset:!0}),"none"!=S&&Object(f.createElement)(hf,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:V}}))),Object(f.createElement)(ff,{value:V,onChange:function(e){return o({borderColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:T}}))),Object(f.createElement)(ff,{value:T,onChange:function(e){return o({borderHoverColor:e})},allowReset:!0})))),Object(f.createElement)("div",{className:_()(c,"uagb-marketing-btn__outer-wrap","uagb-marketing-btn__align-".concat(s),"uagb-marketing-btn__align-text-".concat(u),"uagb-marketing-btn__icon-".concat(p),"uagb-editor-preview-mode-".concat(r.toLowerCase()),"uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:"uagb-marketing-btn__wrap"},Object(f.createElement)("a",{className:"uagb-marketing-btn__link"},Object(f.createElement)("div",{className:"uagb-marketing-btn__title-wrap"},""!=v&&Object(f.createElement)("div",{className:"uagb-marketing-btn__icon-wrap"},Lo(v)),Object(f.createElement)(vf,{placeholder:Object(M.__)("Add Button Title…","ultimate-addons-for-gutenberg"),value:h,tagName:he,onChange:function(e){return o({heading:e})},allowedFormats:["bold","italic","strikethrough"],className:"uagb-marketing-btn__title",onRemove:function(){return a.props.onReplace([])},multiline:!1,onMerge:this.props.mergeBlocks,onSplit:this.props.insertBlocksAfter?function(e,t){o({content:e});for(var l=arguments.length,n=new Array(l>2?l-2:0),i=2;i<l;i++)n[i-2]=arguments[i];a.props.insertBlocksAfter([].concat(n,[createBlock("core/paragraph",{content:t})]))}:void 0})),Object(f.createElement)("div",{className:"uagb-marketing-btn__prefix-wrap"},Object(f.createElement)(vf,{placeholder:Object(M.__)("Add Button Description…","ultimate-addons-for-gutenberg"),value:d,tagName:"p",onChange:function(e){return o({prefix:e})},allowedFormats:["bold","italic","strikethrough"],className:"uagb-marketing-btn__prefix",onRemove:function(){return a.props.onReplace([])},multiline:!1,onMerge:this.props.mergeBlocks,onSplit:this.props.insertBlocksAfter?function(e,t){o({content:e});for(var l=arguments.length,n=new Array(l>2?l-2:0),i=2;i<l;i++)n[i-2]=arguments[i];a.props.insertBlocksAfter([].concat(n,[createBlock("core/paragraph",{content:t})]))}:void 0}))))),e,t)}}]),i}(uf),Lf=kf((function(e,t){var a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=void 0===a?null:a;return{deviceType:l?l():null}}))(Sf),Bf=wp.blockEditor.RichText,Vf=wp.blockEditor.RichText,Tf=[{attributes:cf,save:function(e){e.attributes;var t=e.className,a=e.attributes,l=a.block_id,n=a.align,i=a.textAlign,o=a.iconPosition,c=a.icon,r=a.heading,s=a.prefix,u=a.link,h=a.linkTarget?"_blank":"";return Object(f.createElement)("div",{className:_()(t,"uagb-marketing-btn__outer-wrap","uagb-marketing-btn__align-".concat(n),"uagb-marketing-btn__align-text-".concat(i),"uagb-marketing-btn__icon-".concat(o)),id:"uagb-marketing-btn-".concat(l)},Object(f.createElement)("div",{className:"uagb-marketing-btn__wrap"},Object(f.createElement)("a",{href:u,className:"uagb-marketing-btn__link",target:h,rel:"noopener noreferrer"},Object(f.createElement)("div",{className:"uagb-marketing-btn__title-wrap"},""!=c&&Object(f.createElement)("div",{className:"uagb-marketing-btn__icon-wrap"},Lo(c)),Object(f.createElement)(Vf.Content,{value:r,tagName:"h6",className:"uagb-marketing-btn__title"})),Object(f.createElement)("div",{className:"uagb-marketing-btn__prefix-wrap"},Object(f.createElement)(Vf.Content,{value:s,tagName:"p",className:"uagb-marketing-btn__prefix"})))))}}];a(392),a(393),(0,wp.blocks.registerBlockType)("uagb/marketing-button",{title:uagb_blocks_info.blocks["uagb/marketing-button"].title,description:uagb_blocks_info.blocks["uagb/marketing-button"].description,icon:n.marketing_button,category:uagb_blocks_info.category,keywords:[Object(M.__)("marketing button","ultimate-addons-for-gutenberg"),Object(M.__)("cta","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:cf,edit:Lf,save:function(e){e.attributes;var t=e.className,a=e.attributes,l=a.block_id,n=a.align,i=a.textAlign,o=a.iconPosition,c=a.icon,r=a.heading,s=a.prefix,u=a.link,h=a.linkTarget,d=a.titleTag,g=h?"_blank":"";return Object(f.createElement)("div",{className:_()(t,"uagb-marketing-btn__outer-wrap","uagb-marketing-btn__align-".concat(n),"uagb-marketing-btn__align-text-".concat(i),"uagb-marketing-btn__icon-".concat(o),"uagb-block-".concat(l))},Object(f.createElement)("div",{className:"uagb-marketing-btn__wrap"},Object(f.createElement)("a",{href:u,className:"uagb-marketing-btn__link",target:g,rel:"noopener noreferrer"},Object(f.createElement)("div",{className:"uagb-marketing-btn__title-wrap"},""!=c&&Object(f.createElement)("div",{className:"uagb-marketing-btn__icon-wrap"},Lo(c)),Object(f.createElement)(Bf.Content,{value:r,tagName:d,className:"uagb-marketing-btn__title"})),Object(f.createElement)("div",{className:"uagb-marketing-btn__prefix-wrap"},Object(f.createElement)(Bf.Content,{value:s,tagName:"p",className:"uagb-marketing-btn__prefix"})))))},example:{},deprecated:Tf});var Nf={block_id:{type:"string",default:"not_set"},classMigrate:{type:"boolean",default:!1},disableBullets:{type:"boolean",default:!1},makeCollapsible:{type:"boolean",default:!1},initialCollapse:{type:"boolean",default:!1},icon:{type:"string",default:"fa-angle-down"},iconSize:{type:"number"},iconColor:{type:"string"},bulletColor:{type:"string"},smoothScroll:{type:"boolean",default:!0},smoothScrollDelay:{type:"number",default:800},smoothScrollOffset:{type:"number",default:30},scrollToTop:{type:"boolean",default:!1},scrollToTopColor:{type:"string"},scrollToTopBgColor:{type:"string"},mappingHeaders:{type:"array",default:Array(6).fill(!0)},align:{type:"string",default:"left"},headerLinks:{type:"html",default:""},heading:{source:"html",selector:".uagb-toc__title",default:Object(M.__)("Table Of Contents","ultimate-addons-for-gutenberg")},headingTitle:{type:"string",default:Object(M.__)("Table Of Contents","ultimate-addons-for-gutenberg")},customWidth:{type:"boolean",default:!1},widthTypeDesktop:{type:"string",default:"%"},widthTypeTablet:{type:"string",default:"%"},widthTypeMobile:{type:"string",default:"%"},widthDesktop:{type:"number",default:100},widthTablet:{type:"number"},widthMobile:{type:"number"},tColumnsDesktop:{type:"number",default:1},tColumnsTablet:{type:"number",default:1},tColumnsMobile:{type:"number",default:1},backgroundColor:{type:"string",default:"#eee"},linkColor:{type:"string",default:"#333"},linkHoverColor:{type:"string"},headingColor:{type:"string"},vPaddingDesktop:{type:"number",default:30},hPaddingDesktop:{type:"number",default:30},vPaddingTablet:{type:"number"},hPaddingTablet:{type:"number"},vPaddingMobile:{type:"number"},hPaddingMobile:{type:"number"},vMarginDesktop:{type:"number"},hMarginDesktop:{type:"number"},vMarginTablet:{type:"number"},hMarginTablet:{type:"number"},vMarginMobile:{type:"number"},hMarginMobile:{type:"number"},marginTypeDesktop:{type:"string",default:"px"},marginTypeTablet:{type:"string",default:"px"},marginTypeMobile:{type:"string",default:"px"},headingBottom:{type:"number"},paddingTypeDesktop:{type:"string",default:"px"},paddingTypeTablet:{type:"string",default:"px"},paddingTypeMobile:{type:"string",default:"px"},contentPaddingDesktop:{type:"number"},contentPaddingTablet:{type:"number"},contentPaddingMobile:{type:"number"},contentPaddingTypeDesktop:{type:"string",default:"px"},contentPaddingTypeTablet:{type:"string",default:"px"},contentPaddingTypeMobile:{type:"string",default:"px"},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string",default:"#333"},loadGoogleFonts:{type:"boolean",default:!1},fontFamily:{type:"string",default:"Default"},fontWeight:{type:"string"},fontSubset:{type:"string"},fontSize:{type:"number"},fontSizeType:{type:"string",default:"px"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},lineHeightType:{type:"string",default:"em"},lineHeight:{type:"number"},lineHeightTablet:{type:"number"},lineHeightMobile:{type:"number"},headingLoadGoogleFonts:{type:"boolean",default:!1},headingFontFamily:{type:"string",default:"Default"},headingFontWeight:{type:"string",default:"500"},headingFontSubset:{type:"string"},headingFontSize:{type:"number",default:20},headingFontSizeType:{type:"string",default:"px"},headingFontSizeTablet:{type:"number"},headingFontSizeMobile:{type:"number"},headingLineHeightType:{type:"string",default:"em"},headingLineHeight:{type:"number"},headingLineHeightTablet:{type:"number"},headingLineHeightMobile:{type:"number"},headingAlignment:{type:"string",default:"left"},emptyHeadingTeaxt:{type:"string",default:Object(M.__)("Add a header to begin generating the table of contents","ultimate-addons-for-gutenberg")}};var Af=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e,t=this.props,a=t.mappingHeaders,l=t.headers;return"undefined"!=a&&l&&l.length>0&&l.filter((function(e){return a[e.tag-1]})).length>0?Object(f.createElement)("div",{className:"uagb-toc__list-wrap"},function(e){var t="",a="",l="",n="",i="</li></ul>",o=0,c={1:0,2:0,3:0,4:0,5:0,6:0};return e.forEach((function(e,r){var s=e.tag,u=e.content;if(0===r&&(l=s),!(s<l)){if((""===a||s<a)&&(a=s),""!==t)if(s>t)n+='<ul class="uagb-toc__list">',o++,c[s]=o;else if(s===t&&s!==a)n+='<li class="uagb-toc__list">',c[s]=o;else if(s<t){var h=Math.abs(o-c[s]);s>a?(n+=i.repeat(h),o=Math.abs(o-h)):s===a&&(n+=i.repeat(h),n+="</li>")}n+='<li class="uagb-toc__list"><a href="#">'+u+"</a>",t=s}})),n+=i.repeat(t),Object(f.createElement)("ol",{className:"uagb-toc__list",dangerouslySetInnerHTML:{__html:n}})}((e=[],l.forEach((function(t,l){a[t.tag-1]&&e.push(t)})),e))):Object(f.createElement)("p",{className:"uagb_table-of-contents-placeholder"},Object(M.__)("Add a header to begin generating the table of contents"))}}]),n}(React.Component);a(143);var Ff=wp.data.withSelect,Pf=wp.compose.compose,Rf=wp.element,If=Rf.Component,Df=Rf.Fragment,qf=wp.blockEditor,Wf=qf.BlockControls,Gf=qf.BlockAlignmentToolbar,Zf=qf.InspectorControls,Uf=qf.RichText,Yf=qf.ColorPalette,Kf=wp.components,Jf=Kf.Button,$f=Kf.ButtonGroup,Qf=Kf.PanelBody,Xf=Kf.PanelRow,ew=Kf.SelectControl,tw=Kf.RangeControl,aw=Kf.ToggleControl,lw=(Kf.Dashicon,Kf.TabPanel,Object.keys(Ho)),nw=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).getIcon=e.getIcon.bind(h()(e)),e}return s()(i,[{key:"getIcon",value:function(e){this.props.setAttributes({icon:e})}},{key:"componentDidUpdate",value:function(e,t){var a=document.getElementById("uagb-style-toc-"+this.props.clientId.substr(0,8));null!=a&&(a.innerHTML=function(e){var t,a,l=e.attributes,n=l.customWidth,i=l.widthDesktop,o=l.widthTablet,c=l.widthMobile,r=l.widthTypeTablet,s=l.widthTypeMobile,u=l.widthTypeDesktop,h=l.tColumnsDesktop,d=l.tColumnsTablet,g=l.tColumnsMobile,m=l.iconColor,b=l.bulletColor,v=l.iconSize,p=l.backgroundColor,f=l.linkColor,w=l.linkHoverColor,_=l.scrollToTopColor,x=l.scrollToTopBgColor,O=l.headingColor,C=l.vMarginDesktop,j=l.hMarginDesktop,M=l.marginTypeDesktop,E=l.hMarginMobile,H=l.vMarginMobile,k=l.marginTypeMobile,S=l.vMarginTablet,L=l.hMarginTablet,B=l.marginTypeTablet,V=l.vPaddingDesktop,T=l.vPaddingTablet,N=l.vPaddingMobile,A=l.hPaddingDesktop,F=l.hPaddingTablet,P=l.hPaddingMobile,R=l.headingBottom,I=l.paddingTypeDesktop,D=l.paddingTypeTablet,q=l.paddingTypeMobile,W=l.contentPaddingDesktop,G=l.contentPaddingTablet,Z=l.contentPaddingMobile,U=l.contentPaddingTypeDesktop,Y=l.contentPaddingTypeTablet,K=l.contentPaddingTypeMobile,J=l.borderStyle,$=l.borderWidth,Q=l.borderRadius,X=l.borderColor,ee=l.fontFamily,te=l.fontWeight,ae=l.fontSize,le=l.fontSizeType,ne=l.fontSizeTablet,ie=l.fontSizeMobile,oe=l.lineHeightType,ce=l.lineHeight,re=l.lineHeightTablet,se=l.lineHeightMobile,ue=l.headingFontFamily,he=l.headingFontWeight,de=l.headingFontSize,ge=l.headingFontSizeType,me=l.headingFontSizeTablet,be=l.headingFontSizeMobile,ve=l.headingLineHeightType,pe=l.headingLineHeight,fe=l.headingLineHeightTablet,we=l.headingLineHeightMobile,_e=l.disableBullets,ye=l.headingAlignment,ze={},xe="left"==ye?"flex-start":"right"==ye?"flex-end":"center";(ze={" .uagb-toc__list-wrap ol li a":{"font-size":z(ae,le),"line-height":z(ce,oe),"font-family":ee,"font-weight":te,color:f}," .uagb-toc__title-wrap":{"justify-content":xe,"margin-bottom":z(R,"px")}," .uagb-toc__title":{"font-size":z(de,ge),"line-height":z(pe,ve),"font-family":ue,"font-weight":he,color:O}," .uagb-toc__list-wrap ol li a:hover":{color:w}," .uagb-toc__wrap":{"border-style":J,"border-width":z($,"px"),"border-color":X,"border-radius":z(Q,"px"),"padding-left":z(A,I),"padding-right":z(A,I),"padding-top":z(V,I),"padding-bottom":z(V,I),background:p}," .uagb-toc__list-wrap ol.uagb-toc__list:first-child":{"margin-left":z(j,M),"margin-right":z(j,M),"margin-top":z(C,M),"margin-bottom":z(C,M)}," .uagb-toc__list-wrap > ol.uagb-toc__list > li:first-child":{"padding-top":0}," .uagb-toc__list-wrap > ol.uagb-toc__list li":{color:b}," .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child":{"padding-bottom":0}," .uagb-toc__list-wrap ol.uagb-toc__list > li":{"padding-top":"calc( "+z(W,U)+" / 2 )","padding-bottom":"calc( "+z(W,U)+" / 2 )"}," .uagb-toc__list-wrap ul.uagb-toc__list > li":{"padding-top":"calc( "+z(W,U)+" / 2 )","padding-bottom":"calc( "+z(W,U)+" / 2 )"}," .uag-toc__collapsible-wrap svg":{width:z(v,"px"),height:z(v,"px"),fill:m}})[" .uagb-toc__list-wrap"]={"column-count":h,overflow:"hidden"},n&&(ze[" .uagb-toc__wrap"].width=z(i,u)),_e&&(ze[".wp-block-uagb-table-of-contents ol.uagb-toc__list>li"]={"list-style-type":"none"},ze[" .uagb-toc__list"]={"list-style-type":"none"},ze[" .uagb-toc__list .uagb-toc__list"]={"list-style-type":"none"}),t={" .uagb-toc__list-wrap ol li a":{"font-size":z(ne,le),"line-height":z(re,oe)}," .uagb-toc__title":{"font-size":z(me,ge),"line-height":z(fe,ve)}," .uagb-toc__wrap":{width:z(o,r),"padding-left":z(F,D),"padding-right":z(F,D),"padding-top":z(T,D),"padding-bottom":z(T,D)}," .uagb-toc__list-wrap ul.uagb-toc__list:first-child":{"margin-left":z(L,B),"margin-right":z(L,B),"margin-top":z(S,B),"margin-bottom":z(S,B)}," .uagb-toc__list-wrap":{"column-count":d,overflow:"hidden"}," .uagb-toc__list-wrap > ol.uagb-toc__list > li:first-child":{"padding-top":z(G,Y)}," .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child":{"padding-bottom":z(G,Y)}," .uagb-toc__list-wrap ol.uagb-toc__list > li":{"padding-top":"calc( "+z(G,Y)+" / 2 )","padding-bottom":"calc( "+z(G,Y)+" / 2 )"}," .uagb-toc__list-wrap ul.uagb-toc__list > li":{"padding-top":"calc( "+z(G,Y)+" / 2 )","padding-bottom":"calc( "+z(G,Y)+" / 2 )"}},a={" .uagb-toc__list-wrap ol li a":{"font-size":z(ie,le),"line-height":z(se,oe)}," .uagb-toc__title":{"font-size":z(be,ge),"line-height":z(we,ve)}," .uagb-toc__wrap":{width:z(c,s),"padding-left":z(P,q),"padding-right":z(P,q),"padding-top":z(N,q),"padding-bottom":z(N,q)}," .uagb-toc__list-wrap ul.uagb-toc__list:first-child":{"margin-left":z(E,k),"margin-right":z(E,k),"margin-top":z(H,k),"margin-bottom":z(H,k)}," .uagb-toc__list-wrap":{"column-count":g,overflow:"hidden"}," .uagb-toc__list-wrap > ol.uagb-toc__list > li:first-child":{"padding-top":z(Z,K)}," .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child":{"padding-bottom":z(Z,K)}," .uagb-toc__list-wrap ol.uagb-toc__list > li":{"padding-top":"calc( "+z(Z,K)+" / 2 )","padding-bottom":"calc( "+z(Z,K)+" / 2 )"}," .uagb-toc__list-wrap ul.uagb-toc__list > li":{"padding-top":"calc( "+z(Z,K)+" / 2 )","padding-bottom":"calc( "+z(Z,K)+" / 2 )"}};var Oe=".uagb-block-".concat(e.clientId.substr(0,8)),Ce=y(ze,Oe);return Ce+=y(t,"".concat(Oe,".uagb-editor-preview-mode-tablet")),Ce+=y(a,"".concat(Oe,".uagb-editor-preview-mode-mobile")),""!=_&&(Ce+=".uagb-toc__scroll-top { color: "+_+"; }"),""!=x&&(Ce+=".uagb-toc__scroll-top.uagb-toc__show-scroll { background: "+x+"; }"),Ce}(this.props))}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)}),this.props.setAttributes({classMigrate:!0}),0==jQuery(".uagb-toc__scroll-top").length&&jQuery("body").append('<div class="uagb-toc__scroll-top"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="26px" height="16.043px" viewBox="57 35.171 26 16.043" enable-background="new 57 35.171 26 16.043" xml:space="preserve"><path d="M57.5,38.193l12.5,12.5l12.5-12.5l-2.5-2.5l-10,10l-10-10L57.5,38.193z"/></svg></div>');var e=document.createElement("style");e.setAttribute("id","uagb-style-toc-"+this.props.clientId.substr(0,8)),document.head.appendChild(e),this.props.attributes.heading&&""!==this.props.attributes.heading&&this.props.setAttributes({headingTitle:this.props.attributes.heading})}},{key:"render",value:function(){var e,t,a=this.props,l=a.attributes,i=a.setAttributes,o=a.className,c=a.headers,r=a.deviceType,s=l.align,u=(l.heading,l.disableBullets),h=l.makeCollapsible,d=l.initialCollapse,g=l.icon,m=l.iconColor,b=l.bulletColor,v=l.iconSize,p=l.smoothScroll,w=l.smoothScrollOffset,y=l.smoothScrollDelay,z=l.scrollToTop,x=l.scrollToTopColor,O=l.scrollToTopBgColor,C=l.customWidth,j=l.widthDesktop,E=l.widthTablet,H=l.widthMobile,k=l.widthTypeMobile,S=l.widthTypeTablet,L=l.widthTypeDesktop,B=l.tColumnsDesktop,V=l.tColumnsTablet,T=l.tColumnsMobile,N=l.backgroundColor,A=l.linkColor,F=l.linkHoverColor,P=l.headingColor,R=l.vPaddingDesktop,I=l.vPaddingTablet,D=l.vPaddingMobile,q=l.hPaddingDesktop,W=l.hPaddingTablet,G=l.hPaddingMobile,Z=l.paddingTypeMobile,U=l.paddingTypeTablet,Y=l.paddingTypeDesktop,K=l.vMarginDesktop,J=l.vMarginTablet,$=l.vMarginMobile,Q=l.hMarginDesktop,X=l.hMarginTablet,ee=l.hMarginMobile,te=l.marginTypeMobile,ae=l.marginTypeTablet,le=l.marginTypeDesktop,ne=l.headingBottom,ie=l.contentPaddingDesktop,oe=l.contentPaddingTablet,ce=l.contentPaddingMobile,re=l.contentPaddingTypeMobile,se=l.contentPaddingTypeTablet,ue=l.contentPaddingTypeDesktop,he=l.borderStyle,de=l.borderWidth,ge=l.borderRadius,me=l.borderColor,be=l.loadGoogleFonts,ve=l.fontFamily,pe=l.fontWeight,fe=l.fontSubset,we=l.fontSize,_e=l.fontSizeType,ye=l.fontSizeTablet,ze=l.fontSizeMobile,xe=l.lineHeightType,Oe=l.lineHeight,Ce=l.lineHeightTablet,je=l.lineHeightMobile,Me=l.headingLoadGoogleFonts,Ee=l.headingFontFamily,He=l.headingFontWeight,ke=l.headingFontSubset,Se=l.headingFontSize,Le=l.headingFontSizeType,Be=l.headingFontSizeTablet,Ve=l.headingFontSizeMobile,Te=l.headingLineHeightType,Ne=l.headingLineHeight,Ae=l.headingLineHeightTablet,Fe=l.headingLineHeightMobile,Pe=l.mappingHeaders,Re=l.headingAlignment,Ie=l.headingTitle;if(1==be){var De={google:{families:[ve+(pe?":"+pe:"")]}};e=Object(f.createElement)(ha,{config:De})}if(1==Me){var qe={google:{families:[Ee+(He?":"+He:"")]}};t=Object(f.createElement)(ha,{config:qe})}var We=jQuery(".uagb-toc__scroll-top");null!=We&&"undefined"!==We&&(z?We.addClass("uagb-toc__show-scroll"):We.removeClass("uagb-toc__show-scroll"));var Ge={icons:lw,value:g,onChange:this.getIcon,isMulti:!1,renderFunc:Lo,noSelectedPlaceholder:Object(M.__)("Select Icon","ultimate-addons-for-gutenberg")},Ze="";return h&&g&&(Ze=Object(f.createElement)("span",{className:"uag-toc__collapsible-wrap"},Lo(g))),Object(f.createElement)(Df,null,Object(f.createElement)(Wf,null,Object(f.createElement)(Gf,{value:s,onChange:function(e){i({align:e})},controls:["left","center","right"]})),Object(f.createElement)(Zf,null,Object(f.createElement)(Qf,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},Object(f.createElement)("h2",null,Object(M.__)("Select the heading to consider when generating the table","ultimate-addons-for-gutenberg")),Pe.map((function(e,t){return Object(f.createElement)(Xf,{key:t},Object(f.createElement)("label",{htmlFor:"ub_toggle_h".concat(t+1)},"H".concat(t+1)),Object(f.createElement)(aw,{id:"ub_toggle_h".concat(t+1),checked:e,onChange:function(){return i({mappingHeaders:[].concat(ic()(Pe.slice(0,t)),[!Pe[t]],ic()(Pe.slice(t+1)))})}}))}))),Object(f.createElement)(Qf,{title:Object(M.__)("Scroll","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)(aw,{label:Object(M.__)("Smooth Scroll","ultimate-addons-for-gutenberg"),checked:p,help:Object(M.__)("This will be in Action only in Front End.","ultimate-addons-for-gutenberg"),onChange:function(e){return i({smoothScroll:!p})}}),p&&Object(f.createElement)(Df,null,Object(f.createElement)(tw,{label:Object(M.__)("Smooth Scroll Offset (px)","ultimate-addons-for-gutenberg"),value:w,onChange:function(e){return i({smoothScrollOffset:e})},min:0,max:1e3}),Object(f.createElement)(tw,{label:Object(M.__)("Scroll Animation Delay (ms)","ultimate-addons-for-gutenberg"),value:y,onChange:function(e){return i({smoothScrollDelay:e})},min:100,max:5e3})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(aw,{label:Object(M.__)("Show Scroll To Top","ultimate-addons-for-gutenberg"),checked:z,help:Object(M.__)("This will add a Scroll to Top arrow at the bottom of page.","ultimate-addons-for-gutenberg"),onChange:function(e){return i({scrollToTop:!z})}}),z&&Object(f.createElement)(Df,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Icon Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:x}}))),Object(f.createElement)(Yf,{value:x,onChange:function(e){return i({scrollToTopColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:O}}))),Object(f.createElement)(Yf,{value:O,onChange:function(e){return i({scrollToTopBgColor:e})},allowReset:!0}))),Object(f.createElement)(Qf,{title:Object(M.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("h2",null,Object(M.__)("Heading","ultimate-addons-for-gutenberg")),Object(f.createElement)(ew,{label:Object(M.__)("Alignment","ultimate-addons-for-gutenberg"),value:Re,onChange:function(e){return i({headingAlignment:e})},options:[{value:"left",label:Object(M.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",label:Object(M.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",label:Object(M.__)("Right","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(tw,{label:Object(M.__)("Bottom Space","ultimate-addons-for-gutenberg"),value:ne,onChange:function(e){return i({headingBottom:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:Me,label:"headingLoadGoogleFonts"},fontFamily:{value:Ee,label:"headingFontFamily"},fontWeight:{value:He,label:"headingFontWeight"},fontSubset:{value:ke,label:"headingFontSubset"},fontSizeType:{value:Le,label:"headingFontSizeType"},fontSize:{value:Se,label:"headingFontSize"},fontSizeMobile:{value:Ve,label:"headingFontSizeMobile"},fontSizeTablet:{value:Be,label:"headingFontSizeTablet"},lineHeightType:{value:Te,label:"headingLineHeightType"},lineHeight:{value:Ne,label:"headingLineHeight"},lineHeightMobile:{value:Fe,label:"headingLineHeightMobile"},lineHeightTablet:{value:Ae,label:"headingLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Heading Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:P}}))),Object(f.createElement)(Yf,{value:P,onChange:function(e){return i({headingColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Collapsible","ultimate-addons-for-gutenberg")),Object(f.createElement)(aw,{label:Object(M.__)("Make Content Collapsible","ultimate-addons-for-gutenberg"),checked:h,onChange:function(e){return i({makeCollapsible:!h})}}),h&&Object(f.createElement)(Df,null,Object(f.createElement)(aw,{label:Object(M.__)("Keep Collapsed Initially","ultimate-addons-for-gutenberg"),checked:d,onChange:function(e){return i({initialCollapse:!d})}}),Object(f.createElement)(So.a,Ge),Object(f.createElement)(tw,{label:Object(M.__)("Icon Size","ultimate-addons-for-gutenberg"),value:v,onChange:function(e){return i({iconSize:e})},min:0,max:300,beforeIcon:"",allowReset:!0}),Object(f.createElement)(Yf,{value:m,onChange:function(e){return i({iconColor:e})},allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Content","ultimate-addons-for-gutenberg")),Object(f.createElement)(aw,{label:Object(M.__)("Disable Bullet Points","ultimate-addons-for-gutenberg"),checked:u,onChange:function(e){return i({disableBullets:!u})}}),!u&&Object(f.createElement)(Df,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Bullet Points Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:b}}))),Object(f.createElement)(Yf,{value:b,onChange:function(e){return i({bulletColor:e})},allowReset:!0})),Object(f.createElement)(Ga,null),"Desktop"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===ue,"aria-pressed":"px"===ue,onClick:function(){return i({contentPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===ue,"aria-pressed":"%"===ue,onClick:function(){return i({contentPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",{className:"uagb-light-font-weight"},Object(M.__)("Gap Between Lists")),Object(f.createElement)(tw,{className:"uagb-gap-control",value:ie,onChange:function(e){return i({contentPaddingDesktop:e})},min:0,max:100,allowReset:!0})),"Tablet"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===se,"aria-pressed":"px"===se,onClick:function(){return i({contentPaddingTypeTablet:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===se,"aria-pressed":"%"===se,onClick:function(){return i({contentPaddingTypeTablet:"%"})}},"%")),Object(f.createElement)("h2",{className:"uagb-lighter-font-weight"},Object(M.__)("Gap Between Lists")),Object(f.createElement)(tw,{className:"uagb-margin-control",value:oe,onChange:function(e){return i({contentPaddingTablet:e})},min:0,max:100,allowReset:!0})),"Mobile"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===re,"aria-pressed":"px"===re,onClick:function(){return i({contentPaddingTypeMobile:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===re,"aria-pressed":"%"===re,onClick:function(){return i({contentPaddingTypeMobile:"%"})}},"%")),Object(f.createElement)("h2",{className:"uagb-light-font-weight"},Object(M.__)("Gap Between Lists")),Object(f.createElement)(tw,{className:"uagb-margin-control",value:ce,onChange:function(e){return i({contentPaddingMobile:e})},min:0,max:100,allowReset:!0})),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:be,label:"loadGoogleFonts"},fontFamily:{value:ve,label:"fontFamily"},fontWeight:{value:pe,label:"fontWeight"},fontSubset:{value:fe,label:"fontSubset"},fontSizeType:{value:_e,label:"fontSizeType"},fontSize:{value:we,label:"fontSize"},fontSizeMobile:{value:ze,label:"fontSizeMobile"},fontSizeTablet:{value:ye,label:"fontSizeTablet"},lineHeightType:{value:xe,label:"lineHeightType"},lineHeight:{value:Oe,label:"lineHeight"},lineHeightMobile:{value:je,label:"lineHeightMobile"},lineHeightTablet:{value:Ce,label:"lineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Content Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:A}}))),Object(f.createElement)(Yf,{value:A,onChange:function(e){return i({linkColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Content Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:F}}))),Object(f.createElement)(Yf,{value:F,onChange:function(e){return i({linkHoverColor:e})},allowReset:!0})),Object(f.createElement)(Qf,{title:Object(M.__)("Style","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("h2",null,Object(M.__)("Background","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:N}}))),Object(f.createElement)(Yf,{value:N,onChange:function(e){return i({backgroundColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(aw,{label:Object(M.__)("Custom Width","ultimate-addons-for-gutenberg"),checked:C,onChange:function(e){return i({customWidth:!C})},help:Object(M.__)("Table's width will be auto if this is kept off.","ultimate-addons-for-gutenberg")}),C&&Object(f.createElement)(Ga,null),"Desktop"===r&&C&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===L,"aria-pressed":"px"===L,onClick:function(){return i({widthTypeDesktop:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===L,"aria-pressed":"%"===L,onClick:function(){return i({widthTypeDesktop:"%"})}},"%")),Object(f.createElement)(tw,{label:Object(M.__)("Width"),value:j,onChange:function(e){return i({widthDesktop:e})},min:0,max:"%"==L?100:1e3,beforeIcon:"",allowReset:!0})),"Tablet"===r&&C&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===S,"aria-pressed":"px"===S,onClick:function(){return i({widthTypeTablet:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===S,"aria-pressed":"%"===S,onClick:function(){return i({widthTypeTablet:"%"})}},"%")),Object(f.createElement)(tw,{label:Object(M.__)("Width"),value:E,onChange:function(e){return i({widthTablet:e})},min:0,max:"%"==S?100:1e3,beforeIcon:"",allowReset:!0})),"Mobile"===r&&C&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===k,"aria-pressed":"px"===k,onClick:function(){return i({widthTypeMobile:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===k,"aria-pressed":"%"===k,onClick:function(){return i({widthTypeMobile:"%"})}},"%")),Object(f.createElement)(tw,{label:Object(M.__)("Width"),value:H,onChange:function(e){return i({widthMobile:e})},min:0,max:"%"==k?100:1e3,beforeIcon:"",allowReset:!0})),Object(f.createElement)(Ga,null),"Desktop"===r&&Object(f.createElement)(Df,null,Object(f.createElement)(tw,{label:Object(M.__)("Columns"),value:B,onChange:function(e){return i({tColumnsDesktop:e})},min:1,max:10})),"Tablet"===r&&Object(f.createElement)(Df,null,Object(f.createElement)(tw,{label:Object(M.__)("Columns"),value:V,onChange:function(e){return i({tColumnsTablet:e})},min:1,max:10})),"Mobile"===r&&Object(f.createElement)(Df,null,Object(f.createElement)(tw,{label:Object(M.__)("Columns"),value:T,onChange:function(e){return i({tColumnsMobile:e})},min:1,max:10})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Ga,null),"Desktop"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Y,"aria-pressed":"px"===Y,onClick:function(){return i({paddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Y,"aria-pressed":"%"===Y,onClick:function(){return i({paddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding")),Object(f.createElement)(tw,{label:n.vertical_spacing,className:"uagb-margin-control",value:R,onChange:function(e){return i({vPaddingDesktop:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(tw,{label:n.horizontal_spacing,className:"uagb-margin-control",value:q,onChange:function(e){return i({hPaddingDesktop:e})},min:0,max:100,allowReset:!0})),"Tablet"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===U,"aria-pressed":"px"===U,onClick:function(){return i({paddingTypeTablet:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===U,"aria-pressed":"%"===U,onClick:function(){return i({paddingTypeTablet:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding")),Object(f.createElement)(tw,{label:n.vertical_spacing,className:"uagb-margin-control",value:I,onChange:function(e){return i({vPaddingTablet:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(tw,{label:n.horizontal_spacing,className:"uagb-margin-control",value:W,onChange:function(e){return i({hPaddingTablet:e})},min:0,max:100,allowReset:!0})),"Mobile"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===Z,"aria-pressed":"px"===Z,onClick:function(){return i({paddingTypeMobile:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===Z,"aria-pressed":"%"===Z,onClick:function(){return i({paddingTypeMobile:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding")),Object(f.createElement)(tw,{label:n.vertical_spacing,className:"uagb-margin-control",value:D,onChange:function(e){return i({vPaddingMobile:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(tw,{label:n.horizontal_spacing,className:"uagb-margin-control",value:G,onChange:function(e){return i({hPaddingMobile:e})},min:0,max:100,allowReset:!0})),Object(f.createElement)(Ga,null),"Desktop"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===le,"aria-pressed":"px"===le,onClick:function(){return i({marginTypeDesktop:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===le,"aria-pressed":"%"===le,onClick:function(){return i({marginTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("List Margin")),Object(f.createElement)(tw,{label:n.vertical_spacing,className:"uagb-margin-control",value:K,onChange:function(e){return i({vMarginDesktop:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(tw,{label:n.horizontal_spacing,className:"uagb-margin-control",value:Q,onChange:function(e){return i({hMarginDesktop:e})},min:0,max:100,allowReset:!0})),"Tablet"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===ae,"aria-pressed":"px"===ae,onClick:function(){return i({marginTypeTablet:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===ae,"aria-pressed":"%"===ae,onClick:function(){return i({marginTypeTablet:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("List Margin")),Object(f.createElement)(tw,{label:n.vertical_spacing,className:"uagb-margin-control",value:J,onChange:function(e){return i({vMarginTablet:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(tw,{label:n.horizontal_spacing,className:"uagb-margin-control",value:X,onChange:function(e){return i({hMarginTablet:e})},min:0,max:100,allowReset:!0})),"Mobile"===r&&Object(f.createElement)(Df,null,Object(f.createElement)($f,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(Jf,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===te,"aria-pressed":"px"===te,onClick:function(){return i({marginTypeMobile:"px"})}},"px"),Object(f.createElement)(Jf,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===te,"aria-pressed":"%"===te,onClick:function(){return i({marginTypeMobile:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("List Margin")),Object(f.createElement)(tw,{label:n.vertical_spacing,className:"uagb-margin-control",value:$,onChange:function(e){return i({vMarginMobile:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(tw,{label:n.horizontal_spacing,className:"uagb-margin-control",value:ee,onChange:function(e){return i({hMarginMobile:e})},min:0,max:100,allowReset:!0})),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Border","ultimate-addons-for-gutenberg")),Object(f.createElement)(ew,{label:Object(M.__)("Border Style","ultimate-addons-for-gutenberg"),value:he,onChange:function(e){return i({borderStyle:e})},options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(M.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(M.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(M.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(M.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!=he&&Object(f.createElement)(tw,{label:Object(M.__)("Border Width","ultimate-addons-for-gutenberg"),value:de,onChange:function(e){return i({borderWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(tw,{label:Object(M.__)("Border Radius","ultimate-addons-for-gutenberg"),value:ge,onChange:function(e){return i({borderRadius:e})},min:0,max:1e3,allowReset:!0}),"none"!=he&&Object(f.createElement)(Df,null,Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Border Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:me}}))),Object(f.createElement)(Yf,{value:me,onChange:function(e){return i({borderColor:e})},allowReset:!0})))),Object(f.createElement)("div",{className:_()(o,"uagb-toc__align-".concat(s),"uagb-toc__columns-".concat(B),d?"uagb-toc__collapse":"","uagb-editor-preview-mode-".concat(r.toLowerCase()),"uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:"uagb-toc__wrap"},Object(f.createElement)("div",{className:"uagb-toc__title-wrap"},Object(f.createElement)(Uf,{tagName:"div",placeholder:Object(M.__)("Table Of Contents","ultimate-addons-for-gutenberg"),value:Ie,className:"uagb-toc__title",onChange:function(e){return i({headingTitle:e})},multiline:!1,onRemove:function(){return props.onReplace([])}}),Ze),Object(f.createElement)(Af,{mappingHeaders:Pe,headers:c}))),e,t)}}]),i}(If),iw=Pf(Ff((function(e,t){var a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=void 0===a?null:a,n=l?l():null,i=0,o=$("div.is-root-container").find("h1, h2, h3, h4, h5, h6"),c=[];return"undefined"!=o&&o.each((function(e,t){var a,l=$(this);a=!!t.className.includes("uagb-toc-hide-heading")||0<l.parents(".uagb-toc-hide-heading").length;var n=function(e){if(!e)return e;var t=e.toString().toLowerCase().replace(/\…+/g,"").replace(/&(amp;)/g,"").replace(/&(mdash;)/g,"").replace(/\u2013|\u2014/g,"").replace(/[&]nbsp[;]/gi,"-").replace(/\s+/g,"-").replace(/[&\/\\#,^!+()$~%.\[\]'":*?<>{}@‘’”“|]/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"");return decodeURI(encodeURIComponent(t))}(l.text()),o=l[0].nodeName.replace(/^H+/,""),r=l.text();i=parseInt(o),a||c.push({tag:i,text:r,link:n,content:l.text()})})),void 0!==c&&c.forEach((function(e,t){e.level=0;for(var a=t-1;a>=0;a--){var l=c[a];if(l.tag<=e.tag){e.level=l.level,l.tag<e.tag&&e.level++;break}}})),{deviceType:n,headers:c}})))(nw);var ow=wp.data,cw=ow.select,rw=ow.subscribe,sw=a(143),uw=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(e){var t;return c()(this,n),(t=l.call(this,e)).state={headers:e.headers,deregister:null},t}return s()(n,[{key:"componentDidMount",value:function(){var e=this,t=function(){var t=function e(t,a){return t.map((function(t){var l=t.innerBlocks;l.length>0?l.forEach((function(t){t.innerBlocks.length>0?e(t.innerBlocks,a):a.push(t.attributes)})):("core/heading"===t.name&&a.push(t.attributes),"uagb/advanced-heading"===t.name&&a.push(t.attributes))})),a}(cw("core/block-editor").getBlocks(),[]);void 0!==t&&t.forEach((function(e,t){var a=void 0===e.content||""===e.content?"headingId":"anchor",l=void 0===e[a]||""===e[a],n=void 0===e.content||""===e.content?"headingTitle":"content",i=void 0===e[n]||""===e[n],o=!l&&0===e[a].indexOf(t+"-");i||!l&&!o||(e[a]=t+"-"+sw(e[n]).toString().toLowerCase().replace(/( |<.+?>|&nbsp;)/g,"-"),e[a]=e[a].replace(/[^\w\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s-]/g,""))})),e.setState({headers:t})};t();var a=rw((function(){t()}));this.setState({deregister:a})}},{key:"componentWillUnmount",value:function(){this.state.deregister()}},{key:"componentDidUpdate",value:function(e,t){JSON.stringify(this.state.headers)!==JSON.stringify(t.headers)&&this.props.blockProp.setAttributes({headerLinks:JSON.stringify(this.state.headers)})}},{key:"render",value:function(){var e=this.props,t=e.mappingHeaders,a=e.blockProp,l=e.style,n=this.state.headers;return null!=H()(t)&&n.length>0&&n.filter((function(e){return t[e.level-1]})).length>0?Object(f.createElement)("div",{style:l,className:"uagb-toc__list-wrap"},function e(t){var a=[];return t.forEach((function(t){Array.isArray(t)?a.push(e(t)):void 0===t.content||""===t.content?t.headingTitle&&a.push(Object(f.createElement)("li",{key:t.headingId},Object(f.createElement)("a",{href:"#".concat(t.headingId),dangerouslySetInnerHTML:{__html:t.headingTitle.replace(/(<a.+?>|<\/a>)/g,"")}}))):t.content&&a.push(Object(f.createElement)("li",{key:"#".concat(t.anchor)},Object(f.createElement)("a",{href:"#".concat(t.anchor),dangerouslySetInnerHTML:{__html:t.content.replace(/(<a.+?>|<\/a>)/g,"")}})))})),Object(f.createElement)("ul",{className:"uagb-toc__list"},a)}(function(e){var a=[];for(e.filter((function(e){return t[e.level-1]})).forEach((function(e){var t=a.length-1;if(0===a.length||a[t][0].level<e.level)a.push([e]);else if(a[t][0].level===e.level)a[t].push(e);else{for(;a[t][0].level>e.level&&a.length>1;)a[a.length-2].push(a.pop()),t=a.length-1;a[t][0].level===e.level&&a[t].push(e)}}));a.length>1&&a[a.length-1][0].level>a[a.length-2][0].level;)a[a.length-2].push(a.pop());return a[0]}(n))):a&&Object(f.createElement)("p",{className:"ub_table-of-contents-placeholder"},Object(M.__)("Add a header to begin generating the table of contents"))}}]),n}(B.Component);var hw=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e,t=this.props,a=t.mappingHeaders,l=t.headers;return null!=H()(a)&&l&&l.length>0&&l.filter((function(e){return a[e.tag-1]})).length>0?Object(f.createElement)("div",{className:"uagb-toc__list-wrap","data-headers":JSON.stringify(l)},function e(t){var a=[];return t.forEach((function(l){Array.isArray(l)?a.push(e(l)):a.push(Object(f.createElement)("li",{key:t.indexOf(l)},Object(f.createElement)("a",{href:"#".concat(l.link),dangerouslySetInnerHTML:{__html:l.text}})))})),Object(f.createElement)("ul",{className:"uagb-toc__list"},a)}((e=[],l.forEach((function(t,l){a[t.tag-1]&&e.push(t)})),function(e){var t=[];for(e.filter((function(e){return a[e.tag-1]})).forEach((function(e){var a=t.length-1;if(0===t.length||t[a][0].tag<e.tag)t.push([e]);else if(t[a][0].tag===e.tag)t[a].push(e);else{for(;t[a][0].tag>e.tag&&t.length>1;)t[t.length-2].push(t.pop()),a=t.length-1;t[a][0].tag===e.tag&&t[a].push(e)}}));t.length>1&&t[t.length-1][0].tag>t[t.length-2][0].tag;)t[t.length-2].push(t.pop());return t[0]}(e)))):Object(f.createElement)("p",{className:"uagb_table-of-contents-placeholder"},Object(M.__)("Add a header to begin generating the table of contents"))}}]),n}(React.Component);var dw=wp.i18n.__,gw=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e,t=this.props,a=t.mappingHeaders,l=t.headers,n=0,i=0;return"undefined"!=a&&l&&l.length>0&&l.filter((function(e){return a[e.tag-1]})).length>0?Object(f.createElement)("div",{className:"uagb-toc__list-wrap"},function e(t){var a=[];if("undefined"!==t&&t&&t.length>0)return t.forEach((function(t){Array.isArray(t)?a.push(e(t)):(a.push(Object(f.createElement)("li",{key:n},Object(f.createElement)("a",{href:"#".concat(t.link),dangerouslySetInnerHTML:{__html:t.text}}))),n++)})),i++,Object(f.createElement)("ul",{key:n+"-"+i,className:"uagb-toc__list"},a)}((e=[],l.forEach((function(t,l){a[t.tag-1]&&e.push(t)})),function(e){var t=[];for(e.filter((function(e){return a[e.tag-1]})).forEach((function(e){var a=t.length-1;if(0===t.length||t[a][0].tag<e.tag)t.push([e]);else if(t[a][0].tag===e.tag)t[a].push(e);else{for(;t[a][0].tag>e.tag&&t.length>1;)t[t.length-2].push(t.pop()),a=t.length-1;t[a][0].tag===e.tag&&t[a].push(e)}}));t.length>1&&t[t.length-1][0].tag>t[t.length-2][0].tag;)t[t.length-2].push(t.pop());return t[0]}(e)))):Object(f.createElement)("p",{className:"uagb_table-of-contents-placeholder"},dw("Add a header to begin generating the table of contents"))}}]),n}(React.Component),mw=wp.blockEditor.RichText,bw=[{attributes:Nf,save:function(e){var t=e.className,a=e.attributes,l=a.align,n=a.block_id,i=a.tColumns,o=a.heading,c=a.headerLinks,r=a.mappingHeaders,s=a.scrollToTop;return Object(f.createElement)("div",{className:_()(t,"uagb-toc__align-".concat(l),"uagb-toc__columns-".concat(i)),id:"uagb-toc-".concat(n)},Object(f.createElement)("div",{className:"uagb-toc__wrap"},Object(f.createElement)(mw.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),Object(f.createElement)(uw,{align:l,numcolumns:i,scrollToTop:s,mappingHeaders:r,headers:c&&JSON.parse(c),blockProp:e})))}},{attributes:Nf,save:function(e){var t=e.className,a=e.attributes,l=a.align,n=a.block_id,i=a.tColumns,o=a.heading,c=a.headerLinks,r=a.mappingHeaders,s=a.scrollToTop,u=a.smoothScroll,h=a.makeCollapsible,d=a.icon,g=a.initialCollapse,m=a.smoothScrollOffset,b=a.smoothScrollDelay,v="";return h&&d&&(v=Object(f.createElement)("span",{className:"uag-toc__collapsible-wrap"},Lo(d))),Object(f.createElement)("div",{className:_()(t,"uagb-toc__align-".concat(l),"uagb-toc__columns-".concat(i),g?"uagb-toc__collapse":""),"data-scroll":u,"data-offset":m,"data-delay":b,id:"uagb-toc-".concat(n)},Object(f.createElement)("div",{className:"uagb-toc__wrap"},Object(f.createElement)("div",{className:"uagb-toc__title-wrap"},Object(f.createElement)(mw.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),v),Object(f.createElement)(uw,{align:l,numcolumns:i,scrollToTop:s,mappingHeaders:r,headers:c&&JSON.parse(c),blockProp:e})))}},{attributes:Nf,save:function(e){var t=e.className,a=e.attributes,l=a.align,n=a.block_id,i=a.tColumns,o=a.heading,c=a.headerLinks,r=a.mappingHeaders,s=a.smoothScroll,u=a.makeCollapsible,h=a.icon,d=a.initialCollapse,g=a.smoothScrollOffset,m=a.smoothScrollDelay,b="";return u&&h&&(b=Object(f.createElement)("span",{className:"uag-toc__collapsible-wrap"},Lo(h))),Object(f.createElement)("div",{className:_()(t,"uagb-toc__align-".concat(l),"uagb-toc__columns-".concat(i),d?"uagb-toc__collapse":"","uagb-block-".concat(n)),"data-scroll":s,"data-offset":g,"data-delay":m},Object(f.createElement)("div",{className:"uagb-toc__wrap"},Object(f.createElement)("div",{className:"uagb-toc__title-wrap"},Object(f.createElement)(mw.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),b),Object(f.createElement)(hw,{mappingHeaders:r,headers:c&&JSON.parse(c)})))}},{attributes:Nf,save:function(e){var t=e.className,a=e.attributes,l=a.align,n=a.block_id,i=a.tColumns,o=a.heading,c=a.headerLinks,r=a.mappingHeaders,s=a.smoothScroll,u=a.makeCollapsible,h=a.icon,d=a.initialCollapse,g=a.smoothScrollOffset,m=a.smoothScrollDelay,b="";return u&&h&&(b=Object(f.createElement)("span",{className:"uag-toc__collapsible-wrap"},Lo(h))),Object(f.createElement)("div",{className:_()(t,"uagb-toc__align-".concat(l),"uagb-toc__columns-".concat(i),d?"uagb-toc__collapse":"","uagb-block-".concat(n)),"data-scroll":s,"data-offset":g,"data-delay":m},Object(f.createElement)("div",{className:"uagb-toc__wrap"},Object(f.createElement)("div",{className:"uagb-toc__title-wrap"},Object(f.createElement)(mw.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),b),Object(f.createElement)(gw,{mappingHeaders:r,headers:c&&JSON.parse(c)})))}}];a(394),a(395),(0,wp.blocks.registerBlockType)("uagb/table-of-contents",{title:uagb_blocks_info.blocks["uagb/table-of-contents"].title,description:uagb_blocks_info.blocks["uagb/table-of-contents"].description,icon:n.table_of_contents,category:uagb_blocks_info.category,keywords:[Object(M.__)("table of contents","ultimate-addons-for-gutenberg"),Object(M.__)("table","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Nf,edit:iw,save:function(){return null},example:{},deprecated:bw});var vw=[],pw=[];vw.push({add_required_tools:Object(M.__)("- A Computer.","ultimate-addons-for-gutenberg")}),pw.push({add_required_materials:Object(M.__)("- A WordPress Website.","ultimate-addons-for-gutenberg")});var fw={block_id:{type:"string"},overallAlignment:{type:"string",default:"left"},toolsTitle:{type:"html",default:Object(M.__)("Required Tools:","ultimate-addons-for-gutenberg")},materialTitle:{type:"html",default:Object(M.__)("Things Needed?","ultimate-addons-for-gutenberg")},stepsTitle:{type:"html",default:Object(M.__)("Steps to configure the How-to Schema:","ultimate-addons-for-gutenberg")},tools_count:{type:"number",default:1},material_count:{type:"number",default:1},tools:{type:"array",default:vw},materials:{type:"array",default:pw},showTotaltime:{type:"boolean",default:!0},showEstcost:{type:"boolean",default:!0},showTools:{type:"boolean",default:!0},showMaterials:{type:"boolean",default:!0},mainimage:{type:"object",default:{url:""}},estCost:{type:"html",default:Object(M.__)("Total Cost:","ultimate-addons-for-gutenberg")},timeNeeded:{type:"html",default:Object(M.__)("Total Time Needed :","ultimate-addons-for-gutenberg")},timeIn:{type:"html",default:Object(M.__)(" Minutes","ultimate-addons-for-gutenberg")},imgSize:{type:"string",default:"thumbnail"},timeSpace:{type:"number",default:5},costSpace:{type:"number",default:5},time:{type:"string",default:"30"},cost:{type:"string",default:"65"},headingTitle:{source:"html",selector:"h1,h2,h3,h4,h5,h6",default:Object(M.__)("How To Configure How-To Schema In Ultimate Addons For Gutenberg?","ultimate-addons-for-gutenberg")},currencyType:{type:"html",default:" USD"},headingDesc:{source:"html",selector:"p",default:Object(M.__)("So to get started, you will just need to drag-n-drop the How-to Schema block in the Gutenberg editor. The How-to Schema block can be used on pages that contain a How-to in their title and describe steps to achieve certain requirements.","ultimate-addons-for-gutenberg")},headingAlign:{type:"string",default:"left"},descriptionAlign:{type:"string",default:"left"},headingColor:{type:"string"},showEstcostcolor:{type:"string"},showTotaltimecolor:{type:"string",default:""},subHeadingColor:{type:"string",default:""},headingTag:{type:"string",default:"h3"},headSpace:{type:"number",default:15},headFontFamily:{type:"string",default:"Default"},headFontWeight:{type:"string"},headFontSubset:{type:"string"},headFontSizeType:{type:"string",default:"px"},headLineHeightType:{type:"string",default:"em"},headFontSize:{type:"number"},headFontSizeTablet:{type:"number"},headFontSizeMobile:{type:"number"},headLineHeight:{type:"number"},headLineHeightTablet:{type:"number"},headLineHeightMobile:{type:"number"},subHeadFontFamily:{type:"string",default:"Default"},subHeadFontWeight:{type:"string"},subHeadFontSubset:{type:"string"},subHeadFontSize:{type:"number"},subHeadFontSizeType:{type:"string",default:"px"},subHeadFontSizeTablet:{type:"number"},subHeadFontSizeMobile:{type:"number"},subHeadLineHeight:{type:"number"},subHeadLineHeightType:{type:"string",default:"em"},subHeadLineHeightTablet:{type:"number"},subHeadLineHeightMobile:{type:"number"},separatorSpace:{type:"number",default:15},headLoadGoogleFonts:{type:"boolean",default:!1},subHeadLoadGoogleFonts:{type:"boolean",default:!1},priceFontSizeType:{type:"string",default:"px"},priceFontSize:{type:"number"},priceFontSizeTablet:{type:"number"},priceFontSizeMobile:{type:"number"},priceFontFamily:{type:"string",default:"Default"},priceFontWeight:{type:"string"},priceFontSubset:{type:"string"},priceLineHeightType:{type:"string",default:"em"},priceLineHeight:{type:"number"},priceLineHeightTablet:{type:"number"},priceLineHeightMobile:{type:"number"},priceLoadGoogleFonts:{type:"boolean",default:!1},row_gap:{type:"number",default:20},step_gap:{type:"number"},schema:{type:"html",default:""},timeInMins:{type:"number"},timeInHours:{type:"number"},timeInDays:{type:"number"},timeInMonths:{type:"number"},timeInYears:{type:"number"}};var ww=wp.data.select,_w=wp.element,yw=_w.Component,zw=_w.Fragment,xw=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){return c()(this,n),l.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=this.props,t=e.headingTitle,a=e.headingDesc,l=e.mainimage,n=e.showTotaltime,i=e.showTools,o=e.showMaterials,c=e.timeNeeded,r=(e.time,e.timeIn,e.showEstcost),s=e.estCost,u=e.cost,h=e.currencyType,d=e.tools,g=e.materials,m=e.clientId,b=e.minsValue,v=e.timeInHours,p=e.timeInDays,w=e.timeInMonths,_=e.timeInYears,y=[],z=ww("core/block-editor").getBlocks(m),x=!1;z.forEach((function(e,t){var a;""!==e.attributes.ctaLink&&"#"!==e.attributes.ctaLink&&""!==e.attributes.infoBoxTitle&&""!==e.attributes.headingDesc&&""!==(null===(a=e.attributes.iconImage)||void 0===a?void 0:a.url)||(x=!0)})),void 0!==t&&""!==t||y.push("How-To Title"),void 0!==a&&""!==a||y.push("Description"),void 0!==l.url&&null!==l.url&&""!==l.url||y.push("Image"),!0!==n||void 0!==c&&""!==c||y.push("Time Needed Label"),!0!==n||void 0!==b&&""!==b||void 0!==v&&""!==v||void 0!==p&&""!==p||void 0!==w&&""!==w||void 0!==_&&""!==_||y.push("Time"),!0!==r||void 0!==s&&""!==s||y.push("Total Cost Label"),!0!==r||void 0!==u&&""!==u||y.push("Cost"),!0!==r||void 0!==h&&""!==h||y.push("Currency Unit"),!0!==i||void 0!==d&&0!==d.length&&""!==d[0].add_required_tools||y.push("Tools"),!0!==o||void 0!==g&&0!==g.length&&""!==g[0].add_required_materials||y.push("Materials"),(void 0===z||2>z.length)&&y.push("Atleast 2 Steps are required"),!0===x&&y.push("The Info Box Heading, Description, Image, Call To Action Link are required for each Step. ");var O=y.map((function(e){return Object(f.createElement)("li",{key:e}," ",e," ")}));return Object(f.createElement)(zw,null,0!==y.length?Object(f.createElement)("div",{className:"how-to-schema-notices"},Object(f.createElement)("h6",null," ",Object(M.__)("It seems the following fields are empty. This may generate Schema errors / warnings for your Page, we recommend you to fill these fields.")," "),Object(f.createElement)("ul",{className:"how-to-schema-notices-list"},O),Object(f.createElement)("p",null,Object(M.__)("P.S. Note that this notice is visible only in the editor. This will not be visible in frontend. Also, once the required fields are added, this notice will go away.")," ",Object(f.createElement)("a",{href:"https://developers.google.com/search/docs/data-types/how-to",target:"_blank"},Object(M.__)("Read more.")))):"")}}]),n}(yw);function Ow(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Cw(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ow(Object(a),!0).forEach((function(t){j()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ow(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}a(144);var jw=wp.compose.compose,Mw=wp.blocks.createBlock,Ew=wp.blockEditor,Hw=Ew.AlignmentToolbar,kw=Ew.BlockControls,Sw=Ew.MediaUpload,Lw=Ew.InspectorControls,Bw=Ew.RichText,Vw=Ew.ColorPalette,Tw=Ew.InnerBlocks,Nw=wp.components,Aw=Nw.PanelBody,Fw=Nw.SelectControl,Pw=Nw.RangeControl,Rw=Nw.Button,Iw=Nw.ToggleControl,Dw=Nw.ExternalLink,qw=wp.data,Ww=(qw.select,qw.withSelect),Gw=wp.element,Zw=Gw.Component,Uw=Gw.Fragment,Yw=["uagb/info-box"],Kw=[{value:"thumbnail",label:Object(M.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(M.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(M.__)("Large","ultimate-addons-for-gutenberg")}],Jw=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){var e;return c()(this,n),(e=l.apply(this,arguments)).onRemoveImage=e.onRemoveImage.bind(h()(e)),e.onSelectImage=e.onSelectImage.bind(h()(e)),e.getImageSize=e.getImageSize.bind(h()(e)),e}return s()(n,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)}),this.props.setAttributes({schema:JSON.stringify(this.props.schemaJsonData)});var e=document.createElement("style");e.setAttribute("id","uagb-how-to-schema-style-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e,t){JSON.stringify(this.props.schemaJsonData)!==JSON.stringify(e.schemaJsonData)&&this.props.setAttributes({schema:JSON.stringify(this.props.schemaJsonData)});var a=document.getElementById("uagb-how-to-schema-style-"+this.props.clientId.substr(0,8));null!=a&&(a.innerHTML=function(e){var t,a,l=e.attributes,n=l.overallAlignment,i=l.headingTag,o=l.showTotaltimecolor,c=l.headingColor,r=l.headSpace,s=l.subHeadingColor,u=l.headFontFamily,h=l.headFontWeight,d=l.headFontSize,g=l.headFontSizeType,m=l.headFontSizeMobile,b=l.headFontSizeTablet,v=l.headLineHeight,p=l.headLineHeightType,f=l.headLineHeightMobile,w=l.headLineHeightTablet,_=l.subHeadFontFamily,x=l.subHeadFontWeight,O=l.subHeadFontSize,C=l.subHeadFontSizeType,j=l.subHeadFontSizeMobile,M=l.subHeadFontSizeTablet,E=l.subHeadLineHeight,H=l.subHeadLineHeightType,k=l.subHeadLineHeightMobile,S=l.subHeadLineHeightTablet,L=l.priceFontSizeType,B=l.priceFontSize,V=l.priceFontSizeTablet,T=l.priceFontSizeMobile,N=l.priceFontFamily,A=l.priceFontWeight,F=l.priceLineHeightType,P=l.priceLineHeight,R=l.priceLineHeightTablet,I=l.priceLineHeightMobile,D=l.timeSpace,q=l.costSpace,W=l.row_gap,G=l.step_gap,Z=""!==G?G:0;Z+=30;var U={" .block-editor-rich-text__editable.uagb-howto-desc-text":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s}," .uagb-how-to-main-wrap p":{"margin-bottom":z(W,"px")}," .uagb-how-to-main-wrap .uagb-howto__source-wrap":{"margin-bottom":z(W,"px")}," .uagb-how-to-main-wrap span.uagb-howto__time-wrap":{"margin-bottom":z(W,"px")}," .uagb-how-to-main-wrap span.uagb-howto__cost-wrap":{"margin-bottom":z(W,"px")}," .uagb-how-to-tools .uagb-how-to-tools-child__wrapper:last-child":{"margin-bottom":z(W,"px")}," .uagb-how-to-materials .uagb-how-to-materials-child__wrapper:last-child":{"margin-bottom":z(W,"px")}," .uagb-howto-steps__wrap .wp-block-uagb-info-box":{"margin-bottom":z(Z,"px")}," .block-editor-rich-text__editable.uagb-howto-timeNeeded-text":{"font-family":N,"font-weight":A,"font-size":z(B,L),"line-height":z(P,F),color:o}," .uagb-howto-timeNeeded-value":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s,"margin-left":z(D,"px")}," .uagb-howto-timeINmin-text ":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s}," .block-editor-rich-text__editable.uagb-howto-estcost-text":{"font-family":N,"font-weight":A,"font-size":z(B,L),"line-height":z(P,F),color:o}," .block-editor-rich-text__editable.uagb-howto-estcost-value":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s,"margin-left":z(q,"px")}," .uagb-howto-steps__wrap h4.block-editor-rich-text__editable":{"font-family":N,"font-weight":A,"font-size":z(B,L),"line-height":z(P,F)}," .uagb-howto-steps__wrap p.block-editor-rich-text__editable":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H)}," .block-editor-rich-text__editable.uagb-howto-estcost-type":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s}," .block-editor-rich-text__editable.uagb-howto-req-tools-text":{"font-family":N,"font-weight":A,"font-size":z(B,L),"line-height":z(P,F),color:o}," .block-editor-rich-text__editable.uagb-tools__label":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s}," .block-editor-rich-text__editable.uagb-howto-req-materials-text":{"font-family":N,"font-weight":A,"font-size":z(B,L),"line-height":z(P,F),color:o}," .block-editor-rich-text__editable.uagb-howto-req-steps-text":{"font-family":N,"font-weight":A,"font-size":z(B,L),"line-height":z(P,F),color:o}," .block-editor-rich-text__editable.uagb-materials__label":{"font-family":_,"font-weight":x,"font-size":z(O,C),"line-height":z(E,H),color:s}};U[" .uagb-how-to-main-wrap"]={"text-align":n,display:"block"},U[" "+i+".block-editor-rich-text__editable.uagb-howto-heading-text"]={"font-family":u,"font-weight":h,"font-size":z(d,g),"line-height":z(v,p),color:c,"margin-bottom":z(r,"px")},a={" .block-editor-rich-text__editable.uagb-howto-heading-text":{"font-size":z(m,g),"line-height":z(f,p)}," .block-editor-rich-text__editable.uagb-howto-desc-text":{"font-size":z(j,C),"line-height":z(k,H)}," .block-editor-rich-text__editable.uagb-howto-timeNeeded-text":{"font-size":z(T,L),"line-height":z(I,F)}," .uagb-howto-timeNeeded-value":{"font-size":z(j,C),"line-height":z(k,H)}," .uagb-howto-timeINmin-text ":{"font-size":z(j,C),"line-height":z(k,H)}," .block-editor-rich-text__editable.uagb-howto-estcost-text":{"font-size":z(T,L),"line-height":z(I,F)}," .block-editor-rich-text__editable.uagb-howto-estcost-value":{"font-size":z(j,C),"line-height":z(k,H)}," .block-editor-rich-text__editable.uagb-howto-estcost-type":{"font-size":z(j,C),"line-height":z(k,H)}," .block-editor-rich-text__editable.uagb-tools__label":{"font-size":z(T,L),"line-height":z(I,F)}," .block-editor-rich-text__editable.uagb-howto-req-tools-text":{"font-size":z(T,L),"line-height":z(I,F)}," .block-editor-rich-text__editable.uagb-materials__label":{"font-size":z(T,L),"line-height":z(I,F)}," .block-editor-rich-text__editable.uagb-howto-req-materials-text":{"font-size":z(T,L),"line-height":z(I,F)}},t={" .block-editor-rich-text__editable.uagb-howto-heading-text":{"font-size":z(b,g),"line-height":z(w,p)}," .block-editor-rich-text__editable.uagb-howto-desc-text":{"font-size":z(M,C),"line-height":z(S,H)}," .block-editor-rich-text__editable.uagb-howto-timeNeeded-text":{"font-size":z(V,L),"line-height":z(R,F)}," .uagb-howto-timeNeeded-value":{"font-size":z(M,C),"line-height":z(S,H)}," .uagb-howto-timeINmin-text ":{"font-size":z(M,C),"line-height":z(S,H)}," .block-editor-rich-text__editable.uagb-howto-estcost-text":{"font-size":z(V,L),"line-height":z(R,F)}," .block-editor-rich-text__editable.uagb-howto-estcost-value":{"font-size":z(M,C),"line-height":z(S,H)}," .block-editor-rich-text__editable.uagb-howto-estcost-type":{"font-size":z(M,C),"line-height":z(S,H)}," .block-editor-rich-text__editable.uagb-tools__label":{"font-size":z(V,L),"line-height":z(R,F)}," .block-editor-rich-text__editable.uagb-howto-req-tools-text":{"font-size":z(V,L),"line-height":z(R,F)}," .block-editor-rich-text__editable.uagb-materials__label":{"font-size":z(V,L),"line-height":z(R,F)}," .block-editor-rich-text__editable.uagb-howto-req-materials-text":{"font-size":z(V,L),"line-height":z(R,F)}};var Y=".block-editor-page #wpwrap .uagb-block-".concat(e.clientId.substr(0,8)),K=y(U,Y);return(K+=y(t,"".concat(Y,".uagb-editor-preview-mode-tablet")))+y(a,"".concat(Y,".uagb-editor-preview-mode-mobile"))}(this.props))}},{key:"savematerials",value:function(e,t){var a=this.props,l=a.attributes;(0,a.setAttributes)({materials:l.materials.map((function(a,l){return t===l&&(a=Cw(Cw({},a),e)),a}))})}},{key:"savetools",value:function(e,t){var a=this.props,l=a.attributes;(0,a.setAttributes)({tools:l.tools.map((function(a,l){return t===l&&(a=Cw(Cw({},a),e)),a}))})}},{key:"onRemoveImage",value:function(){(0,this.props.setAttributes)({mainimage:null})}},{key:"onSelectImage",value:function(e){var t=this.props.setAttributes;if(e&&e.url){if(e.type&&(t({mainimage:e}),e.sizes)){var a=this.getImageSize(e.sizes);Kw=a}}else t({mainimage:null})}},{key:"getImageSize",value:function(e){var t=[];return $.each(e,(function(e,a){var l={value:e,label:e};t.push(l)})),t}},{key:"render",value:function(){var e,t,a,l=this,n=this.props,i=n.className,o=n.attributes,c=n.setAttributes,r=n.insertBlocksAfter,s=n.mergeBlocks,u=n.onReplace,h=n.deviceType,d=n.attributes,g=d.overallAlignment,m=d.currencyType,b=(d.timeIn,d.showEstcost),v=d.showTotaltime,p=d.showMaterials,w=d.showTools,y=d.showTotaltimecolor,z=d.tools_count,x=d.material_count,O=d.toolsTitle,C=d.materialTitle,E=d.stepsTitle,H=d.tools,k=d.materials,S=d.timeNeeded,L=d.estCost,B=d.mainimage,V=d.imgSize,T=d.headingTitle,N=d.headingDesc,A=d.headingColor,F=d.subHeadingColor,P=d.headingTag,R=d.headFontFamily,I=d.headFontWeight,D=d.headFontSubset,q=d.headFontSizeType,W=d.headFontSize,G=d.headFontSizeMobile,Z=d.headFontSizeTablet,U=d.headLineHeightType,Y=d.headLineHeight,K=d.headLineHeightMobile,J=d.headLineHeightTablet,$=d.subHeadFontFamily,Q=d.subHeadFontWeight,X=d.subHeadFontSubset,ee=d.subHeadFontSize,te=d.subHeadFontSizeType,ae=d.subHeadFontSizeMobile,le=d.subHeadFontSizeTablet,ne=d.subHeadLineHeight,ie=d.subHeadLineHeightType,oe=d.subHeadLineHeightMobile,ce=d.subHeadLineHeightTablet,re=d.headLoadGoogleFonts,se=d.subHeadLoadGoogleFonts,ue=d.priceFontSizeType,he=d.priceFontSize,de=d.priceFontSizeTablet,ge=d.priceFontSizeMobile,me=d.priceFontFamily,be=d.priceFontWeight,ve=d.priceFontSubset,pe=d.priceLineHeightType,fe=d.priceLineHeight,we=d.priceLineHeightTablet,_e=d.priceLineHeightMobile,ye=d.priceLoadGoogleFonts,ze=d.time,xe=d.cost,Oe=d.timeSpace,Ce=d.costSpace,je=d.row_gap,Me=d.step_gap,Ee=d.timeInMins,He=d.timeInHours,ke=d.timeInDays,Se=d.timeInMonths,Le=d.timeInYears;if(B&&B.sizes&&(Kw=this.getImageSize(B.sizes)),!0===re){var Be={google:{families:[R+(I?":"+I:"")]}};e=Object(f.createElement)(ha,{config:Be})}if(!0===se){var Ve={google:{families:[$+(Q?":"+Q:"")]}};t=Object(f.createElement)(ha,{config:Ve})}if(!0===ye){var Te={google:{families:[me+(be?":"+be:"")]}};a=Object(f.createElement)(ha,{config:Te})}var Ne="",Ae="";void 0!==o.mainimage&&null!==o.mainimage&&""!==o.mainimage&&(Ne=o.mainimage.url,Ae=o.mainimage.title);var Fe="";if(""!==Ne){var Pe=o.mainimage.sizes,Re=o.imgSize;Fe=void 0!==Pe&&void 0!==Pe[Re]?Pe[Re].url:Ne}var Ie="";B&&B.url&&(Ie=Object(f.createElement)("img",{className:"uagb-howto__source-image",src:Fe,title:Ae}));var De=Ee||ze,qe=Le>1?Object(M.__)("Years","ultimate-addons-for-gutenberg"):Object(M.__)("Year","ultimate-addons-for-gutenberg"),We=Se>1?Object(M.__)(" Months ","ultimate-addons-for-gutenberg"):Object(M.__)(" Month ","ultimate-addons-for-gutenberg"),Ge=ke>1?Object(M.__)(" Days ","ultimate-addons-for-gutenberg"):Object(M.__)(" Day ","ultimate-addons-for-gutenberg"),Ze=He>1?Object(M.__)("Hours ","ultimate-addons-for-gutenberg"):Object(M.__)(" Hour ","ultimate-addons-for-gutenberg"),Ue=De>1?Object(M.__)(" Minutes ","ultimate-addons-for-gutenberg"):Object(M.__)(" Minute ","ultimate-addons-for-gutenberg");return Object(f.createElement)(Uw,null,Object(f.createElement)(xw,{headingTitle:T,headingDesc:N,mainimage:B,showTotaltime:v,timeNeeded:S,minsValue:De,timeInHours:He,timeInDays:ke,timeInMonths:Se,timeInYears:Le,showEstcost:b,estCost:L,cost:xe,currencyType:m,tools:H,materials:k,clientId:this.props.clientId}),Object(f.createElement)(kw,{key:"index"},Object(f.createElement)(Hw,{value:g,onChange:function(e){return c({overallAlignment:e})}})),Object(f.createElement)(Lw,null,Object(f.createElement)(Aw,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},Object(f.createElement)("h2",null,Object(M.__)("Image","ultimate-addons-for-gutenberg")),Object(f.createElement)(Sw,{title:Object(M.__)("Select Image","ultimate-addons-for-gutenberg"),onSelect:function(e){return c({mainimage:e})},allowedTypes:["image"],value:B,render:function(e){var t=e.open;return Object(f.createElement)(Rw,{isSecondary:!0,onClick:t},B.url?Object(M.__)("Replace image","ultimate-addons-for-gutenberg"):Object(M.__)("Select Image","ultimate-addons-for-gutenberg"))}}),B.url&&Object(f.createElement)(Rw,{className:"uagb-rm-btn",onClick:function(){return c({mainimage:""})},isLink:!0,isDestructive:!0},Object(M.__)("Remove Image","ultimate-addons-for-gutenberg")),B.url&&Object(f.createElement)(Fw,{label:Object(M.__)("Size","ultimate-addons-for-gutenberg"),options:Kw,value:V,onChange:function(e){return c({imgSize:e})}}),Object(f.createElement)("h2",null,Object(M.__)("Primary Heading","ultimate-addons-for-gutenberg")),Object(f.createElement)(Fw,{label:Object(M.__)("Tag"),value:P,onChange:function(e){return c({headingTag:e})},options:[{value:"h1",label:Object(M.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(M.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(M.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(M.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(M.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(M.__)("H6","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Iw,{label:Object(M.__)("Show Total Time","ultimate-addons-for-gutenberg"),checked:v,onChange:function(e){return c({showTotaltime:!v})},help:Object(M.__)("Note: Time is recommended field for schema. It should be ON","ultimate-addons-for-gutenberg")}),v&&Object(f.createElement)(Aw,{title:Object(M.__)("Time","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb-editor-howto-timepanel"},Object(f.createElement)(Uw,null,Object(f.createElement)(Pw,{label:Object(M.__)("Years","ultimate-addons-for-gutenberg"),value:Le,onChange:function(e){return c({timeInYears:e})},min:1,max:10,allowReset:!0}),Object(f.createElement)(Pw,{label:Object(M.__)("Months","ultimate-addons-for-gutenberg"),value:Se,onChange:function(e){return c({timeInMonths:e})},min:1,max:12,allowReset:!0}),Object(f.createElement)(Pw,{label:Object(M.__)("Days","ultimate-addons-for-gutenberg"),value:ke,onChange:function(e){return c({timeInDays:e})},min:1,max:31,allowReset:!0}),Object(f.createElement)(Pw,{label:Object(M.__)("Hours","ultimate-addons-for-gutenberg"),value:He,onChange:function(e){return c({timeInHours:e})},min:1,max:24,allowReset:!0}),Object(f.createElement)(Pw,{label:Object(M.__)("Minutes","ultimate-addons-for-gutenberg"),value:De,onChange:function(e){return c({timeInMins:e})},min:1,max:60,allowReset:!0}))),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Iw,{label:Object(M.__)("Show Estimated Cost","ultimate-addons-for-gutenberg"),checked:b,onChange:function(e){return c({showEstcost:!b})},help:Object(M.__)("Note: Cost is recommended field for schema.It should be ON","ultimate-addons-for-gutenberg")}),Object(f.createElement)(Dw,{href:"https://en.wikipedia.org/wiki/List_of_circulating_currencies"},Object(M.__)("Click here to find your countrys ISO code.","ultimate-addons-for-gutenberg")),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Iw,{label:Object(M.__)("Show Tools","ultimate-addons-for-gutenberg"),checked:w,onChange:function(e){return c({showTools:!w})},help:Object(M.__)("Note: This is recommended field for schema.It should be ON","ultimate-addons-for-gutenberg")}),w&&Object(f.createElement)(Pw,{label:Object(M.__)("Number of Tools","ultimate-addons-for-gutenberg"),value:z,onChange:function(e){var t=ic()(H);if(t.length<e){var a=Math.abs(e-t.length);ao()(a,(function(e){t.push({add_required_tools:"- A Computer"+(t.length+1)})})),c({tools:t})}else{for(var l=Math.abs(e-t.length),n=t,i=0;i<l;i++)n.pop();c({tools:n})}c({tools_count:e})},min:1,max:50}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)(Iw,{label:Object(M.__)("Show Materials","ultimate-addons-for-gutenberg"),checked:p,onChange:function(e){return c({showMaterials:!p})},help:Object(M.__)("Note: This is recommended field for schema.It should be ON","ultimate-addons-for-gutenberg")}),p&&Object(f.createElement)(Pw,{label:Object(M.__)("Number of Materials","ultimate-addons-for-gutenberg"),value:x,onChange:function(e){var t=ic()(k);if(t.length<e){var a=Math.abs(e-t.length);ao()(a,(function(e){t.push({add_required_materials:"- A WordPress Website"+(t.length+1)})})),c({materials:t})}else{for(var l=Math.abs(e-t.length),n=t,i=0;i<l;i++)n.pop();c({materials:n})}c({material_count:e})},min:1,max:50})),Object(f.createElement)(Aw,{title:Object(M.__)("Style","ultimate-addons-for-gutenberg"),initialOpen:!1},Object(f.createElement)("h2",null,Object(M.__)("Colors")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Heading","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:A}}))),Object(f.createElement)(Vw,{value:A,onChange:function(e){return c({headingColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Secondary Heading","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:y}}))),Object(f.createElement)(Vw,{value:y,onChange:function(e){return c({showTotaltimecolor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Description","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:F}}))),Object(f.createElement)(Vw,{value:F,onChange:function(e){return c({subHeadingColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Typography","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Heading","ultimate-addons-for-gutenberg"),attributes:o,setAttributes:c,loadGoogleFonts:{value:re,label:"headLoadGoogleFonts"},fontFamily:{value:R,label:"headFontFamily"},fontWeight:{value:I,label:"headFontWeight"},fontSubset:{value:D,label:"headFontSubset"},fontSizeType:{value:q,label:"headFontSizeType"},fontSize:{value:W,label:"headFontSize"},fontSizeMobile:{value:G,label:"headFontSizeMobile"},fontSizeTablet:{value:Z,label:"headFontSizeTablet"},lineHeightType:{value:U,label:"headLineHeightType"},lineHeight:{value:Y,label:"headLineHeight"},lineHeightMobile:{value:K,label:"headLineHeightMobile"},lineHeightTablet:{value:J,label:"headLineHeightTablet"}}),Object(f.createElement)(la,{label:Object(M.__)("Secondary Heading","ultimate-addons-for-gutenberg"),attributes:o,setAttributes:c,loadGoogleFonts:{value:ye,label:"priceLoadGoogleFonts"},fontFamily:{value:me,label:"priceFontFamily"},fontWeight:{value:be,label:"priceFontWeight"},fontSubset:{value:ve,label:"priceFontSubset"},fontSizeType:{value:ue,label:"priceFontSizeType"},fontSize:{value:he,label:"priceFontSize"},fontSizeMobile:{value:ge,label:"priceFontSizeMobile"},fontSizeTablet:{value:de,label:"priceFontSizeTablet"},lineHeightType:{value:pe,label:"priceLineHeightType"},lineHeight:{value:fe,label:"priceLineHeight"},lineHeightMobile:{value:_e,label:"priceLineHeightMobile"},lineHeightTablet:{value:we,label:"priceLineHeightTablet"}}),Object(f.createElement)(la,{label:Object(M.__)("Description","ultimate-addons-for-gutenberg"),attributes:o,setAttributes:c,loadGoogleFonts:{value:se,label:"subHeadLoadGoogleFonts"},fontFamily:{value:$,label:"subHeadFontFamily"},fontWeight:{value:Q,label:"subHeadFontWeight"},fontSubset:{value:X,label:"subHeadFontSubset"},fontSizeType:{value:te,label:"subHeadFontSizeType"},fontSize:{value:ee,label:"subHeadFontSize"},fontSizeMobile:{value:ae,label:"subHeadFontSizeMobile"},fontSizeTablet:{value:le,label:"subHeadFontSizeTablet"},lineHeightType:{value:ie,label:"subHeadLineHeightType"},lineHeight:{value:ne,label:"subHeadLineHeight"},lineHeightMobile:{value:oe,label:"subHeadLineHeightMobile"},lineHeightTablet:{value:ce,label:"subHeadLineHeightTablet"}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Spacing","ultimate-addons-for-gutenberg")),v&&Object(f.createElement)(Pw,{label:Object(M.__)("Time Margin","ultimate-addons-for-gutenberg"),value:Oe,onChange:function(e){return c({timeSpace:e})},min:0,max:50,allowReset:!0}),b&&Object(f.createElement)(Pw,{label:Object(M.__)("Cost Margin","ultimate-addons-for-gutenberg"),value:Ce,onChange:function(e){return c({costSpace:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(Pw,{label:Object(M.__)("Row Gap","ultimate-addons-for-gutenberg"),value:je,onChange:function(e){return c({row_gap:e})},min:0,max:500,allowReset:!0}),Object(f.createElement)(Pw,{label:Object(M.__)("Gap Between Steps","ultimate-addons-for-gutenberg"),value:Me,onChange:function(e){return c({step_gap:e})},min:0,max:500,allowReset:!0}))),Object(f.createElement)("div",{className:_()(i,"uagb-editor-preview-mode-".concat(h.toLowerCase()),"uagb-block-".concat(this.props.clientId.substr(0,8)))},Object(f.createElement)("div",{className:"uagb-how-to-main-wrap"},Object(f.createElement)(Bw,{tagName:P,placeholder:Object(M.__)("How to configure HowTo Schema in UAG?","ultimate-addons-for-gutenberg"),value:T,className:"uagb-howto-heading-text",multiline:!1,onChange:function(e){c({headingTitle:e})},onMerge:s,onSplit:r?function(e,t){c({content:e});for(var a=arguments.length,l=new Array(a>2?a-2:0),n=2;n<a;n++)l[n-2]=arguments[n];r([].concat(l,[Mw("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return u([])}}),Object(f.createElement)(Bw,{tagName:"p",placeholder:Object(M.__)("So to get started, you will just need to drag-n-drop the How-to Schema block in the Gutenberg editor. The How-to Schema block can be used on pages which contain a How-to in their title and describe steps to achieve certain requirements.","ultimate-addons-for-gutenberg"),value:N,className:"uagb-howto-desc-text",onChange:function(e){return c({headingDesc:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}}),Object(f.createElement)("div",{className:"uagb-howto__source-wrap"},Ie),Object(f.createElement)("span",{className:"uagb-howto__time-wrap"},v&&Object(f.createElement)(Bw,{tagName:"h4",placeholder:Object(M.__)("Total Time Needed ( Minutes ):","ultimate-addons-for-gutenberg"),value:S,className:"uagb-howto-timeNeeded-text",onChange:function(e){return c({timeNeeded:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}}),v&&Object(f.createElement)(Uw,null,Le&&Object(f.createElement)(Uw,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"}," ",Le),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"}," ",qe)),Se&&Object(f.createElement)(Uw,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},Se),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},We)),ke&&Object(f.createElement)(Uw,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},ke),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},Ge)),He&&Object(f.createElement)(Uw,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},He),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},Ze)),De&&Object(f.createElement)(Uw,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},De),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},Ue)))),Object(f.createElement)("span",{className:"uagb-howto__cost-wrap"},b&&Object(f.createElement)(Bw,{tagName:"h4",placeholder:Object(M.__)("Total Cost:","ultimate-addons-for-gutenberg"),value:L,className:"uagb-howto-estcost-text",onChange:function(e){return c({estCost:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}}),b&&Object(f.createElement)(Bw,{tagName:"p",placeholder:Object(M.__)("30","ultimate-addons-for-gutenberg"),value:xe,className:"uagb-howto-estcost-value",onChange:function(e){return c({cost:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}}),b&&Object(f.createElement)(Bw,{tagName:"p",placeholder:Object(M.__)("USD","ultimate-addons-for-gutenberg"),value:m,className:"uagb-howto-estcost-type",onChange:function(e){return c({currencyType:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}})),Object(f.createElement)("div",{className:"uagb-how-to-tools__wrap"},w&&Object(f.createElement)(Bw,{tagName:"h4",placeholder:Object(M.__)("requirements tools:","ultimate-addons-for-gutenberg"),value:O,className:"uagb-howto-req-tools-text",onChange:function(e){return c({toolsTitle:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}}),w&&Object(f.createElement)("div",{className:"uagb-how-to-tools"},H.map((function(e,t){var a;return Object(f.createElement)("div",{className:_()("uagb-how-to-tools-".concat(t),"uagb-how-to-tools-child__wrapper"),key:t},Object(f.createElement)("div",{className:"uagb-tools"},Object(f.createElement)(Bw,(a={tagName:"div",placeholder:Object(M.__)("Requirements Tools:","ultimate-addons-for-gutenberg"),value:e.add_required_tools,onChange:function(e){l.savetools({add_required_tools:e},t)},className:"uagb-tools__label"},j()(a,"placeholder",Object(M.__)("Description","ultimate-addons-for-gutenberg")),j()(a,"multiline",!1),j()(a,"allowedFormats",["core/bold","core/italic","core/strikethrough"]),a))))}))),Object(f.createElement)("div",{className:"uagb-how-to-materials__wrap"},p&&Object(f.createElement)(Bw,{tagName:"h4",placeholder:Object(M.__)("requirements materials:","ultimate-addons-for-gutenberg"),value:C,className:"uagb-howto-req-materials-text",onChange:function(e){return c({materialTitle:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}})),p&&Object(f.createElement)("div",{className:"uagb-how-to-materials"},k.map((function(e,t){var a;return Object(f.createElement)("div",{className:_()("uagb-how-to-materials-".concat(t),"uagb-how-to-materials-child__wrapper"),key:t},Object(f.createElement)("div",{className:"uagb-materials"},Object(f.createElement)(Bw,(a={tagName:"div",placeholder:Object(M.__)("Requirements Materials:","ultimate-addons-for-gutenberg"),value:e.add_required_materials,onChange:function(e){l.savematerials({add_required_materials:e},t)},className:"uagb-materials__label"},j()(a,"placeholder",Object(M.__)("Description","ultimate-addons-for-gutenberg")),j()(a,"multiline",!1),j()(a,"allowedFormats",["core/bold","core/italic","core/strikethrough"]),a))))})))),Object(f.createElement)("div",{className:"uagb-how-to-steps__wrap"},Object(f.createElement)(Bw,{tagName:"h4",placeholder:Object(M.__)("requirements Steps:","ultimate-addons-for-gutenberg"),value:E,className:"uagb-howto-req-steps-text",onChange:function(e){return c({stepsTitle:e})},onMerge:s,onSplit:this.splitBlock,onRemove:function(){return u([])}}),Object(f.createElement)("div",{className:"uagb-howto-steps__wrap"},Object(f.createElement)(Tw,{template:[["uagb/info-box",{infoBoxTitle:"Step 1",iconimgPosition:"left",source_type:"image",showPrefix:!1,seperatorStyle:"none",ctaType:"all",headingTag:"h4"}],["uagb/info-box",{infoBoxTitle:"Step 2",iconimgPosition:"left",source_type:"image",showPrefix:!1,seperatorStyle:"none",ctaType:"all",headingTag:"h4"}],["uagb/info-box",{infoBoxTitle:"Step 3",iconimgPosition:"left",source_type:"image",showPrefix:!1,seperatorStyle:"none",ctaType:"all",headingTag:"h4"}]],allowedBlocks:Yw}))))),e,t,a)}}]),n}(Zw),$w=jw(Ww((function(e,t){var a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=void 0===a?null:a,n=l?l():null,i="";"undefined"!==t.attributes.mainimage&&null!==t.attributes.mainimage&&""!==t.attributes.mainimage&&(i=t.attributes.mainimage.url,t.attributes.mainimage.title);var o={},c={},r={},s={"@context":"https://schema.org","@type":"HowTo",name:t.attributes.headingTitle,description:t.attributes.headingDesc,image:{"@type":"ImageObject",url:i,height:"406",width:"305"},totalTime:"",estimatedCost:[],tool:[],supply:[],step:[]},u=t.attributes.timeInYears?t.attributes.timeInYears:0,h=t.attributes.timeInMonths?t.attributes.timeInMonths:0,d=t.attributes.timeInDays?t.attributes.timeInDays:0,g=t.attributes.timeInHours?t.attributes.timeInHours:0,m=t.attributes.timeInMins?t.attributes.timeInMins:t.attributes.time;return t.attributes.showTotaltime&&(s.totalTime="P"+u+"Y"+h+"M"+d+"DT"+g+"H"+m+"M"),t.attributes.showEstcost&&(s.estimatedCost={"@type":"MonetaryAmount",currency:t.attributes.currencyType,value:t.attributes.cost}),t.attributes.showTools&&t.attributes.tools.forEach((function(e,t){o={"@type":"HowToTool",name:e.add_required_tools},s.tool[t]=o})),t.attributes.showMaterials&&t.attributes.materials.forEach((function(e,t){c={"@type":"HowToSupply",name:e.add_required_materials},s.supply[t]=c})),e("core/block-editor").getBlocks(t.clientId).forEach((function(e,t){var a;r={"@type":"HowToStep",url:e.attributes.ctaLink,name:e.attributes.infoBoxTitle,text:e.attributes.headingDesc,image:null===(a=e.attributes.iconImage)||void 0===a?void 0:a.url},s.step[t]=r})),{schemaJsonData:s,deviceType:n}})))(Jw),Qw=wp.blockEditor,Xw=Qw.RichText,e_=Qw.InnerBlocks,t_=wp.element.Fragment;a(396);var a_=wp.blockEditor,l_=a_.RichText,n_=a_.InnerBlocks,i_=[{attributes:fw,save:function(e){var t=e.attributes,a=e.className,l=t.block_id,n=t.headingTitle,i=t.headingDesc,o=t.headingTag,c=t.timeNeeded,r=t.time,s=t.timeIn,u=t.estCost,h=t.cost,d=t.currencyType,g=t.mainimage,m=t.toolsTitle,b=t.stepsTitle,v=t.materialTitle,p=t.tools,w=t.materials,y=t.schema,z=t.showTotaltime,x=t.showEstcost,O=t.showTools,C=t.showMaterials,j="",M="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(j=t.mainimage.url,M=t.mainimage.title);var E="";if(""!==j){var H=t.mainimage.sizes,k=t.imgSize;E=void 0!==H&&void 0!==H[k]?H[k].url:j}var S="";return g&&g.url&&(S=Object(f.createElement)("img",{className:"uagb-howto__source-image",src:E,title:M})),Object(f.createElement)("div",{className:_()(a,"uagb-block-".concat(l))},Object(f.createElement)("script",{type:"application/ld+json"},y),Object(f.createElement)("div",{className:"uagb-how-to-main-wrap"},Object(f.createElement)("div",{className:"uagb-howto__wrap"},Object(f.createElement)(l_.Content,{value:n,tagName:o,className:"uagb-howto-heading-text"}),Object(f.createElement)(l_.Content,{value:i,tagName:"p",className:"uagb-howto-desc-text"}),g.url&&Object(f.createElement)("div",{className:"uagb-howto__source-wrap"},S),z&&Object(f.createElement)("span",{className:"uagb-howto__time-wrap"},Object(f.createElement)(l_.Content,{value:c,tagName:"h4",className:"uagb-howto-timeNeeded-text"}),Object(f.createElement)(l_.Content,{value:r,tagName:"p",className:"uagb-howto-timeNeeded-value"}),Object(f.createElement)(l_.Content,{tagName:"p",value:s,className:"uagb-howto-timeINmin-text"})),x&&Object(f.createElement)("span",{className:"uagb-howto__cost-wrap"},Object(f.createElement)(l_.Content,{value:u,tagName:"h4",className:"uagb-howto-estcost-text"}),Object(f.createElement)(l_.Content,{value:h,tagName:"p",className:"uagb-howto-estcost-value"}),Object(f.createElement)(l_.Content,{tagName:"p",value:d,className:"uagb-howto-estcost-type"}))),O&&Object(f.createElement)("div",{className:"uagb-how-to-tools__wrap"},Object(f.createElement)(l_.Content,{value:m,tagName:"h4",className:"uagb-howto-req-tools-text"})),O&&Object(f.createElement)("div",{className:"uagb-tools__wrap"},p.map((function(e,t){return Object(f.createElement)("div",{className:_()("uagb-how-to-tools-".concat(t),"uagb-how-to-tools-child__wrapper"),key:t},Object(f.createElement)("div",{className:"uagb-tools"},Object(f.createElement)(l_.Content,{tagName:"div",value:e.add_required_tools,className:"uagb-tools__label"})))}))),C&&Object(f.createElement)("div",{className:"uagb-how-to-materials__wrap"},Object(f.createElement)(l_.Content,{value:v,tagName:"h4",className:"uagb-howto-req-materials-text"})),C&&Object(f.createElement)("div",{className:"uagb-how-to-materials"},w.map((function(e,t){return Object(f.createElement)("div",{className:_()("uagb-how-to-materials-".concat(t),"uagb-how-to-materials-child__wrapper")},Object(f.createElement)("div",{className:"uagb-materials"},Object(f.createElement)(l_.Content,{tagName:"div",value:e.add_required_materials,className:"uagb-materials__label"})))}))),Object(f.createElement)("div",{className:"uagb-how-to-steps__wrap"},Object(f.createElement)(l_.Content,{value:b,tagName:"h4",className:"uagb-howto-req-steps-text"}),Object(f.createElement)("div",{className:"uagb-howto-steps__wrap"},Object(f.createElement)(n_.Content,null)))))}}];(0,wp.blocks.registerBlockType)("uagb/how-to",{title:uagb_blocks_info.blocks["uagb/how-to"].title,description:uagb_blocks_info.blocks["uagb/how-to"].description,icon:n.how_to,category:uagb_blocks_info.category,keywords:[Object(M.__)("how to","ultimate-addons-for-gutenberg"),Object(M.__)("schema","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},example:{innerBlocks:[{name:"uagb/info-box",attributes:{infoBoxTitle:"Step 1",iconimgPosition:"left",source_type:"image",showPrefix:!1,seperatorStyle:"none",ctaType:"all",headingTag:"h4"}},{name:"uagb/info-box",attributes:{infoBoxTitle:"Step 2",iconimgPosition:"left",source_type:"image",showPrefix:!1,seperatorStyle:"none",ctaType:"all",headingTag:"h4"}},{name:"uagb/info-box",attributes:{infoBoxTitle:"Step 3",iconimgPosition:"left",source_type:"image",showPrefix:!1,seperatorStyle:"none",ctaType:"all",headingTag:"h4"}}]},attributes:fw,edit:$w,save:function(e){var t=e.attributes,a=e.className,l=t.block_id,n=t.headingTitle,i=t.headingDesc,o=t.headingTag,c=t.timeNeeded,r=t.time,s=(t.timeIn,t.estCost),u=t.cost,h=t.currencyType,d=t.mainimage,g=t.toolsTitle,m=t.stepsTitle,b=t.materialTitle,v=t.tools,p=t.materials,w=t.schema,y=t.showTotaltime,z=t.showEstcost,x=t.showTools,O=t.showMaterials,C=t.timeInMins,j=t.timeInHours,M=t.timeInDays,E=t.timeInMonths,H=t.timeInYears,k="",S="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(k=t.mainimage.url,S=t.mainimage.title);var L="";if(""!==k){var B=t.mainimage.sizes,V=t.imgSize;L=void 0!==B&&void 0!==B[V]?B[V].url:k}var T="";d&&d.url&&(T=Object(f.createElement)("img",{className:"uagb-howto__source-image",src:L,title:S}));var N=H>1?" Years ":" Year ",A=E>1?" Months ":" Month ",F=M>1?" Days ":" Day ",P=j>1?"Hours ":" Hour ",R=C||r,I=R>1?" Minutes ":" Minute ";return Object(f.createElement)("div",{className:_()(a,"uagb-block-".concat(l))},Object(f.createElement)("script",{type:"application/ld+json"},w),Object(f.createElement)("div",{className:"uagb-how-to-main-wrap"},Object(f.createElement)("div",{className:"uagb-howto__wrap"},Object(f.createElement)(Xw.Content,{value:n,tagName:o,className:"uagb-howto-heading-text"}),Object(f.createElement)(Xw.Content,{value:i,tagName:"p",className:"uagb-howto-desc-text"}),d.url&&Object(f.createElement)("div",{className:"uagb-howto__source-wrap"},T),y&&Object(f.createElement)("span",{className:"uagb-howto__time-wrap"},Object(f.createElement)(Xw.Content,{value:c,tagName:"h4",className:"uagb-howto-timeNeeded-text"}),Object(f.createElement)(t_,null,H&&Object(f.createElement)(t_,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"}," ",H),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"}," ",N)),E&&Object(f.createElement)(t_,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},E),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},A)),M&&Object(f.createElement)(t_,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},M),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},F)),j&&Object(f.createElement)(t_,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},j),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},P)),R&&Object(f.createElement)(t_,null,Object(f.createElement)("p",{className:"uagb-howto-timeNeeded-value"},R),Object(f.createElement)("p",{className:"uagb-howto-timeINmin-text"},I)))),z&&Object(f.createElement)("span",{className:"uagb-howto__cost-wrap"},Object(f.createElement)(Xw.Content,{value:s,tagName:"h4",className:"uagb-howto-estcost-text"}),Object(f.createElement)(Xw.Content,{value:u,tagName:"p",className:"uagb-howto-estcost-value"}),Object(f.createElement)(Xw.Content,{tagName:"p",value:h,className:"uagb-howto-estcost-type"}))),x&&Object(f.createElement)("div",{className:"uagb-how-to-tools__wrap"},Object(f.createElement)(Xw.Content,{value:g,tagName:"h4",className:"uagb-howto-req-tools-text"})),x&&Object(f.createElement)("div",{className:"uagb-tools__wrap"},v.map((function(e,t){return Object(f.createElement)("div",{className:_()("uagb-how-to-tools-".concat(t),"uagb-how-to-tools-child__wrapper"),key:t},Object(f.createElement)("div",{className:"uagb-tools"},Object(f.createElement)(Xw.Content,{tagName:"div",value:e.add_required_tools,className:"uagb-tools__label"})))}))),O&&Object(f.createElement)("div",{className:"uagb-how-to-materials__wrap"},Object(f.createElement)(Xw.Content,{value:b,tagName:"h4",className:"uagb-howto-req-materials-text"})),O&&Object(f.createElement)("div",{className:"uagb-how-to-materials"},p.map((function(e,t){return Object(f.createElement)("div",{className:_()("uagb-how-to-materials-".concat(t),"uagb-how-to-materials-child__wrapper")},Object(f.createElement)("div",{className:"uagb-materials"},Object(f.createElement)(Xw.Content,{tagName:"div",value:e.add_required_materials,className:"uagb-materials__label"})))}))),Object(f.createElement)("div",{className:"uagb-how-to-steps__wrap"},Object(f.createElement)(Xw.Content,{value:m,tagName:"h4",className:"uagb-howto-req-steps-text"}),Object(f.createElement)("div",{className:"uagb-howto-steps__wrap"},Object(f.createElement)(e_.Content,null)))))},deprecated:i_});var o_={block_id:{type:"string"},layout:{type:"string",default:"accordion"},inactiveOtherItems:{type:"boolean",default:!0},expandFirstItem:{type:"boolean",default:!1},enableSchemaSupport:{type:"boolean",default:!1},align:{type:"string",default:"left"},enableSeparator:{type:"boolean",default:!1},rowsGap:{type:"number",default:10},columnsGap:{type:"number",default:10},boxBgColor:{type:"string",default:"#FFFFFF"},boxPaddingTypeMobile:{type:"string",default:"px"},boxPaddingTypeTablet:{type:"string",default:"px"},boxPaddingTypeDesktop:{type:"string",default:"px"},vBoxPaddingMobile:{type:"number",default:10},hBoxPaddingMobile:{type:"number",default:10},vBoxPaddingTablet:{type:"number",default:10},hBoxPaddingTablet:{type:"number",default:10},vBoxPaddingDesktop:{type:"number",default:10},hBoxPaddingDesktop:{type:"number",default:10},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:2},borderColor:{type:"string",default:"#D2D2D2"},questionTextColor:{type:"string",default:"#313131"},questionTextActiveColor:{type:"string",default:"#656565"},questionPaddingTypeDesktop:{type:"string",default:"px"},vquestionPaddingMobile:{type:"number",default:10},vquestionPaddingTablet:{type:"number",default:10},vquestionPaddingDesktop:{type:"number",default:10},hquestionPaddingMobile:{type:"number",default:10},hquestionPaddingTablet:{type:"number",default:10},hquestionPaddingDesktop:{type:"number",default:10},answerTextColor:{type:"string",default:"#313131"},answerPaddingTypeDesktop:{type:"string",default:"px"},vanswerPaddingMobile:{type:"number",default:10},vanswerPaddingTablet:{type:"number",default:10},vanswerPaddingDesktop:{type:"number",default:10},hanswerPaddingMobile:{type:"number",default:10},hanswerPaddingTablet:{type:"number",default:10},hanswerPaddingDesktop:{type:"number",default:10},iconColor:{type:"string"},iconActiveColor:{type:"string"},gapBtwIconQUestion:{type:"number",default:10},questionloadGoogleFonts:{type:"boolean",default:!1},answerloadGoogleFonts:{type:"boolean",default:!1},questionFontFamily:{type:"string",default:"Default"},questionFontWeight:{type:"string"},questionFontSubset:{type:"string"},questionFontSize:{type:"number"},questionFontSizeType:{type:"string",default:"px"},questionFontSizeTablet:{type:"number"},questionFontSizeMobile:{type:"number"},questionLineHeight:{type:"number"},questionLineHeightType:{type:"string",default:"em"},questionLineHeightTablet:{type:"number"},questionLineHeightMobile:{type:"number"},answerFontFamily:{type:"string",default:"Default"},answerFontWeight:{type:"string"},answerFontSubset:{type:"string"},answerFontSize:{type:"number"},answerFontSizeType:{type:"string",default:"px"},answerFontSizeTablet:{type:"number"},answerFontSizeMobile:{type:"number"},answerLineHeight:{type:"number"},answerLineHeightType:{type:"string",default:"em"},answerLineHeightTablet:{type:"number"},answerLineHeightMobile:{type:"number"},icon:{type:"string",default:"fas fa-plus"},iconActive:{type:"string",default:"fas fa-minus"},iconAlign:{type:"string",default:"row"},iconSize:{type:"number",default:12},iconSizeTablet:{type:"number",default:12},iconSizeMobile:{type:"number",default:12},iconSizeType:{type:"string",default:"px"},columns:{type:"number",default:2},tcolumns:{type:"number",default:2},mcolumns:{type:"number",default:1},schema:{type:"string",default:""},enableToggle:{type:"boolean",default:!0},equalHeight:{type:"boolean",default:!0},questionLeftPaddingTablet:{type:"number",default:10},questionBottomPaddingTablet:{type:"number",default:10},questionLeftPaddingDesktop:{type:"number",default:10},questionBottomPaddingDesktop:{type:"number",default:10},questionLeftPaddingMobile:{type:"number",default:10},questionBottomPaddingMobile:{type:"number",default:10},headingTag:{type:"html",selector:"span,p,h1,h2,h3,h4,h5,h6",default:"span"}};var c_=wp.compose.compose,r_=wp.data,s_=r_.select,u_=r_.withSelect,h_=wp.element,d_=h_.Component,g_=h_.Fragment,m_=wp.blockEditor,b_=m_.ColorPalette,v_=m_.InspectorControls,p_=m_.InnerBlocks,f_=wp.components,w_=f_.PanelBody,y_=f_.SelectControl,z_=f_.RangeControl,x_=f_.TabPanel,O_=f_.ButtonGroup,C_=f_.Button,j_=f_.Dashicon,M_=f_.ToggleControl,E_=["uagb/faq-child"],H_=[],k_=Object.keys(Ho),S_=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).onchangeIcon=e.onchangeIcon.bind(h()(e)),e.onchangeActiveIcon=e.onchangeActiveIcon.bind(h()(e)),e.onchangeLayout=e.onchangeLayout.bind(h()(e)),e.onchangeTag=e.onchangeTag.bind(h()(e)),e}return s()(i,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=t.questionBottomPaddingDesktop,n=t.vquestionPaddingDesktop,i=t.questionLeftPaddingDesktop,o=t.hquestionPaddingDesktop,c=t.questionBottomPaddingTablet,r=t.vquestionPaddingTablet,s=t.questionLeftPaddingTablet,u=t.hquestionPaddingTablet,h=t.questionBottomPaddingMobile,d=t.vquestionPaddingMobile,g=t.questionLeftPaddingMobile,m=t.hquestionPaddingMobile;a({block_id:this.props.clientId.substr(0,8)}),a({schema:JSON.stringify(this.props.schemaJsonData)});var b=document.createElement("style");b.setAttribute("id","uagb-style-faq-"+this.props.clientId.substr(0,8)),document.head.appendChild(b);for(var v=1;v<=2;v++)H_.push({question:"What is FAQ?",answer:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."});10===l&&10!==n&&a({questionBottomPaddingDesktop:n}),10===i&&10!==o&&a({questionLeftPaddingDesktop:o}),10===c&&10!==r&&a({questionBottomPaddingTablet:r}),10===s&&10!==u&&a({questionLeftPaddingTablet:u}),10===h&&10!==d&&a({questionBottomPaddingMobile:d}),10===g&&10!==m&&a({questionLeftPaddingMobile:m})}},{key:"componentDidUpdate",value:function(e,t){var a=this;JSON.stringify(this.props.schemaJsonData)!==JSON.stringify(e.schemaJsonData)&&this.props.setAttributes({schema:JSON.stringify(this.props.schemaJsonData)});var l=document.getElementById("uagb-style-faq-"+this.props.clientId.substr(0,8));null!=l&&(l.innerHTML=function(e){var t=e.attributes,a=t.layout,l=t.inactiveOtherItems,n=t.expandFirstItem,i=t.rowsGap,o=t.columnsGap,c=t.align,r=t.enableSeparator,s=t.boxBgColor,u=t.borderStyle,h=t.borderWidth,d=t.borderRadius,g=t.borderColor,m=t.questionTextColor,b=t.questionTextActiveColor,v=t.questionPaddingTypeDesktop,p=t.vquestionPaddingMobile,f=t.vquestionPaddingTablet,w=t.vquestionPaddingDesktop,_=t.hquestionPaddingMobile,x=t.hquestionPaddingTablet,O=t.hquestionPaddingDesktop,C=t.answerTextColor,j=t.answerPaddingTypeDesktop,M=t.vanswerPaddingMobile,E=t.vanswerPaddingTablet,H=t.vanswerPaddingDesktop,k=t.hanswerPaddingMobile,S=t.hanswerPaddingTablet,L=t.hanswerPaddingDesktop,B=t.iconColor,V=t.iconActiveColor,T=t.gapBtwIconQUestion,N=t.questionFontFamily,A=t.questionFontWeight,F=t.questionFontSizeType,P=t.questionFontSize,R=t.questionFontSizeMobile,I=t.questionFontSizeTablet,D=t.questionLineHeightType,q=t.questionLineHeight,W=t.questionLineHeightMobile,G=t.questionLineHeightTablet,Z=t.answerFontFamily,U=t.answerFontWeight,Y=t.answerFontSizeType,K=t.answerFontSize,J=t.answerFontSizeMobile,$=t.answerFontSizeTablet,Q=t.answerLineHeightType,X=t.answerLineHeight,ee=t.answerLineHeightMobile,te=t.answerLineHeightTablet,ae=t.iconAlign,le=t.iconSize,ne=t.iconSizeType,ie=t.iconSizeMobile,oe=t.iconSizeTablet,ce=t.columns,re=t.tcolumns,se=t.mcolumns,ue=t.questionLeftPaddingTablet,he=t.questionBottomPaddingTablet,de=t.questionLeftPaddingDesktop,ge=t.questionBottomPaddingDesktop,me=t.questionLeftPaddingMobile,be=t.questionBottomPaddingMobile,ve={},pe={},fe={},we=B,_e=V;void 0!==B&&""!=B||(we=m),void 0!==V&&""!=V||(_e=b),ve={" .uagb-icon svg":{width:z(le,ne),height:z(le,ne),"font-size":z(le,ne),fill:we}," .uagb-icon-active svg":{width:z(le,ne),height:z(le,ne),"font-size":z(le,ne),fill:_e}," .uagb-faq-child__outer-wrap":{"margin-bottom":z(i,"px")},".uagb-faq-layout-grid .block-editor-inner-blocks .block-editor-block-list__layout":{"grid-column-gap":z(o,"px"),"grid-row-gap":z(i,"px")}," .uagb-faq-item":{"background-color":s,"border-style":u,"border-width":z(h,"px"),"border-radius":z(d,"px"),"border-color":g}," .uagb-faq-item .uagb-question":{color:m}," .uagb-faq-item.uagb-faq-item-active .uagb-question":{color:b}," .uagb-faq-item:hover .uagb-question":{color:b}," .uagb-faq-questions-button":{"padding-top":z(w,v),"padding-bottom":z(ge,v),"padding-right":z(O,v),"padding-left":z(de,v)}," .uagb-faq-content span":{"margin-top":z(H,j),"margin-bottom":z(H,j),"margin-right":z(L,j),"margin-left":z(L,j)},".uagb-faq-icon-row .uagb-faq-item .uagb-faq-icon-wrap":{"margin-right":z(T,"px")},".uagb-faq-icon-row-reverse .uagb-faq-item .uagb-faq-icon-wrap":{"margin-left":z(T,"px")}," .uagb-faq-item:hover .uagb-icon svg":{fill:_e}," .uagb-faq-item .uagb-faq-questions-button.uagb-faq-questions":{"flex-direction":ae}," .uagb-faq-questions-button .uagb-question":{"font-size":z(P,F),"line-height":z(q,D),"font-family":N,"font-weight":A}," .uagb-faq-item .uagb-faq-content p":{"font-size":z(K,Y),"line-height":z(X,Q),"font-family":Z,"font-weight":U,color:C}},pe={" .uagb-faq-questions-button":{"padding-top":z(f,v),"padding-bottom":z(he,v),"padding-right":z(x,v),"padding-left":z(ue,v)}," .uagb-faq-content span":{"margin-top":z(E,j),"margin-bottom":z(E,j),"margin-right":z(S,j),"margin-left":z(S,j)}," .uagb-faq-questions-button .uagb-question":{"font-size":z(I,F),"line-height":z(G,D)}," .uagb-faq-item .uagb-faq-content p":{"font-size":z($,Y),"line-height":z(te,Q)}," .uagb-icon svg":{width:z(oe,ne),height:z(oe,ne),"font-size":z(oe,ne)}," .uagb-icon-active svg":{width:z(oe,ne),height:z(oe,ne),"font-size":z(oe,ne)}},fe={" .uagb-faq-questions-button":{"padding-top":z(p,v),"padding-bottom":z(be,v),"padding-right":z(_,v),"padding-left":z(me,v)}," .uagb-faq-content span":{"margin-top":z(M,j),"margin-bottom":z(M,j),"margin-right":z(k,j),"margin-left":z(k,j)}," .uagb-faq-questions-button .uagb-question":{"font-size":z(R,F),"line-height":z(W,D)}," .uagb-faq-item .uagb-faq-content p":{"font-size":z(J,Y),"line-height":z(ee,Q)}," .uagb-icon svg":{width:z(ie,ne),height:z(ie,ne),"font-size":z(ie,ne)}," .uagb-icon-active svg":{width:z(ie,ne),height:z(ie,ne),"font-size":z(ie,ne)}},"accordion"===a&&!0===l&&(ve[" .block-editor-block-list__layout .uagb-faq-child__outer-wrap .uagb-faq-content "]={display:"none"}),"accordion"===a&&!1===l&&(ve[" .block-editor-inner-blocks .uagb-faq-child__outer-wrap .uagb-faq-item .uagb-faq-questions-button .uagb-icon-active"]={display:"inline-block"},ve[" .block-editor-inner-blocks .uagb-faq-child__outer-wrap .uagb-faq-item .uagb-faq-questions-button .uagb-icon"]={display:"none"}),"accordion"===a&&!0===n&&(ve[" .block-editor-block-list__layout > div:first-child > .uagb-faq-child__outer-wrap .uagb-faq-content "]={display:"block"},ve[" .block-editor-block-list__layout > div:first-child > .uagb-faq-child__outer-wrap .uagb-faq-item .uagb-faq-questions-button .uagb-icon-active "]={display:"inline-block"},ve[" .block-editor-block-list__layout > div:first-child > .uagb-faq-child__outer-wrap .uagb-faq-item .uagb-faq-questions-button .uagb-icon "]={display:"none"}),!0===r&&(ve[".uagb-faq__outer-wrap .uagb-faq-child__outer-wrap .uagb-faq-content "]={"border-style":"solid","border-top-color":g,"border-top-width":z(h,"px")}),"grid"===a&&(ve[" .block-editor-block-list__layout .uagb-faq-child__outer-wrap "]={"text-align":c},ve[".uagb-faq-layout-grid .block-editor-inner-blocks > .block-editor-block-list__layout "]={"grid-template-columns":"repeat("+ce+", 1fr)"},pe[".uagb-faq-layout-grid .block-editor-inner-blocks > .block-editor-block-list__layout "]={"grid-template-columns":"repeat("+re+", 1fr)"},fe[".uagb-faq-layout-grid .block-editor-inner-blocks > .block-editor-block-list__layout "]={"grid-template-columns":"repeat("+se+", 1fr)"});var ye="",ze=".uagb-block-".concat(e.clientId.substr(0,8));return ye=y(ve,ze),(ye+=y(pe,"".concat(ze,".uagb-editor-preview-mode-tablet")))+y(fe,"".concat(ze,".uagb-editor-preview-mode-mobile"))}(this.props)),s_("core/block-editor").getBlocks(this.props.clientId).forEach((function(e,t){e.attributes.headingTag=a.props.attributes.headingTag}))}},{key:"onchangeIcon",value:function(e){var t=this.props.setAttributes;s_("core/block-editor").getBlocks(this.props.clientId).forEach((function(t,a){t.attributes.icon=e})),t({icon:e})}},{key:"onchangeActiveIcon",value:function(e){var t=this.props.setAttributes;s_("core/block-editor").getBlocks(this.props.clientId).forEach((function(t,a){t.attributes.iconActive=e})),t({iconActive:e})}},{key:"onchangeLayout",value:function(e){var t=this.props.setAttributes;s_("core/block-editor").getBlocks(this.props.clientId).forEach((function(t,a){t.attributes.layout=e})),t({layout:e})}},{key:"onchangeTag",value:function(e){var t=this.props.setAttributes;s_("core/block-editor").getBlocks(this.props.clientId).forEach((function(t,a){t.attributes.headingTag=e})),t({headingTag:e})}},{key:"render",value:function(){var e,t,a=this,l=this.props,i=l.attributes,o=l.setAttributes,c=l.deviceType,r=i.layout,s=i.inactiveOtherItems,u=i.expandFirstItem,h=i.enableSchemaSupport,d=i.rowsGap,g=i.columnsGap,m=i.align,b=i.enableSeparator,v=i.boxBgColor,p=i.borderStyle,w=i.borderWidth,y=i.borderRadius,z=i.borderColor,x=i.questionTextColor,O=i.questionTextActiveColor,C=i.questionPaddingTypeDesktop,j=i.answerTextColor,E=i.answerPaddingTypeDesktop,H=i.vanswerPaddingMobile,k=i.vanswerPaddingTablet,S=i.vanswerPaddingDesktop,L=i.hanswerPaddingMobile,B=i.hanswerPaddingTablet,V=i.hanswerPaddingDesktop,T=i.iconColor,N=i.iconActiveColor,A=i.gapBtwIconQUestion,F=i.questionloadGoogleFonts,P=i.questionFontFamily,R=i.questionFontWeight,I=i.questionFontSubset,D=i.questionFontSizeType,q=i.questionFontSize,W=i.questionFontSizeMobile,G=i.questionFontSizeTablet,Z=i.questionLineHeightType,U=i.questionLineHeight,Y=i.questionLineHeightMobile,K=i.questionLineHeightTablet,J=i.answerloadGoogleFonts,$=i.answerFontFamily,Q=i.answerFontWeight,X=i.answerFontSubset,ee=i.answerFontSizeType,te=i.answerFontSize,ae=i.answerFontSizeMobile,le=i.answerFontSizeTablet,ne=i.answerLineHeightType,ie=i.answerLineHeight,oe=i.answerLineHeightMobile,ce=i.answerLineHeightTablet,re=i.icon,se=i.iconActive,ue=i.iconAlign,he=i.iconSizeType,de=i.iconSizeMobile,ge=i.iconSizeTablet,me=i.iconSize,be=i.columns,ve=i.tcolumns,pe=i.mcolumns,fe=i.enableToggle,we=i.equalHeight,_e=i.questionLeftPaddingTablet,ye=i.hquestionPaddingTablet,ze=i.vquestionPaddingTablet,xe=i.questionBottomPaddingTablet,Oe=i.questionLeftPaddingDesktop,Ce=i.hquestionPaddingDesktop,je=i.vquestionPaddingDesktop,Me=i.questionBottomPaddingDesktop,Ee=i.questionLeftPaddingMobile,He=i.hquestionPaddingMobile,ke=i.vquestionPaddingMobile,Se=i.questionBottomPaddingMobile,Le=i.headingTag,Be=no()((function(e,t){return ao()(e,(function(e){return["uagb/faq-child",t[e]]}))})),Ve=we?"uagb-faq-equal-height":"";if(1==F){var Te={google:{families:[P+(R?":"+R:"")]}};e=Object(f.createElement)(ha,{config:Te})}if(1==J){var Ne={google:{families:[$+(Q?":"+Q:"")]}};t=Object(f.createElement)(ha,{config:Ne})}return Object(f.createElement)(g_,null,Object(f.createElement)(v_,null,Object(f.createElement)(w_,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},Object(f.createElement)(y_,{label:Object(M.__)("Layout","ultimate-addons-for-gutenberg"),value:r,options:[{value:"accordion",label:Object(M.__)("Accordion","ultimate-addons-for-gutenberg")},{value:"grid",label:Object(M.__)("Grid","ultimate-addons-for-gutenberg")}],onChange:function(e){return a.onchangeLayout(e)}}),"accordion"===r&&Object(f.createElement)(g_,null,Object(f.createElement)(M_,{label:Object(M.__)("Collapse other items","ultimate-addons-for-gutenberg"),checked:s,onChange:function(e){return o({inactiveOtherItems:!s})}}),!0===s&&Object(f.createElement)(M_,{label:Object(M.__)("Expand First Item","ultimate-addons-for-gutenberg"),checked:u,onChange:function(e){return o({expandFirstItem:!u})}}),Object(f.createElement)(M_,{label:Object(M.__)("Enable Toggle","ultimate-addons-for-gutenberg"),checked:fe,onChange:function(e){return o({enableToggle:!fe})}})),Object(f.createElement)(M_,{label:Object(M.__)("Enable Schema Support","ultimate-addons-for-gutenberg"),checked:h,onChange:function(e){return o({enableSchemaSupport:!h})}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),"grid"===r&&Object(f.createElement)(x_,{className:"uagb-size-type-field-tabs uagb-without-size-type",activeClass:"active-tab",tabs:[{name:"desktop",title:Object(f.createElement)(j_,{icon:"desktop"}),className:"uagb-desktop-tab uagb-responsive-tabs"},{name:"tablet",title:Object(f.createElement)(j_,{icon:"tablet"}),className:"uagb-tablet-tab uagb-responsive-tabs"},{name:"mobile",title:Object(f.createElement)(j_,{icon:"smartphone"}),className:"uagb-mobile-tab uagb-responsive-tabs"}]},(function(e){var t;return t="mobile"===e.name?Object(f.createElement)(z_,{label:Object(M.__)("Mobile Columns","ultimate-addons-for-gutenberg"),value:pe,onChange:function(e){return o({mcolumns:e})},min:1,max:2}):"tablet"===e.name?Object(f.createElement)(z_,{label:Object(M.__)("Tab Columns","ultimate-addons-for-gutenberg"),value:ve,onChange:function(e){return o({tcolumns:e})},min:1,max:4}):Object(f.createElement)(z_,{label:Object(M.__)("Desktop Columns","ultimate-addons-for-gutenberg"),value:be,onChange:function(e){return o({columns:e})},min:1,max:6}),Object(f.createElement)("div",null,t)})),"grid"===r&&Object(f.createElement)(g_,null,Object(f.createElement)("h2",null," ",Object(M.__)("Alignment","ultimate-addons-for-gutenberg")),Object(f.createElement)(C_,{key:"left",icon:"editor-alignleft",label:"Left",onClick:function(){return o({align:"left"})},"aria-pressed":"left"===m,isPrimary:"left"===m}),Object(f.createElement)(C_,{key:"center",icon:"editor-aligncenter",label:"Right",onClick:function(){return o({align:"center"})},"aria-pressed":"center"===m,isPrimary:"center"===m}),Object(f.createElement)(C_,{key:"right",icon:"editor-alignright",label:"Right",onClick:function(){return o({align:"right"})},"aria-pressed":"right"===m,isPrimary:"right"===m})),"accordion"===r&&Object(f.createElement)(g_,null,Object(f.createElement)("h2",null," ",Object(M.__)("Icon","ultimate-addons-for-gutenberg")," "),Object(f.createElement)("p",{className:"components-base-control__label"},Object(M.__)("Expand","ultimate-addons-for-gutenberg")),Object(f.createElement)(So.a,{icons:k_,renderFunc:Lo,theme:"default",value:re,onChange:function(e){return a.onchangeIcon(e)},isMulti:!1,noSelectedPlaceholder:Object(M.__)("Select Icon","ultimate-addons-for-gutenberg")}),Object(f.createElement)("p",{className:"components-base-control__label"},Object(M.__)("Collapse","ultimate-addons-for-gutenberg")),Object(f.createElement)(So.a,{icons:k_,renderFunc:Lo,theme:"default",value:se,onChange:function(e){return a.onchangeActiveIcon(e)},isMulti:!1,noSelectedPlaceholder:Object(M.__)("Select Icon","ultimate-addons-for-gutenberg")}),Object(f.createElement)("h2",null," ",Object(M.__)("Icon Alignment","ultimate-addons-for-gutenberg")),Object(f.createElement)(C_,{key:"row",icon:"editor-alignleft",label:"Left",onClick:function(){return o({iconAlign:"row"})},"aria-pressed":"row"===ue,isPrimary:"row"===ue}),Object(f.createElement)(C_,{key:"row-reverse",icon:"editor-alignright",label:"Right",onClick:function(){return o({iconAlign:"row-reverse"})},"aria-pressed":"row-reverse"===ue,isPrimary:"row-reverse"===ue}))),Object(f.createElement)(w_,{title:Object(M.__)("Style","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:v}}))),Object(f.createElement)(b_,{value:v,onChange:function(e){return o({boxBgColor:e})},allowReset:!0}),Object(f.createElement)(z_,{label:Object(M.__)("Rows Gap (px)","ultimate-addons-for-gutenberg"),value:d,onChange:function(e){return o({rowsGap:e})},min:0,max:50}),"grid"===r&&Object(f.createElement)(g_,null,Object(f.createElement)(z_,{label:Object(M.__)("Columns Gap (px)","ultimate-addons-for-gutenberg"),value:g,onChange:function(e){return o({columnsGap:e})},min:0,max:50}),Object(f.createElement)(M_,{label:Object(M.__)("Equal Height","ultimate-addons-for-gutenberg"),checked:we,onChange:function(e){return o({equalHeight:!we})}})),Object(f.createElement)(M_,{label:Object(M.__)("Enable Separator","ultimate-addons-for-gutenberg"),checked:b,onChange:function(e){return o({enableSeparator:!b})}}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Border","ultimate-addons-for-gutenberg")),Object(f.createElement)(y_,{label:Object(M.__)("Style","ultimate-addons-for-gutenberg"),value:p,options:[{value:"none",label:Object(M.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(M.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(M.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(M.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(M.__)("Double","ultimate-addons-for-gutenberg")}],onChange:function(e){o({borderStyle:e})}}),"none"!==p&&Object(f.createElement)(z_,{label:Object(M.__)("Thickness (px)","ultimate-addons-for-gutenberg"),value:w,onChange:function(e){o({borderWidth:e})},min:0,max:20}),"none"!==p&&Object(f.createElement)(z_,{label:Object(M.__)("Rounded Corners (px)","ultimate-addons-for-gutenberg"),value:y,onChange:function(e){o({borderRadius:e})},min:0,max:50}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:z}}))),Object(f.createElement)(b_,{value:z,onChange:function(e){return o({borderColor:e})},allowReset:!0}),"accordion"===r&&Object(f.createElement)(g_,null,Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Icon","ultimate-addons-for-gutenberg")),Object(f.createElement)(Ga,null),"Desktop"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===he,"aria-pressed":"px"===he,onClick:function(){return o({iconSizeType:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===he,"aria-pressed":"%"===he,onClick:function(){return o({iconSizeType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Size")),Object(f.createElement)(z_,{value:me,onChange:function(e){return o({iconSize:e})},min:0,max:100,allowReset:!0})),"Tablet"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===he,"aria-pressed":"px"===he,onClick:function(){return o({iconSizeType:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===he,"aria-pressed":"%"===he,onClick:function(){return o({iconSizeType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Size")),Object(f.createElement)(z_,{value:ge,onChange:function(e){return o({iconSizeTablet:e})},min:0,max:100,allowReset:!0})),"Mobile"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===he,"aria-pressed":"px"===he,onClick:function(){return o({iconSizeType:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===he,"aria-pressed":"%"===he,onClick:function(){return o({iconSizeType:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Size")),Object(f.createElement)(z_,{value:de,onChange:function(e){return o({iconSizeMobile:e})},min:0,max:100,allowReset:!0})),Object(f.createElement)(z_,{label:Object(M.__)("Gap between Icon and Question","ultimate-addons-for-gutenberg"),value:A,onChange:function(e){return o({gapBtwIconQUestion:e})},min:0,max:100}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Expand Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:T}}))),Object(f.createElement)(b_,{value:T,onChange:function(e){return o({iconColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Collapse Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:N}}))),Object(f.createElement)(b_,{value:N,onChange:function(e){return o({iconActiveColor:e})},allowReset:!0}))),Object(f.createElement)(w_,{title:Object(M.__)("Question","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)(y_,{label:Object(M.__)("Question Tag","ultimate-addons-for-gutenberg"),value:Le,onChange:function(e){return a.onchangeTag(e)},options:[{value:"span",label:Object(M.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(M.__)("P","ultimate-addons-for-gutenberg")},{value:"h1",label:Object(M.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(M.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(M.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(M.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(M.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(M.__)("H6","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:F,label:"questionloadGoogleFonts"},fontFamily:{value:P,label:"questionFontFamily"},fontWeight:{value:R,label:"questionFontWeight"},fontSubset:{value:I,label:"questionFontSubset"},fontSizeType:{value:D,label:"questionFontSizeType"},fontSize:{value:q,label:"questionFontSize"},fontSizeMobile:{value:W,label:"questionFontSizeMobile"},fontSizeTablet:{value:G,label:"questionFontSizeTablet"},lineHeightType:{value:Z,label:"questionLineHeightType"},lineHeight:{value:U,label:"questionLineHeight"},lineHeightMobile:{value:Y,label:"questionLineHeightMobile"},lineHeightTablet:{value:K,label:"questionLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:x}}))),Object(f.createElement)(b_,{value:x,onChange:function(e){return o({questionTextColor:e})},allowReset:!0}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Active/Hover Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:O}}))),Object(f.createElement)(b_,{value:O,onChange:function(e){return o({questionTextActiveColor:e})},allowReset:!0}),Object(f.createElement)(Ga,null),"Desktop"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===C,"aria-pressed":"px"===C,onClick:function(){return o({questionPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===C,"aria-pressed":"%"===C,onClick:function(){return o({questionPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding")),Object(f.createElement)(z_,{label:n.left_margin,className:"uagb-margin-control",value:Oe,onChange:function(e){return o({questionLeftPaddingDesktop:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.right_margin,className:"uagb-margin-control",value:Ce,onChange:function(e){return o({hquestionPaddingDesktop:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.top_margin,className:"uagb-margin-control",value:je,onChange:function(e){return o({vquestionPaddingDesktop:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.bottom_margin,className:"uagb-margin-control",value:Me,onChange:function(e){return o({questionBottomPaddingDesktop:e})},min:0,max:50,allowReset:!0})),"Tablet"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===C,"aria-pressed":"px"===C,onClick:function(){return o({questionPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===C,"aria-pressed":"%"===C,onClick:function(){return o({questionPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(z_,{label:n.left_margin,className:"uagb-margin-control",value:_e,onChange:function(e){return o({questionLeftPaddingTablet:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.right_margin,className:"uagb-margin-control",value:ye,onChange:function(e){return o({hquestionPaddingTablet:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.top_margin,className:"uagb-margin-control",value:ze,onChange:function(e){return o({vquestionPaddingTablet:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.bottom_margin,className:"uagb-margin-control",value:xe,onChange:function(e){return o({questionBottomPaddingTablet:e})},min:0,max:50,allowReset:!0})),"Mobile"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===C,"aria-pressed":"px"===C,onClick:function(){return o({questionPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===C,"aria-pressed":"%"===C,onClick:function(){return o({questionPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(z_,{label:n.left_margin,className:"uagb-margin-control",value:Ee,onChange:function(e){return o({questionLeftPaddingMobile:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.right_margin,className:"uagb-margin-control",value:He,onChange:function(e){return o({hquestionPaddingMobile:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.top_margin,className:"uagb-margin-control",value:ke,onChange:function(e){return o({vquestionPaddingMobile:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)(z_,{label:n.bottom_margin,className:"uagb-margin-control",value:Se,onChange:function(e){return o({questionBottomPaddingMobile:e})},min:0,max:50,allowReset:!0}))),Object(f.createElement)(w_,{title:Object(M.__)("Answer","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},Object(f.createElement)(la,{label:Object(M.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:J,label:"answerloadGoogleFonts"},fontFamily:{value:$,label:"answerFontFamily"},fontWeight:{value:Q,label:"answerFontWeight"},fontSubset:{value:X,label:"answerFontSubset"},fontSizeType:{value:ee,label:"answerFontSizeType"},fontSize:{value:te,label:"answerFontSize"},fontSizeMobile:{value:ae,label:"answerFontSizeMobile"},fontSizeTablet:{value:le,label:"answerFontSizeTablet"},lineHeightType:{value:ne,label:"answerLineHeightType"},lineHeight:{value:ie,label:"answerLineHeight"},lineHeightMobile:{value:oe,label:"answerLineHeightMobile"},lineHeightTablet:{value:ce,label:"answerLineHeightTablet"}}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Text Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:j}}))),Object(f.createElement)(b_,{value:j,onChange:function(e){return o({answerTextColor:e})},allowReset:!0}),Object(f.createElement)(Ga,null),"Desktop"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===E,"aria-pressed":"px"===E,onClick:function(){return o({answerPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===E,"aria-pressed":"%"===E,onClick:function(){return o({answerPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(z_,{label:n.vertical_spacing,className:"uagb-margin-control",value:S,onChange:function(e){return o({vanswerPaddingDesktop:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(z_,{label:n.horizontal_spacing,className:"uagb-margin-control",value:V,onChange:function(e){return o({hanswerPaddingDesktop:e})},min:0,max:100,allowReset:!0})),"Tablet"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===E,"aria-pressed":"px"===E,onClick:function(){return o({answerPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===E,"aria-pressed":"%"===E,onClick:function(){return o({answerPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(z_,{label:n.vertical_spacing,className:"uagb-margin-control",value:k,onChange:function(e){return o({vanswerPaddingTablet:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(z_,{label:n.horizontal_spacing,className:"uagb-margin-control",value:B,onChange:function(e){return o({hanswerPaddingTablet:e})},min:0,max:100,allowReset:!0})),"Mobile"===c&&Object(f.createElement)(g_,null,Object(f.createElement)(O_,{className:"uagb-size-type-field","aria-label":Object(M.__)("Size Type","ultimate-addons-for-gutenberg")},Object(f.createElement)(C_,{key:"px",className:"uagb-size-btn",isSmall:!0,isPrimary:"px"===E,"aria-pressed":"px"===E,onClick:function(){return o({answerPaddingTypeDesktop:"px"})}},"px"),Object(f.createElement)(C_,{key:"%",className:"uagb-size-btn",isSmall:!0,isPrimary:"%"===E,"aria-pressed":"%"===E,onClick:function(){return o({answerPaddingTypeDesktop:"%"})}},"%")),Object(f.createElement)("h2",null,Object(M.__)("Padding","ultimate-addons-for-gutenberg")),Object(f.createElement)(z_,{label:n.vertical_spacing,className:"uagb-margin-control",value:H,onChange:function(e){return o({vanswerPaddingMobile:e})},min:0,max:100,allowReset:!0}),Object(f.createElement)(z_,{label:n.horizontal_spacing,className:"uagb-margin-control",value:L,onChange:function(e){return o({hanswerPaddingMobile:e})},min:0,max:100,allowReset:!0})))),Object(f.createElement)("div",{className:_()("uagb-faq__outer-wrap","uagb-editor-preview-mode-".concat(c.toLowerCase()),"uagb-block-".concat(this.props.clientId.substr(0,8)),"uagb-faq-icon-".concat(this.props.attributes.iconAlign),"uagb-faq-layout-".concat(this.props.attributes.layout),"uagb-faq-expand-first-".concat(this.props.attributes.expandFirstItem),"uagb-faq-inactive-other-".concat(this.props.attributes.inactiveOtherItems),Ve),"data-faqtoggle":this.props.attributes.enableToggle,role:"tablist"},Object(f.createElement)(p_,{template:Be(2,H_),templateLock:!1,allowedBlocks:E_,__experimentalMoverDirection:"vertical"})),e,t)}}]),i}(d_),L_=c_(u_((function(e,t){var a=e("core/editor").getPermalink(),l=e("core/edit-post").__experimentalGetPreviewDeviceType,n=void 0===l?null:l,i=n?n():null,o={},c={"@context":"https://schema.org","@type":"FAQPage","@id":a,mainEntity:[]};return e("core/block-editor").getBlocks(t.clientId).forEach((function(e,t){o={"@type":"Question",name:e.attributes.question,acceptedAnswer:{"@type":"Answer",text:e.attributes.answer}},c.mainEntity[t]=o})),{deviceType:i,schemaJsonData:c}})))(S_),B_=wp.blockEditor.InnerBlocks;a(397),a(398);var V_=wp.blockEditor.InnerBlocks,T_=[{attributes:o_,save:function(e){var t=e.className,a=e.attributes,l=a.block_id,n=a.schema,i=a.enableSchemaSupport,o=a.equalHeight?"uagb-faq-equal-height":"";return Object(f.createElement)("div",{className:_()(t,"uagb-faq__outer-wrap","uagb-block-".concat(l),"uagb-faq-icon-".concat(e.attributes.iconAlign),"uagb-faq-layout-".concat(e.attributes.layout),"uagb-faq-expand-first-".concat(e.attributes.expandFirstItem),"uagb-faq-inactive-other-".concat(e.attributes.inactiveOtherItems),o),"data-faqtoggle":e.attributes.enableToggle},!0===i?Object(f.createElement)("script",{type:"application/ld+json"},n):"",Object(f.createElement)("div",{className:"uagb-faq__wrap uagb-buttons-layout-wrap"},Object(f.createElement)(V_.Content,null)))}}],N_=wp.hooks.addFilter,A_=wp.element.Fragment,F_=wp.data.withSelect,P_=wp.compose,R_=P_.compose,I_=P_.createHigherOrderComponent,D_=wp.blocks.registerBlockType,q_=R_(F_((function(e){return{selected:e("core/block-editor").getSelectedBlock()}}))),W_=I_((function(e){return q_((function(t){var a=O()({},t);return Object(f.createElement)(A_,null,Object(f.createElement)(e,a))}))}),"withFaq");D_("uagb/faq",{title:uagb_blocks_info.blocks["uagb/faq"].title,description:uagb_blocks_info.blocks["uagb/faq"].description,icon:n.faq,category:uagb_blocks_info.category,keywords:[Object(M.__)("faq","ultimate-addons-for-gutenberg"),Object(M.__)("schema","ultimate-addons-for-gutenberg"),Object(M.__)("uag","ultimate-addons-for-gutenberg"),Object(M.__)("accordion","ultimate-addons-for-gutenberg")],example:{innerBlocks:[{name:"uagb/faq-child",innerBlocks:[{name:"uagb/faq-child",attributes:{question:"What is FAQ?",answer:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."}}]},{name:"uagb/faq-child",innerBlocks:[{name:"uagb/faq-child",attributes:{question:"What is FAQ?",answer:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."}}]}]},attributes:o_,deprecated:T_,edit:L_,supports:{anchor:!0},save:function(e){var t=e.className,a=e.attributes,l=a.block_id,n=a.schema,i=a.enableSchemaSupport,o=a.equalHeight?"uagb-faq-equal-height":"";return Object(f.createElement)("div",{className:_()(t,"uagb-faq__outer-wrap","uagb-block-".concat(l),"uagb-faq-icon-".concat(e.attributes.iconAlign),"uagb-faq-layout-".concat(e.attributes.layout),"uagb-faq-expand-first-".concat(e.attributes.expandFirstItem),"uagb-faq-inactive-other-".concat(e.attributes.inactiveOtherItems),o),"data-faqtoggle":e.attributes.enableToggle,role:"tablist"},!0===i?Object(f.createElement)("script",{type:"application/ld+json"},n):"",Object(f.createElement)("div",{className:"uagb-faq__wrap uagb-buttons-layout-wrap"},Object(f.createElement)(B_.Content,null)))}}),N_("editor.BlockEdit","uagb/faq",W_);var G_={block_id:{type:"string"},question:{type:"html",default:Object(M.__)("What is FAQ?","ultimate-addons-for-gutenberg")},answer:{type:"html",default:Object(M.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.","ultimate-addons-for-gutenberg")},icon:{type:"html",default:"fas fa-plus"},iconActive:{type:"html",default:"fas fa-minus"},layout:{type:"string",default:"accordion"},headingTag:{type:"html",selector:"span,p,h1,h2,h3,h4,h5,h6",default:"span"}};var Z_=wp.element,U_=Z_.Component,Y_=Z_.Fragment,K_=wp.blockEditor,J_=K_.InspectorControls,$_=K_.RichText,Q_=function(e){g()(n,e);var t,a,l=(t=n,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function n(){var e;return c()(this,n),(e=l.apply(this,arguments)).state={isFocused:"false"},e}return s()(n,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)})}},{key:"componentDidUpdate",value:function(e,t){!this.props.isSelected&&e.isSelected&&this.state.isFocused&&this.setState({isFocused:"false"}),this.props.isSelected&&!e.isSelected&&this.setState({isFocused:!0})}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=t.question,n=t.answer,i=t.icon,o=t.iconActive,c=t.layout,r=t.headingTag;return Object(f.createElement)(Y_,null,Object(f.createElement)(J_,null,(function(){return Object(f.createElement)("p",{className:"uagb-settings-notice"},Object(M.__)("For the styling options please select the Parent Block."))})),Object(f.createElement)("div",{className:_()("uagb-faq-child__outer-wrap","uagb-block-".concat(this.props.clientId.substr(0,8)),this.props.isSelected&&!1!==this.state.isFocused?"uagb-faq__active":"")},Object(f.createElement)("div",{className:"uagb-faq-child__wrapper"},Object(f.createElement)("div",{className:"uagb-faq-item",role:"tab",tabIndex:"0"},Object(f.createElement)("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===c&&Object(f.createElement)(Y_,null,Object(f.createElement)("span",{className:"uagb-icon uagb-faq-icon-wrap"},Lo(i)),Object(f.createElement)("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},Lo(o))),Object(f.createElement)($_,{tagName:"span"!=r?r:"div",placeholder:Object(M.__)("Question"),value:l,onChange:function(e){return a({question:e})},className:"uagb-question",multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"]})),Object(f.createElement)("div",{className:"uagb-faq-content"},Object(f.createElement)("span",null,Object(f.createElement)($_,{tagName:"p",placeholder:Object(M.__)("Answer"),value:n,onChange:function(e){return a({answer:e})},multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"]})))))))}}]),n}(U_),X_=wp.element.Fragment,ey=wp.blockEditor.RichText;a(399),a(400);var ty=wp.element.Fragment,ay=wp.blockEditor.RichText,ly=[{attributes:G_,save:function(e){var t=e.className,a=e.attributes,l=a.block_id,n=a.question,i=a.answer,o=a.icon,c=a.iconActive,r=a.layout;return Object(f.createElement)("div",{className:_()(t,"uagb-faq-child__outer-wrap","uagb-block-".concat(l))},Object(f.createElement)("div",{className:"uagb-faq-child__wrapper"},Object(f.createElement)("div",{className:"uagb-faq-item"},Object(f.createElement)("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===r&&Object(f.createElement)(ty,null,Object(f.createElement)("span",{className:"uagb-icon uagb-faq-icon-wrap"},Lo(o)),Object(f.createElement)("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},Lo(c))),Object(f.createElement)(ay.Content,{tagName:"span",value:n,className:"uagb-question"})),Object(f.createElement)("div",{className:"uagb-faq-content"},Object(f.createElement)("span",null,Object(f.createElement)(ay.Content,{tagName:"p",value:i}))))))}}];(0,wp.blocks.registerBlockType)("uagb/faq-child",{title:uagb_blocks_info.blocks["uagb/faq-child"].title,description:uagb_blocks_info.blocks["uagb/faq-child"].description,icon:n.faq,category:uagb_blocks_info.category,parent:["uagb/faq"],attributes:G_,edit:Q_,supports:{anchor:!0},save:function(e){var t=e.className,a=e.attributes,l=a.block_id,n=a.question,i=a.answer,o=a.icon,c=a.iconActive,r=a.layout,s=a.headingTag;return Object(f.createElement)("div",{className:_()(t,"uagb-faq-child__outer-wrap","uagb-block-".concat(l))},Object(f.createElement)("div",{className:"uagb-faq-child__wrapper"},Object(f.createElement)("div",{className:"uagb-faq-item",role:"tab",tabIndex:"0"},Object(f.createElement)("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===r&&Object(f.createElement)(X_,null,Object(f.createElement)("span",{className:"uagb-icon uagb-faq-icon-wrap"},Lo(o)),Object(f.createElement)("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},Lo(c))),Object(f.createElement)(ey.Content,{tagName:s,value:n,className:"uagb-question"})),Object(f.createElement)("div",{className:"uagb-faq-content"},Object(f.createElement)("span",null,Object(f.createElement)(ey.Content,{tagName:"p",value:i}))))))},deprecated:ly});var ny=wp.blockEditor,iy=ny.AlignmentToolbar,oy=ny.BlockControls,cy=ny.InspectorControls,ry=ny.RichText,sy=ny.ColorPalette,uy=wp.components,hy=uy.PanelBody,dy=uy.RangeControl,gy=uy.SelectControl,my=uy.ToggleControl,by=wp.element,vy=by.Component,py=by.Fragment,fy=Object.keys(Ho),wy=function(e){g()(i,e);var t,a,l=(t=i,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,l=p()(t);if(a){var n=p()(this).constructor;e=Reflect.construct(l,arguments,n)}else e=l.apply(this,arguments);return b()(this,e)});function i(){var e;return c()(this,i),(e=l.apply(this,arguments)).update_cookie_id=e.update_cookie_id.bind(h()(e)),e}return s()(i,[{key:"update_cookie_id",value:function(e){var t=(0,wp.data.select("core/editor").getCurrentPostId)().toString(),a=(new Date).getTime();this.props.setAttributes({c_id:t+"-"+a}),this.props.setAttributes({cookies:e})}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId.substr(0,8)});var e=document.createElement("style");e.setAttribute("id","uagb-inline-notice-style-"+this.props.clientId.substr(0,8)),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e){var t=document.getElementById("uagb-inline-notice-style-"+this.props.clientId.substr(0,8));null!=t&&(t.innerHTML=function(e){var t,a,l=e.attributes,n=l.block_id,i=l.textColor,o=l.titleColor,c=l.noticeColor,r=l.contentBgColor,s=l.noticeDismissColor,u=l.titleFontFamily,h=l.titleFontWeight,d=l.titleFontSizeType,g=l.titleLineHeightType,m=l.titleFontSize,b=l.titleFontSizeTablet,v=l.titleFontSizeMobile,p=l.titleLineHeight,f=l.titleLineHeightTablet,w=l.titleLineHeightMobile,_=l.descFontFamily,x=l.descFontWeight,O=l.descFontSize,C=l.descFontSizeType,j=l.descFontSizeTablet,M=l.descFontSizeMobile,E=l.descLineHeight,H=l.descLineHeightType,k=l.descLineHeightTablet,S=l.descLineHeightMobile,L=l.contentVrPadding,B=l.contentHrPadding,V=l.titleVrPadding,T=l.titleHrPadding,N=l.noticeDismiss,A=l.noticeAlignment,F=l.layout,P=l.highlightWidth;N?"left"===A||"center"===A?(a=T+13,t=T):(t=T+13,a=T):(t=T,a=T);var R,I,D={" .rich-text.block-editor-rich-text__editable.uagb-notice-title":{"font-size":z(m,d),"font-weight":h,"font-family":u,"line-height":z(p,g),color:o,"padding-left":z(t,"px"),"padding-right":z(a,"px"),"padding-top":z(V,"px"),"padding-bottom":z(V,"px")}," .rich-text.block-editor-rich-text__editable.uagb-notice-text":{"padding-left":z(B,"px"),"padding-right":z(B,"px"),"padding-top":z(L,"px"),"padding-bottom":z(L,"px")}," .rich-text.block-editor-rich-text__editable.uagb-notice-text p":{"font-size":z(O,C),"font-weight":x,"font-family":_,"line-height":z(E,H),color:i}," span.uagb-notice-dismiss":{fill:s}};"modern"==F?(D[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["background-color"]=c,D[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-top-right-radius"]="3px",D[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-top-left-radius"]="3px",D[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["background-color"]=r,D[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"].border="2px solid"+c,D[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-bottom-left-radius"]="3px",D[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-bottom-right-radius"]="3px"):"simple"==F&&(D[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["background-color"]=r,D[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-left"]=z(P,"px")+" solid "+c,D[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["background-color"]=r,D[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-left"]=z(P,"px")+" solid "+c),I={" .rich-text.block-editor-rich-text__editable.uagb-notice-title":{"font-size":z(v,d),"line-height":z(w,g)}," .rich-text.block-editor-rich-text__editable.uagb-notice-text p":{"font-size":z(M,C),"line-height":z(S,H)}},R={" .rich-text.block-editor-rich-text__editable.uagb-notice-title":{"font-size":z(b,d),"line-height":z(f,g)}," .rich-text.block-editor-rich-text__editable.uagb-notice-text p":{"font-size":z(j,C),"line-height":z(k,H)}};var q=".block-editor-page #wpwrap .uagb-block-".concat(n),W=y(D,q);return(W+=y(R,q))+y(I,q)}(this.props))}},{key:"render",value:function(){var e,t,a=this,l=this.props,i=l.attributes,o=i.block_id,c=i.icon,r=i.noticeTitle,s=i.noticeContent,u=i.noticeDismiss,h=i.cookies,d=i.close_cookie_days,g=i.textColor,m=i.titleColor,b=i.noticeColor,v=i.contentBgColor,p=i.noticeDismissColor,w=i.noticeAlignment,y=i.titleFontFamily,z=i.titleFontWeight,x=i.titleFontSubset,O=i.titleFontSizeType,C=i.titleLineHeightType,j=i.titleFontSize,E=i.titleFontSizeTablet,H=i.titleFontSizeMobile,k=i.titleLineHeight,S=i.titleLineHeightTablet,L=i.titleLineHeightMobile,B=i.descFontFamily,V=i.descFontWeight,T=i.descFontSubset,N=i.descFontSize,A=i.descFontSizeType,F=i.descFontSizeTablet,P=i.descFontSizeMobile,R=i.descLineHeight,I=i.descLineHeightType,D=i.descLineHeightTablet,q=i.descLineHeightMobile,W=i.titleLoadGoogleFonts,G=i.descLoadGoogleFonts,Z=i.contentVrPadding,U=i.contentHrPadding,Y=i.titleVrPadding,K=i.titleHrPadding,J=i.headingTag,$=i.layout,Q=i.highlightWidth,X=l.setAttributes,ee=l.className,te=l.attributes,ae=[{value:"",label:Object(M.__)("Allow Always","ultimate-addons-for-gutenberg")},{value:"uagb-dismissable",label:Object(M.__)("Allow to Dismiss","ultimate-addons-for-gutenberg")}];if(!0===W){var le={google:{families:[y+(z?":"+z:"")]}};e=Object(f.createElement)(ha,{config:le})}if(!0===G){var ne={google:{families:[B+(V?":"+V:"")]}};t=Object(f.createElement)(ha,{config:ne})}var ie="";return u&&(ie=Object(f.createElement)("span",{className:"uagb-notice-dismiss"},Lo(c))),Object(f.createElement)(py,null,Object(f.createElement)(oy,{key:"controls"},Object(f.createElement)(iy,{value:w,onChange:function(e){return X({noticeAlignment:e})}})),Object(f.createElement)(cy,null,Object(f.createElement)(hy,{title:Object(M.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},Object(f.createElement)(gy,{label:Object(M.__)("Layout","ultimate-addons-for-gutenberg"),value:$,onChange:function(e){return X({layout:e})},options:[{value:"modern",label:Object(M.__)("Modern","ultimate-addons-for-gutenberg")},{value:"simple",label:Object(M.__)("Default","ultimate-addons-for-gutenberg")}]}),"simple"==$&&Object(f.createElement)(dy,{label:Object(M.__)("Highlight width","ultimate-addons-for-gutenberg"),value:Q,onChange:function(e){return X({highlightWidth:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("h2",null,Object(M.__)("Primary Heading","ultimate-addons-for-gutenberg")),Object(f.createElement)(gy,{label:Object(M.__)("Tag"),value:J,onChange:function(e){return X({headingTag:e})},options:[{value:"h1",label:Object(M.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(M.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(M.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(M.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(M.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(M.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(M.__)("span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(M.__)("p","ultimate-addons-for-gutenberg")}]}),Object(f.createElement)(gy,{label:Object(M.__)("Notice Display","ultimate-addons-for-gutenberg"),options:ae,value:u,onChange:function(e){return a.props.setAttributes({noticeDismiss:e})}}),u&&Object(f.createElement)(py,null,Object(f.createElement)("p",{className:"components-base-control__label"},Object(M.__)("Icon","ultimate-addons-for-gutenberg")),Object(f.createElement)(So.a,{icons:fy,renderFunc:Lo,theme:"default",value:c,onChange:function(e){return X({icon:e})},isMulti:!1,noSelectedPlaceholder:Object(M.__)("Select Icon","ultimate-addons-for-gutenberg")})),u&&Object(f.createElement)("hr",{className:"uagb-editor__separator"}),u&&Object(f.createElement)(my,{label:Object(M.__)("Enable Cookies","ultimate-addons-for-gutenberg"),checked:h,onChange:a.update_cookie_id}),h&&Object(f.createElement)(dy,{label:Object(M.__)("Show Closed Notice After (Days)","ultimate-addons-for-gutenberg"),value:d,onChange:function(e){return X({close_cookie_days:e})},min:0,max:50,allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Colors","ultimate-addons-for-gutenberg")),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Title Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:m}}))),Object(f.createElement)(sy,{value:m,onChange:function(e){return X({titleColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Highlight Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:b}}))),Object(f.createElement)(sy,{value:b,onChange:function(e){return X({noticeColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Content Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:g}}))),Object(f.createElement)(sy,{value:g,onChange:function(e){return X({textColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Content Background Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:v}}))),Object(f.createElement)(sy,{value:v,onChange:function(e){return X({contentBgColor:e})},allowReset:!0}),u&&Object(f.createElement)("hr",{className:"uagb-editor__separator"}),u&&Object(f.createElement)("p",{className:"uagb-setting-label"},Object(M.__)("Dismiss Icon Color","ultimate-addons-for-gutenberg"),Object(f.createElement)("span",{className:"components-base-control__label"},Object(f.createElement)("span",{className:"component-color-indicator",style:{backgroundColor:p}}))),u&&Object(f.createElement)(sy,{value:p,onChange:function(e){return X({noticeDismissColor:e})},allowReset:!0}),Object(f.createElement)("hr",{className:"uagb-editor__separator"}),Object(f.createElement)("h2",null,Object(M.__)("Typography","ultimate-addons-for-gutenberg")),Object(f.createElement)(la,{label:Object(M.__)("Title","ultimate-addons-for-gutenberg"),attributes:te,setAttributes:X,loadGoogleFonts:{value:W,label:"titleLoadGoogleFonts"},fontFamily:{value:y,label:"titleFontFamily"},fontWeight:{value:z,label:"titleFontWeight"},fontSubset:{value:x,label:"titleFontSubset"},fontSizeType:{value:O,label:"titleFontSizeType"},fontSize:{value:j,label:"titleFontSize"},fontSizeMobile:{value:H,label:"titleFontSizeMobile"},fontSizeTablet:{value:E,label:"titleFontSizeTablet"},lineHeightType:{value:C,label:"titleLineHeightType"},lineHeight:{value:k,label:"titleLineHeight"},lineHeightMobile:{value:L,label:"titleLineHeightMobile"},lineHeightTablet:{value:S,label:"titleLineHeightTablet"}}),Object(f.createElement)(la,{label:Object(M.__)("Content","ultimate-addons-for-gutenberg"),attributes:te,setAttributes:X,loadGoogleFonts:{value:G,label:"descLoadGoogleFonts"},fontFamily:{value:B,label:"descFontFamily"},fontWeight:{value:V,label:"descFontWeight"},fontSubset:{value:T,label:"descFontSubset"},fontSizeType